* eval.c (lisp_indirect_variable): Name an expression,
[bpt/emacs.git] / configure
CommitLineData
067d23c9
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
1ef6de05 3# Generated by GNU Autoconf 2.68 for emacs 24.0.50.
067d23c9
KY
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1ef6de05
PE
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
067d23c9
KY
9#
10#
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## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if 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=';'
80 }
81fi
82
83
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
1ef6de05 92as_myself=
067d23c9
KY
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
1ef6de05 218 # Preserve -v and -x to the replacement shell.
067d23c9
KY
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
1ef6de05
PE
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
067d23c9
KY
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243 fi
244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
1ef6de05 327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
1ef6de05
PE
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
067d23c9
KY
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1ef6de05 371# script with STATUS, using 1 if that was 0.
067d23c9
KY
372as_fn_error ()
373{
1ef6de05
PE
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 378 fi
1ef6de05 379 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
380 as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386else
387 as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392else
393 as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469*)
470 ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494else
495 as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537test -n "$DJDIR" || exec 7<&0 </dev/null
538exec 6>&1
539
540# Name of the host.
1ef6de05 541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
067d23c9
KY
542# so uname gets run too.
543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545#
546# Initializations.
547#
548ac_default_prefix=/usr/local
549ac_clean_files=
550ac_config_libobj_dir=.
551LIBOBJS=
552cross_compiling=no
553subdirs=
554MFLAGS=
555MAKEFLAGS=
556
557# Identity of this package.
558PACKAGE_NAME='emacs'
559PACKAGE_TARNAME='emacs'
560PACKAGE_VERSION='24.0.50'
561PACKAGE_STRING='emacs 24.0.50'
562PACKAGE_BUGREPORT=''
563PACKAGE_URL=''
564
565ac_unique_file="src/lisp.h"
566# Factoring default headers for most tests.
567ac_includes_default="\
568#include <stdio.h>
569#ifdef HAVE_SYS_TYPES_H
570# include <sys/types.h>
571#endif
572#ifdef HAVE_SYS_STAT_H
573# include <sys/stat.h>
574#endif
575#ifdef STDC_HEADERS
576# include <stdlib.h>
577# include <stddef.h>
578#else
579# ifdef HAVE_STDLIB_H
580# include <stdlib.h>
581# endif
582#endif
583#ifdef HAVE_STRING_H
584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585# include <memory.h>
586# endif
587# include <string.h>
588#endif
589#ifdef HAVE_STRINGS_H
590# include <strings.h>
591#endif
592#ifdef HAVE_INTTYPES_H
593# include <inttypes.h>
594#endif
595#ifdef HAVE_STDINT_H
596# include <stdint.h>
597#endif
598#ifdef HAVE_UNISTD_H
599# include <unistd.h>
600#endif"
601
067d23c9 602ac_header_list=
e275c824
PE
603gl_getopt_required=POSIX
604gl_getopt_required=POSIX
067d23c9 605ac_func_list=
743c80a7
PE
606ac_subst_vars='gltests_LTLIBOBJS
607gltests_LIBOBJS
608gl_LTLIBOBJS
609gl_LIBOBJS
610am__EXEEXT_FALSE
611am__EXEEXT_TRUE
612LTLIBOBJS
1f5d53eb 613LIBOBJS
067d23c9
KY
614WINDOW_SUPPORT
615TOOLTIP_SUPPORT
616MOUSE_SUPPORT
617LIB_GCC
618LD_FIRSTFLAG
619LD_SWITCH_SYSTEM_TEMACS
620POST_ALLOC_OBJ
621PRE_ALLOC_OBJ
622CYGWIN_OBJ
623RALLOC_OBJ
624OLDXMENU_DEPS
625LIBX_OTHER
626LIBXMENU
627OLDXMENU
628OLDXMENU_TARGET
629LIBXT_OTHER
630TOOLKIT_LIBW
631WIDGET_OBJ
632XOBJ
633XMENU_OBJ
634FONT_OBJ
635OTHER_FILES
636GNU_OBJC_CFLAGS
637ns_appsrc
638ns_appresdir
639ns_appbindir
640ns_appdir
d6a003a8
AS
641S_FILE
642M_FILE
067d23c9
KY
643X_TOOLKIT_TYPE
644C_SWITCH_X_SYSTEM
645C_SWITCH_X_SITE
646LD_SWITCH_X_SITE
647gameuser
648gamedir
649bitmapdir
650archlibdir
651etcdir
652x_default_search_path
653lisppath
654locallisppath
655lispdir
656srcdir
657canonical
658configuration
659version
660KRB4LIB
661DESLIB
662KRB5LIB
663CRYPTOLIB
664COM_ERRLIB
665LIBRESOLV
666LIBHESIOD
667TERMCAP_OBJ
668LIBS_TERMCAP
743c80a7
PE
669LIBGNU_LTLIBDEPS
670LIBGNU_LIBDEPS
671gltests_WITNESS
e275c824
PE
672HAVE_UNISTD_H
673NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674NEXT_UNISTD_H
1fd182f0
PE
675PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677TIME_H_DEFINES_STRUCT_TIMESPEC
678NEXT_AS_FIRST_DIRECTIVE_TIME_H
679NEXT_TIME_H
5fa4ac76
PE
680NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
681NEXT_SYS_STAT_H
1f5d53eb
PE
682NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
683NEXT_STDLIB_H
5f90be1b
PE
684STDINT_H
685WINT_T_SUFFIX
686WCHAR_T_SUFFIX
687SIG_ATOMIC_T_SUFFIX
688SIZE_T_SUFFIX
689PTRDIFF_T_SUFFIX
690HAVE_SIGNED_WINT_T
691HAVE_SIGNED_WCHAR_T
692HAVE_SIGNED_SIG_ATOMIC_T
693BITSIZEOF_WINT_T
694BITSIZEOF_WCHAR_T
695BITSIZEOF_SIG_ATOMIC_T
696BITSIZEOF_SIZE_T
697BITSIZEOF_PTRDIFF_T
698HAVE_SYS_BITYPES_H
699HAVE_SYS_INTTYPES_H
700HAVE_STDINT_H
701NEXT_AS_FIRST_DIRECTIVE_STDINT_H
702NEXT_STDINT_H
703HAVE_SYS_TYPES_H
704HAVE_INTTYPES_H
705HAVE_WCHAR_H
706HAVE_UNSIGNED_LONG_LONG_INT
707HAVE_LONG_LONG_INT
1fd182f0
PE
708NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
709NEXT_STDDEF_H
1fd182f0
PE
710STDDEF_H
711HAVE_WCHAR_T
712REPLACE_NULL
16c3e636
PE
713HAVE__BOOL
714STDBOOL_H
1fd182f0
PE
715APPLE_UNIVERSAL_BUILD
716REPLACE_TIMEGM
717REPLACE_NANOSLEEP
718REPLACE_MKTIME
719REPLACE_LOCALTIME_R
720HAVE_TIMEGM
721HAVE_STRPTIME
722HAVE_NANOSLEEP
723HAVE_DECL_LOCALTIME_R
724GNULIB_TIME_R
725GNULIB_TIMEGM
726GNULIB_STRPTIME
727GNULIB_NANOSLEEP
728GNULIB_MKTIME
ae0d7250
PE
729REPLACE_UTIMENSAT
730REPLACE_STAT
731REPLACE_MKNOD
732REPLACE_MKFIFO
733REPLACE_MKDIR
734REPLACE_LSTAT
735REPLACE_FUTIMENS
736REPLACE_FSTATAT
737REPLACE_FSTAT
738HAVE_UTIMENSAT
739HAVE_MKNODAT
740HAVE_MKNOD
741HAVE_MKFIFOAT
742HAVE_MKFIFO
743HAVE_MKDIRAT
744HAVE_LSTAT
745HAVE_LCHMOD
746HAVE_FUTIMENS
747HAVE_FSTATAT
748HAVE_FCHMODAT
749GNULIB_UTIMENSAT
750GNULIB_STAT
751GNULIB_MKNODAT
752GNULIB_MKNOD
753GNULIB_MKFIFOAT
754GNULIB_MKFIFO
755GNULIB_MKDIRAT
756GNULIB_LSTAT
757GNULIB_LCHMOD
758GNULIB_FUTIMENS
759GNULIB_FSTATAT
760GNULIB_FCHMODAT
e275c824
PE
761LTLIBINTL
762LIBINTL
763GETOPT_H
764HAVE_GETOPT_H
765NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
766NEXT_GETOPT_H
767PRAGMA_COLUMNS
768PRAGMA_SYSTEM_HEADER
769INCLUDE_NEXT_AS_FIRST_DIRECTIVE
770INCLUDE_NEXT
771UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
772UNISTD_H_HAVE_WINSOCK2_H
773REPLACE_WRITE
774REPLACE_USLEEP
775REPLACE_UNLINKAT
776REPLACE_UNLINK
777REPLACE_TTYNAME_R
778REPLACE_SYMLINK
779REPLACE_SLEEP
780REPLACE_RMDIR
781REPLACE_READLINK
782REPLACE_PWRITE
783REPLACE_PREAD
784REPLACE_LSEEK
785REPLACE_LINKAT
786REPLACE_LINK
787REPLACE_LCHOWN
788REPLACE_GETPAGESIZE
789REPLACE_GETGROUPS
790REPLACE_GETLOGIN_R
791REPLACE_GETDOMAINNAME
792REPLACE_GETCWD
793REPLACE_FCHOWNAT
794REPLACE_DUP2
795REPLACE_DUP
796REPLACE_CLOSE
797REPLACE_CHOWN
798HAVE_SYS_PARAM_H
799HAVE_OS_H
800HAVE_DECL_TTYNAME_R
801HAVE_DECL_GETUSERSHELL
802HAVE_DECL_GETPAGESIZE
803HAVE_DECL_GETLOGIN_R
804HAVE_DECL_GETDOMAINNAME
805HAVE_DECL_FCHDIR
806HAVE_DECL_ENVIRON
807HAVE_USLEEP
808HAVE_UNLINKAT
809HAVE_SYMLINKAT
810HAVE_SYMLINK
811HAVE_SLEEP
812HAVE_READLINKAT
813HAVE_READLINK
814HAVE_PWRITE
815HAVE_PREAD
816HAVE_PIPE2
817HAVE_PIPE
818HAVE_LINKAT
819HAVE_LINK
820HAVE_LCHOWN
821HAVE_GETPAGESIZE
822HAVE_GETLOGIN
823HAVE_GETHOSTNAME
824HAVE_GETGROUPS
825HAVE_GETDTABLESIZE
826HAVE_FTRUNCATE
827HAVE_FSYNC
828HAVE_FCHOWNAT
829HAVE_FCHDIR
830HAVE_FACCESSAT
831HAVE_EUIDACCESS
832HAVE_DUP3
833HAVE_DUP2
834HAVE_CHOWN
835GNULIB_WRITE
836GNULIB_USLEEP
837GNULIB_UNLINKAT
838GNULIB_UNLINK
839GNULIB_UNISTD_H_SIGPIPE
840GNULIB_UNISTD_H_GETOPT
841GNULIB_TTYNAME_R
842GNULIB_SYMLINKAT
843GNULIB_SYMLINK
844GNULIB_SLEEP
845GNULIB_RMDIR
846GNULIB_READLINKAT
847GNULIB_READLINK
848GNULIB_PWRITE
849GNULIB_PREAD
850GNULIB_PIPE2
851GNULIB_PIPE
852GNULIB_LSEEK
853GNULIB_LINKAT
854GNULIB_LINK
855GNULIB_LCHOWN
856GNULIB_GETUSERSHELL
857GNULIB_GETPAGESIZE
858GNULIB_GETLOGIN_R
859GNULIB_GETLOGIN
860GNULIB_GETHOSTNAME
861GNULIB_GETGROUPS
862GNULIB_GETDTABLESIZE
863GNULIB_GETDOMAINNAME
864GNULIB_GETCWD
865GNULIB_FTRUNCATE
866GNULIB_FSYNC
867GNULIB_FCHOWNAT
868GNULIB_FCHDIR
869GNULIB_FACCESSAT
870GNULIB_EUIDACCESS
871GNULIB_ENVIRON
872GNULIB_DUP3
873GNULIB_DUP2
874GNULIB_CLOSE
875GNULIB_CHOWN
1f5d53eb 876GETLOADAVG_LIBS
9411886d 877REPLACE_WCTOMB
1f5d53eb
PE
878REPLACE_UNSETENV
879REPLACE_STRTOD
880REPLACE_SETENV
881REPLACE_REALPATH
882REPLACE_REALLOC
883REPLACE_PUTENV
884REPLACE_MKSTEMP
9411886d 885REPLACE_MBTOWC
1f5d53eb
PE
886REPLACE_MALLOC
887REPLACE_CANONICALIZE_FILE_NAME
888REPLACE_CALLOC
889HAVE_DECL_UNSETENV
890HAVE_UNLOCKPT
891HAVE_SYS_LOADAVG_H
892HAVE_STRUCT_RANDOM_DATA
893HAVE_STRTOULL
894HAVE_STRTOLL
895HAVE_STRTOD
896HAVE_DECL_SETENV
897HAVE_SETENV
898HAVE_RPMATCH
899HAVE_REALPATH
900HAVE_RANDOM_R
901HAVE_RANDOM_H
902HAVE_PTSNAME
903HAVE_MKSTEMPS
904HAVE_MKSTEMP
905HAVE_MKOSTEMPS
906HAVE_MKOSTEMP
907HAVE_MKDTEMP
908HAVE_GRANTPT
909HAVE_GETSUBOPT
910HAVE_DECL_GETLOADAVG
911HAVE_CANONICALIZE_FILE_NAME
912HAVE_ATOLL
913HAVE__EXIT
9411886d 914GNULIB_WCTOMB
1f5d53eb
PE
915GNULIB_UNSETENV
916GNULIB_UNLOCKPT
917GNULIB_SYSTEM_POSIX
918GNULIB_STRTOULL
919GNULIB_STRTOLL
920GNULIB_STRTOD
921GNULIB_SETENV
922GNULIB_RPMATCH
923GNULIB_REALPATH
924GNULIB_REALLOC_POSIX
925GNULIB_RANDOM_R
926GNULIB_PUTENV
927GNULIB_PTSNAME
928GNULIB_MKSTEMPS
929GNULIB_MKSTEMP
930GNULIB_MKOSTEMPS
931GNULIB_MKOSTEMP
932GNULIB_MKDTEMP
9411886d 933GNULIB_MBTOWC
1f5d53eb
PE
934GNULIB_MALLOC_POSIX
935GNULIB_GRANTPT
936GNULIB_GETSUBOPT
937GNULIB_GETLOADAVG
938GNULIB_CANONICALIZE_FILE_NAME
939GNULIB_CALLOC_POSIX
940GNULIB_ATOLL
941GNULIB__EXIT
743c80a7
PE
942GL_COND_LIBTOOL_FALSE
943GL_COND_LIBTOOL_TRUE
067d23c9
KY
944BLESSMAIL_TARGET
945LIBS_MAIL
946liblockfile
947ALLOCA
948LIBXML2_LIBS
949LIBXML2_CFLAGS
950LIBXSM
951LIBGPM
952LIBGIF
953LIBTIFF
954LIBPNG
955LIBJPEG
956LIBXPM
067d23c9
KY
957M17N_FLT_LIBS
958M17N_FLT_CFLAGS
959LIBOTF_LIBS
960LIBOTF_CFLAGS
7834125e
GM
961FREETYPE_LIBS
962FREETYPE_CFLAGS
067d23c9
KY
963XFT_LIBS
964XFT_CFLAGS
965FONTCONFIG_LIBS
966FONTCONFIG_CFLAGS
967LIBXMU
968LIBXTR6
969LIBGNUTLS_LIBS
970LIBGNUTLS_CFLAGS
971LIBSELINUX_LIBS
972GCONF_LIBS
973GCONF_CFLAGS
974DBUS_OBJ
975DBUS_LIBS
976DBUS_CFLAGS
977GTK_OBJ
978GTK_LIBS
979GTK_CFLAGS
980IMAGEMAGICK_LIBS
981IMAGEMAGICK_CFLAGS
982RSVG_LIBS
983RSVG_CFLAGS
984VMLIMIT_OBJ
985GMALLOC_OBJ
986HAVE_XSERVER
987LIB_STANDARD
988NS_SUPPORT
00b3c7ac 989NS_OBJC_OBJ
067d23c9
KY
990NS_OBJ
991TEMACS_LDFLAGS2
992LD_SWITCH_X_SITE_AUX_RPATH
993LD_SWITCH_X_SITE_AUX
994XMKMF
995DEPFLAGS
996MKDEPDIR
067d23c9
KY
997CFLAGS_SOUND
998ALSA_LIBS
999ALSA_CFLAGS
1000PKG_CONFIG
1001LIBSOUND
1002START_FILES
1003LIB_MATH
1004CRT_DIR
1005LIBS_SYSTEM
1006C_SWITCH_SYSTEM
1007UNEXEC_OBJ
1008C_SWITCH_MACHINE
1009LD_SWITCH_SYSTEM
1010CANNOT_DUMP
96f129d5 1011HAVE_MAKEINFO
067d23c9
KY
1012GZIP_PROG
1013INSTALL_INFO
067d23c9
KY
1014C_WARNINGS_SWITCH
1015EGREP
1016GREP
1017CPP
743c80a7
PE
1018RANLIB
1019am__fastdepCC_FALSE
1020am__fastdepCC_TRUE
1021CCDEPMODE
1022AMDEPBACKSLASH
1023AMDEP_FALSE
1024AMDEP_TRUE
1025am__quote
1026am__include
1027DEPDIR
067d23c9
KY
1028OBJEXT
1029EXEEXT
1030ac_ct_CC
1031CPPFLAGS
1032LDFLAGS
1033CFLAGS
1034CC
1035host_os
1036host_vendor
1037host_cpu
1038host
1039build_os
1040build_vendor
1041build_cpu
1042build
1043PROFILING_CFLAGS
1044MAINT
1045GZIP_INFO
743c80a7
PE
1046am__untar
1047am__tar
1048AMTAR
1049am__leading_dot
1050SET_MAKE
1051AWK
1052mkdir_p
1053MKDIR_P
1054INSTALL_STRIP_PROGRAM
1055STRIP
1056install_sh
1057MAKEINFO
1058AUTOHEADER
1059AUTOMAKE
1060AUTOCONF
1061ACLOCAL
1062VERSION
1063PACKAGE
1064CYGPATH_W
1065am__isrc
1066INSTALL_DATA
1067INSTALL_SCRIPT
1068INSTALL_PROGRAM
067d23c9
KY
1069target_alias
1070host_alias
1071build_alias
1072LIBS
1073ECHO_T
1074ECHO_N
1075ECHO_C
1076DEFS
1077mandir
1078localedir
1079libdir
1080psdir
1081pdfdir
1082dvidir
1083htmldir
1084infodir
1085docdir
1086oldincludedir
1087includedir
1088localstatedir
1089sharedstatedir
1090sysconfdir
1091datadir
1092datarootdir
1093libexecdir
1094sbindir
1095bindir
1096program_transform_name
1097prefix
1098exec_prefix
1099PACKAGE_URL
1100PACKAGE_BUGREPORT
1101PACKAGE_STRING
1102PACKAGE_VERSION
1103PACKAGE_TARNAME
1104PACKAGE_NAME
1105PATH_SEPARATOR
1106SHELL'
1107ac_subst_files='deps_frag
1108ns_frag'
1109ac_user_opts='
1110enable_option_checking
1111with_pop
1112with_kerberos
1113with_kerberos5
1114with_hesiod
1115with_mmdf
1116with_mail_unlink
1117with_mailhost
1118with_sound
1119with_sync_input
1120with_x_toolkit
1121with_xpm
1122with_jpeg
1123with_tiff
1124with_gif
1125with_png
1126with_rsvg
1127with_xml2
1128with_imagemagick
1129with_xft
1130with_libotf
1131with_m17n_flt
1132with_toolkit_scroll_bars
1133with_xaw3d
1134with_xim
1135with_ns
1136with_gpm
1137with_dbus
1138with_gconf
1139with_selinux
1140with_gnutls
1141with_makeinfo
1142with_compress_info
1143with_pkg_config_prog
1144with_crt_dir
4fc5868a 1145with_gameuser
067d23c9
KY
1146with_gnustep_conf
1147enable_ns_self_contained
1148enable_asserts
1149enable_maintainer_mode
1150enable_locallisppath
1151enable_checking
1152enable_use_lisp_union_type
1153enable_profiling
1154enable_autodepend
743c80a7 1155enable_dependency_tracking
067d23c9
KY
1156enable_largefile
1157with_x
1158'
1159 ac_precious_vars='build_alias
1160host_alias
1161target_alias
1162CC
1163CFLAGS
1164LDFLAGS
1165LIBS
1166CPPFLAGS
1167CPP
1168XMKMF'
1169
1170
1171# Initialize some variables set by options.
1172ac_init_help=
1173ac_init_version=false
1174ac_unrecognized_opts=
1175ac_unrecognized_sep=
1176# The variables have the same names as the options, with
1177# dashes changed to underlines.
1178cache_file=/dev/null
1179exec_prefix=NONE
1180no_create=
1181no_recursion=
1182prefix=NONE
1183program_prefix=NONE
1184program_suffix=NONE
1185program_transform_name=s,x,x,
1186silent=
1187site=
1188srcdir=
1189verbose=
1190x_includes=NONE
1191x_libraries=NONE
1192
1193# Installation directory options.
1194# These are left unexpanded so users can "make install exec_prefix=/foo"
1195# and all the variables that are supposed to be based on exec_prefix
1196# by default will actually change.
1197# Use braces instead of parens because sh, perl, etc. also accept them.
1198# (The list follows the same order as the GNU Coding Standards.)
1199bindir='${exec_prefix}/bin'
1200sbindir='${exec_prefix}/sbin'
1201libexecdir='${exec_prefix}/libexec'
1202datarootdir='${prefix}/share'
1203datadir='${datarootdir}'
1204sysconfdir='${prefix}/etc'
1205sharedstatedir='${prefix}/com'
1206localstatedir='${prefix}/var'
1207includedir='${prefix}/include'
1208oldincludedir='/usr/include'
1209docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1210infodir='${datarootdir}/info'
1211htmldir='${docdir}'
1212dvidir='${docdir}'
1213pdfdir='${docdir}'
1214psdir='${docdir}'
1215libdir='${exec_prefix}/lib'
1216localedir='${datarootdir}/locale'
1217mandir='${datarootdir}/man'
1218
1219ac_prev=
1220ac_dashdash=
1221for ac_option
1222do
1223 # If the previous option needs an argument, assign it.
1224 if test -n "$ac_prev"; then
1225 eval $ac_prev=\$ac_option
1226 ac_prev=
1227 continue
1228 fi
1229
1230 case $ac_option in
1ef6de05
PE
1231 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1232 *=) ac_optarg= ;;
1233 *) ac_optarg=yes ;;
067d23c9
KY
1234 esac
1235
1236 # Accept the important Cygnus configure options, so we can diagnose typos.
1237
1238 case $ac_dashdash$ac_option in
1239 --)
1240 ac_dashdash=yes ;;
1241
1242 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1243 ac_prev=bindir ;;
1244 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1245 bindir=$ac_optarg ;;
1246
1247 -build | --build | --buil | --bui | --bu)
1248 ac_prev=build_alias ;;
1249 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1250 build_alias=$ac_optarg ;;
1251
1252 -cache-file | --cache-file | --cache-fil | --cache-fi \
1253 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1254 ac_prev=cache_file ;;
1255 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1256 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1257 cache_file=$ac_optarg ;;
1258
1259 --config-cache | -C)
1260 cache_file=config.cache ;;
1261
1262 -datadir | --datadir | --datadi | --datad)
1263 ac_prev=datadir ;;
1264 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1265 datadir=$ac_optarg ;;
1266
1267 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1268 | --dataroo | --dataro | --datar)
1269 ac_prev=datarootdir ;;
1270 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1271 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1272 datarootdir=$ac_optarg ;;
1273
1274 -disable-* | --disable-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1ef6de05 1278 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283"enable_$ac_useropt"
1284"*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval enable_$ac_useropt=no ;;
1289
1290 -docdir | --docdir | --docdi | --doc | --do)
1291 ac_prev=docdir ;;
1292 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1293 docdir=$ac_optarg ;;
1294
1295 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1296 ac_prev=dvidir ;;
1297 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1298 dvidir=$ac_optarg ;;
1299
1300 -enable-* | --enable-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1ef6de05 1304 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1308 *"
1309"enable_$ac_useropt"
1310"*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval enable_$ac_useropt=\$ac_optarg ;;
1315
1316 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1317 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1318 | --exec | --exe | --ex)
1319 ac_prev=exec_prefix ;;
1320 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1321 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1322 | --exec=* | --exe=* | --ex=*)
1323 exec_prefix=$ac_optarg ;;
1324
1325 -gas | --gas | --ga | --g)
1326 # Obsolete; use --with-gas.
1327 with_gas=yes ;;
1328
1329 -help | --help | --hel | --he | -h)
1330 ac_init_help=long ;;
1331 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1332 ac_init_help=recursive ;;
1333 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1334 ac_init_help=short ;;
1335
1336 -host | --host | --hos | --ho)
1337 ac_prev=host_alias ;;
1338 -host=* | --host=* | --hos=* | --ho=*)
1339 host_alias=$ac_optarg ;;
1340
1341 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1342 ac_prev=htmldir ;;
1343 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1344 | --ht=*)
1345 htmldir=$ac_optarg ;;
1346
1347 -includedir | --includedir | --includedi | --included | --include \
1348 | --includ | --inclu | --incl | --inc)
1349 ac_prev=includedir ;;
1350 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1351 | --includ=* | --inclu=* | --incl=* | --inc=*)
1352 includedir=$ac_optarg ;;
1353
1354 -infodir | --infodir | --infodi | --infod | --info | --inf)
1355 ac_prev=infodir ;;
1356 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1357 infodir=$ac_optarg ;;
1358
1359 -libdir | --libdir | --libdi | --libd)
1360 ac_prev=libdir ;;
1361 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1362 libdir=$ac_optarg ;;
1363
1364 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1365 | --libexe | --libex | --libe)
1366 ac_prev=libexecdir ;;
1367 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1368 | --libexe=* | --libex=* | --libe=*)
1369 libexecdir=$ac_optarg ;;
1370
1371 -localedir | --localedir | --localedi | --localed | --locale)
1372 ac_prev=localedir ;;
1373 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1374 localedir=$ac_optarg ;;
1375
1376 -localstatedir | --localstatedir | --localstatedi | --localstated \
1377 | --localstate | --localstat | --localsta | --localst | --locals)
1378 ac_prev=localstatedir ;;
1379 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1380 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1381 localstatedir=$ac_optarg ;;
1382
1383 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1384 ac_prev=mandir ;;
1385 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1386 mandir=$ac_optarg ;;
1387
1388 -nfp | --nfp | --nf)
1389 # Obsolete; use --without-fp.
1390 with_fp=no ;;
1391
1392 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1393 | --no-cr | --no-c | -n)
1394 no_create=yes ;;
1395
1396 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1397 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1398 no_recursion=yes ;;
1399
1400 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1401 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1402 | --oldin | --oldi | --old | --ol | --o)
1403 ac_prev=oldincludedir ;;
1404 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1405 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1406 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1407 oldincludedir=$ac_optarg ;;
1408
1409 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1410 ac_prev=prefix ;;
1411 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1412 prefix=$ac_optarg ;;
1413
1414 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1415 | --program-pre | --program-pr | --program-p)
1416 ac_prev=program_prefix ;;
1417 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1418 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1419 program_prefix=$ac_optarg ;;
1420
1421 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1422 | --program-suf | --program-su | --program-s)
1423 ac_prev=program_suffix ;;
1424 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1425 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1426 program_suffix=$ac_optarg ;;
1427
1428 -program-transform-name | --program-transform-name \
1429 | --program-transform-nam | --program-transform-na \
1430 | --program-transform-n | --program-transform- \
1431 | --program-transform | --program-transfor \
1432 | --program-transfo | --program-transf \
1433 | --program-trans | --program-tran \
1434 | --progr-tra | --program-tr | --program-t)
1435 ac_prev=program_transform_name ;;
1436 -program-transform-name=* | --program-transform-name=* \
1437 | --program-transform-nam=* | --program-transform-na=* \
1438 | --program-transform-n=* | --program-transform-=* \
1439 | --program-transform=* | --program-transfor=* \
1440 | --program-transfo=* | --program-transf=* \
1441 | --program-trans=* | --program-tran=* \
1442 | --progr-tra=* | --program-tr=* | --program-t=*)
1443 program_transform_name=$ac_optarg ;;
1444
1445 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1446 ac_prev=pdfdir ;;
1447 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1448 pdfdir=$ac_optarg ;;
1449
1450 -psdir | --psdir | --psdi | --psd | --ps)
1451 ac_prev=psdir ;;
1452 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1453 psdir=$ac_optarg ;;
1454
1455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1456 | -silent | --silent | --silen | --sile | --sil)
1457 silent=yes ;;
1458
1459 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1460 ac_prev=sbindir ;;
1461 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1462 | --sbi=* | --sb=*)
1463 sbindir=$ac_optarg ;;
1464
1465 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1466 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1467 | --sharedst | --shareds | --shared | --share | --shar \
1468 | --sha | --sh)
1469 ac_prev=sharedstatedir ;;
1470 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1471 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1472 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1473 | --sha=* | --sh=*)
1474 sharedstatedir=$ac_optarg ;;
1475
1476 -site | --site | --sit)
1477 ac_prev=site ;;
1478 -site=* | --site=* | --sit=*)
1479 site=$ac_optarg ;;
1480
1481 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1482 ac_prev=srcdir ;;
1483 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1484 srcdir=$ac_optarg ;;
1485
1486 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1487 | --syscon | --sysco | --sysc | --sys | --sy)
1488 ac_prev=sysconfdir ;;
1489 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1490 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1491 sysconfdir=$ac_optarg ;;
1492
1493 -target | --target | --targe | --targ | --tar | --ta | --t)
1494 ac_prev=target_alias ;;
1495 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1496 target_alias=$ac_optarg ;;
1497
1498 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1499 verbose=yes ;;
1500
1501 -version | --version | --versio | --versi | --vers | -V)
1502 ac_init_version=: ;;
1503
1504 -with-* | --with-*)
1505 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1506 # Reject names that are not valid shell variable names.
1507 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1ef6de05 1508 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1509 ac_useropt_orig=$ac_useropt
1510 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1511 case $ac_user_opts in
1512 *"
1513"with_$ac_useropt"
1514"*) ;;
1515 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1516 ac_unrecognized_sep=', ';;
1517 esac
1518 eval with_$ac_useropt=\$ac_optarg ;;
1519
1520 -without-* | --without-*)
1521 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1522 # Reject names that are not valid shell variable names.
1523 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1ef6de05 1524 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1525 ac_useropt_orig=$ac_useropt
1526 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1528 *"
1529"with_$ac_useropt"
1530"*) ;;
1531 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1532 ac_unrecognized_sep=', ';;
1533 esac
1534 eval with_$ac_useropt=no ;;
1535
1536 --x)
1537 # Obsolete; use --with-x.
1538 with_x=yes ;;
1539
1540 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1541 | --x-incl | --x-inc | --x-in | --x-i)
1542 ac_prev=x_includes ;;
1543 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1544 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1545 x_includes=$ac_optarg ;;
1546
1547 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1548 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1549 ac_prev=x_libraries ;;
1550 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1551 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1552 x_libraries=$ac_optarg ;;
1553
1ef6de05
PE
1554 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1555Try \`$0 --help' for more information"
067d23c9
KY
1556 ;;
1557
1558 *=*)
1559 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1560 # Reject names that are not valid shell variable names.
1561 case $ac_envvar in #(
1562 '' | [0-9]* | *[!_$as_cr_alnum]* )
1ef6de05 1563 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
067d23c9
KY
1564 esac
1565 eval $ac_envvar=\$ac_optarg
1566 export $ac_envvar ;;
1567
1568 *)
1569 # FIXME: should be removed in autoconf 3.0.
1570 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1571 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1572 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1ef6de05 1573 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
067d23c9
KY
1574 ;;
1575
1576 esac
1577done
1578
1579if test -n "$ac_prev"; then
1580 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1ef6de05 1581 as_fn_error $? "missing argument to $ac_option"
067d23c9
KY
1582fi
1583
1584if test -n "$ac_unrecognized_opts"; then
1585 case $enable_option_checking in
1586 no) ;;
1ef6de05 1587 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
067d23c9
KY
1588 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1589 esac
1590fi
1591
1592# Check all directory arguments for consistency.
1593for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1594 datadir sysconfdir sharedstatedir localstatedir includedir \
1595 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1596 libdir localedir mandir
1597do
1598 eval ac_val=\$$ac_var
1599 # Remove trailing slashes.
1600 case $ac_val in
1601 */ )
1602 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1603 eval $ac_var=\$ac_val;;
1604 esac
1605 # Be sure to have absolute directory names.
1606 case $ac_val in
1607 [\\/$]* | ?:[\\/]* ) continue;;
1608 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1609 esac
1ef6de05 1610 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
067d23c9
KY
1611done
1612
1613# There might be people who depend on the old broken behavior: `$host'
1614# used to hold the argument of --host etc.
1615# FIXME: To remove some day.
1616build=$build_alias
1617host=$host_alias
1618target=$target_alias
1619
1620# FIXME: To remove some day.
1621if test "x$host_alias" != x; then
1622 if test "x$build_alias" = x; then
1623 cross_compiling=maybe
1ef6de05
PE
1624 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1625 If a cross compiler is detected then cross compile mode will be used" >&2
067d23c9
KY
1626 elif test "x$build_alias" != "x$host_alias"; then
1627 cross_compiling=yes
1628 fi
1629fi
1630
1631ac_tool_prefix=
1632test -n "$host_alias" && ac_tool_prefix=$host_alias-
1633
1634test "$silent" = yes && exec 6>/dev/null
1635
1636
1637ac_pwd=`pwd` && test -n "$ac_pwd" &&
1638ac_ls_di=`ls -di .` &&
1639ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1ef6de05 1640 as_fn_error $? "working directory cannot be determined"
067d23c9 1641test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1ef6de05 1642 as_fn_error $? "pwd does not report name of working directory"
067d23c9
KY
1643
1644
1645# Find the source files, if location was not specified.
1646if test -z "$srcdir"; then
1647 ac_srcdir_defaulted=yes
1648 # Try the directory containing this script, then the parent directory.
1649 ac_confdir=`$as_dirname -- "$as_myself" ||
1650$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1651 X"$as_myself" : 'X\(//\)[^/]' \| \
1652 X"$as_myself" : 'X\(//\)$' \| \
1653 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1654$as_echo X"$as_myself" |
1655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1656 s//\1/
1657 q
1658 }
1659 /^X\(\/\/\)[^/].*/{
1660 s//\1/
1661 q
1662 }
1663 /^X\(\/\/\)$/{
1664 s//\1/
1665 q
1666 }
1667 /^X\(\/\).*/{
1668 s//\1/
1669 q
1670 }
1671 s/.*/./; q'`
1672 srcdir=$ac_confdir
1673 if test ! -r "$srcdir/$ac_unique_file"; then
1674 srcdir=..
1675 fi
1676else
1677 ac_srcdir_defaulted=no
1678fi
1679if test ! -r "$srcdir/$ac_unique_file"; then
1680 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1ef6de05 1681 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
067d23c9
KY
1682fi
1683ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1684ac_abs_confdir=`(
1ef6de05 1685 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
067d23c9
KY
1686 pwd)`
1687# When building in place, set srcdir=.
1688if test "$ac_abs_confdir" = "$ac_pwd"; then
1689 srcdir=.
1690fi
1691# Remove unnecessary trailing slashes from srcdir.
1692# Double slashes in file names in object file debugging info
1693# mess up M-x gdb in Emacs.
1694case $srcdir in
1695*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1696esac
1697for ac_var in $ac_precious_vars; do
1698 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1699 eval ac_env_${ac_var}_value=\$${ac_var}
1700 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1701 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1702done
1703
1704#
1705# Report the --help message.
1706#
1707if test "$ac_init_help" = "long"; then
1708 # Omit some internal or obsolete options to make the list less imposing.
1709 # This message is too long to be a string in the A/UX 3.1 sh.
1710 cat <<_ACEOF
1711\`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1712
1713Usage: $0 [OPTION]... [VAR=VALUE]...
1714
1715To assign environment variables (e.g., CC, CFLAGS...), specify them as
1716VAR=VALUE. See below for descriptions of some of the useful variables.
1717
1718Defaults for the options are specified in brackets.
1719
1720Configuration:
1721 -h, --help display this help and exit
1722 --help=short display options specific to this package
1723 --help=recursive display the short help of all the included packages
1724 -V, --version display version information and exit
1ef6de05 1725 -q, --quiet, --silent do not print \`checking ...' messages
067d23c9
KY
1726 --cache-file=FILE cache test results in FILE [disabled]
1727 -C, --config-cache alias for \`--cache-file=config.cache'
1728 -n, --no-create do not create output files
1729 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1730
1731Installation directories:
1732 --prefix=PREFIX install architecture-independent files in PREFIX
1733 [$ac_default_prefix]
1734 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1735 [PREFIX]
1736
1737By default, \`make install' will install all the files in
1738\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1739an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1740for instance \`--prefix=\$HOME'.
1741
1742For better control, use the options below.
1743
1744Fine tuning of the installation directories:
1745 --bindir=DIR user executables [EPREFIX/bin]
1746 --sbindir=DIR system admin executables [EPREFIX/sbin]
1747 --libexecdir=DIR program executables [EPREFIX/libexec]
1748 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1749 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1750 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1751 --libdir=DIR object code libraries [EPREFIX/lib]
1752 --includedir=DIR C header files [PREFIX/include]
1753 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1754 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1755 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1756 --infodir=DIR info documentation [DATAROOTDIR/info]
1757 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1758 --mandir=DIR man documentation [DATAROOTDIR/man]
1759 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1760 --htmldir=DIR html documentation [DOCDIR]
1761 --dvidir=DIR dvi documentation [DOCDIR]
1762 --pdfdir=DIR pdf documentation [DOCDIR]
1763 --psdir=DIR ps documentation [DOCDIR]
1764_ACEOF
1765
1766 cat <<\_ACEOF
1767
1768Program names:
1769 --program-prefix=PREFIX prepend PREFIX to installed program names
1770 --program-suffix=SUFFIX append SUFFIX to installed program names
1771 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1772
1773X features:
1774 --x-includes=DIR X include files are in DIR
1775 --x-libraries=DIR X library files are in DIR
1776
1777System types:
1778 --build=BUILD configure for building on BUILD [guessed]
1779 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1780_ACEOF
1781fi
1782
1783if test -n "$ac_init_help"; then
1784 case $ac_init_help in
1785 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1786 esac
1787 cat <<\_ACEOF
1788
1789Optional Features:
1790 --disable-option-checking ignore unrecognized --enable/--with options
1791 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1792 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1793 --disable-ns-self-contained
1794 disable self contained build under NeXTstep
1795 --enable-asserts compile code with asserts enabled
1796 --enable-maintainer-mode
1797 enable make rules and dependencies not useful (and
1798 sometimes confusing) to the casual installer
1799 --enable-locallisppath=PATH
1800 directories Emacs should search for lisp files
1801 specific to this site
1802 --enable-checking[=LIST]
1803 enable expensive run-time checks. With LIST, enable
1804 only specific categories of checks. Categories are:
1805 all,yes,no. Flags are: stringbytes, stringoverrun,
1806 stringfreelist, xmallocoverrun, conslist
1807 --enable-use-lisp-union-type
1808 use a union for the Lisp_Object data type. This is
1809 only useful for development for catching certain
1810 types of bugs.
1811 --enable-profiling build emacs with profiling support. This might not
1812 work on all platforms
1813 --enable-autodepend automatically generate dependencies to .h-files.
1814 Requires GNU Make and Gcc. Enabled if GNU Make and
1815 Gcc is found
743c80a7
PE
1816 --disable-dependency-tracking speeds up one-time build
1817 --enable-dependency-tracking do not reject slow dependency extractors
067d23c9
KY
1818 --disable-largefile omit support for large files
1819
1820Optional Packages:
1821 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1822 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1823 --without-pop don't support POP mail retrieval with movemail
1824 --with-kerberos support Kerberos-authenticated POP
1825 --with-kerberos5 support Kerberos version 5 authenticated POP
1826 --with-hesiod support Hesiod to get the POP server host
1827 --with-mmdf support MMDF mailboxes
1828 --with-mail-unlink unlink, rather than empty, mail spool after reading
1829 --with-mailhost=HOSTNAME
1830 string giving default POP mail host
1831 --without-sound don't compile with sound support
1832 --without-sync-input process async input synchronously
1833 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1834 lucid or athena, motif, no)
1835 --without-xpm don't compile with XPM image support
1836 --without-jpeg don't compile with JPEG image support
1837 --without-tiff don't compile with TIFF image support
1838 --without-gif don't compile with GIF image support
1839 --without-png don't compile with PNG image support
1840 --without-rsvg don't compile with SVG image support
1841 --without-xml2 don't compile with XML parsing support
1842 --without-imagemagick don't compile with ImageMagick image support
1843 --without-xft don't use XFT for anti aliased fonts
1844 --without-libotf don't use libotf for OpenType font support
1845 --without-m17n-flt don't use m17n-flt for text shaping
1846 --without-toolkit-scroll-bars
1847 don't use Motif or Xaw3d scroll bars
1848 --without-xaw3d don't use Xaw3d
1849 --without-xim don't use X11 XIM
7834125e 1850 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
067d23c9
KY
1851 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1852 console
1853 --without-dbus don't compile with D-Bus support
1854 --without-gconf don't compile with GConf support
1855 --without-selinux don't compile with SELinux support
1856 --without-gnutls don't use -lgnutls for SSL/TLS support
1857 --without-makeinfo don't require makeinfo for building manuals
1858 --without-compress-info don't compress the installed Info pages
1859 --with-pkg-config-prog=PATH
1860 path to pkg-config for finding GTK and librsvg
1861 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1862 /usr/lib, or /usr/lib64 on some platforms.
4fc5868a 1863 --with-gameuser=USER user for shared game score files
067d23c9
KY
1864 --with-gnustep-conf=PATH
1865 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1866 or /etc/GNUstep/GNUstep.conf
1867 --with-x use the X Window System
1868
1869Some influential environment variables:
1870 CC C compiler command
1871 CFLAGS C compiler flags
1872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1873 nonstandard directory <lib dir>
1874 LIBS libraries to pass to the linker, e.g. -l<library>
1875 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1876 you have headers in a nonstandard directory <include dir>
1877 CPP C preprocessor
1878 XMKMF Path to xmkmf, Makefile generator for X Window System
1879
1880Use these variables to override the choices made by `configure' or to help
1881it to find libraries and programs with nonstandard names/locations.
1882
1883Report bugs to the package provider.
1884_ACEOF
1885ac_status=$?
1886fi
1887
1888if test "$ac_init_help" = "recursive"; then
1889 # If there are subdirs, report their specific --help.
1890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1891 test -d "$ac_dir" ||
1892 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1893 continue
1894 ac_builddir=.
1895
1896case "$ac_dir" in
1897.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1898*)
1899 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1900 # A ".." for each directory in $ac_dir_suffix.
1901 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1902 case $ac_top_builddir_sub in
1903 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1904 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1905 esac ;;
1906esac
1907ac_abs_top_builddir=$ac_pwd
1908ac_abs_builddir=$ac_pwd$ac_dir_suffix
1909# for backward compatibility:
1910ac_top_builddir=$ac_top_build_prefix
1911
1912case $srcdir in
1913 .) # We are building in place.
1914 ac_srcdir=.
1915 ac_top_srcdir=$ac_top_builddir_sub
1916 ac_abs_top_srcdir=$ac_pwd ;;
1917 [\\/]* | ?:[\\/]* ) # Absolute name.
1918 ac_srcdir=$srcdir$ac_dir_suffix;
1919 ac_top_srcdir=$srcdir
1920 ac_abs_top_srcdir=$srcdir ;;
1921 *) # Relative name.
1922 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1923 ac_top_srcdir=$ac_top_build_prefix$srcdir
1924 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1925esac
1926ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1927
1928 cd "$ac_dir" || { ac_status=$?; continue; }
1929 # Check for guested configure.
1930 if test -f "$ac_srcdir/configure.gnu"; then
1931 echo &&
1932 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1933 elif test -f "$ac_srcdir/configure"; then
1934 echo &&
1935 $SHELL "$ac_srcdir/configure" --help=recursive
1936 else
1937 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1938 fi || ac_status=$?
1939 cd "$ac_pwd" || { ac_status=$?; break; }
1940 done
1941fi
1942
1943test -n "$ac_init_help" && exit $ac_status
1944if $ac_init_version; then
1945 cat <<\_ACEOF
1946emacs configure 24.0.50
1ef6de05 1947generated by GNU Autoconf 2.68
067d23c9 1948
1ef6de05 1949Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
1950This configure script is free software; the Free Software Foundation
1951gives unlimited permission to copy, distribute and modify it.
1952_ACEOF
1953 exit
1954fi
1955
1956## ------------------------ ##
1957## Autoconf initialization. ##
1958## ------------------------ ##
1959
1960# ac_fn_c_try_compile LINENO
1961# --------------------------
1962# Try to compile conftest.$ac_ext, and return whether this succeeded.
1963ac_fn_c_try_compile ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext
1967 if { { ac_try="$ac_compile"
1968case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971esac
1972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973$as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_compile") 2>conftest.err
1975 ac_status=$?
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1980 fi
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_c_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest.$ac_objext; then :
1986 ac_retval=0
1987else
1988 $as_echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991 ac_retval=1
1992fi
1ef6de05 1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1994 as_fn_set_status $ac_retval
1995
1996} # ac_fn_c_try_compile
1997
067d23c9
KY
1998# ac_fn_c_try_cpp LINENO
1999# ----------------------
2000# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2001ac_fn_c_try_cpp ()
2002{
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if { { ac_try="$ac_cpp conftest.$ac_ext"
2005case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008esac
2009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010$as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2012 ac_status=$?
2013 if test -s conftest.err; then
2014 grep -v '^ *+' conftest.err >conftest.er1
2015 cat conftest.er1 >&5
2016 mv -f conftest.er1 conftest.err
2017 fi
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1ef6de05 2019 test $ac_status = 0; } > conftest.i && {
067d23c9
KY
2020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2021 test ! -s conftest.err
2022 }; then :
2023 ac_retval=0
2024else
2025 $as_echo "$as_me: failed program was:" >&5
2026sed 's/^/| /' conftest.$ac_ext >&5
2027
2028 ac_retval=1
2029fi
1ef6de05 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2031 as_fn_set_status $ac_retval
2032
2033} # ac_fn_c_try_cpp
2034
2035# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2036# -------------------------------------------------------
2037# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2038# the include files in INCLUDES and setting the cache variable VAR
2039# accordingly.
2040ac_fn_c_check_header_mongrel ()
2041{
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1ef6de05 2043 if eval \${$3+:} false; then :
067d23c9
KY
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045$as_echo_n "checking for $2... " >&6; }
1ef6de05 2046if eval \${$3+:} false; then :
067d23c9
KY
2047 $as_echo_n "(cached) " >&6
2048fi
2049eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052else
2053 # Is the header compilable?
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2055$as_echo_n "checking $2 usability... " >&6; }
2056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$4
2059#include <$2>
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_header_compiler=yes
2063else
2064 ac_header_compiler=no
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2068$as_echo "$ac_header_compiler" >&6; }
2069
2070# Is the header present?
2071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2072$as_echo_n "checking $2 presence... " >&6; }
2073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075#include <$2>
2076_ACEOF
2077if ac_fn_c_try_cpp "$LINENO"; then :
2078 ac_header_preproc=yes
2079else
2080 ac_header_preproc=no
2081fi
1ef6de05 2082rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2084$as_echo "$ac_header_preproc" >&6; }
2085
2086# So? What about this header?
2087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2088 yes:no: )
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2090$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093 ;;
2094 no:yes:* )
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2096$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2098$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2100$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2102$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2104$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 ;;
2106esac
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108$as_echo_n "checking for $2... " >&6; }
1ef6de05 2109if eval \${$3+:} false; then :
067d23c9
KY
2110 $as_echo_n "(cached) " >&6
2111else
2112 eval "$3=\$ac_header_compiler"
2113fi
2114eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116$as_echo "$ac_res" >&6; }
2117fi
1ef6de05 2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2119
2120} # ac_fn_c_check_header_mongrel
2121
2122# ac_fn_c_try_run LINENO
2123# ----------------------
2124# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2125# that executables *can* be run.
2126ac_fn_c_try_run ()
2127{
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if { { ac_try="$ac_link"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135$as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_link") 2>&5
2137 ac_status=$?
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2140 { { case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143esac
2144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145$as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_try") 2>&5
2147 ac_status=$?
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; }; }; then :
2150 ac_retval=0
2151else
2152 $as_echo "$as_me: program exited with status $ac_status" >&5
2153 $as_echo "$as_me: failed program was:" >&5
2154sed 's/^/| /' conftest.$ac_ext >&5
2155
2156 ac_retval=$ac_status
2157fi
2158 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1ef6de05 2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2160 as_fn_set_status $ac_retval
2161
2162} # ac_fn_c_try_run
2163
2164# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2165# -------------------------------------------------------
2166# Tests whether HEADER exists and can be compiled using the include files in
2167# INCLUDES, setting the cache variable VAR accordingly.
2168ac_fn_c_check_header_compile ()
2169{
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172$as_echo_n "checking for $2... " >&6; }
1ef6de05 2173if eval \${$3+:} false; then :
067d23c9
KY
2174 $as_echo_n "(cached) " >&6
2175else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178$4
2179#include <$2>
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182 eval "$3=yes"
2183else
2184 eval "$3=no"
2185fi
2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187fi
2188eval ac_res=\$$3
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190$as_echo "$ac_res" >&6; }
1ef6de05 2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2192
2193} # ac_fn_c_check_header_compile
2194
1fd182f0
PE
2195# ac_fn_c_try_link LINENO
2196# -----------------------
2197# Try to link conftest.$ac_ext, and return whether this succeeded.
2198ac_fn_c_try_link ()
2199{
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 rm -f conftest.$ac_objext conftest$ac_exeext
2202 if { { ac_try="$ac_link"
2203case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206esac
2207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208$as_echo "$ac_try_echo"; } >&5
2209 (eval "$ac_link") 2>conftest.err
2210 ac_status=$?
2211 if test -s conftest.err; then
2212 grep -v '^ *+' conftest.err >conftest.er1
2213 cat conftest.er1 >&5
2214 mv -f conftest.er1 conftest.err
2215 fi
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && {
2218 test -z "$ac_c_werror_flag" ||
2219 test ! -s conftest.err
2220 } && test -s conftest$ac_exeext && {
2221 test "$cross_compiling" = yes ||
2222 $as_test_x conftest$ac_exeext
2223 }; then :
2224 ac_retval=0
2225else
2226 $as_echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 ac_retval=1
2230fi
2231 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2232 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2233 # interfere with the next link command; also delete a directory that is
2234 # left behind by Apple's compiler. We do this before executing the actions.
2235 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1ef6de05 2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1fd182f0
PE
2237 as_fn_set_status $ac_retval
2238
2239} # ac_fn_c_try_link
2240
1ef6de05
PE
2241# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2242# ---------------------------------------------
2243# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2244# accordingly.
067d23c9
KY
2245ac_fn_c_check_decl ()
2246{
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1ef6de05
PE
2248 as_decl_name=`echo $2|sed 's/ *(.*//'`
2249 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2251$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2252if eval \${$3+:} false; then :
067d23c9
KY
2253 $as_echo_n "(cached) " >&6
2254else
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256/* end confdefs.h. */
2257$4
2258int
2259main ()
2260{
1ef6de05
PE
2261#ifndef $as_decl_name
2262#ifdef __cplusplus
2263 (void) $as_decl_use;
2264#else
2265 (void) $as_decl_name;
2266#endif
067d23c9
KY
2267#endif
2268
2269 ;
2270 return 0;
2271}
2272_ACEOF
2273if ac_fn_c_try_compile "$LINENO"; then :
2274 eval "$3=yes"
2275else
2276 eval "$3=no"
2277fi
2278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279fi
2280eval ac_res=\$$3
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282$as_echo "$ac_res" >&6; }
1ef6de05 2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2284
2285} # ac_fn_c_check_decl
2286
2287# ac_fn_c_check_header_preproc LINENO HEADER VAR
2288# ----------------------------------------------
2289# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2290ac_fn_c_check_header_preproc ()
2291{
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294$as_echo_n "checking for $2... " >&6; }
1ef6de05 2295if eval \${$3+:} false; then :
067d23c9
KY
2296 $as_echo_n "(cached) " >&6
2297else
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299/* end confdefs.h. */
2300#include <$2>
2301_ACEOF
2302if ac_fn_c_try_cpp "$LINENO"; then :
2303 eval "$3=yes"
2304else
2305 eval "$3=no"
2306fi
1ef6de05 2307rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2308fi
2309eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311$as_echo "$ac_res" >&6; }
1ef6de05 2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2313
2314} # ac_fn_c_check_header_preproc
2315
2316# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2317# ----------------------------------------------------
2318# Tries to find if the field MEMBER exists in type AGGR, after including
2319# INCLUDES, setting cache variable VAR accordingly.
2320ac_fn_c_check_member ()
2321{
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2324$as_echo_n "checking for $2.$3... " >&6; }
1ef6de05 2325if eval \${$4+:} false; then :
067d23c9
KY
2326 $as_echo_n "(cached) " >&6
2327else
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h. */
2330$5
2331int
2332main ()
2333{
2334static $2 ac_aggr;
2335if (ac_aggr.$3)
2336return 0;
2337 ;
2338 return 0;
2339}
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$4=yes"
2343else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$5
2347int
2348main ()
2349{
2350static $2 ac_aggr;
2351if (sizeof ac_aggr.$3)
2352return 0;
2353 ;
2354 return 0;
2355}
2356_ACEOF
2357if ac_fn_c_try_compile "$LINENO"; then :
2358 eval "$4=yes"
2359else
2360 eval "$4=no"
2361fi
2362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363fi
2364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365fi
2366eval ac_res=\$$4
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368$as_echo "$ac_res" >&6; }
1ef6de05 2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2370
2371} # ac_fn_c_check_member
2372
2373# ac_fn_c_check_func LINENO FUNC VAR
2374# ----------------------------------
2375# Tests whether FUNC exists, setting the cache variable VAR accordingly
2376ac_fn_c_check_func ()
2377{
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380$as_echo_n "checking for $2... " >&6; }
1ef6de05 2381if eval \${$3+:} false; then :
067d23c9
KY
2382 $as_echo_n "(cached) " >&6
2383else
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385/* end confdefs.h. */
2386/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2388#define $2 innocuous_$2
2389
2390/* System header to define __stub macros and hopefully few prototypes,
2391 which can conflict with char $2 (); below.
2392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2393 <limits.h> exists even on freestanding compilers. */
2394
2395#ifdef __STDC__
2396# include <limits.h>
2397#else
2398# include <assert.h>
2399#endif
2400
2401#undef $2
2402
2403/* Override any GCC internal prototype to avoid an error.
2404 Use char because int might match the return type of a GCC
2405 builtin and then its argument prototype would still apply. */
2406#ifdef __cplusplus
2407extern "C"
2408#endif
2409char $2 ();
2410/* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413#if defined __stub_$2 || defined __stub___$2
2414choke me
2415#endif
2416
2417int
2418main ()
2419{
2420return $2 ();
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425if ac_fn_c_try_link "$LINENO"; then :
2426 eval "$3=yes"
2427else
2428 eval "$3=no"
2429fi
2430rm -f core conftest.err conftest.$ac_objext \
2431 conftest$ac_exeext conftest.$ac_ext
2432fi
2433eval ac_res=\$$3
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435$as_echo "$ac_res" >&6; }
1ef6de05 2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2437
2438} # ac_fn_c_check_func
2439
2440# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2441# -------------------------------------------
2442# Tests whether TYPE exists after having included INCLUDES, setting cache
2443# variable VAR accordingly.
2444ac_fn_c_check_type ()
2445{
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448$as_echo_n "checking for $2... " >&6; }
1ef6de05 2449if eval \${$3+:} false; then :
067d23c9
KY
2450 $as_echo_n "(cached) " >&6
2451else
2452 eval "$3=no"
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454/* end confdefs.h. */
2455$4
2456int
2457main ()
2458{
2459if (sizeof ($2))
2460 return 0;
2461 ;
2462 return 0;
2463}
2464_ACEOF
2465if ac_fn_c_try_compile "$LINENO"; then :
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467/* end confdefs.h. */
2468$4
2469int
2470main ()
2471{
2472if (sizeof (($2)))
2473 return 0;
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478if ac_fn_c_try_compile "$LINENO"; then :
2479
2480else
2481 eval "$3=yes"
2482fi
2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484fi
2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486fi
2487eval ac_res=\$$3
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489$as_echo "$ac_res" >&6; }
1ef6de05 2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2491
2492} # ac_fn_c_check_type
5f90be1b
PE
2493
2494# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2495# --------------------------------------------
2496# Tries to find the compile-time value of EXPR in a program that includes
2497# INCLUDES, setting VAR accordingly. Returns whether the value could be
2498# computed
2499ac_fn_c_compute_int ()
2500{
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 if test "$cross_compiling" = yes; then
2503 # Depending upon the size, compute the lo and hi bounds.
2504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505/* end confdefs.h. */
2506$4
2507int
2508main ()
2509{
2510static int test_array [1 - 2 * !(($2) >= 0)];
2511test_array [0] = 0
2512
2513 ;
2514 return 0;
2515}
2516_ACEOF
2517if ac_fn_c_try_compile "$LINENO"; then :
2518 ac_lo=0 ac_mid=0
2519 while :; do
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521/* end confdefs.h. */
2522$4
2523int
2524main ()
2525{
2526static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2527test_array [0] = 0
2528
2529 ;
2530 return 0;
2531}
2532_ACEOF
2533if ac_fn_c_try_compile "$LINENO"; then :
2534 ac_hi=$ac_mid; break
2535else
2536 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2537 if test $ac_lo -le $ac_mid; then
2538 ac_lo= ac_hi=
2539 break
2540 fi
2541 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2542fi
2543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 done
2545else
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547/* end confdefs.h. */
2548$4
2549int
2550main ()
2551{
2552static int test_array [1 - 2 * !(($2) < 0)];
2553test_array [0] = 0
2554
2555 ;
2556 return 0;
2557}
2558_ACEOF
2559if ac_fn_c_try_compile "$LINENO"; then :
2560 ac_hi=-1 ac_mid=-1
2561 while :; do
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563/* end confdefs.h. */
2564$4
2565int
2566main ()
2567{
2568static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2569test_array [0] = 0
2570
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575if ac_fn_c_try_compile "$LINENO"; then :
2576 ac_lo=$ac_mid; break
2577else
2578 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2579 if test $ac_mid -le $ac_hi; then
2580 ac_lo= ac_hi=
2581 break
2582 fi
2583 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2584fi
2585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 done
2587else
2588 ac_lo= ac_hi=
2589fi
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593# Binary search between lo and hi bounds.
2594while test "x$ac_lo" != "x$ac_hi"; do
2595 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$4
2599int
2600main ()
2601{
2602static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2603test_array [0] = 0
2604
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609if ac_fn_c_try_compile "$LINENO"; then :
2610 ac_hi=$ac_mid
2611else
2612 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2613fi
2614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615done
2616case $ac_lo in #((
2617?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2618'') ac_retval=1 ;;
2619esac
2620 else
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622/* end confdefs.h. */
2623$4
2624static long int longval () { return $2; }
2625static unsigned long int ulongval () { return $2; }
2626#include <stdio.h>
2627#include <stdlib.h>
2628int
2629main ()
2630{
2631
2632 FILE *f = fopen ("conftest.val", "w");
2633 if (! f)
2634 return 1;
2635 if (($2) < 0)
2636 {
2637 long int i = longval ();
2638 if (i != ($2))
2639 return 1;
2640 fprintf (f, "%ld", i);
2641 }
2642 else
2643 {
2644 unsigned long int i = ulongval ();
2645 if (i != ($2))
2646 return 1;
2647 fprintf (f, "%lu", i);
2648 }
2649 /* Do not output a trailing newline, as this causes \r\n confusion
2650 on some platforms. */
2651 return ferror (f) || fclose (f) != 0;
2652
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657if ac_fn_c_try_run "$LINENO"; then :
2658 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2659else
2660 ac_retval=1
2661fi
2662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2663 conftest.$ac_objext conftest.beam conftest.$ac_ext
2664rm -f conftest.val
2665
2666 fi
1ef6de05 2667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5f90be1b
PE
2668 as_fn_set_status $ac_retval
2669
2670} # ac_fn_c_compute_int
067d23c9
KY
2671cat >config.log <<_ACEOF
2672This file contains any messages produced by compilers while
2673running configure, to aid debugging if configure makes a mistake.
2674
2675It was created by emacs $as_me 24.0.50, which was
1ef6de05 2676generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
2677
2678 $ $0 $@
2679
2680_ACEOF
2681exec 5>>config.log
2682{
2683cat <<_ASUNAME
2684## --------- ##
2685## Platform. ##
2686## --------- ##
2687
2688hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2689uname -m = `(uname -m) 2>/dev/null || echo unknown`
2690uname -r = `(uname -r) 2>/dev/null || echo unknown`
2691uname -s = `(uname -s) 2>/dev/null || echo unknown`
2692uname -v = `(uname -v) 2>/dev/null || echo unknown`
2693
2694/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2695/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2696
2697/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2698/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2699/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2700/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2701/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2702/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2703/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2704
2705_ASUNAME
2706
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 $as_echo "PATH: $as_dir"
2713 done
2714IFS=$as_save_IFS
2715
2716} >&5
2717
2718cat >&5 <<_ACEOF
2719
2720
2721## ----------- ##
2722## Core tests. ##
2723## ----------- ##
2724
2725_ACEOF
2726
2727
2728# Keep a trace of the command line.
2729# Strip out --no-create and --no-recursion so they do not pile up.
2730# Strip out --silent because we don't want to record it for future runs.
2731# Also quote any args containing shell meta-characters.
2732# Make two passes to allow for proper duplicate-argument suppression.
2733ac_configure_args=
2734ac_configure_args0=
2735ac_configure_args1=
2736ac_must_keep_next=false
2737for ac_pass in 1 2
2738do
2739 for ac_arg
2740 do
2741 case $ac_arg in
2742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2744 | -silent | --silent | --silen | --sile | --sil)
2745 continue ;;
2746 *\'*)
2747 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2748 esac
2749 case $ac_pass in
2750 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2751 2)
2752 as_fn_append ac_configure_args1 " '$ac_arg'"
2753 if test $ac_must_keep_next = true; then
2754 ac_must_keep_next=false # Got value, back to normal.
2755 else
2756 case $ac_arg in
2757 *=* | --config-cache | -C | -disable-* | --disable-* \
2758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2760 | -with-* | --with-* | -without-* | --without-* | --x)
2761 case "$ac_configure_args0 " in
2762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2763 esac
2764 ;;
2765 -* ) ac_must_keep_next=true ;;
2766 esac
2767 fi
2768 as_fn_append ac_configure_args " '$ac_arg'"
2769 ;;
2770 esac
2771 done
2772done
2773{ ac_configure_args0=; unset ac_configure_args0;}
2774{ ac_configure_args1=; unset ac_configure_args1;}
2775
2776# When interrupted or exit'd, cleanup temporary files, and complete
2777# config.log. We remove comments because anyway the quotes in there
2778# would cause problems or look ugly.
2779# WARNING: Use '\'' to represent an apostrophe within the trap.
2780# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2781trap 'exit_status=$?
2782 # Save into config.log some information that might help in debugging.
2783 {
2784 echo
2785
1ef6de05 2786 $as_echo "## ---------------- ##
067d23c9 2787## Cache variables. ##
1ef6de05 2788## ---------------- ##"
067d23c9
KY
2789 echo
2790 # The following way of writing the cache mishandles newlines in values,
2791(
2792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2793 eval ac_val=\$$ac_var
2794 case $ac_val in #(
2795 *${as_nl}*)
2796 case $ac_var in #(
2797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2798$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2799 esac
2800 case $ac_var in #(
2801 _ | IFS | as_nl) ;; #(
2802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2803 *) { eval $ac_var=; unset $ac_var;} ;;
2804 esac ;;
2805 esac
2806 done
2807 (set) 2>&1 |
2808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2809 *${as_nl}ac_space=\ *)
2810 sed -n \
2811 "s/'\''/'\''\\\\'\'''\''/g;
2812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2813 ;; #(
2814 *)
2815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2816 ;;
2817 esac |
2818 sort
2819)
2820 echo
2821
1ef6de05 2822 $as_echo "## ----------------- ##
067d23c9 2823## Output variables. ##
1ef6de05 2824## ----------------- ##"
067d23c9
KY
2825 echo
2826 for ac_var in $ac_subst_vars
2827 do
2828 eval ac_val=\$$ac_var
2829 case $ac_val in
2830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2831 esac
2832 $as_echo "$ac_var='\''$ac_val'\''"
2833 done | sort
2834 echo
2835
2836 if test -n "$ac_subst_files"; then
1ef6de05 2837 $as_echo "## ------------------- ##
067d23c9 2838## File substitutions. ##
1ef6de05 2839## ------------------- ##"
067d23c9
KY
2840 echo
2841 for ac_var in $ac_subst_files
2842 do
2843 eval ac_val=\$$ac_var
2844 case $ac_val in
2845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2846 esac
2847 $as_echo "$ac_var='\''$ac_val'\''"
2848 done | sort
2849 echo
2850 fi
2851
2852 if test -s confdefs.h; then
1ef6de05 2853 $as_echo "## ----------- ##
067d23c9 2854## confdefs.h. ##
1ef6de05 2855## ----------- ##"
067d23c9
KY
2856 echo
2857 cat confdefs.h
2858 echo
2859 fi
2860 test "$ac_signal" != 0 &&
2861 $as_echo "$as_me: caught signal $ac_signal"
2862 $as_echo "$as_me: exit $exit_status"
2863 } >&5
2864 rm -f core *.core core.conftest.* &&
2865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2866 exit $exit_status
2867' 0
2868for ac_signal in 1 2 13 15; do
2869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2870done
2871ac_signal=0
2872
2873# confdefs.h avoids OS command line length limits that DEFS can exceed.
2874rm -f -r conftest* confdefs.h
2875
2876$as_echo "/* confdefs.h */" > confdefs.h
2877
2878# Predefined preprocessor variables.
2879
2880cat >>confdefs.h <<_ACEOF
2881#define PACKAGE_NAME "$PACKAGE_NAME"
2882_ACEOF
2883
2884cat >>confdefs.h <<_ACEOF
2885#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2886_ACEOF
2887
2888cat >>confdefs.h <<_ACEOF
2889#define PACKAGE_VERSION "$PACKAGE_VERSION"
2890_ACEOF
2891
2892cat >>confdefs.h <<_ACEOF
2893#define PACKAGE_STRING "$PACKAGE_STRING"
2894_ACEOF
2895
2896cat >>confdefs.h <<_ACEOF
2897#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2898_ACEOF
2899
2900cat >>confdefs.h <<_ACEOF
2901#define PACKAGE_URL "$PACKAGE_URL"
2902_ACEOF
2903
2904
2905# Let the site file select an alternate cache file if it wants to.
2906# Prefer an explicitly selected file to automatically selected ones.
2907ac_site_file1=NONE
2908ac_site_file2=NONE
2909if test -n "$CONFIG_SITE"; then
1ef6de05
PE
2910 # We do not want a PATH search for config.site.
2911 case $CONFIG_SITE in #((
2912 -*) ac_site_file1=./$CONFIG_SITE;;
2913 */*) ac_site_file1=$CONFIG_SITE;;
2914 *) ac_site_file1=./$CONFIG_SITE;;
2915 esac
067d23c9
KY
2916elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2919else
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2922fi
2923for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2924do
2925 test "x$ac_site_file" = xNONE && continue
2926 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
1ef6de05
PE
2930 . "$ac_site_file" \
2931 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933as_fn_error $? "failed to load site script $ac_site_file
2934See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
2935 fi
2936done
2937
2938if test -r "$cache_file"; then
2939 # Some versions of bash will fail to source /dev/null (special files
2940 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2941 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2943$as_echo "$as_me: loading cache $cache_file" >&6;}
2944 case $cache_file in
2945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2946 *) . "./$cache_file";;
2947 esac
2948 fi
2949else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2951$as_echo "$as_me: creating cache $cache_file" >&6;}
2952 >$cache_file
2953fi
2954
2955as_fn_append ac_header_list " stdlib.h"
2956as_fn_append ac_header_list " unistd.h"
2957as_fn_append ac_header_list " sys/param.h"
e275c824
PE
2958gl_getopt_required=GNU
2959as_fn_append ac_header_list " getopt.h"
ae0d7250 2960as_fn_append ac_func_list " lstat"
067d23c9 2961as_fn_append ac_func_list " alarm"
ae0d7250 2962as_fn_append ac_func_list " readlink"
5f90be1b
PE
2963as_fn_append ac_header_list " wchar.h"
2964as_fn_append ac_header_list " stdint.h"
16c3e636 2965as_fn_append ac_func_list " tzset"
ae0d7250 2966as_fn_append ac_func_list " symlink"
5fa4ac76 2967as_fn_append ac_header_list " sys/stat.h"
1fd182f0
PE
2968as_fn_append ac_header_list " sys/time.h"
2969as_fn_append ac_func_list " localtime_r"
067d23c9
KY
2970# Check that the precious variables saved in the cache have kept the same
2971# value.
2972ac_cache_corrupted=false
2973for ac_var in $ac_precious_vars; do
2974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2975 eval ac_new_set=\$ac_env_${ac_var}_set
2976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2977 eval ac_new_val=\$ac_env_${ac_var}_value
2978 case $ac_old_set,$ac_new_set in
2979 set,)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2981$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2983 ,set)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2985$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2986 ac_cache_corrupted=: ;;
2987 ,);;
2988 *)
2989 if test "x$ac_old_val" != "x$ac_new_val"; then
2990 # differences in whitespace do not lead to failure.
2991 ac_old_val_w=`echo x $ac_old_val`
2992 ac_new_val_w=`echo x $ac_new_val`
2993 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2995$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2996 ac_cache_corrupted=:
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2999$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3000 eval $ac_var=\$ac_old_val
3001 fi
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3003$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3005$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3006 fi;;
3007 esac
3008 # Pass precious variables to config.status.
3009 if test "$ac_new_set" = set; then
3010 case $ac_new_val in
3011 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3012 *) ac_arg=$ac_var=$ac_new_val ;;
3013 esac
3014 case " $ac_configure_args " in
3015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3016 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3017 esac
3018 fi
3019done
3020if $ac_cache_corrupted; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3024$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1ef6de05 3025 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
067d23c9
KY
3026fi
3027## -------------------- ##
3028## Main body of script. ##
3029## -------------------- ##
3030
3031ac_ext=c
3032ac_cpp='$CPP $CPPFLAGS'
3033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037
3038ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3039
3040
743c80a7 3041am__api_version='1.11'
067d23c9 3042
743c80a7
PE
3043ac_aux_dir=
3044for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1ef6de05
PE
3045 if test -f "$ac_dir/install-sh"; then
3046 ac_aux_dir=$ac_dir
3047 ac_install_sh="$ac_aux_dir/install-sh -c"
3048 break
3049 elif test -f "$ac_dir/install.sh"; then
3050 ac_aux_dir=$ac_dir
3051 ac_install_sh="$ac_aux_dir/install.sh -c"
3052 break
3053 elif test -f "$ac_dir/shtool"; then
3054 ac_aux_dir=$ac_dir
3055 ac_install_sh="$ac_aux_dir/shtool install -c"
3056 break
3057 fi
743c80a7
PE
3058done
3059if test -z "$ac_aux_dir"; then
1ef6de05 3060 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
743c80a7 3061fi
067d23c9 3062
743c80a7
PE
3063# These three variables are undocumented and unsupported,
3064# and are intended to be withdrawn in a future Autoconf release.
3065# They can cause serious problems if a builder's source tree is in a directory
3066# whose full name contains unusual characters.
3067ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3068ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3069ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
067d23c9 3070
067d23c9 3071
743c80a7
PE
3072# Find a good install program. We prefer a C program (faster),
3073# so one script is as good as another. But avoid the broken or
3074# incompatible versions:
3075# SysV /etc/install, /usr/sbin/install
3076# SunOS /usr/etc/install
3077# IRIX /sbin/install
3078# AIX /bin/install
3079# AmigaOS /C/install, which installs bootblocks on floppy discs
3080# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3081# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3082# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3083# OS/2's system install, which has a completely different semantic
3084# ./install, which can be erroneously created by make from ./install.sh.
3085# Reject install programs that cannot install multiple files.
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3087$as_echo_n "checking for a BSD-compatible install... " >&6; }
3088if test -z "$INSTALL"; then
1ef6de05 3089if ${ac_cv_path_install+:} false; then :
743c80a7
PE
3090 $as_echo_n "(cached) " >&6
3091else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 # Account for people who put trailing slashes in PATH elements.
3098case $as_dir/ in #((
3099 ./ | .// | /[cC]/* | \
3100 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3101 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3102 /usr/ucb/* ) ;;
3103 *)
3104 # OSF1 and SCO ODT 3.0 have their own names for install.
3105 # Don't use installbsd from OSF since it installs stuff as root
3106 # by default.
3107 for ac_prog in ginstall scoinst install; do
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3110 if test $ac_prog = install &&
3111 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112 # AIX install. It has an incompatible calling convention.
3113 :
3114 elif test $ac_prog = install &&
3115 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3116 # program-specific install script used by HP pwplus--don't use.
3117 :
3118 else
3119 rm -rf conftest.one conftest.two conftest.dir
3120 echo one > conftest.one
3121 echo two > conftest.two
3122 mkdir conftest.dir
3123 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3124 test -s conftest.one && test -s conftest.two &&
3125 test -s conftest.dir/conftest.one &&
3126 test -s conftest.dir/conftest.two
3127 then
3128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3129 break 3
3130 fi
3131 fi
3132 fi
3133 done
3134 done
3135 ;;
3136esac
067d23c9 3137
743c80a7
PE
3138 done
3139IFS=$as_save_IFS
067d23c9 3140
743c80a7 3141rm -rf conftest.one conftest.two conftest.dir
067d23c9 3142
067d23c9 3143fi
743c80a7
PE
3144 if test "${ac_cv_path_install+set}" = set; then
3145 INSTALL=$ac_cv_path_install
3146 else
3147 # As a last resort, use the slow shell script. Don't cache a
3148 # value for INSTALL within a source directory, because that will
3149 # break other packages using the cache if that directory is
3150 # removed, or if the value is a relative name.
3151 INSTALL=$ac_install_sh
3152 fi
067d23c9 3153fi
743c80a7
PE
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3155$as_echo "$INSTALL" >&6; }
067d23c9 3156
743c80a7
PE
3157# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3158# It thinks the first close brace ends the variable substitution.
3159test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
067d23c9 3160
743c80a7 3161test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
067d23c9 3162
743c80a7 3163test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
067d23c9 3164
743c80a7
PE
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3166$as_echo_n "checking whether build environment is sane... " >&6; }
3167# Just in case
3168sleep 1
3169echo timestamp > conftest.file
3170# Reject unsafe characters in $srcdir or the absolute working directory
3171# name. Accept space and tab only in the latter.
3172am_lf='
3173'
3174case `pwd` in
3175 *[\\\"\#\$\&\'\`$am_lf]*)
1ef6de05 3176 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
743c80a7
PE
3177esac
3178case $srcdir in
3179 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1ef6de05 3180 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
743c80a7 3181esac
067d23c9 3182
743c80a7
PE
3183# Do `set' in a subshell so we don't clobber the current shell's
3184# arguments. Must try -L first in case configure is actually a
3185# symlink; some systems play weird games with the mod time of symlinks
3186# (eg FreeBSD returns the mod time of the symlink's containing
3187# directory).
3188if (
3189 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3190 if test "$*" = "X"; then
3191 # -L didn't work.
3192 set X `ls -t "$srcdir/configure" conftest.file`
3193 fi
3194 rm -f conftest.file
3195 if test "$*" != "X $srcdir/configure conftest.file" \
3196 && test "$*" != "X conftest.file $srcdir/configure"; then
3197
3198 # If neither matched, then we have a broken ls. This can happen
3199 # if, for instance, CONFIG_SHELL is bash and it inherits a
3200 # broken ls alias from the environment. This has actually
3201 # happened. Such a system could not be considered "sane".
1ef6de05 3202 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
743c80a7
PE
3203alias in your environment" "$LINENO" 5
3204 fi
067d23c9 3205
743c80a7
PE
3206 test "$2" = conftest.file
3207 )
3208then
3209 # Ok.
3210 :
067d23c9 3211else
1ef6de05 3212 as_fn_error $? "newly created file is older than distributed files!
743c80a7 3213Check your system clock" "$LINENO" 5
067d23c9 3214fi
743c80a7
PE
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3216$as_echo "yes" >&6; }
3217test "$program_prefix" != NONE &&
3218 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3219# Use a double $ so make ignores it.
3220test "$program_suffix" != NONE &&
3221 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3222# Double any \ or $.
3223# By default was `s,x,x', remove it if useless.
3224ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3225program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
067d23c9 3226
743c80a7
PE
3227# expand $ac_aux_dir to an absolute path
3228am_aux_dir=`cd $ac_aux_dir && pwd`
067d23c9 3229
743c80a7
PE
3230if test x"${MISSING+set}" != xset; then
3231 case $am_aux_dir in
3232 *\ * | *\ *)
3233 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3234 *)
3235 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3236 esac
067d23c9 3237fi
743c80a7
PE
3238# Use eval to expand $SHELL
3239if eval "$MISSING --run true"; then
3240 am_missing_run="$MISSING --run "
067d23c9 3241else
743c80a7
PE
3242 am_missing_run=
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3244$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
067d23c9
KY
3245fi
3246
743c80a7
PE
3247if test x"${install_sh}" != xset; then
3248 case $am_aux_dir in
3249 *\ * | *\ *)
3250 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3251 *)
3252 install_sh="\${SHELL} $am_aux_dir/install-sh"
3253 esac
067d23c9
KY
3254fi
3255
743c80a7
PE
3256# Installed binaries are usually stripped using `strip' when the user
3257# run `make install-strip'. However `strip' might not be the right
3258# tool to use in cross-compilation environments, therefore Automake
3259# will honor the `STRIP' environment variable to overrule this program.
3260if test "$cross_compiling" != no; then
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3263set dummy ${ac_tool_prefix}strip; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 3266if ${ac_cv_prog_STRIP+:} false; then :
743c80a7 3267 $as_echo_n "(cached) " >&6
067d23c9 3268else
743c80a7
PE
3269 if test -n "$STRIP"; then
3270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283done
3284 done
3285IFS=$as_save_IFS
067d23c9
KY
3286
3287fi
067d23c9 3288fi
743c80a7
PE
3289STRIP=$ac_cv_prog_STRIP
3290if test -n "$STRIP"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3292$as_echo "$STRIP" >&6; }
3293else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
067d23c9
KY
3296fi
3297
3298
067d23c9 3299fi
743c80a7
PE
3300if test -z "$ac_cv_prog_STRIP"; then
3301 ac_ct_STRIP=$STRIP
3302 # Extract the first word of "strip", so it can be a program name with args.
3303set dummy strip; ac_word=$2
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 3306if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
743c80a7
PE
3307 $as_echo_n "(cached) " >&6
3308else
3309 if test -n "$ac_ct_STRIP"; then
3310 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3311else
3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH
3314do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_prog_ac_ct_STRIP="strip"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323done
3324 done
3325IFS=$as_save_IFS
3326
3327fi
3328fi
3329ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3330if test -n "$ac_ct_STRIP"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3332$as_echo "$ac_ct_STRIP" >&6; }
3333else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335$as_echo "no" >&6; }
3336fi
3337
3338 if test "x$ac_ct_STRIP" = x; then
3339 STRIP=":"
3340 else
3341 case $cross_compiling:$ac_tool_warned in
3342yes:)
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345ac_tool_warned=yes ;;
3346esac
3347 STRIP=$ac_ct_STRIP
3348 fi
3349else
3350 STRIP="$ac_cv_prog_STRIP"
3351fi
3352
3353fi
3354INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3355
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3357$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3358if test -z "$MKDIR_P"; then
1ef6de05 3359 if ${ac_cv_path_mkdir+:} false; then :
743c80a7
PE
3360 $as_echo_n "(cached) " >&6
3361else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3364do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_prog in mkdir gmkdir; do
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3370 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3371 'mkdir (GNU coreutils) '* | \
3372 'mkdir (coreutils) '* | \
3373 'mkdir (fileutils) '4.1*)
3374 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3375 break 3;;
3376 esac
3377 done
3378 done
3379 done
3380IFS=$as_save_IFS
3381
3382fi
3383
3384 test -d ./--version && rmdir ./--version
3385 if test "${ac_cv_path_mkdir+set}" = set; then
3386 MKDIR_P="$ac_cv_path_mkdir -p"
3387 else
3388 # As a last resort, use the slow shell script. Don't cache a
3389 # value for MKDIR_P within a source directory, because that will
3390 # break other packages using the cache if that directory is
3391 # removed, or if the value is a relative name.
3392 MKDIR_P="$ac_install_sh -d"
3393 fi
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3396$as_echo "$MKDIR_P" >&6; }
3397
a451f14b 3398
743c80a7
PE
3399mkdir_p="$MKDIR_P"
3400case $mkdir_p in
3401 [\\/$]* | ?:[\\/]*) ;;
3402 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3403esac
3404
3405for ac_prog in gawk mawk nawk awk
3406do
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408set dummy $ac_prog; ac_word=$2
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 3411if ${ac_cv_prog_AWK+:} false; then :
743c80a7
PE
3412 $as_echo_n "(cached) " >&6
3413else
3414 if test -n "$AWK"; then
3415 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3416else
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_AWK="$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428done
3429 done
3430IFS=$as_save_IFS
3431
3432fi
3433fi
3434AWK=$ac_cv_prog_AWK
3435if test -n "$AWK"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3437$as_echo "$AWK" >&6; }
3438else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440$as_echo "no" >&6; }
3441fi
3442
3443
3444 test -n "$AWK" && break
3445done
3446
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3448$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3449set x ${MAKE-make}
3450ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1ef6de05 3451if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
743c80a7
PE
3452 $as_echo_n "(cached) " >&6
3453else
3454 cat >conftest.make <<\_ACEOF
3455SHELL = /bin/sh
3456all:
3457 @echo '@@@%%%=$(MAKE)=@@@%%%'
3458_ACEOF
1ef6de05 3459# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
743c80a7
PE
3460case `${MAKE-make} -f conftest.make 2>/dev/null` in
3461 *@@@%%%=?*=@@@%%%*)
3462 eval ac_cv_prog_make_${ac_make}_set=yes;;
3463 *)
3464 eval ac_cv_prog_make_${ac_make}_set=no;;
3465esac
3466rm -f conftest.make
3467fi
3468if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470$as_echo "yes" >&6; }
3471 SET_MAKE=
3472else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474$as_echo "no" >&6; }
3475 SET_MAKE="MAKE=${MAKE-make}"
3476fi
3477
3478rm -rf .tst 2>/dev/null
3479mkdir .tst 2>/dev/null
3480if test -d .tst; then
3481 am__leading_dot=.
3482else
3483 am__leading_dot=_
3484fi
3485rmdir .tst 2>/dev/null
3486
3487if test "`cd $srcdir && pwd`" != "`pwd`"; then
3488 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3489 # is not polluted with repeated "-I."
3490 am__isrc=' -I$(srcdir)'
3491 # test to see if srcdir already configured
3492 if test -f $srcdir/config.status; then
1ef6de05 3493 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
743c80a7
PE
3494 fi
3495fi
3496
3497# test whether we have cygpath
3498if test -z "$CYGPATH_W"; then
3499 if (cygpath --version) >/dev/null 2>/dev/null; then
3500 CYGPATH_W='cygpath -w'
3501 else
3502 CYGPATH_W=echo
3503 fi
3504fi
3505
3506
3507# Define the identity of the package.
3508 PACKAGE='emacs'
3509 VERSION='24.0.50'
3510
3511
3512cat >>confdefs.h <<_ACEOF
3513#define PACKAGE "$PACKAGE"
3514_ACEOF
3515
3516
3517cat >>confdefs.h <<_ACEOF
3518#define VERSION "$VERSION"
3519_ACEOF
3520
3521# Some tools Automake needs.
3522
3523ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3524
3525
3526AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3527
3528
3529AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3530
3531
3532AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3533
3534
3535MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3536
3537# We need awk for the "check" target. The system "awk" is bad on
3538# some platforms.
3539# Always define AMTAR for backward compatibility.
3540
3541AMTAR=${AMTAR-"${am_missing_run}tar"}
3542
3543am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3544
3545
3546
3547
3548
3549
3550
3551
3552lispdir='${datadir}/emacs/${version}/lisp'
3553locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3554'${datadir}/emacs/site-lisp'
3555lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3556etcdir='${datadir}/emacs/${version}/etc'
3557archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3558docdir='${datadir}/emacs/${version}/etc'
3559gamedir='${localstatedir}/games/emacs'
3560
3561
3562
3563
3564# Check whether --with-pop was given.
3565if test "${with_pop+set}" = set; then :
3566 withval=$with_pop;
3567else
3568 with_pop=yes
3569fi
3570
3571if test "$with_pop" = yes; then
3572 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3573
3574fi
3575
3576
3577# Check whether --with-kerberos was given.
3578if test "${with_kerberos+set}" = set; then :
3579 withval=$with_kerberos;
3580else
3581 with_kerberos=no
3582fi
3583
3584if test "$with_kerberos" != no; then
3585 $as_echo "#define KERBEROS 1" >>confdefs.h
3586
3587fi
3588
3589
3590# Check whether --with-kerberos5 was given.
3591if test "${with_kerberos5+set}" = set; then :
3592 withval=$with_kerberos5;
3593else
3594 with_kerberos5=no
3595fi
3596
3597if test "${with_kerberos5}" != no; then
3598 if test "${with_kerberos}" = no; then
3599 with_kerberos=yes
3600 $as_echo "#define KERBEROS 1" >>confdefs.h
3601
3602 fi
3603
3604$as_echo "#define KERBEROS5 1" >>confdefs.h
3605
3606fi
3607
3608
3609# Check whether --with-hesiod was given.
3610if test "${with_hesiod+set}" = set; then :
3611 withval=$with_hesiod;
3612else
3613 with_hesiod=no
3614fi
3615
3616if test "$with_hesiod" != no; then
3617
3618$as_echo "#define HESIOD 1" >>confdefs.h
3619
3620fi
3621
3622
3623# Check whether --with-mmdf was given.
3624if test "${with_mmdf+set}" = set; then :
3625 withval=$with_mmdf;
3626else
3627 with_mmdf=no
3628fi
3629
3630if test "$with_mmdf" != no; then
3631
3632$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3633
3634fi
3635
3636
3637# Check whether --with-mail-unlink was given.
3638if test "${with_mail_unlink+set}" = set; then :
3639 withval=$with_mail_unlink;
3640else
3641 with_mail_unlink=no
3642fi
3643
3644if test "$with_mail_unlink" != no; then
3645
3646$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3647
3648fi
3649
3650
3651# Check whether --with-mailhost was given.
3652if test "${with_mailhost+set}" = set; then :
3653 withval=$with_mailhost;
3654cat >>confdefs.h <<_ACEOF
3655#define MAILHOST "$withval"
3656_ACEOF
3657
3658fi
3659
3660
3661
067d23c9
KY
3662# Check whether --with-sound was given.
3663if test "${with_sound+set}" = set; then :
3664 withval=$with_sound;
3665else
3666 with_sound=yes
3667fi
3668
3669
3670
3671# Check whether --with-sync-input was given.
3672if test "${with_sync_input+set}" = set; then :
3673 withval=$with_sync_input;
3674else
3675 with_sync_input=yes
3676fi
3677
3678if test "$with_sync_input" = yes; then
3679
3680$as_echo "#define SYNC_INPUT 1" >>confdefs.h
3681
3682fi
3683
3684
3685# Check whether --with-x-toolkit was given.
3686if test "${with_x_toolkit+set}" = set; then :
3687 withval=$with_x_toolkit; case "${withval}" in
3688 y | ye | yes ) val=gtk ;;
3689 n | no ) val=no ;;
3690 l | lu | luc | luci | lucid ) val=lucid ;;
3691 a | at | ath | athe | athen | athena ) val=athena ;;
3692 m | mo | mot | moti | motif ) val=motif ;;
3693 g | gt | gtk ) val=gtk ;;
3694 gtk3 ) val=gtk3 ;;
3695 * )
1ef6de05 3696as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
067d23c9
KY
3697this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3698\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3699 ;;
3700 esac
3701 with_x_toolkit=$val
3702
3703fi
3704
3705
3706
3707# Check whether --with-xpm was given.
3708if test "${with_xpm+set}" = set; then :
3709 withval=$with_xpm;
3710else
3711 with_xpm=yes
3712fi
3713
3714
3715# Check whether --with-jpeg was given.
3716if test "${with_jpeg+set}" = set; then :
3717 withval=$with_jpeg;
3718else
3719 with_jpeg=yes
3720fi
3721
3722
3723# Check whether --with-tiff was given.
3724if test "${with_tiff+set}" = set; then :
3725 withval=$with_tiff;
3726else
3727 with_tiff=yes
3728fi
3729
3730
3731# Check whether --with-gif was given.
3732if test "${with_gif+set}" = set; then :
3733 withval=$with_gif;
3734else
3735 with_gif=yes
3736fi
3737
3738
3739# Check whether --with-png was given.
3740if test "${with_png+set}" = set; then :
3741 withval=$with_png;
3742else
3743 with_png=yes
3744fi
3745
3746
3747# Check whether --with-rsvg was given.
3748if test "${with_rsvg+set}" = set; then :
3749 withval=$with_rsvg;
3750else
3751 with_rsvg=yes
3752fi
3753
3754
3755# Check whether --with-xml2 was given.
3756if test "${with_xml2+set}" = set; then :
3757 withval=$with_xml2;
3758else
3759 with_xml2=yes
3760fi
3761
3762
3763# Check whether --with-imagemagick was given.
3764if test "${with_imagemagick+set}" = set; then :
3765 withval=$with_imagemagick;
3766else
3767 with_imagemagick=yes
3768fi
3769
3770
3771
3772# Check whether --with-xft was given.
3773if test "${with_xft+set}" = set; then :
3774 withval=$with_xft;
3775else
3776 with_xft=yes
3777fi
3778
3779
3780# Check whether --with-libotf was given.
3781if test "${with_libotf+set}" = set; then :
3782 withval=$with_libotf;
3783else
3784 with_libotf=yes
3785fi
3786
3787
3788# Check whether --with-m17n-flt was given.
3789if test "${with_m17n_flt+set}" = set; then :
3790 withval=$with_m17n_flt;
3791else
3792 with_m17n_flt=yes
3793fi
3794
3795
3796
3797# Check whether --with-toolkit-scroll-bars was given.
3798if test "${with_toolkit_scroll_bars+set}" = set; then :
3799 withval=$with_toolkit_scroll_bars;
3800else
3801 with_toolkit_scroll_bars=yes
3802fi
3803
3804
3805# Check whether --with-xaw3d was given.
3806if test "${with_xaw3d+set}" = set; then :
3807 withval=$with_xaw3d;
3808else
3809 with_xaw3d=yes
3810fi
3811
3812
3813# Check whether --with-xim was given.
3814if test "${with_xim+set}" = set; then :
3815 withval=$with_xim;
3816else
3817 with_xim=yes
3818fi
3819
3820
3821# Check whether --with-ns was given.
3822if test "${with_ns+set}" = set; then :
3823 withval=$with_ns;
3824else
3825 with_ns=no
3826fi
3827
3828
3829
3830# Check whether --with-gpm was given.
3831if test "${with_gpm+set}" = set; then :
3832 withval=$with_gpm;
3833else
3834 with_gpm=yes
3835fi
3836
3837
3838# Check whether --with-dbus was given.
3839if test "${with_dbus+set}" = set; then :
3840 withval=$with_dbus;
3841else
3842 with_dbus=yes
3843fi
3844
3845
3846# Check whether --with-gconf was given.
3847if test "${with_gconf+set}" = set; then :
3848 withval=$with_gconf;
3849else
3850 with_gconf=yes
3851fi
3852
3853
3854# Check whether --with-selinux was given.
3855if test "${with_selinux+set}" = set; then :
3856 withval=$with_selinux;
3857else
3858 with_selinux=yes
3859fi
3860
3861
3862# Check whether --with-gnutls was given.
3863if test "${with_gnutls+set}" = set; then :
3864 withval=$with_gnutls;
3865else
3866 with_gnutls=yes
3867fi
3868
3869
3870## For the times when you want to build Emacs but don't have
3871## a suitable makeinfo, and can live without the manuals.
3872
3873# Check whether --with-makeinfo was given.
3874if test "${with_makeinfo+set}" = set; then :
3875 withval=$with_makeinfo;
3876else
3877 with_makeinfo=yes
3878fi
3879
3880
3881## This is an option because I do not know if all info/man support
3882## compressed files, nor how to test if they do so.
3883
3884# Check whether --with-compress-info was given.
3885if test "${with_compress_info+set}" = set; then :
3886 withval=$with_compress_info;
3887else
3888 with_compress_info=yes
3889fi
3890
3891if test $with_compress_info = yes; then
3892 GZIP_INFO=yes
3893else
3894 GZIP_INFO=
3895fi
3896
3897
3898
3899# Check whether --with-pkg-config-prog was given.
3900if test "${with_pkg_config_prog+set}" = set; then :
3901 withval=$with_pkg_config_prog;
3902fi
3903
3904if test "X${with_pkg_config_prog}" != X; then
3905 if test "${with_pkg_config_prog}" != yes; then
3906 PKG_CONFIG="${with_pkg_config_prog}"
3907 fi
3908fi
3909
3910CRT_DIR=
3911
3912# Check whether --with-crt-dir was given.
3913if test "${with_crt_dir+set}" = set; then :
3914 withval=$with_crt_dir;
3915fi
3916
3917CRT_DIR="${with_crt_dir}"
3918
3919
4fc5868a
UM
3920# Check whether --with-gameuser was given.
3921if test "${with_gameuser+set}" = set; then :
3922 withval=$with_gameuser;
3923fi
3924
3925test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3926 && gameuser="${with_gameuser}"
3927test "X$gameuser" = X && gameuser=games
3928
3929
067d23c9
KY
3930# Check whether --with-gnustep-conf was given.
3931if test "${with_gnustep_conf+set}" = set; then :
3932 withval=$with_gnustep_conf;
3933fi
3934
3935test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3936 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3937test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3938 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3939
3940# Check whether --enable-ns-self-contained was given.
3941if test "${enable_ns_self_contained+set}" = set; then :
3942 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3943else
3944 EN_NS_SELF_CONTAINED=yes
3945fi
3946
3947
3948# Check whether --enable-asserts was given.
3949if test "${enable_asserts+set}" = set; then :
3950 enableval=$enable_asserts; USE_XASSERTS=$enableval
3951else
3952 USE_XASSERTS=no
3953fi
3954
3955
3956# Check whether --enable-maintainer-mode was given.
3957if test "${enable_maintainer_mode+set}" = set; then :
3958 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3959else
3960 USE_MAINTAINER_MODE=no
3961fi
3962
3963if test $USE_MAINTAINER_MODE = yes; then
3964 MAINT=
3965else
3966 MAINT=#
3967fi
3968
3969
3970# Check whether --enable-locallisppath was given.
3971if test "${enable_locallisppath+set}" = set; then :
3972 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3973 locallisppath=
3974elif test "${enableval}" != "yes"; then
3975 locallisppath=${enableval}
3976fi
3977fi
3978
3979
3980# Check whether --enable-checking was given.
3981if test "${enable_checking+set}" = set; then :
3982 enableval=$enable_checking; ac_checking_flags="${enableval}"
3983fi
3984
3985IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3986for check in $ac_checking_flags
3987do
3988 case $check in
3989 # these set all the flags to specific states
3990 yes) ac_enable_checking=1 ;;
3991 no) ac_enable_checking= ;
3992 ac_gc_check_stringbytes= ;
3993 ac_gc_check_string_overrun= ;
3994 ac_gc_check_string_free_list= ;
3995 ac_xmalloc_overrun= ;
3996 ac_gc_check_cons_list= ;;
3997 all) ac_enable_checking=1 ;
3998 ac_gc_check_stringbytes=1 ;
3999 ac_gc_check_string_overrun=1 ;
4000 ac_gc_check_string_free_list=1 ;
4001 ac_xmalloc_overrun=1 ;
4002 ac_gc_check_cons_list=1 ;;
4003 # these enable particular checks
4004 stringbytes) ac_gc_check_stringbytes=1 ;;
4005 stringoverrun) ac_gc_check_string_overrun=1 ;;
4006 stringfreelist) ac_gc_check_string_free_list=1 ;;
4007 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4008 conslist) ac_gc_check_cons_list=1 ;;
1ef6de05 4009 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
067d23c9
KY
4010 esac
4011done
4012IFS="$ac_save_IFS"
4013
4014if test x$ac_enable_checking != x ; then
4015
4016$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4017
4018fi
4019if test x$ac_gc_check_stringbytes != x ; then
4020
4021$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4022
4023fi
4024if test x$ac_gc_check_stringoverrun != x ; then
4025
4026$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4027
4028fi
4029if test x$ac_gc_check_string_free_list != x ; then
4030
4031$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4032
4033fi
4034if test x$ac_xmalloc_overrun != x ; then
4035
4036$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4037
4038fi
4039if test x$ac_gc_check_cons_list != x ; then
4040
4041$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4042
4043fi
4044
4045# Check whether --enable-use-lisp-union-type was given.
4046if test "${enable_use_lisp_union_type+set}" = set; then :
4047 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4048
4049$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4050
4051fi
4052fi
4053
4054
4055
4056# Check whether --enable-profiling was given.
4057if test "${enable_profiling+set}" = set; then :
4058 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4059fi
4060
4061if test x$ac_enable_profiling != x ; then
4062 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4063else
4064 PROFILING_CFLAGS=
4065fi
4066
4067
4068# Check whether --enable-autodepend was given.
4069if test "${enable_autodepend+set}" = set; then :
4070 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4071else
4072 ac_enable_autodepend=yes
4073fi
4074
4075
4076#### Make srcdir absolute, if it isn't already. It's important to
4077#### avoid running the path through pwd unnecessarily, since pwd can
4078#### give you automounter prefixes, which can go away. We do all this
4079#### so Emacs can find its files when run uninstalled.
4080## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4081unset CDPATH
4082case "${srcdir}" in
4083 /* ) ;;
4084 . )
4085 ## We may be able to use the $PWD environment variable to make this
4086 ## absolute. But sometimes PWD is inaccurate.
4087 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4088 ## but that tested only for a well-formed and valid PWD,
4089 ## it did not object when PWD was well-formed and valid but just wrong.
4090 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4091 then
4092 srcdir="$PWD"
4093 else
4094 srcdir="`(cd ${srcdir}; pwd)`"
4095 fi
4096 ;;
4097 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4098esac
4099
4100#### Check if the source directory already has a configured system in it.
4101if test `pwd` != `(cd ${srcdir} && pwd)` \
4102 && test -f "${srcdir}/src/config.h" ; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4104 as a build directory right now; it has been configured in its own
4105 right. To configure in another directory as well, you MUST
4106 use GNU make. If you do not have GNU make, then you must
4107 now do \`make distclean' in ${srcdir},
4108 and then run $0 again." >&5
4109$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4110 as a build directory right now; it has been configured in its own
4111 right. To configure in another directory as well, you MUST
4112 use GNU make. If you do not have GNU make, then you must
4113 now do \`make distclean' in ${srcdir},
4114 and then run $0 again." >&2;}
4115fi
4116
4117#### Given the configuration name, set machfile and opsysfile to the
4118#### names of the m/*.h and s/*.h files we should use.
4119
4120### Canonicalize the configuration name.
4121
067d23c9
KY
4122# Make sure we can run config.sub.
4123$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1ef6de05 4124 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
067d23c9
KY
4125
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4127$as_echo_n "checking build system type... " >&6; }
1ef6de05 4128if ${ac_cv_build+:} false; then :
067d23c9
KY
4129 $as_echo_n "(cached) " >&6
4130else
4131 ac_build_alias=$build_alias
4132test "x$ac_build_alias" = x &&
4133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4134test "x$ac_build_alias" = x &&
1ef6de05 4135 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
067d23c9 4136ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1ef6de05 4137 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
067d23c9
KY
4138
4139fi
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4141$as_echo "$ac_cv_build" >&6; }
4142case $ac_cv_build in
4143*-*-*) ;;
1ef6de05 4144*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
067d23c9
KY
4145esac
4146build=$ac_cv_build
4147ac_save_IFS=$IFS; IFS='-'
4148set x $ac_cv_build
4149shift
4150build_cpu=$1
4151build_vendor=$2
4152shift; shift
4153# Remember, the first character of IFS is used to create $*,
4154# except with old shells:
4155build_os=$*
4156IFS=$ac_save_IFS
4157case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4158
4159
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4161$as_echo_n "checking host system type... " >&6; }
1ef6de05 4162if ${ac_cv_host+:} false; then :
067d23c9
KY
4163 $as_echo_n "(cached) " >&6
4164else
4165 if test "x$host_alias" = x; then
4166 ac_cv_host=$ac_cv_build
4167else
4168 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1ef6de05 4169 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
067d23c9
KY
4170fi
4171
4172fi
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4174$as_echo "$ac_cv_host" >&6; }
4175case $ac_cv_host in
4176*-*-*) ;;
1ef6de05 4177*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
067d23c9
KY
4178esac
4179host=$ac_cv_host
4180ac_save_IFS=$IFS; IFS='-'
4181set x $ac_cv_host
4182shift
4183host_cpu=$1
4184host_vendor=$2
4185shift; shift
4186# Remember, the first character of IFS is used to create $*,
4187# except with old shells:
4188host_os=$*
4189IFS=$ac_save_IFS
4190case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4191
4192
4193canonical=$host
4194configuration=${host_alias-${build_alias-$host}}
4195
4196
4197
4198### If you add support for a new configuration, add code to this
4199### switch statement to recognize your configuration name and select
4200### the appropriate operating system and machine description files.
4201
4202### You would hope that you could choose an m/*.h file pretty much
4203### based on the machine portion of the configuration name, and an s/*.h
4204### file based on the operating system portion. However, it turns out
4205### that each m/*.h file is pretty manufacturer-specific - for
4206### example mips.h is MIPS
4207### So we basically have to have a special case for each
4208### configuration name.
4209###
4210### As far as handling version numbers on operating systems is
4211### concerned, make sure things will fail in a fixable way. If
4212### /etc/MACHINES doesn't say anything about version numbers, be
4213### prepared to handle anything reasonably. If version numbers
4214### matter, be sure /etc/MACHINES says something about it.
4215
4216machine='' opsys='' unported=no
4217case "${canonical}" in
4218
d6a003a8
AS
4219 ## GNU/Linux ports
4220 *-*-linux-gnu*)
4221 opsys=gnu-linux
4222 case ${canonical} in
4223 alpha*) machine=alpha ;;
4224 s390-*) machine=ibms390 ;;
4225 s390x-*) machine=ibms390x ;;
4226 powerpc*) machine=macppc ;;
4227 sparc*) machine=sparc ;;
4228 ia64*) machine=ia64 ;;
4229 m68k*) machine=m68k ;;
4230 x86_64*) machine=amdx86-64 ;;
4231 esac
4232 ;;
4233
067d23c9
KY
4234 ## FreeBSD ports
4235 *-*-freebsd* )
4236 opsys=freebsd
4237 case "${canonical}" in
4238 alpha*) machine=alpha ;;
4239 amd64-*|x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4240 ia64-*) machine=ia64 ;;
4241 i[3456]86-*) machine=intel386 ;;
4242 powerpc-*) machine=macppc ;;
4243 sparc-*) machine=sparc ;;
4244 sparc64-*) machine=sparc ;;
4245 esac
4246 ;;
4247
4248 ## FreeBSD kernel + glibc based userland
4249 *-*-kfreebsd*gnu* )
4250 opsys=gnu-kfreebsd
4251 case "${canonical}" in
4252 alpha*) machine=alpha ;;
4253 amd64-*|x86_64-*) machine=amdx86-64 ;;
4254 ia64-*) machine=ia64 ;;
4255 i[3456]86-*) machine=intel386 ;;
4256 powerpc-*) machine=macppc ;;
4257 sparc-*) machine=sparc ;;
4258 sparc64-*) machine=sparc ;;
4259 esac
4260 ;;
4261
4262 ## NetBSD ports
4263 *-*-netbsd* )
4264 opsys=netbsd
4265 case "${canonical}" in
4266 alpha*) machine=alpha ;;
4267 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4268 i[3456]86-*) machine=intel386 ;;
4269 m68k-*) machine=m68k ;;
4270 powerpc-*) machine=macppc ;;
067d23c9
KY
4271 sparc*-) machine=sparc ;;
4272 vax-*) machine=vax ;;
4273 esac
4274 ;;
4275
4276 ## OpenBSD ports
4277 *-*-openbsd* )
4278 opsys=openbsd
4279 case "${canonical}" in
4280 alpha*) machine=alpha ;;
4281 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4282 i386-*) machine=intel386 ;;
4283 powerpc-*) machine=macppc ;;
4284 sparc*) machine=sparc ;;
4285 vax-*) machine=vax ;;
4286 esac
4287 ;;
4288
067d23c9
KY
4289 ## Apple Darwin / Mac OS X
4290 *-apple-darwin* )
4291 case "${canonical}" in
4292 i[3456]86-* ) machine=intel386 ;;
4293 powerpc-* ) machine=macppc ;;
4294 x86_64-* ) machine=amdx86-64 ;;
4295 * ) unported=yes ;;
4296 esac
4297 opsys=darwin
4298 # Define CPP as follows to make autoconf work correctly.
4299 CPP="${CC-cc} -E -no-cpp-precomp"
4300 # Use fink packages if available.
4301 if test -d /sw/include && test -d /sw/lib; then
4302 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4303 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4304 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4305 fi
4306 ;;
4307
4308 ## HP 9000 series 700 and 800, running HP/UX
4309 hppa*-hp-hpux10.2* )
d6a003a8 4310 opsys=hpux10-20
067d23c9
KY
4311 ;;
4312 hppa*-hp-hpux1[1-9]* )
d6a003a8 4313 opsys=hpux11
067d23c9
KY
4314 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4315 ;;
4316
125c3718
PE
4317 ia64*-hp-hpux1[1-9]* )
4318 machine=hp800 opsys=hpux11
4319 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4320 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4321 CANNOT_DUMP=yes
4322 ;;
4323
4324 hppa*-*-linux-gnu* )
4325 machine=hp800 opsys=gnu-linux
4326 ;;
4327
067d23c9 4328 ## IBM machines
067d23c9
KY
4329 rs6000-ibm-aix4.[23]* )
4330 machine=ibmrs6000 opsys=aix4-2
4331 ;;
4332 powerpc-ibm-aix4.[23]* )
4333 machine=ibmrs6000 opsys=aix4-2
4334 ;;
4335 rs6000-ibm-aix[56]* )
4336 machine=ibmrs6000 opsys=aix4-2
4337 ;;
4338 powerpc-ibm-aix[56]* )
4339 machine=ibmrs6000 opsys=aix4-2
4340 ;;
4341
067d23c9
KY
4342 ## Silicon Graphics machines
4343 ## Iris 4D
4344 mips-sgi-irix6.5 )
4345 machine=iris4d opsys=irix6-5
4346 # Without defining _LANGUAGE_C, things get masked out in the headers
4347 # so that, for instance, grepping for `free' in stdlib.h fails and
4348 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4349 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4350 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4351 ;;
4352
4353 ## Suns
067d23c9
KY
4354 *-sun-solaris* \
4355 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4356 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4357 case "${canonical}" in
4358 i[3456]86-*-* ) machine=intel386 ;;
4359 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4360 sparc* ) machine=sparc ;;
4361 * ) unported=yes ;;
4362 esac
4363 case "${canonical}" in
4364 *-sunos5.6* | *-solaris2.6* )
4365 opsys=sol2-6
4366 NON_GNU_CPP=/usr/ccs/lib/cpp
4367 RANLIB="ar -ts"
4368 ;;
4369 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4370 opsys=sol2-6
4371 emacs_check_sunpro_c=yes
4372 NON_GNU_CPP=/usr/ccs/lib/cpp
4373 ;;
4374 *-sunos5* | *-solaris* )
4375 opsys=sol2-10
4376 emacs_check_sunpro_c=yes
4377 NON_GNU_CPP=/usr/ccs/lib/cpp
4378 ;;
4379 esac
4380 ## Watch out for a compiler that we know will not work.
4381 case "${canonical}" in
4382 *-solaris* | *-sunos5* )
4383 if [ "x$CC" = x/usr/ucb/cc ]; then
4384 ## /usr/ucb/cc doesn't work;
4385 ## we should find some other compiler that does work.
4386 unset CC
4387 fi
4388 ;;
4389 *) ;;
4390 esac
4391 ;;
4392
067d23c9
KY
4393 ## Intel 386 machines where we don't care about the manufacturer.
4394 i[3456]86-*-* )
4395 machine=intel386
4396 case "${canonical}" in
4397 *-cygwin ) opsys=cygwin ;;
4398 *-darwin* ) opsys=darwin
4399 CPP="${CC-cc} -E -no-cpp-precomp"
4400 ;;
067d23c9
KY
4401 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4402 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4403 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4404 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4405 esac
4406 ;;
4407
067d23c9
KY
4408 * )
4409 unported=yes
4410 ;;
4411esac
4412
4413### If the code above didn't choose an operating system, just choose
4414### an operating system based on the configuration name. You really
4415### only want to use this when you have no idea what the right
4416### operating system is; if you know what operating systems a machine
4417### runs, it's cleaner to make it explicit in the case statement
4418### above.
4419if test x"${opsys}" = x; then
4420 case "${canonical}" in
4421 *-gnu* ) opsys=gnu ;;
4422 * )
4423 unported=yes
4424 ;;
4425 esac
4426fi
4427
4428
4429
4430if test $unported = yes; then
1ef6de05 4431 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
067d23c9
KY
4432Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4433fi
4434
d6a003a8
AS
4435if test -n "$machine"; then
4436 machfile="m/${machine}.h"
4437else
4438 machfile=
4439fi
067d23c9
KY
4440opsysfile="s/${opsys}.h"
4441
4442
4443#### Choose a compiler.
4444test -n "$CC" && cc_specified=yes
4445
4446# Save the value of CFLAGS that the user specified.
4447SPECIFIED_CFLAGS="$CFLAGS"
4448
4449ac_ext=c
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4456set dummy ${ac_tool_prefix}gcc; ac_word=$2
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 4459if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4460 $as_echo_n "(cached) " >&6
4461else
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC="$CC" # Let the user override the test.
4464else
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476done
4477 done
4478IFS=$as_save_IFS
4479
4480fi
4481fi
4482CC=$ac_cv_prog_CC
4483if test -n "$CC"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485$as_echo "$CC" >&6; }
4486else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488$as_echo "no" >&6; }
4489fi
4490
4491
4492fi
4493if test -z "$ac_cv_prog_CC"; then
4494 ac_ct_CC=$CC
4495 # Extract the first word of "gcc", so it can be a program name with args.
4496set dummy gcc; ac_word=$2
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 4499if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4500 $as_echo_n "(cached) " >&6
4501else
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC="gcc"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516done
4517 done
4518IFS=$as_save_IFS
4519
4520fi
4521fi
4522ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523if test -n "$ac_ct_CC"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4525$as_echo "$ac_ct_CC" >&6; }
4526else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528$as_echo "no" >&6; }
4529fi
4530
4531 if test "x$ac_ct_CC" = x; then
4532 CC=""
4533 else
4534 case $cross_compiling:$ac_tool_warned in
4535yes:)
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538ac_tool_warned=yes ;;
4539esac
4540 CC=$ac_ct_CC
4541 fi
4542else
4543 CC="$ac_cv_prog_CC"
4544fi
4545
4546if test -z "$CC"; then
4547 if test -n "$ac_tool_prefix"; then
4548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4549set dummy ${ac_tool_prefix}cc; ac_word=$2
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 4552if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4553 $as_echo_n "(cached) " >&6
4554else
4555 if test -n "$CC"; then
4556 ac_cv_prog_CC="$CC" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_prog_CC="${ac_tool_prefix}cc"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569done
4570 done
4571IFS=$as_save_IFS
4572
4573fi
4574fi
4575CC=$ac_cv_prog_CC
4576if test -n "$CC"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4578$as_echo "$CC" >&6; }
4579else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582fi
4583
4584
4585 fi
4586fi
4587if test -z "$CC"; then
4588 # Extract the first word of "cc", so it can be a program name with args.
4589set dummy cc; ac_word=$2
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 4592if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4593 $as_echo_n "(cached) " >&6
4594else
4595 if test -n "$CC"; then
4596 ac_cv_prog_CC="$CC" # Let the user override the test.
4597else
4598 ac_prog_rejected=no
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4607 ac_prog_rejected=yes
4608 continue
4609 fi
4610 ac_cv_prog_CC="cc"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614done
4615 done
4616IFS=$as_save_IFS
4617
4618if test $ac_prog_rejected = yes; then
4619 # We found a bogon in the path, so make sure we never use it.
4620 set dummy $ac_cv_prog_CC
4621 shift
4622 if test $# != 0; then
4623 # We chose a different compiler from the bogus one.
4624 # However, it has the same basename, so the bogon will be chosen
4625 # first if we set CC to just the basename; use the full file name.
4626 shift
4627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4628 fi
4629fi
4630fi
4631fi
4632CC=$ac_cv_prog_CC
4633if test -n "$CC"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635$as_echo "$CC" >&6; }
4636else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641
4642fi
4643if test -z "$CC"; then
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in cl.exe
4646 do
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 4651if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4652 $as_echo_n "(cached) " >&6
4653else
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669 done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674CC=$ac_cv_prog_CC
4675if test -n "$CC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4677$as_echo "$CC" >&6; }
4678else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684 test -n "$CC" && break
4685 done
4686fi
4687if test -z "$CC"; then
4688 ac_ct_CC=$CC
4689 for ac_prog in cl.exe
4690do
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692set dummy $ac_prog; ac_word=$2
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 4695if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4696 $as_echo_n "(cached) " >&6
4697else
4698 if test -n "$ac_ct_CC"; then
4699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_ac_ct_CC="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713 done
4714IFS=$as_save_IFS
4715
4716fi
4717fi
4718ac_ct_CC=$ac_cv_prog_ac_ct_CC
4719if test -n "$ac_ct_CC"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4721$as_echo "$ac_ct_CC" >&6; }
4722else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728 test -n "$ac_ct_CC" && break
4729done
4730
4731 if test "x$ac_ct_CC" = x; then
4732 CC=""
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735yes:)
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738ac_tool_warned=yes ;;
4739esac
4740 CC=$ac_ct_CC
4741 fi
4742fi
4743
4744fi
4745
4746
4747test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1ef6de05
PE
4749as_fn_error $? "no acceptable C compiler found in \$PATH
4750See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4751
4752# Provide some information about the compiler.
4753$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4754set X $ac_compile
4755ac_compiler=$2
4756for ac_option in --version -v -V -qversion; do
4757 { { ac_try="$ac_compiler $ac_option >&5"
4758case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761esac
4762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4763$as_echo "$ac_try_echo"; } >&5
4764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4765 ac_status=$?
4766 if test -s conftest.err; then
4767 sed '10a\
4768... rest of stderr output deleted ...
4769 10q' conftest.err >conftest.er1
4770 cat conftest.er1 >&5
4771 fi
4772 rm -f conftest.er1 conftest.err
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }
4775done
4776
4777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
4779
4780int
4781main ()
4782{
4783
4784 ;
4785 return 0;
4786}
4787_ACEOF
4788ac_clean_files_save=$ac_clean_files
4789ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4790# Try to create an executable without -o first, disregard a.out.
4791# It will help us diagnose broken compilers, and finding out an intuition
4792# of exeext.
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4794$as_echo_n "checking whether the C compiler works... " >&6; }
4795ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4796
4797# The possible output files:
4798ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4799
4800ac_rmfiles=
4801for ac_file in $ac_files
4802do
4803 case $ac_file in
4804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4806 esac
4807done
4808rm -f $ac_rmfiles
4809
4810if { { ac_try="$ac_link_default"
4811case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814esac
4815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4816$as_echo "$ac_try_echo"; } >&5
4817 (eval "$ac_link_default") 2>&5
4818 ac_status=$?
4819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4820 test $ac_status = 0; }; then :
4821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4822# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4823# in a Makefile. We should not override ac_cv_exeext if it was cached,
4824# so that the user can short-circuit this test for compilers unknown to
4825# Autoconf.
4826for ac_file in $ac_files ''
4827do
4828 test -f "$ac_file" || continue
4829 case $ac_file in
4830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4831 ;;
4832 [ab].out )
4833 # We found the default executable, but exeext='' is most
4834 # certainly right.
4835 break;;
4836 *.* )
4837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4838 then :; else
4839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4840 fi
4841 # We set ac_cv_exeext here because the later test for it is not
4842 # safe: cross compilers may not add the suffix if given an `-o'
4843 # argument, so we may need to know it at that point already.
4844 # Even if this section looks crufty: it has the advantage of
4845 # actually working.
4846 break;;
4847 * )
4848 break;;
4849 esac
4850done
4851test "$ac_cv_exeext" = no && ac_cv_exeext=
4852
4853else
4854 ac_file=''
4855fi
4856if test -z "$ac_file"; then :
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858$as_echo "no" >&6; }
4859$as_echo "$as_me: failed program was:" >&5
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1ef6de05
PE
4864as_fn_error 77 "C compiler cannot create executables
4865See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4866else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4868$as_echo "yes" >&6; }
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4871$as_echo_n "checking for C compiler default output file name... " >&6; }
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4873$as_echo "$ac_file" >&6; }
4874ac_exeext=$ac_cv_exeext
4875
4876rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4877ac_clean_files=$ac_clean_files_save
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4879$as_echo_n "checking for suffix of executables... " >&6; }
4880if { { ac_try="$ac_link"
4881case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884esac
4885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4886$as_echo "$ac_try_echo"; } >&5
4887 (eval "$ac_link") 2>&5
4888 ac_status=$?
4889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4890 test $ac_status = 0; }; then :
4891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4892# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4893# work properly (i.e., refer to `conftest.exe'), while it won't with
4894# `rm'.
4895for ac_file in conftest.exe conftest conftest.*; do
4896 test -f "$ac_file" || continue
4897 case $ac_file in
4898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4900 break;;
4901 * ) break;;
4902 esac
4903done
4904else
4905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1ef6de05
PE
4907as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4908See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4909fi
4910rm -f conftest conftest$ac_cv_exeext
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4912$as_echo "$ac_cv_exeext" >&6; }
4913
4914rm -f conftest.$ac_ext
4915EXEEXT=$ac_cv_exeext
4916ac_exeext=$EXEEXT
4917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h. */
4919#include <stdio.h>
4920int
4921main ()
4922{
4923FILE *f = fopen ("conftest.out", "w");
4924 return ferror (f) || fclose (f) != 0;
4925
4926 ;
4927 return 0;
4928}
4929_ACEOF
4930ac_clean_files="$ac_clean_files conftest.out"
4931# Check that the compiler produces executables we can run. If not, either
4932# the compiler is broken, or we cross compile.
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4934$as_echo_n "checking whether we are cross compiling... " >&6; }
4935if test "$cross_compiling" != yes; then
4936 { { ac_try="$ac_link"
4937case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940esac
4941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4942$as_echo "$ac_try_echo"; } >&5
4943 (eval "$ac_link") 2>&5
4944 ac_status=$?
4945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4946 test $ac_status = 0; }
4947 if { ac_try='./conftest$ac_cv_exeext'
4948 { { case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951esac
4952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4953$as_echo "$ac_try_echo"; } >&5
4954 (eval "$ac_try") 2>&5
4955 ac_status=$?
4956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4957 test $ac_status = 0; }; }; then
4958 cross_compiling=no
4959 else
4960 if test "$cross_compiling" = maybe; then
4961 cross_compiling=yes
4962 else
4963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1ef6de05 4965as_fn_error $? "cannot run C compiled programs.
067d23c9 4966If you meant to cross compile, use \`--host'.
1ef6de05 4967See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4968 fi
4969 fi
4970fi
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4972$as_echo "$cross_compiling" >&6; }
4973
4974rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4975ac_clean_files=$ac_clean_files_save
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4977$as_echo_n "checking for suffix of object files... " >&6; }
1ef6de05 4978if ${ac_cv_objext+:} false; then :
067d23c9
KY
4979 $as_echo_n "(cached) " >&6
4980else
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h. */
4983
4984int
4985main ()
4986{
4987
4988 ;
4989 return 0;
4990}
4991_ACEOF
4992rm -f conftest.o conftest.obj
4993if { { ac_try="$ac_compile"
4994case "(($ac_try" in
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4997esac
4998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4999$as_echo "$ac_try_echo"; } >&5
5000 (eval "$ac_compile") 2>&5
5001 ac_status=$?
5002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003 test $ac_status = 0; }; then :
5004 for ac_file in conftest.o conftest.obj conftest.*; do
5005 test -f "$ac_file" || continue;
5006 case $ac_file in
5007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5009 break;;
5010 esac
5011done
5012else
5013 $as_echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1ef6de05
PE
5018as_fn_error $? "cannot compute suffix of object files: cannot compile
5019See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5020fi
5021rm -f conftest.$ac_cv_objext conftest.$ac_ext
5022fi
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5024$as_echo "$ac_cv_objext" >&6; }
5025OBJEXT=$ac_cv_objext
5026ac_objext=$OBJEXT
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5028$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1ef6de05 5029if ${ac_cv_c_compiler_gnu+:} false; then :
067d23c9
KY
5030 $as_echo_n "(cached) " >&6
5031else
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h. */
5034
5035int
5036main ()
5037{
5038#ifndef __GNUC__
5039 choke me
5040#endif
5041
5042 ;
5043 return 0;
5044}
5045_ACEOF
5046if ac_fn_c_try_compile "$LINENO"; then :
5047 ac_compiler_gnu=yes
5048else
5049 ac_compiler_gnu=no
5050fi
5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052ac_cv_c_compiler_gnu=$ac_compiler_gnu
5053
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5056$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5057if test $ac_compiler_gnu = yes; then
5058 GCC=yes
5059else
5060 GCC=
5061fi
5062ac_test_CFLAGS=${CFLAGS+set}
5063ac_save_CFLAGS=$CFLAGS
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5065$as_echo_n "checking whether $CC accepts -g... " >&6; }
1ef6de05 5066if ${ac_cv_prog_cc_g+:} false; then :
067d23c9
KY
5067 $as_echo_n "(cached) " >&6
5068else
5069 ac_save_c_werror_flag=$ac_c_werror_flag
5070 ac_c_werror_flag=yes
5071 ac_cv_prog_cc_g=no
5072 CFLAGS="-g"
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074/* end confdefs.h. */
5075
5076int
5077main ()
5078{
5079
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084if ac_fn_c_try_compile "$LINENO"; then :
5085 ac_cv_prog_cc_g=yes
5086else
5087 CFLAGS=""
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h. */
5090
5091int
5092main ()
5093{
5094
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099if ac_fn_c_try_compile "$LINENO"; then :
5100
5101else
5102 ac_c_werror_flag=$ac_save_c_werror_flag
5103 CFLAGS="-g"
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h. */
5106
5107int
5108main ()
5109{
5110
5111 ;
5112 return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_compile "$LINENO"; then :
5116 ac_cv_prog_cc_g=yes
5117fi
5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121fi
5122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_c_werror_flag=$ac_save_c_werror_flag
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5126$as_echo "$ac_cv_prog_cc_g" >&6; }
5127if test "$ac_test_CFLAGS" = set; then
5128 CFLAGS=$ac_save_CFLAGS
5129elif test $ac_cv_prog_cc_g = yes; then
5130 if test "$GCC" = yes; then
5131 CFLAGS="-g -O2"
5132 else
5133 CFLAGS="-g"
5134 fi
5135else
5136 if test "$GCC" = yes; then
5137 CFLAGS="-O2"
5138 else
5139 CFLAGS=
5140 fi
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5143$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1ef6de05 5144if ${ac_cv_prog_cc_c89+:} false; then :
067d23c9
KY
5145 $as_echo_n "(cached) " >&6
5146else
5147 ac_cv_prog_cc_c89=no
5148ac_save_CC=$CC
5149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h. */
5151#include <stdarg.h>
5152#include <stdio.h>
5153#include <sys/types.h>
5154#include <sys/stat.h>
5155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5156struct buf { int x; };
5157FILE * (*rcsopen) (struct buf *, struct stat *, int);
5158static char *e (p, i)
5159 char **p;
5160 int i;
5161{
5162 return p[i];
5163}
5164static char *f (char * (*g) (char **, int), char **p, ...)
5165{
5166 char *s;
5167 va_list v;
5168 va_start (v,p);
5169 s = g (p, va_arg (v,int));
5170 va_end (v);
5171 return s;
5172}
5173
5174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5175 function prototypes and stuff, but not '\xHH' hex character constants.
5176 These don't provoke an error unfortunately, instead are silently treated
5177 as 'x'. The following induces an error, until -std is added to get
5178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5179 array size at least. It's necessary to write '\x00'==0 to get something
5180 that's true only with -std. */
5181int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5182
5183/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5184 inside strings and character constants. */
5185#define FOO(x) 'x'
5186int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5187
5188int test (int i, double x);
5189struct s1 {int (*f) (int a);};
5190struct s2 {int (*f) (double a);};
5191int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5192int argc;
5193char **argv;
5194int
5195main ()
5196{
5197return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5198 ;
5199 return 0;
5200}
5201_ACEOF
5202for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5203 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5204do
5205 CC="$ac_save_CC $ac_arg"
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207 ac_cv_prog_cc_c89=$ac_arg
5208fi
5209rm -f core conftest.err conftest.$ac_objext
5210 test "x$ac_cv_prog_cc_c89" != "xno" && break
5211done
743c80a7
PE
5212rm -f conftest.$ac_ext
5213CC=$ac_save_CC
5214
5215fi
5216# AC_CACHE_VAL
5217case "x$ac_cv_prog_cc_c89" in
5218 x)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5220$as_echo "none needed" >&6; } ;;
5221 xno)
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5223$as_echo "unsupported" >&6; } ;;
5224 *)
5225 CC="$CC $ac_cv_prog_cc_c89"
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5227$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5228esac
5229if test "x$ac_cv_prog_cc_c89" != xno; then :
5230
5231fi
5232
5233ac_ext=c
5234ac_cpp='$CPP $CPPFLAGS'
5235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238DEPDIR="${am__leading_dot}deps"
5239
5240ac_config_commands="$ac_config_commands depfiles"
5241
5242
5243am_make=${MAKE-make}
5244cat > confinc << 'END'
5245am__doit:
5246 @echo this is the am__doit target
5247.PHONY: am__doit
5248END
5249# If we don't find an include directive, just comment out the code.
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5251$as_echo_n "checking for style of include used by $am_make... " >&6; }
5252am__include="#"
5253am__quote=
5254_am_result=none
5255# First try GNU make style include.
5256echo "include confinc" > confmf
5257# Ignore all kinds of additional output from `make'.
5258case `$am_make -s -f confmf 2> /dev/null` in #(
5259*the\ am__doit\ target*)
5260 am__include=include
5261 am__quote=
5262 _am_result=GNU
5263 ;;
5264esac
5265# Now try BSD make style include.
5266if test "$am__include" = "#"; then
5267 echo '.include "confinc"' > confmf
5268 case `$am_make -s -f confmf 2> /dev/null` in #(
5269 *the\ am__doit\ target*)
5270 am__include=.include
5271 am__quote="\""
5272 _am_result=BSD
5273 ;;
5274 esac
5275fi
5276
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5279$as_echo "$_am_result" >&6; }
5280rm -f confinc confmf
5281
5282# Check whether --enable-dependency-tracking was given.
5283if test "${enable_dependency_tracking+set}" = set; then :
5284 enableval=$enable_dependency_tracking;
5285fi
5286
5287if test "x$enable_dependency_tracking" != xno; then
5288 am_depcomp="$ac_aux_dir/depcomp"
5289 AMDEPBACKSLASH='\'
5290fi
5291 if test "x$enable_dependency_tracking" != xno; then
5292 AMDEP_TRUE=
5293 AMDEP_FALSE='#'
5294else
5295 AMDEP_TRUE='#'
5296 AMDEP_FALSE=
5297fi
5298
5299
5300
5301depcc="$CC" am_compiler_list=
5302
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5304$as_echo_n "checking dependency style of $depcc... " >&6; }
1ef6de05 5305if ${am_cv_CC_dependencies_compiler_type+:} false; then :
743c80a7
PE
5306 $as_echo_n "(cached) " >&6
5307else
5308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5309 # We make a subdir and do the tests there. Otherwise we can end up
5310 # making bogus files that we don't know about and never remove. For
5311 # instance it was reported that on HP-UX the gcc test will end up
5312 # making a dummy file named `D' -- because `-MD' means `put the output
5313 # in D'.
5314 mkdir conftest.dir
5315 # Copy depcomp to subdir because otherwise we won't find it if we're
5316 # using a relative directory.
5317 cp "$am_depcomp" conftest.dir
5318 cd conftest.dir
5319 # We will build objects and dependencies in a subdirectory because
5320 # it helps to detect inapplicable dependency modes. For instance
5321 # both Tru64's cc and ICC support -MD to output dependencies as a
5322 # side effect of compilation, but ICC will put the dependencies in
5323 # the current directory while Tru64 will put them in the object
5324 # directory.
5325 mkdir sub
5326
5327 am_cv_CC_dependencies_compiler_type=none
5328 if test "$am_compiler_list" = ""; then
5329 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5330 fi
5331 am__universal=false
5332 case " $depcc " in #(
5333 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5334 esac
5335
5336 for depmode in $am_compiler_list; do
5337 # Setup a source with many dependencies, because some compilers
5338 # like to wrap large dependency lists on column 80 (with \), and
5339 # we should not choose a depcomp mode which is confused by this.
5340 #
5341 # We need to recreate these files for each test, as the compiler may
5342 # overwrite some of them when testing with obscure command lines.
5343 # This happens at least with the AIX C compiler.
5344 : > sub/conftest.c
5345 for i in 1 2 3 4 5 6; do
5346 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5347 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5348 # Solaris 8's {/usr,}/bin/sh.
5349 touch sub/conftst$i.h
5350 done
5351 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5352
5353 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5354 # mode. It turns out that the SunPro C++ compiler does not properly
5355 # handle `-M -o', and we need to detect this. Also, some Intel
5356 # versions had trouble with output in subdirs
5357 am__obj=sub/conftest.${OBJEXT-o}
5358 am__minus_obj="-o $am__obj"
5359 case $depmode in
5360 gcc)
5361 # This depmode causes a compiler race in universal mode.
5362 test "$am__universal" = false || continue
5363 ;;
5364 nosideeffect)
5365 # after this tag, mechanisms are not by side-effect, so they'll
5366 # only be used when explicitly requested
5367 if test "x$enable_dependency_tracking" = xyes; then
5368 continue
5369 else
5370 break
5371 fi
5372 ;;
5373 msvisualcpp | msvcmsys)
5374 # This compiler won't grok `-c -o', but also, the minuso test has
5375 # not run yet. These depmodes are late enough in the game, and
5376 # so weak that their functioning should not be impacted.
5377 am__obj=conftest.${OBJEXT-o}
5378 am__minus_obj=
5379 ;;
5380 none) break ;;
5381 esac
5382 if depmode=$depmode \
5383 source=sub/conftest.c object=$am__obj \
5384 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5385 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5386 >/dev/null 2>conftest.err &&
5387 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5388 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5389 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5390 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5391 # icc doesn't choke on unknown options, it will just issue warnings
5392 # or remarks (even with -Werror). So we grep stderr for any message
5393 # that says an option was ignored or not supported.
5394 # When given -MP, icc 7.0 and 7.1 complain thusly:
5395 # icc: Command line warning: ignoring option '-M'; no argument required
5396 # The diagnosis changed in icc 8.0:
5397 # icc: Command line remark: option '-MP' not supported
5398 if (grep 'ignoring option' conftest.err ||
5399 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5400 am_cv_CC_dependencies_compiler_type=$depmode
5401 break
5402 fi
5403 fi
5404 done
5405
5406 cd ..
5407 rm -rf conftest.dir
5408else
5409 am_cv_CC_dependencies_compiler_type=none
5410fi
5411
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5414$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5415CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5416
5417 if
5418 test "x$enable_dependency_tracking" != xno \
5419 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5420 am__fastdepCC_TRUE=
5421 am__fastdepCC_FALSE='#'
5422else
5423 am__fastdepCC_TRUE='#'
5424 am__fastdepCC_FALSE=
5425fi
5426
5427
5428if test "x$CC" != xcc; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5430$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5431else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5433$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5434fi
5435set dummy $CC; ac_cc=`$as_echo "$2" |
5436 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1ef6de05 5437if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
743c80a7
PE
5438 $as_echo_n "(cached) " >&6
5439else
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441/* end confdefs.h. */
5442
5443int
5444main ()
5445{
5446
5447 ;
5448 return 0;
5449}
5450_ACEOF
5451# Make sure it works both with $CC and with simple cc.
5452# We do the test twice because some compilers refuse to overwrite an
5453# existing .o file with -o, though they will create one.
5454ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5455rm -f conftest2.*
5456if { { case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459esac
5460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5461$as_echo "$ac_try_echo"; } >&5
5462 (eval "$ac_try") 2>&5
5463 ac_status=$?
5464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5465 test $ac_status = 0; } &&
5466 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469esac
5470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5471$as_echo "$ac_try_echo"; } >&5
5472 (eval "$ac_try") 2>&5
5473 ac_status=$?
5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475 test $ac_status = 0; };
5476then
5477 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5478 if test "x$CC" != xcc; then
5479 # Test first that cc exists at all.
5480 if { ac_try='cc -c conftest.$ac_ext >&5'
5481 { { case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484esac
5485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5486$as_echo "$ac_try_echo"; } >&5
5487 (eval "$ac_try") 2>&5
5488 ac_status=$?
5489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5490 test $ac_status = 0; }; }; then
5491 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5492 rm -f conftest2.*
5493 if { { case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496esac
5497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5498$as_echo "$ac_try_echo"; } >&5
5499 (eval "$ac_try") 2>&5
5500 ac_status=$?
5501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5502 test $ac_status = 0; } &&
5503 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5508$as_echo "$ac_try_echo"; } >&5
5509 (eval "$ac_try") 2>&5
5510 ac_status=$?
5511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5512 test $ac_status = 0; };
5513 then
5514 # cc works too.
5515 :
5516 else
5517 # cc exists but doesn't like -o.
5518 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5519 fi
5520 fi
5521 fi
5522else
5523 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5524fi
5525rm -f core conftest*
5526
5527fi
5528if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5530$as_echo "yes" >&6; }
5531else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533$as_echo "no" >&6; }
5534
5535$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5536
5537fi
5538
5539# FIXME: we rely on the cache variable name because
5540# there is no other way.
5541set dummy $CC
5542am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5543eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5544if test "$am_t" != yes; then
5545 # Losing compiler, so override with the script.
5546 # FIXME: It is wrong to rewrite CC.
5547 # But if we don't then we get into trouble of one sort or another.
5548 # A longer-term fix would be to have automake use am__CC in this case,
5549 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5550 CC="$am_aux_dir/compile $CC"
5551fi
5552
5553
5554
5555# Initialize gnulib right after verifying that the C compiler works.
5556if test -n "$ac_tool_prefix"; then
5557 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5558set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 5561if ${ac_cv_prog_RANLIB+:} false; then :
743c80a7
PE
5562 $as_echo_n "(cached) " >&6
5563else
5564 if test -n "$RANLIB"; then
5565 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578done
5579 done
5580IFS=$as_save_IFS
5581
5582fi
5583fi
5584RANLIB=$ac_cv_prog_RANLIB
5585if test -n "$RANLIB"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5587$as_echo "$RANLIB" >&6; }
5588else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590$as_echo "no" >&6; }
5591fi
5592
5593
5594fi
5595if test -z "$ac_cv_prog_RANLIB"; then
5596 ac_ct_RANLIB=$RANLIB
5597 # Extract the first word of "ranlib", so it can be a program name with args.
5598set dummy ranlib; ac_word=$2
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 5601if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
743c80a7
PE
5602 $as_echo_n "(cached) " >&6
5603else
5604 if test -n "$ac_ct_RANLIB"; then
5605 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_ac_ct_RANLIB="ranlib"
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618done
5619 done
5620IFS=$as_save_IFS
067d23c9
KY
5621
5622fi
743c80a7
PE
5623fi
5624ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5625if test -n "$ac_ct_RANLIB"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5627$as_echo "$ac_ct_RANLIB" >&6; }
5628else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630$as_echo "no" >&6; }
5631fi
067d23c9 5632
743c80a7
PE
5633 if test "x$ac_ct_RANLIB" = x; then
5634 RANLIB=":"
5635 else
5636 case $cross_compiling:$ac_tool_warned in
5637yes:)
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640ac_tool_warned=yes ;;
5641esac
5642 RANLIB=$ac_ct_RANLIB
5643 fi
5644else
5645 RANLIB="$ac_cv_prog_RANLIB"
067d23c9
KY
5646fi
5647
743c80a7 5648
067d23c9
KY
5649ac_ext=c
5650ac_cpp='$CPP $CPPFLAGS'
5651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5655$as_echo_n "checking how to run the C preprocessor... " >&6; }
5656# On Suns, sometimes $CPP names a directory.
5657if test -n "$CPP" && test -d "$CPP"; then
5658 CPP=
5659fi
5660if test -z "$CPP"; then
1ef6de05 5661 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
5662 $as_echo_n "(cached) " >&6
5663else
5664 # Double quotes because CPP needs to be expanded
5665 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5666 do
5667 ac_preproc_ok=false
5668for ac_c_preproc_warn_flag in '' yes
5669do
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h. */
5678#ifdef __STDC__
5679# include <limits.h>
5680#else
5681# include <assert.h>
5682#endif
5683 Syntax error
5684_ACEOF
5685if ac_fn_c_try_cpp "$LINENO"; then :
5686
5687else
5688 # Broken: fails on valid input.
5689continue
5690fi
1ef6de05 5691rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5692
5693 # OK, works on sane cases. Now check whether nonexistent headers
5694 # can be detected and how.
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h. */
5697#include <ac_nonexistent.h>
5698_ACEOF
5699if ac_fn_c_try_cpp "$LINENO"; then :
5700 # Broken: success on invalid input.
5701continue
5702else
5703 # Passes both tests.
5704ac_preproc_ok=:
5705break
5706fi
1ef6de05 5707rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5708
5709done
5710# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1ef6de05 5711rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5712if $ac_preproc_ok; then :
5713 break
5714fi
5715
5716 done
5717 ac_cv_prog_CPP=$CPP
5718
5719fi
5720 CPP=$ac_cv_prog_CPP
5721else
5722 ac_cv_prog_CPP=$CPP
5723fi
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5725$as_echo "$CPP" >&6; }
5726ac_preproc_ok=false
5727for ac_c_preproc_warn_flag in '' yes
5728do
5729 # Use a header file that comes with gcc, so configuring glibc
5730 # with a fresh cross-compiler works.
5731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5732 # <limits.h> exists even on freestanding compilers.
5733 # On the NeXT, cc -E runs the code through the compiler's parser,
5734 # not just through cpp. "Syntax error" is here to catch this case.
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h. */
5737#ifdef __STDC__
5738# include <limits.h>
5739#else
5740# include <assert.h>
5741#endif
5742 Syntax error
5743_ACEOF
5744if ac_fn_c_try_cpp "$LINENO"; then :
5745
5746else
5747 # Broken: fails on valid input.
5748continue
5749fi
1ef6de05 5750rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5751
5752 # OK, works on sane cases. Now check whether nonexistent headers
5753 # can be detected and how.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755/* end confdefs.h. */
5756#include <ac_nonexistent.h>
5757_ACEOF
5758if ac_fn_c_try_cpp "$LINENO"; then :
5759 # Broken: success on invalid input.
5760continue
5761else
5762 # Passes both tests.
5763ac_preproc_ok=:
5764break
5765fi
1ef6de05 5766rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5767
5768done
5769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1ef6de05 5770rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5771if $ac_preproc_ok; then :
5772
5773else
5774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1ef6de05
PE
5776as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5777See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5778fi
5779
5780ac_ext=c
5781ac_cpp='$CPP $CPPFLAGS'
5782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5788$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1ef6de05 5789if ${ac_cv_path_GREP+:} false; then :
067d23c9
KY
5790 $as_echo_n "(cached) " >&6
5791else
5792 if test -z "$GREP"; then
5793 ac_path_GREP_found=false
5794 # Loop through the user's path and test for each of PROGNAME-LIST
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5797do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_prog in grep ggrep; do
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5803 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5804# Check for GNU ac_path_GREP and select it if it is found.
5805 # Check for GNU $ac_path_GREP
5806case `"$ac_path_GREP" --version 2>&1` in
5807*GNU*)
5808 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5809*)
5810 ac_count=0
5811 $as_echo_n 0123456789 >"conftest.in"
5812 while :
5813 do
5814 cat "conftest.in" "conftest.in" >"conftest.tmp"
5815 mv "conftest.tmp" "conftest.in"
5816 cp "conftest.in" "conftest.nl"
5817 $as_echo 'GREP' >> "conftest.nl"
5818 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5820 as_fn_arith $ac_count + 1 && ac_count=$as_val
5821 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5822 # Best one so far, save it but keep looking for a better one
5823 ac_cv_path_GREP="$ac_path_GREP"
5824 ac_path_GREP_max=$ac_count
5825 fi
5826 # 10*(2^10) chars as input seems more than enough
5827 test $ac_count -gt 10 && break
5828 done
5829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5830esac
5831
5832 $ac_path_GREP_found && break 3
5833 done
5834 done
5835 done
5836IFS=$as_save_IFS
5837 if test -z "$ac_cv_path_GREP"; then
1ef6de05 5838 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5839 fi
5840else
5841 ac_cv_path_GREP=$GREP
5842fi
5843
5844fi
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5846$as_echo "$ac_cv_path_GREP" >&6; }
5847 GREP="$ac_cv_path_GREP"
5848
5849
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5851$as_echo_n "checking for egrep... " >&6; }
1ef6de05 5852if ${ac_cv_path_EGREP+:} false; then :
067d23c9
KY
5853 $as_echo_n "(cached) " >&6
5854else
5855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5856 then ac_cv_path_EGREP="$GREP -E"
5857 else
5858 if test -z "$EGREP"; then
5859 ac_path_EGREP_found=false
5860 # Loop through the user's path and test for each of PROGNAME-LIST
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5863do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_prog in egrep; do
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5869 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5870# Check for GNU ac_path_EGREP and select it if it is found.
5871 # Check for GNU $ac_path_EGREP
5872case `"$ac_path_EGREP" --version 2>&1` in
5873*GNU*)
5874 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5875*)
5876 ac_count=0
5877 $as_echo_n 0123456789 >"conftest.in"
5878 while :
5879 do
5880 cat "conftest.in" "conftest.in" >"conftest.tmp"
5881 mv "conftest.tmp" "conftest.in"
5882 cp "conftest.in" "conftest.nl"
5883 $as_echo 'EGREP' >> "conftest.nl"
5884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5886 as_fn_arith $ac_count + 1 && ac_count=$as_val
5887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5888 # Best one so far, save it but keep looking for a better one
5889 ac_cv_path_EGREP="$ac_path_EGREP"
5890 ac_path_EGREP_max=$ac_count
5891 fi
5892 # 10*(2^10) chars as input seems more than enough
5893 test $ac_count -gt 10 && break
5894 done
5895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5896esac
5897
5898 $ac_path_EGREP_found && break 3
5899 done
5900 done
5901 done
5902IFS=$as_save_IFS
5903 if test -z "$ac_cv_path_EGREP"; then
1ef6de05 5904 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5905 fi
5906else
5907 ac_cv_path_EGREP=$EGREP
5908fi
5909
5910 fi
5911fi
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5913$as_echo "$ac_cv_path_EGREP" >&6; }
5914 EGREP="$ac_cv_path_EGREP"
5915
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5918$as_echo_n "checking for ANSI C header files... " >&6; }
1ef6de05 5919if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
5920 $as_echo_n "(cached) " >&6
5921else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h. */
5924#include <stdlib.h>
5925#include <stdarg.h>
5926#include <string.h>
5927#include <float.h>
5928
5929int
5930main ()
5931{
5932
5933 ;
5934 return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_compile "$LINENO"; then :
5938 ac_cv_header_stdc=yes
5939else
5940 ac_cv_header_stdc=no
5941fi
5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943
5944if test $ac_cv_header_stdc = yes; then
5945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h. */
5948#include <string.h>
5949
5950_ACEOF
5951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952 $EGREP "memchr" >/dev/null 2>&1; then :
5953
5954else
5955 ac_cv_header_stdc=no
5956fi
5957rm -f conftest*
5958
5959fi
5960
5961if test $ac_cv_header_stdc = yes; then
5962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964/* end confdefs.h. */
5965#include <stdlib.h>
5966
5967_ACEOF
5968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5969 $EGREP "free" >/dev/null 2>&1; then :
5970
5971else
5972 ac_cv_header_stdc=no
5973fi
5974rm -f conftest*
5975
5976fi
5977
5978if test $ac_cv_header_stdc = yes; then
5979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5980 if test "$cross_compiling" = yes; then :
5981 :
5982else
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h. */
5985#include <ctype.h>
5986#include <stdlib.h>
5987#if ((' ' & 0x0FF) == 0x020)
5988# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5989# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5990#else
5991# define ISLOWER(c) \
5992 (('a' <= (c) && (c) <= 'i') \
5993 || ('j' <= (c) && (c) <= 'r') \
5994 || ('s' <= (c) && (c) <= 'z'))
5995# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5996#endif
5997
5998#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5999int
6000main ()
6001{
6002 int i;
6003 for (i = 0; i < 256; i++)
6004 if (XOR (islower (i), ISLOWER (i))
6005 || toupper (i) != TOUPPER (i))
6006 return 2;
6007 return 0;
6008}
6009_ACEOF
6010if ac_fn_c_try_run "$LINENO"; then :
6011
6012else
6013 ac_cv_header_stdc=no
6014fi
6015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6016 conftest.$ac_objext conftest.beam conftest.$ac_ext
6017fi
6018
6019fi
6020fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6022$as_echo "$ac_cv_header_stdc" >&6; }
6023if test $ac_cv_header_stdc = yes; then
6024
6025$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6026
6027fi
6028
6029# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6030for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6031 inttypes.h stdint.h unistd.h
6032do :
6033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6034ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6035"
1ef6de05 6036if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
6037 cat >>confdefs.h <<_ACEOF
6038#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6039_ACEOF
6040
6041fi
6042
6043done
6044
6045
6046
1fd182f0
PE
6047
6048
067d23c9 6049 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
1ef6de05 6050if test "x$ac_cv_header_minix_config_h" = xyes; then :
067d23c9
KY
6051 MINIX=yes
6052else
6053 MINIX=
6054fi
6055
6056
6057 if test "$MINIX" = yes; then
6058
6059$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6060
6061
6062$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6063
6064
6065$as_echo "#define _MINIX 1" >>confdefs.h
6066
6067 fi
6068
1fd182f0
PE
6069 case "$host_os" in
6070 hpux*)
6071
6072$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6073
6074 ;;
6075 esac
6076
067d23c9
KY
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6079$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
1ef6de05 6080if ${ac_cv_safe_to_define___extensions__+:} false; then :
067d23c9
KY
6081 $as_echo_n "(cached) " >&6
6082else
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h. */
6085
1fd182f0
PE
6086# define __EXTENSIONS__ 1
6087 $ac_includes_default
067d23c9
KY
6088int
6089main ()
6090{
6091
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096if ac_fn_c_try_compile "$LINENO"; then :
6097 ac_cv_safe_to_define___extensions__=yes
6098else
6099 ac_cv_safe_to_define___extensions__=no
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6104$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6105 test $ac_cv_safe_to_define___extensions__ = yes &&
6106 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6107
6108 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6109
6110 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6111
6112 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6113
6114 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6115
6116
6117
1fd182f0
PE
6118
6119
6120
6121
6122
6123
6124
6125 # Code from module arg-nonnull:
6126 # Code from module c++defs:
942f733f 6127 # Code from module crypto/md5:
36f13e16 6128 # Code from module dosname:
f737437b 6129 # Code from module dtoastr:
1fd182f0
PE
6130 # Code from module extensions:
6131
5fa4ac76 6132 # Code from module filemode:
1f5d53eb 6133 # Code from module getloadavg:
e275c824
PE
6134 # Code from module getopt-gnu:
6135 # Code from module getopt-posix:
6136 # Code from module gettext-h:
67342916 6137 # Code from module ignore-value:
1fd182f0
PE
6138 # Code from module include_next:
6139 # Code from module intprops:
ae0d7250 6140 # Code from module lstat:
1fd182f0
PE
6141 # Code from module mktime:
6142 # Code from module multiarch:
ae0d7250
PE
6143 # Code from module readlink:
6144 # Code from module stat:
16c3e636 6145 # Code from module stdbool:
1fd182f0 6146 # Code from module stddef:
5f90be1b 6147 # Code from module stdint:
1f5d53eb 6148 # Code from module stdlib:
16c3e636 6149 # Code from module strftime:
ae0d7250 6150 # Code from module symlink:
5fa4ac76 6151 # Code from module sys_stat:
1fd182f0
PE
6152 # Code from module time:
6153 # Code from module time_r:
e275c824 6154 # Code from module unistd:
1fd182f0
PE
6155 # Code from module warn-on-use:
6156
6157
6158# On Suns, sometimes $CPP names a directory.
6159if test -n "$CPP" && test -d "$CPP"; then
6160 CPP=
6161fi
6162
6163## If not using gcc, and on Solaris, and no CPP specified, see if
6164## using a Sun compiler, which needs -Xs to prevent whitespace.
6165if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6166 test x"$CPP" = x; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6168$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
1ef6de05 6169 if ${emacs_cv_sunpro_c+:} false; then :
1fd182f0
PE
6170 $as_echo_n "(cached) " >&6
6171else
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h. */
6174
6175int
6176main ()
6177{
6178#ifndef __SUNPRO_C
6179fail;
6180#endif
6181
6182 ;
6183 return 0;
6184}
6185_ACEOF
6186if ac_fn_c_try_link "$LINENO"; then :
6187 emacs_cv_sunpro_c=yes
6188else
6189 emacs_cv_sunpro_c=no
6190fi
6191rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193fi
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6196$as_echo "$emacs_cv_sunpro_c" >&6; }
6197
6198 if test x"$emacs_cv_sunpro_c" = xyes; then
6199 NON_GNU_CPP="$CC -E -Xs"
6200 fi
6201fi
6202
6203#### Some systems specify a CPP to use unless we are using GCC.
6204#### Now that we know whether we are using GCC, we can decide whether
6205#### to use that one.
6206if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6207then
6208 CPP="$NON_GNU_CPP"
6209fi
6210
6211#### Some systems specify a CC to use unless we are using GCC.
6212#### Now that we know whether we are using GCC, we can decide whether
6213#### to use that one.
6214if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6215 test x$cc_specified != xyes
6216then
6217 CC="$NON_GNU_CC"
6218fi
6219
6220if test x$GCC = xyes; then
6221 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6222else
6223 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6224fi
6225
067d23c9
KY
6226### Use -Wdeclaration-after-statement if the compiler supports it
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6228$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6229SAVE_CFLAGS="$CFLAGS"
6230CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h. */
6233
6234int
6235main ()
6236{
6237
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242if ac_fn_c_try_compile "$LINENO"; then :
6243 has_option=yes
6244else
6245 has_option=no
6246fi
6247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248if test $has_option = yes; then
6249 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6250fi
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6252$as_echo "$has_option" >&6; }
6253CFLAGS="$SAVE_CFLAGS"
6254unset has_option
6255unset SAVE_CFLAGS
6256
6257### Use -Wold-style-definition if the compiler supports it
6258# This can be removed when conversion to standard C is finished.
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6260$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6261SAVE_CFLAGS="$CFLAGS"
6262CFLAGS="$CFLAGS -Wold-style-definition"
6263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h. */
6265
6266int
6267main ()
6268{
6269
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274if ac_fn_c_try_compile "$LINENO"; then :
6275 has_option=yes
6276else
6277 has_option=no
6278fi
6279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280if test $has_option = yes; then
6281 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6282fi
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6284$as_echo "$has_option" >&6; }
6285CFLAGS="$SAVE_CFLAGS"
6286unset has_option
6287unset SAVE_CFLAGS
6288
6289### Use -Wimplicit-function-declaration if the compiler supports it
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6291$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6292SAVE_CFLAGS="$CFLAGS"
6293CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295/* end confdefs.h. */
6296
6297int
6298main ()
6299{
6300
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305if ac_fn_c_try_compile "$LINENO"; then :
6306 has_option=yes
6307else
6308 has_option=no
6309fi
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311if test $has_option = yes; then
6312 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6315$as_echo "$has_option" >&6; }
6316CFLAGS="$SAVE_CFLAGS"
6317unset has_option
6318unset SAVE_CFLAGS
6319
6320
6321
6322
6323#### Some other nice autoconf tests.
6324
6325ac_ext=c
6326ac_cpp='$CPP $CPPFLAGS'
6327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6331$as_echo_n "checking how to run the C preprocessor... " >&6; }
6332# On Suns, sometimes $CPP names a directory.
6333if test -n "$CPP" && test -d "$CPP"; then
6334 CPP=
6335fi
6336if test -z "$CPP"; then
1ef6de05 6337 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
6338 $as_echo_n "(cached) " >&6
6339else
6340 # Double quotes because CPP needs to be expanded
6341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6342 do
6343 ac_preproc_ok=false
6344for ac_c_preproc_warn_flag in '' yes
6345do
6346 # Use a header file that comes with gcc, so configuring glibc
6347 # with a fresh cross-compiler works.
6348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6349 # <limits.h> exists even on freestanding compilers.
6350 # On the NeXT, cc -E runs the code through the compiler's parser,
6351 # not just through cpp. "Syntax error" is here to catch this case.
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h. */
6354#ifdef __STDC__
6355# include <limits.h>
6356#else
6357# include <assert.h>
6358#endif
6359 Syntax error
6360_ACEOF
6361if ac_fn_c_try_cpp "$LINENO"; then :
6362
6363else
6364 # Broken: fails on valid input.
6365continue
6366fi
1ef6de05 6367rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6368
6369 # OK, works on sane cases. Now check whether nonexistent headers
6370 # can be detected and how.
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h. */
6373#include <ac_nonexistent.h>
6374_ACEOF
6375if ac_fn_c_try_cpp "$LINENO"; then :
6376 # Broken: success on invalid input.
6377continue
6378else
6379 # Passes both tests.
6380ac_preproc_ok=:
6381break
6382fi
1ef6de05 6383rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6384
6385done
6386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1ef6de05 6387rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6388if $ac_preproc_ok; then :
6389 break
6390fi
6391
6392 done
6393 ac_cv_prog_CPP=$CPP
6394
6395fi
6396 CPP=$ac_cv_prog_CPP
6397else
6398 ac_cv_prog_CPP=$CPP
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6401$as_echo "$CPP" >&6; }
6402ac_preproc_ok=false
6403for ac_c_preproc_warn_flag in '' yes
6404do
6405 # Use a header file that comes with gcc, so configuring glibc
6406 # with a fresh cross-compiler works.
6407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6408 # <limits.h> exists even on freestanding compilers.
6409 # On the NeXT, cc -E runs the code through the compiler's parser,
6410 # not just through cpp. "Syntax error" is here to catch this case.
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412/* end confdefs.h. */
6413#ifdef __STDC__
6414# include <limits.h>
6415#else
6416# include <assert.h>
6417#endif
6418 Syntax error
6419_ACEOF
6420if ac_fn_c_try_cpp "$LINENO"; then :
6421
6422else
6423 # Broken: fails on valid input.
6424continue
6425fi
1ef6de05 6426rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6427
6428 # OK, works on sane cases. Now check whether nonexistent headers
6429 # can be detected and how.
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431/* end confdefs.h. */
6432#include <ac_nonexistent.h>
6433_ACEOF
6434if ac_fn_c_try_cpp "$LINENO"; then :
6435 # Broken: success on invalid input.
6436continue
6437else
6438 # Passes both tests.
6439ac_preproc_ok=:
6440break
6441fi
1ef6de05 6442rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6443
6444done
6445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1ef6de05 6446rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6447if $ac_preproc_ok; then :
6448
6449else
6450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1ef6de05
PE
6452as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6453See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
6454fi
6455
6456ac_ext=c
6457ac_cpp='$CPP $CPPFLAGS'
6458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460ac_compiler_gnu=$ac_cv_c_compiler_gnu
6461
067d23c9
KY
6462
6463if test "x$RANLIB" = x; then
6464 if test -n "$ac_tool_prefix"; then
6465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6466set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 6469if ${ac_cv_prog_RANLIB+:} false; then :
067d23c9
KY
6470 $as_echo_n "(cached) " >&6
6471else
6472 if test -n "$RANLIB"; then
6473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486done
6487 done
6488IFS=$as_save_IFS
6489
6490fi
6491fi
6492RANLIB=$ac_cv_prog_RANLIB
6493if test -n "$RANLIB"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6495$as_echo "$RANLIB" >&6; }
6496else
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498$as_echo "no" >&6; }
6499fi
6500
6501
6502fi
6503if test -z "$ac_cv_prog_RANLIB"; then
6504 ac_ct_RANLIB=$RANLIB
6505 # Extract the first word of "ranlib", so it can be a program name with args.
6506set dummy ranlib; ac_word=$2
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 6509if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
067d23c9
KY
6510 $as_echo_n "(cached) " >&6
6511else
6512 if test -n "$ac_ct_RANLIB"; then
6513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6514else
6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_ac_ct_RANLIB="ranlib"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6525 fi
6526done
6527 done
6528IFS=$as_save_IFS
6529
6530fi
6531fi
6532ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6533if test -n "$ac_ct_RANLIB"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6535$as_echo "$ac_ct_RANLIB" >&6; }
6536else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538$as_echo "no" >&6; }
6539fi
6540
6541 if test "x$ac_ct_RANLIB" = x; then
6542 RANLIB=":"
6543 else
6544 case $cross_compiling:$ac_tool_warned in
6545yes:)
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548ac_tool_warned=yes ;;
6549esac
6550 RANLIB=$ac_ct_RANLIB
6551 fi
6552else
6553 RANLIB="$ac_cv_prog_RANLIB"
6554fi
6555
6556fi
6557
6558## Although we're running on an amd64 kernel, we're actually compiling for
6559## the x86 architecture. The user should probably have provided an
6560## explicit --build to `configure', but if everything else than the kernel
6561## is running in i386 mode, we can help them out.
6562if test "$machine" = "amdx86-64"; then
6563 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
1ef6de05 6564if test "x$ac_cv_have_decl_i386" = xyes; then :
067d23c9
KY
6565
6566fi
6567
6568 if test "$ac_cv_have_decl_i386" = "yes"; then
6569 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6570 machine=intel386
6571 machfile="m/${machine}.h"
6572 fi
6573fi
6574
6575# Extract the first word of "install-info", so it can be a program name with args.
6576set dummy install-info; ac_word=$2
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 6579if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6580 $as_echo_n "(cached) " >&6
6581else
6582 case $INSTALL_INFO in
6583 [\\/]* | ?:[\\/]*)
6584 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6585 ;;
6586 *)
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598done
6599 done
6600IFS=$as_save_IFS
6601
6602 ;;
6603esac
6604fi
6605INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6606if test -n "$INSTALL_INFO"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6608$as_echo "$INSTALL_INFO" >&6; }
6609else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611$as_echo "no" >&6; }
6612fi
6613
6614
6615# Extract the first word of "install-info", so it can be a program name with args.
6616set dummy install-info; ac_word=$2
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 6619if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6620 $as_echo_n "(cached) " >&6
6621else
6622 case $INSTALL_INFO in
6623 [\\/]* | ?:[\\/]*)
6624 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6625 ;;
6626 *)
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in /usr/sbin
6629do
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 break 2
6637 fi
6638done
6639 done
6640IFS=$as_save_IFS
6641
6642 ;;
6643esac
6644fi
6645INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6646if test -n "$INSTALL_INFO"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6648$as_echo "$INSTALL_INFO" >&6; }
6649else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651$as_echo "no" >&6; }
6652fi
6653
6654
6655# Extract the first word of "install-info", so it can be a program name with args.
6656set dummy install-info; ac_word=$2
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 6659if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6660 $as_echo_n "(cached) " >&6
6661else
6662 case $INSTALL_INFO in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6665 ;;
6666 *)
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in /sbin
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678done
6679 done
6680IFS=$as_save_IFS
6681
6682 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6683 ;;
6684esac
6685fi
6686INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6687if test -n "$INSTALL_INFO"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6689$as_echo "$INSTALL_INFO" >&6; }
6690else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692$as_echo "no" >&6; }
6693fi
6694
6695
6696# Extract the first word of "gzip", so it can be a program name with args.
6697set dummy gzip; ac_word=$2
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 6700if ${ac_cv_path_GZIP_PROG+:} false; then :
067d23c9
KY
6701 $as_echo_n "(cached) " >&6
6702else
6703 case $GZIP_PROG in
6704 [\\/]* | ?:[\\/]*)
6705 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6706 ;;
6707 *)
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719done
6720 done
6721IFS=$as_save_IFS
6722
6723 ;;
6724esac
6725fi
6726GZIP_PROG=$ac_cv_path_GZIP_PROG
6727if test -n "$GZIP_PROG"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6729$as_echo "$GZIP_PROG" >&6; }
6730else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732$as_echo "no" >&6; }
6733fi
6734
6735
6736
6737
6738## Need makeinfo >= 4.6 (?) to build the manuals.
6739# Extract the first word of "makeinfo", so it can be a program name with args.
6740set dummy makeinfo; ac_word=$2
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 6743if ${ac_cv_path_MAKEINFO+:} false; then :
067d23c9
KY
6744 $as_echo_n "(cached) " >&6
6745else
6746 case $MAKEINFO in
6747 [\\/]* | ?:[\\/]*)
6748 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6749 ;;
6750 *)
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762done
6763 done
6764IFS=$as_save_IFS
6765
6766 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6767 ;;
6768esac
6769fi
6770MAKEINFO=$ac_cv_path_MAKEINFO
6771if test -n "$MAKEINFO"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6773$as_echo "$MAKEINFO" >&6; }
6774else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776$as_echo "no" >&6; }
6777fi
6778
6779
6780if test "$MAKEINFO" != "no" && \
6781 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
6782 MAKEINFO=no
6783fi
6784
6785## Makeinfo is unusual. For a released Emacs, the manuals are
6786## pre-built, and not deleted by the normal clean rules. makeinfo is
6787## therefore in the category of "special tools" not normally required, which
6788## configure does not have to check for (eg autoconf itself).
6789## In a Bazaar checkout on the other hand, the manuals are not included.
6790## So makeinfo is a requirement to build from Bazaar, and configure
6791## should test for it as it does for any other build requirement.
6792## We use the presence of $srcdir/info/emacs to distinguish a release,
6793## with pre-built manuals, from a Bazaar checkout.
96f129d5
GM
6794HAVE_MAKEINFO=yes
6795
067d23c9 6796if test "$MAKEINFO" = "no"; then
96f129d5 6797 MAKEINFO=makeinfo
067d23c9 6798 if test "x${with_makeinfo}" = "xno"; then
96f129d5 6799 HAVE_MAKEINFO=no
067d23c9 6800 elif test ! -e $srcdir/info/emacs; then
1ef6de05 6801 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
067d23c9
KY
6802source tree does not seem to have pre-built manuals in the \`info' directory.
6803Either install a suitable version of makeinfo, or re-run configure
6804with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6805 fi
6806fi
6807
6808
96f129d5 6809
067d23c9
KY
6810if test x$GCC = xyes; then
6811 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6812 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6813else
6814 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6815 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6816fi
6817
6818
6819late_LDFLAGS=$LDFLAGS
6820if test x$GCC = xyes; then
6821 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6822else
6823 LDFLAGS="$LDFLAGS -znocombreloc"
6824fi
6825
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6827$as_echo_n "checking for -znocombreloc... " >&6; }
6828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h. */
6830
6831int
6832main ()
6833{
6834
6835 ;
6836 return 0;
6837}
6838_ACEOF
6839if ac_fn_c_try_link "$LINENO"; then :
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841$as_echo "yes" >&6; }
6842else
6843 LDFLAGS=$late_LDFLAGS
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846fi
6847rm -f core conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
6849
6850
6851# The value of CPP is a quoted variable reference, so we need to do this
6852# to get its actual value...
6853CPP=`eval "echo $CPP"`
6854
6855
125c3718 6856test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
067d23c9 6857case "$opsys" in
125c3718
PE
6858 your-opsys-here) CANNOT_DUMP=yes ;;
6859esac
6860
6861test "$CANNOT_DUMP" = "yes" && \
067d23c9
KY
6862
6863$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6864
125c3718 6865
067d23c9
KY
6866
6867
6868
6869UNEXEC_OBJ=unexelf.o
6870case "$opsys" in
6871 # MSDOS uses unexcoff.o
6872 # MSWindows uses unexw32.o
6873 aix4-2)
6874 UNEXEC_OBJ=unexaix.o
6875 ;;
6876 cygwin)
6877 UNEXEC_OBJ=unexcw.o
6878 ;;
6879 darwin)
6880 UNEXEC_OBJ=unexmacosx.o
6881 ;;
6882 hpux10-20 | hpux11)
6883 UNEXEC_OBJ=unexhp9k800.o
6884 ;;
6885 sol2-10)
6886 # Use the Solaris dldump() function, called from unexsol.c, to dump
6887 # emacs, instead of the generic ELF dump code found in unexelf.c.
6888 # The resulting binary has a complete symbol table, and is better
6889 # for debugging and other observability tools (debuggers, pstack, etc).
6890 #
6891 # If you encounter a problem using dldump(), please consider sending
6892 # a message to the OpenSolaris tools-linking mailing list:
6893 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6894 #
6895 # It is likely that dldump() works with older Solaris too, but this has
6896 # not been tested, so for now this change is for Solaris 10 or newer.
6897 UNEXEC_OBJ=unexsol.o
6898 ;;
6899esac
6900
6901LD_SWITCH_SYSTEM=
6902case "$opsys" in
6903 freebsd)
6904 ## Let `ld' find image libs and similar things in /usr/local/lib.
6905 ## The system compiler, GCC, has apparently been modified to not
6906 ## look there, contrary to what a stock GCC would do.
6907 LD_SWITCH_SYSTEM=-L/usr/local/lib
6908 ;;
6909
6910 gnu-linux)
6911 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
d6a003a8 6912 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
067d23c9
KY
6913 ;;
6914
6915 netbsd)
6916 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6917 ;;
6918
6919 openbsd)
6920 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6921 ## otherwise Emacs dumps core on elf systems.
6922 LD_SWITCH_SYSTEM="-Z"
6923 ;;
6924esac
6925
6926
6927ac_link="$ac_link $LD_SWITCH_SYSTEM"
6928
6929## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6930## which has not been defined yet. When this was handled with cpp,
6931## it was expanded to null when configure sourced the s/*.h file.
6932## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6933## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6934## (or somesuch), but because it is supposed to go at the _front_
6935## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6936## Compare with the gnu-linux case below, which added to the end
6937## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6938## LD_SWITCH_SYSTEM_TEMACS.
6939case "$opsys" in
6940 netbsd|openbsd)
6941 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6942 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6943esac
6944
6945
6946C_SWITCH_MACHINE=
6947if test "$machine" = "alpha"; then
6948 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
1ef6de05 6949if test "x$ac_cv_have_decl___ELF__" = xyes; then :
067d23c9
KY
6950
6951fi
6952
6953 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6954 ## With ELF, make sure that all common symbols get allocated to in the
6955 ## data section. Otherwise, the dump of temacs may miss variables in
6956 ## the shared library that have been initialized. For example, with
6957 ## GNU libc, __malloc_initialized would normally be resolved to the
6958 ## shared library's .bss section, which is fatal.
6959 if test "x$GCC" = "xyes"; then
6960 C_SWITCH_MACHINE="-fno-common"
6961 else
1ef6de05 6962 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
067d23c9
KY
6963 fi
6964 else
6965 UNEXEC_OBJ=unexalpha.o
6966 fi
6967fi
6968
6969
6970
6971
6972C_SWITCH_SYSTEM=
6973## Some programs in src produce warnings saying certain subprograms
6974## are too complex and need a MAXMEM value greater than 2000 for
6975## additional optimization. --nils@exp-math.uni-essen.de
6976test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6977 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6978## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6979## It is redundant in glibc2, since we define _GNU_SOURCE.
6980
6981
6982
6983LIBS_SYSTEM=
6984case "$opsys" in
6985 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6986 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6987
6988 freebsd) LIBS_SYSTEM="-lutil" ;;
6989
6990 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6991
1f5d53eb 6992 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
067d23c9
KY
6993
6994 ## Motif needs -lgen.
6995 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6996esac
6997
6998
6999
7000### Make sure subsequent tests use flags consistent with the build flags.
7001
7002if test x"${OVERRIDE_CPPFLAGS}" != x; then
7003 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7004else
7005 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7006fi
7007
067d23c9
KY
7008# Check whether --enable-largefile was given.
7009if test "${enable_largefile+set}" = set; then :
7010 enableval=$enable_largefile;
7011fi
7012
7013if test "$enable_largefile" != no; then
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7016$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
1ef6de05 7017if ${ac_cv_sys_largefile_CC+:} false; then :
067d23c9
KY
7018 $as_echo_n "(cached) " >&6
7019else
7020 ac_cv_sys_largefile_CC=no
7021 if test "$GCC" != yes; then
7022 ac_save_CC=$CC
7023 while :; do
7024 # IRIX 6.2 and later do not support large files by default,
7025 # so use the C compiler's -n32 option if that helps.
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027/* end confdefs.h. */
7028#include <sys/types.h>
7029 /* Check that off_t can represent 2**63 - 1 correctly.
7030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7031 since some C++ compilers masquerading as C compilers
7032 incorrectly reject 9223372036854775807. */
7033#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7035 && LARGE_OFF_T % 2147483647 == 1)
7036 ? 1 : -1];
7037int
7038main ()
7039{
7040
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045 if ac_fn_c_try_compile "$LINENO"; then :
7046 break
7047fi
7048rm -f core conftest.err conftest.$ac_objext
7049 CC="$CC -n32"
7050 if ac_fn_c_try_compile "$LINENO"; then :
7051 ac_cv_sys_largefile_CC=' -n32'; break
7052fi
7053rm -f core conftest.err conftest.$ac_objext
7054 break
7055 done
7056 CC=$ac_save_CC
7057 rm -f conftest.$ac_ext
7058 fi
7059fi
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7061$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7062 if test "$ac_cv_sys_largefile_CC" != no; then
7063 CC=$CC$ac_cv_sys_largefile_CC
7064 fi
7065
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7067$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
1ef6de05 7068if ${ac_cv_sys_file_offset_bits+:} false; then :
067d23c9
KY
7069 $as_echo_n "(cached) " >&6
7070else
7071 while :; do
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h. */
7074#include <sys/types.h>
7075 /* Check that off_t can represent 2**63 - 1 correctly.
7076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7077 since some C++ compilers masquerading as C compilers
7078 incorrectly reject 9223372036854775807. */
7079#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7081 && LARGE_OFF_T % 2147483647 == 1)
7082 ? 1 : -1];
7083int
7084main ()
7085{
7086
7087 ;
7088 return 0;
7089}
7090_ACEOF
7091if ac_fn_c_try_compile "$LINENO"; then :
7092 ac_cv_sys_file_offset_bits=no; break
7093fi
7094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096/* end confdefs.h. */
7097#define _FILE_OFFSET_BITS 64
7098#include <sys/types.h>
7099 /* Check that off_t can represent 2**63 - 1 correctly.
7100 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7101 since some C++ compilers masquerading as C compilers
7102 incorrectly reject 9223372036854775807. */
7103#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7104 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7105 && LARGE_OFF_T % 2147483647 == 1)
7106 ? 1 : -1];
7107int
7108main ()
7109{
7110
7111 ;
7112 return 0;
7113}
7114_ACEOF
7115if ac_fn_c_try_compile "$LINENO"; then :
7116 ac_cv_sys_file_offset_bits=64; break
7117fi
7118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 ac_cv_sys_file_offset_bits=unknown
7120 break
7121done
7122fi
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7124$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7125case $ac_cv_sys_file_offset_bits in #(
7126 no | unknown) ;;
7127 *)
7128cat >>confdefs.h <<_ACEOF
7129#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7130_ACEOF
7131;;
7132esac
7133rm -rf conftest*
7134 if test $ac_cv_sys_file_offset_bits = unknown; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7136$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
1ef6de05 7137if ${ac_cv_sys_large_files+:} false; then :
067d23c9
KY
7138 $as_echo_n "(cached) " >&6
7139else
7140 while :; do
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h. */
7143#include <sys/types.h>
7144 /* Check that off_t can represent 2**63 - 1 correctly.
7145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7146 since some C++ compilers masquerading as C compilers
7147 incorrectly reject 9223372036854775807. */
7148#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7150 && LARGE_OFF_T % 2147483647 == 1)
7151 ? 1 : -1];
7152int
7153main ()
7154{
7155
7156 ;
7157 return 0;
7158}
7159_ACEOF
7160if ac_fn_c_try_compile "$LINENO"; then :
7161 ac_cv_sys_large_files=no; break
7162fi
7163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165/* end confdefs.h. */
7166#define _LARGE_FILES 1
7167#include <sys/types.h>
7168 /* Check that off_t can represent 2**63 - 1 correctly.
7169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7170 since some C++ compilers masquerading as C compilers
7171 incorrectly reject 9223372036854775807. */
7172#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7174 && LARGE_OFF_T % 2147483647 == 1)
7175 ? 1 : -1];
7176int
7177main ()
7178{
7179
7180 ;
7181 return 0;
7182}
7183_ACEOF
7184if ac_fn_c_try_compile "$LINENO"; then :
7185 ac_cv_sys_large_files=1; break
7186fi
7187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188 ac_cv_sys_large_files=unknown
7189 break
7190done
7191fi
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7193$as_echo "$ac_cv_sys_large_files" >&6; }
7194case $ac_cv_sys_large_files in #(
7195 no | unknown) ;;
7196 *)
7197cat >>confdefs.h <<_ACEOF
7198#define _LARGE_FILES $ac_cv_sys_large_files
7199_ACEOF
7200;;
7201esac
7202rm -rf conftest*
7203 fi
7204fi
7205
7206
7207
7208## If user specified a crt-dir, use that unconditionally.
7209if test "X$CRT_DIR" = "X"; then
7210
7211 case "$canonical" in
7212 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7213 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7214 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7215 ## For anything else (eg /usr/lib32), it is up the user to specify
7216 ## the location (bug#5655).
7217 ## Test for crtn.o, not just the directory, because sometimes the
7218 ## directory exists but does not have the relevant files (bug#1287).
7219 ## FIXME better to test for binary compatibility somehow.
7220 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7221 ;;
7222
7223 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7224 esac
7225
7226 case "$opsys" in
7227 hpux10-20) CRT_DIR=/lib ;;
7228 esac
7229
7230 ## Default is /usr/lib.
7231 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7232
7233else
7234
7235 ## Some platforms don't use any of these files, so it is not
7236 ## appropriate to put this test outside the if block.
7237 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
1ef6de05 7238 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
067d23c9
KY
7239
7240fi
7241
7242
7243
7244LIB_MATH=-lm
7245LIB_STANDARD=
7246START_FILES=
7247
7248case $opsys in
7249 cygwin )
7250 LIB_MATH=
7251 START_FILES='pre-crt0.o'
7252 ;;
7253 darwin )
7254 ## Adding -lm confuses the dynamic linker, so omit it.
7255 LIB_MATH=
7256 START_FILES='pre-crt0.o'
7257 ;;
7258 freebsd )
7259 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7260 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7261 ;;
7262 gnu-linux | gnu-kfreebsd )
7263 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7264 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7265 ;;
7266 hpux10-20 | hpux11 )
7267 LIB_STANDARD=-lc
7268 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7269 ;;
7270 netbsd | openbsd )
7271 if test -f $CRT_DIR/crti.o; then
7272 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7273 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7274 else
7275 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7276 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7277 fi
7278 ;;
7279esac
7280
7281
7282
7283
7284
7285
7286
7287if test "${with_sound}" != "no"; then
7288 # Sound support for GNU/Linux and the free BSDs.
7289 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7290do :
7291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1ef6de05 7293if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7294 cat >>confdefs.h <<_ACEOF
7295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7296_ACEOF
7297 have_sound_header=yes
7298fi
7299
7300done
7301
7302 # Emulation library used on NetBSD.
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7304$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
1ef6de05 7305if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
067d23c9
KY
7306 $as_echo_n "(cached) " >&6
7307else
7308 ac_check_lib_save_LIBS=$LIBS
7309LIBS="-lossaudio $LIBS"
7310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h. */
7312
7313/* Override any GCC internal prototype to avoid an error.
7314 Use char because int might match the return type of a GCC
7315 builtin and then its argument prototype would still apply. */
7316#ifdef __cplusplus
7317extern "C"
7318#endif
7319char _oss_ioctl ();
7320int
7321main ()
7322{
7323return _oss_ioctl ();
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328if ac_fn_c_try_link "$LINENO"; then :
7329 ac_cv_lib_ossaudio__oss_ioctl=yes
7330else
7331 ac_cv_lib_ossaudio__oss_ioctl=no
7332fi
7333rm -f core conftest.err conftest.$ac_objext \
7334 conftest$ac_exeext conftest.$ac_ext
7335LIBS=$ac_check_lib_save_LIBS
7336fi
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7338$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
1ef6de05 7339if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
067d23c9
KY
7340 LIBSOUND=-lossaudio
7341else
7342 LIBSOUND=
7343fi
7344
7345
7346
7347 ALSA_REQUIRED=1.0.0
7348 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7349
7350 succeeded=no
7351
7352 # Extract the first word of "pkg-config", so it can be a program name with args.
7353set dummy pkg-config; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 7356if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
7357 $as_echo_n "(cached) " >&6
7358else
7359 case $PKG_CONFIG in
7360 [\\/]* | ?:[\\/]*)
7361 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7362 ;;
7363 *)
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375done
7376 done
7377IFS=$as_save_IFS
7378
7379 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7380 ;;
7381esac
7382fi
7383PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7384if test -n "$PKG_CONFIG"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7386$as_echo "$PKG_CONFIG" >&6; }
7387else
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389$as_echo "no" >&6; }
7390fi
7391
7392
7393
7394 if test "$PKG_CONFIG" = "no" ; then
7395 HAVE_ALSA=no
7396 else
7397 PKG_CONFIG_MIN_VERSION=0.9.0
7398 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7400$as_echo_n "checking for $ALSA_MODULES... " >&6; }
7401
7402 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7404$as_echo "yes" >&6; }
7405 succeeded=yes
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7408$as_echo_n "checking ALSA_CFLAGS... " >&6; }
7409 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7411$as_echo "$ALSA_CFLAGS" >&6; }
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7414$as_echo_n "checking ALSA_LIBS... " >&6; }
7415 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7417$as_echo "$ALSA_LIBS" >&6; }
7418 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
7421 ALSA_CFLAGS=""
7422 ALSA_LIBS=""
7423 ## If we have a custom action on failure, don't print errors, but
7424 ## do set a variable so people can do so.
7425 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7426
7427 fi
7428
7429
7430
7431 else
7432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7434 fi
7435 fi
7436
7437 if test $succeeded = yes; then
7438 HAVE_ALSA=yes
7439 else
7440 HAVE_ALSA=no
7441 fi
7442
7443 if test $HAVE_ALSA = yes; then
7444 SAVE_CFLAGS="$CFLAGS"
7445 SAVE_LDFLAGS="$LDFLAGS"
7446 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7447 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h. */
7450#include <asoundlib.h>
7451int
7452main ()
7453{
7454snd_lib_error_set_handler (0);
7455 ;
7456 return 0;
7457}
7458_ACEOF
7459if ac_fn_c_try_compile "$LINENO"; then :
7460 emacs_alsa_normal=yes
7461else
7462 emacs_alsa_normal=no
7463fi
7464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 if test "$emacs_alsa_normal" != yes; then
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467/* end confdefs.h. */
7468#include <alsa/asoundlib.h>
7469int
7470main ()
7471{
7472snd_lib_error_set_handler (0);
7473 ;
7474 return 0;
7475}
7476_ACEOF
7477if ac_fn_c_try_compile "$LINENO"; then :
7478 emacs_alsa_subdir=yes
7479else
7480 emacs_alsa_subdir=no
7481fi
7482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 if test "$emacs_alsa_subdir" != yes; then
1ef6de05 7484 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
067d23c9
KY
7485 fi
7486 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7487 fi
7488
7489 CFLAGS="$SAVE_CFLAGS"
7490 LDFLAGS="$SAVE_LDFLAGS"
7491 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7492 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7493
7494$as_echo "#define HAVE_ALSA 1" >>confdefs.h
7495
7496 fi
7497
7498 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7499 case "$opsys" in
7500 gnu-linux|freebsd|netbsd)
7501
7502$as_echo "#define HAVE_SOUND 1" >>confdefs.h
7503
7504 ;;
7505 esac
7506 fi
7507
7508
7509fi
7510
7511for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7512 linux/version.h sys/systeminfo.h limits.h \
7513 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7514 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7515 sys/utsname.h pwd.h utmp.h dirent.h util.h
7516do :
7517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7518ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1ef6de05 7519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7520 cat >>confdefs.h <<_ACEOF
7521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7522_ACEOF
7523
7524fi
7525
7526done
7527
7528
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7530$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h. */
7533#include <sys/personality.h>
7534int
7535main ()
7536{
7537personality (PER_LINUX32)
7538 ;
7539 return 0;
7540}
7541_ACEOF
7542if ac_fn_c_try_compile "$LINENO"; then :
7543 emacs_cv_personality_linux32=yes
7544else
7545 emacs_cv_personality_linux32=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7549$as_echo "$emacs_cv_personality_linux32" >&6; }
7550
7551if test $emacs_cv_personality_linux32 = yes; then
7552
7553$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7554
7555fi
7556
7557for ac_header in term.h
7558do :
7559 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
1ef6de05 7560if test "x$ac_cv_header_term_h" = xyes; then :
067d23c9
KY
7561 cat >>confdefs.h <<_ACEOF
7562#define HAVE_TERM_H 1
7563_ACEOF
7564
7565fi
7566
7567done
7568
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7570$as_echo_n "checking for ANSI C header files... " >&6; }
1ef6de05 7571if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
7572 $as_echo_n "(cached) " >&6
7573else
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h. */
7576#include <stdlib.h>
7577#include <stdarg.h>
7578#include <string.h>
7579#include <float.h>
7580
7581int
7582main ()
7583{
7584
7585 ;
7586 return 0;
7587}
7588_ACEOF
7589if ac_fn_c_try_compile "$LINENO"; then :
7590 ac_cv_header_stdc=yes
7591else
7592 ac_cv_header_stdc=no
7593fi
7594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595
7596if test $ac_cv_header_stdc = yes; then
7597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h. */
7600#include <string.h>
7601
7602_ACEOF
7603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7604 $EGREP "memchr" >/dev/null 2>&1; then :
7605
7606else
7607 ac_cv_header_stdc=no
7608fi
7609rm -f conftest*
7610
7611fi
7612
7613if test $ac_cv_header_stdc = yes; then
7614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616/* end confdefs.h. */
7617#include <stdlib.h>
7618
7619_ACEOF
7620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621 $EGREP "free" >/dev/null 2>&1; then :
7622
7623else
7624 ac_cv_header_stdc=no
7625fi
7626rm -f conftest*
7627
7628fi
7629
7630if test $ac_cv_header_stdc = yes; then
7631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7632 if test "$cross_compiling" = yes; then :
7633 :
7634else
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h. */
7637#include <ctype.h>
7638#include <stdlib.h>
7639#if ((' ' & 0x0FF) == 0x020)
7640# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7641# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7642#else
7643# define ISLOWER(c) \
7644 (('a' <= (c) && (c) <= 'i') \
7645 || ('j' <= (c) && (c) <= 'r') \
7646 || ('s' <= (c) && (c) <= 'z'))
7647# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7648#endif
7649
7650#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7651int
7652main ()
7653{
7654 int i;
7655 for (i = 0; i < 256; i++)
7656 if (XOR (islower (i), ISLOWER (i))
7657 || toupper (i) != TOUPPER (i))
7658 return 2;
7659 return 0;
7660}
7661_ACEOF
7662if ac_fn_c_try_run "$LINENO"; then :
7663
7664else
7665 ac_cv_header_stdc=no
7666fi
7667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7668 conftest.$ac_objext conftest.beam conftest.$ac_ext
7669fi
7670
7671fi
7672fi
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7674$as_echo "$ac_cv_header_stdc" >&6; }
7675if test $ac_cv_header_stdc = yes; then
7676
7677$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7678
7679fi
7680
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7682$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1ef6de05 7683if ${ac_cv_header_time+:} false; then :
067d23c9
KY
7684 $as_echo_n "(cached) " >&6
7685else
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h. */
7688#include <sys/types.h>
7689#include <sys/time.h>
7690#include <time.h>
7691
7692int
7693main ()
7694{
7695if ((struct tm *) 0)
7696return 0;
7697 ;
7698 return 0;
7699}
7700_ACEOF
7701if ac_fn_c_try_compile "$LINENO"; then :
7702 ac_cv_header_time=yes
7703else
7704 ac_cv_header_time=no
7705fi
7706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7709$as_echo "$ac_cv_header_time" >&6; }
7710if test $ac_cv_header_time = yes; then
7711
7712$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7713
7714fi
7715
7716ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
1ef6de05 7717if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
067d23c9
KY
7718 ac_have_decl=1
7719else
7720 ac_have_decl=0
7721fi
7722
7723cat >>confdefs.h <<_ACEOF
7724#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7725_ACEOF
7726
7727if test $ac_cv_have_decl_sys_siglist != yes; then
7728 # For Tru64, at least:
7729 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
1ef6de05 7730if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
067d23c9
KY
7731 ac_have_decl=1
7732else
7733 ac_have_decl=0
7734fi
7735
7736cat >>confdefs.h <<_ACEOF
7737#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7738_ACEOF
7739
7740 if test $ac_cv_have_decl___sys_siglist = yes; then
7741
7742$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7743
7744 fi
7745fi
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7747$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1ef6de05 7748if ${ac_cv_header_sys_wait_h+:} false; then :
067d23c9
KY
7749 $as_echo_n "(cached) " >&6
7750else
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h. */
7753#include <sys/types.h>
7754#include <sys/wait.h>
7755#ifndef WEXITSTATUS
7756# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7757#endif
7758#ifndef WIFEXITED
7759# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7760#endif
7761
7762int
7763main ()
7764{
7765 int s;
7766 wait (&s);
7767 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7768 ;
7769 return 0;
7770}
7771_ACEOF
7772if ac_fn_c_try_compile "$LINENO"; then :
7773 ac_cv_header_sys_wait_h=yes
7774else
7775 ac_cv_header_sys_wait_h=no
7776fi
7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778fi
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7780$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7781if test $ac_cv_header_sys_wait_h = yes; then
7782
7783$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7784
7785fi
7786
7787
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7789$as_echo_n "checking for struct utimbuf... " >&6; }
1ef6de05 7790if ${emacs_cv_struct_utimbuf+:} false; then :
067d23c9
KY
7791 $as_echo_n "(cached) " >&6
7792else
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h. */
7795#ifdef TIME_WITH_SYS_TIME
7796#include <sys/time.h>
7797#include <time.h>
7798#else
7799#ifdef HAVE_SYS_TIME_H
7800#include <sys/time.h>
7801#else
7802#include <time.h>
7803#endif
7804#endif
7805#ifdef HAVE_UTIME_H
7806#include <utime.h>
7807#endif
7808int
7809main ()
7810{
7811static struct utimbuf x; x.actime = x.modtime;
7812 ;
7813 return 0;
7814}
7815_ACEOF
7816if ac_fn_c_try_compile "$LINENO"; then :
7817 emacs_cv_struct_utimbuf=yes
7818else
7819 emacs_cv_struct_utimbuf=no
7820fi
7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7824$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7825if test $emacs_cv_struct_utimbuf = yes; then
7826
7827$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7828
7829fi
7830
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7832$as_echo_n "checking return type of signal handlers... " >&6; }
1ef6de05 7833if ${ac_cv_type_signal+:} false; then :
067d23c9
KY
7834 $as_echo_n "(cached) " >&6
7835else
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h. */
7838#include <sys/types.h>
7839#include <signal.h>
7840
7841int
7842main ()
7843{
7844return *(signal (0, 0)) (0) == 1;
7845 ;
7846 return 0;
7847}
7848_ACEOF
7849if ac_fn_c_try_compile "$LINENO"; then :
7850 ac_cv_type_signal=int
7851else
7852 ac_cv_type_signal=void
7853fi
7854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855fi
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7857$as_echo "$ac_cv_type_signal" >&6; }
7858
7859cat >>confdefs.h <<_ACEOF
7860#define RETSIGTYPE $ac_cv_type_signal
7861_ACEOF
7862
7863
7864
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7866$as_echo_n "checking for speed_t... " >&6; }
1ef6de05 7867if ${emacs_cv_speed_t+:} false; then :
067d23c9
KY
7868 $as_echo_n "(cached) " >&6
7869else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h. */
7872#include <termios.h>
7873int
7874main ()
7875{
7876speed_t x = 1;
7877 ;
7878 return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_compile "$LINENO"; then :
7882 emacs_cv_speed_t=yes
7883else
7884 emacs_cv_speed_t=no
7885fi
7886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887fi
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7889$as_echo "$emacs_cv_speed_t" >&6; }
7890if test $emacs_cv_speed_t = yes; then
7891
7892$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7893
7894fi
7895
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7897$as_echo_n "checking for struct timeval... " >&6; }
1ef6de05 7898if ${emacs_cv_struct_timeval+:} false; then :
067d23c9
KY
7899 $as_echo_n "(cached) " >&6
7900else
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h. */
7903#ifdef TIME_WITH_SYS_TIME
7904#include <sys/time.h>
7905#include <time.h>
7906#else
7907#ifdef HAVE_SYS_TIME_H
7908#include <sys/time.h>
7909#else
7910#include <time.h>
7911#endif
7912#endif
7913int
7914main ()
7915{
7916static struct timeval x; x.tv_sec = x.tv_usec;
7917 ;
7918 return 0;
7919}
7920_ACEOF
7921if ac_fn_c_try_compile "$LINENO"; then :
7922 emacs_cv_struct_timeval=yes
7923else
7924 emacs_cv_struct_timeval=no
7925fi
7926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927fi
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7929$as_echo "$emacs_cv_struct_timeval" >&6; }
7930HAVE_TIMEVAL=$emacs_cv_struct_timeval
7931if test $emacs_cv_struct_timeval = yes; then
7932
7933$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7934
7935fi
7936
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7938$as_echo_n "checking for struct exception... " >&6; }
1ef6de05 7939if ${emacs_cv_struct_exception+:} false; then :
067d23c9
KY
7940 $as_echo_n "(cached) " >&6
7941else
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h. */
7944#include <math.h>
7945int
7946main ()
7947{
7948static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7949 ;
7950 return 0;
7951}
7952_ACEOF
7953if ac_fn_c_try_compile "$LINENO"; then :
7954 emacs_cv_struct_exception=yes
7955else
7956 emacs_cv_struct_exception=no
7957fi
7958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959fi
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7961$as_echo "$emacs_cv_struct_exception" >&6; }
7962HAVE_EXCEPTION=$emacs_cv_struct_exception
7963if test $emacs_cv_struct_exception != yes; then
7964
7965$as_echo "#define NO_MATHERR 1" >>confdefs.h
7966
7967fi
7968
7969for ac_header in sys/socket.h
7970do :
7971 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
1ef6de05 7972if test "x$ac_cv_header_sys_socket_h" = xyes; then :
067d23c9
KY
7973 cat >>confdefs.h <<_ACEOF
7974#define HAVE_SYS_SOCKET_H 1
7975_ACEOF
7976
7977fi
7978
7979done
7980
7981for ac_header in net/if.h
7982do :
7983 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7984#if HAVE_SYS_SOCKET_H
7985#include <sys/socket.h>
7986#endif
7987"
1ef6de05 7988if test "x$ac_cv_header_net_if_h" = xyes; then :
067d23c9
KY
7989 cat >>confdefs.h <<_ACEOF
7990#define HAVE_NET_IF_H 1
7991_ACEOF
7992
7993fi
7994
7995done
7996
7997
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7999$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1ef6de05 8000if ${ac_cv_struct_tm+:} false; then :
067d23c9
KY
8001 $as_echo_n "(cached) " >&6
8002else
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h. */
8005#include <sys/types.h>
8006#include <time.h>
8007
8008int
8009main ()
8010{
8011struct tm tm;
8012 int *p = &tm.tm_sec;
8013 return !p;
8014 ;
8015 return 0;
8016}
8017_ACEOF
8018if ac_fn_c_try_compile "$LINENO"; then :
8019 ac_cv_struct_tm=time.h
8020else
8021 ac_cv_struct_tm=sys/time.h
8022fi
8023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8026$as_echo "$ac_cv_struct_tm" >&6; }
8027if test $ac_cv_struct_tm = sys/time.h; then
8028
8029$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8030
8031fi
8032
8033ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8034#include <$ac_cv_struct_tm>
8035
8036"
1ef6de05 8037if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
067d23c9
KY
8038
8039cat >>confdefs.h <<_ACEOF
8040#define HAVE_STRUCT_TM_TM_ZONE 1
8041_ACEOF
8042
8043
8044fi
8045
8046if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8047
8048$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8049
8050else
8051 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8052"
1ef6de05 8053if test "x$ac_cv_have_decl_tzname" = xyes; then :
067d23c9
KY
8054 ac_have_decl=1
8055else
8056 ac_have_decl=0
8057fi
8058
8059cat >>confdefs.h <<_ACEOF
8060#define HAVE_DECL_TZNAME $ac_have_decl
8061_ACEOF
8062
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8064$as_echo_n "checking for tzname... " >&6; }
1ef6de05 8065if ${ac_cv_var_tzname+:} false; then :
067d23c9
KY
8066 $as_echo_n "(cached) " >&6
8067else
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069/* end confdefs.h. */
8070#include <time.h>
8071#if !HAVE_DECL_TZNAME
8072extern char *tzname[];
8073#endif
8074
8075int
8076main ()
8077{
8078return tzname[0][0];
8079 ;
8080 return 0;
8081}
8082_ACEOF
8083if ac_fn_c_try_link "$LINENO"; then :
8084 ac_cv_var_tzname=yes
8085else
8086 ac_cv_var_tzname=no
8087fi
8088rm -f core conftest.err conftest.$ac_objext \
8089 conftest$ac_exeext conftest.$ac_ext
8090fi
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8092$as_echo "$ac_cv_var_tzname" >&6; }
8093 if test $ac_cv_var_tzname = yes; then
8094
8095$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8096
8097 fi
8098fi
8099
8100ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8101"
1ef6de05 8102if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
067d23c9
KY
8103
8104$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8105
8106fi
8107
8108ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8109#if HAVE_SYS_SOCKET_H
8110#include <sys/socket.h>
8111#endif
8112#if HAVE_NET_IF_H
8113#include <net/if.h>
8114#endif
8115"
1ef6de05 8116if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
067d23c9
KY
8117
8118cat >>confdefs.h <<_ACEOF
8119#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8120_ACEOF
8121
8122
8123fi
8124ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8125#if HAVE_SYS_SOCKET_H
8126#include <sys/socket.h>
8127#endif
8128#if HAVE_NET_IF_H
8129#include <net/if.h>
8130#endif
8131"
1ef6de05 8132if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
067d23c9
KY
8133
8134cat >>confdefs.h <<_ACEOF
8135#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8136_ACEOF
8137
8138
8139fi
8140ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8141#if HAVE_SYS_SOCKET_H
8142#include <sys/socket.h>
8143#endif
8144#if HAVE_NET_IF_H
8145#include <net/if.h>
8146#endif
8147"
1ef6de05 8148if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
067d23c9
KY
8149
8150cat >>confdefs.h <<_ACEOF
8151#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8152_ACEOF
8153
8154
8155fi
8156ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8157#if HAVE_SYS_SOCKET_H
8158#include <sys/socket.h>
8159#endif
8160#if HAVE_NET_IF_H
8161#include <net/if.h>
8162#endif
8163"
1ef6de05 8164if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
067d23c9
KY
8165
8166cat >>confdefs.h <<_ACEOF
8167#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8168_ACEOF
8169
8170
8171fi
8172ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8173#if HAVE_SYS_SOCKET_H
8174#include <sys/socket.h>
8175#endif
8176#if HAVE_NET_IF_H
8177#include <net/if.h>
8178#endif
8179"
1ef6de05 8180if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
067d23c9
KY
8181
8182cat >>confdefs.h <<_ACEOF
8183#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8184_ACEOF
8185
8186
8187fi
8188
8189
8190
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8192$as_echo_n "checking for function prototypes... " >&6; }
8193if test "$ac_cv_prog_cc_c89" != no; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8195$as_echo "yes" >&6; }
8196
8197$as_echo "#define PROTOTYPES 1" >>confdefs.h
8198
8199
8200$as_echo "#define __PROTOTYPES 1" >>confdefs.h
8201
8202else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
8205fi
8206
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8208$as_echo_n "checking for working volatile... " >&6; }
1ef6de05 8209if ${ac_cv_c_volatile+:} false; then :
067d23c9
KY
8210 $as_echo_n "(cached) " >&6
8211else
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213/* end confdefs.h. */
8214
8215int
8216main ()
8217{
8218
8219volatile int x;
8220int * volatile y = (int *) 0;
8221return !x && !y;
8222 ;
8223 return 0;
8224}
8225_ACEOF
8226if ac_fn_c_try_compile "$LINENO"; then :
8227 ac_cv_c_volatile=yes
8228else
8229 ac_cv_c_volatile=no
8230fi
8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8234$as_echo "$ac_cv_c_volatile" >&6; }
8235if test $ac_cv_c_volatile = no; then
8236
8237$as_echo "#define volatile /**/" >>confdefs.h
8238
8239fi
8240
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8242$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1ef6de05 8243if ${ac_cv_c_const+:} false; then :
067d23c9
KY
8244 $as_echo_n "(cached) " >&6
8245else
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h. */
8248
8249int
8250main ()
8251{
8252/* FIXME: Include the comments suggested by Paul. */
8253#ifndef __cplusplus
8254 /* Ultrix mips cc rejects this. */
8255 typedef int charset[2];
8256 const charset cs;
8257 /* SunOS 4.1.1 cc rejects this. */
8258 char const *const *pcpcc;
8259 char **ppc;
8260 /* NEC SVR4.0.2 mips cc rejects this. */
8261 struct point {int x, y;};
8262 static struct point const zero = {0,0};
8263 /* AIX XL C 1.02.0.0 rejects this.
8264 It does not let you subtract one const X* pointer from another in
8265 an arm of an if-expression whose if-part is not a constant
8266 expression */
8267 const char *g = "string";
8268 pcpcc = &g + (g ? g-g : 0);
8269 /* HPUX 7.0 cc rejects these. */
8270 ++pcpcc;
8271 ppc = (char**) pcpcc;
8272 pcpcc = (char const *const *) ppc;
8273 { /* SCO 3.2v4 cc rejects this. */
8274 char *t;
8275 char const *s = 0 ? (char *) 0 : (char const *) 0;
8276
8277 *t++ = 0;
8278 if (s) return 0;
8279 }
8280 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8281 int x[] = {25, 17};
8282 const int *foo = &x[0];
8283 ++foo;
8284 }
8285 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8286 typedef const int *iptr;
8287 iptr p = 0;
8288 ++p;
8289 }
8290 { /* AIX XL C 1.02.0.0 rejects this saying
8291 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8292 struct s { int j; const int *ap[3]; };
8293 struct s *b; b->j = 5;
8294 }
8295 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8296 const int foo = 10;
8297 if (!foo) return 0;
8298 }
8299 return !cs[0] && !zero.x;
8300#endif
8301
8302 ;
8303 return 0;
8304}
8305_ACEOF
8306if ac_fn_c_try_compile "$LINENO"; then :
8307 ac_cv_c_const=yes
8308else
8309 ac_cv_c_const=no
8310fi
8311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312fi
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8314$as_echo "$ac_cv_c_const" >&6; }
8315if test $ac_cv_c_const = no; then
8316
8317$as_echo "#define const /**/" >>confdefs.h
8318
8319fi
8320
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8322$as_echo_n "checking for void * support... " >&6; }
1ef6de05 8323if ${emacs_cv_void_star+:} false; then :
067d23c9
KY
8324 $as_echo_n "(cached) " >&6
8325else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h. */
8328
8329int
8330main ()
8331{
8332void * foo;
8333 ;
8334 return 0;
8335}
8336_ACEOF
8337if ac_fn_c_try_compile "$LINENO"; then :
8338 emacs_cv_void_star=yes
8339else
8340 emacs_cv_void_star=no
8341fi
8342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343fi
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8345$as_echo "$emacs_cv_void_star" >&6; }
8346if test $emacs_cv_void_star = yes; then
8347 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8348
8349else
8350 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8351
8352fi
8353
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8355$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
1ef6de05 8356if ${ac_cv_c_bigendian+:} false; then :
067d23c9
KY
8357 $as_echo_n "(cached) " >&6
8358else
8359 ac_cv_c_bigendian=unknown
8360 # See if we're dealing with a universal compiler.
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h. */
8363#ifndef __APPLE_CC__
8364 not a universal capable compiler
8365 #endif
8366 typedef int dummy;
8367
8368_ACEOF
8369if ac_fn_c_try_compile "$LINENO"; then :
8370
8371 # Check for potential -arch flags. It is not universal unless
8372 # there are at least two -arch flags with different values.
8373 ac_arch=
8374 ac_prev=
8375 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8376 if test -n "$ac_prev"; then
8377 case $ac_word in
8378 i?86 | x86_64 | ppc | ppc64)
8379 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8380 ac_arch=$ac_word
8381 else
8382 ac_cv_c_bigendian=universal
8383 break
8384 fi
8385 ;;
8386 esac
8387 ac_prev=
8388 elif test "x$ac_word" = "x-arch"; then
8389 ac_prev=arch
8390 fi
8391 done
8392fi
8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 if test $ac_cv_c_bigendian = unknown; then
8395 # See if sys/param.h defines the BYTE_ORDER macro.
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397/* end confdefs.h. */
8398#include <sys/types.h>
8399 #include <sys/param.h>
8400
8401int
8402main ()
8403{
8404#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8405 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8406 && LITTLE_ENDIAN)
8407 bogus endian macros
8408 #endif
8409
8410 ;
8411 return 0;
8412}
8413_ACEOF
8414if ac_fn_c_try_compile "$LINENO"; then :
8415 # It does; now see whether it defined to BIG_ENDIAN or not.
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417/* end confdefs.h. */
8418#include <sys/types.h>
8419 #include <sys/param.h>
8420
8421int
8422main ()
8423{
8424#if BYTE_ORDER != BIG_ENDIAN
8425 not big endian
8426 #endif
8427
8428 ;
8429 return 0;
8430}
8431_ACEOF
8432if ac_fn_c_try_compile "$LINENO"; then :
8433 ac_cv_c_bigendian=yes
8434else
8435 ac_cv_c_bigendian=no
8436fi
8437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438fi
8439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 fi
8441 if test $ac_cv_c_bigendian = unknown; then
8442 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h. */
8445#include <limits.h>
8446
8447int
8448main ()
8449{
8450#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8451 bogus endian macros
8452 #endif
8453
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458if ac_fn_c_try_compile "$LINENO"; then :
8459 # It does; now see whether it defined to _BIG_ENDIAN or not.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h. */
8462#include <limits.h>
8463
8464int
8465main ()
8466{
8467#ifndef _BIG_ENDIAN
8468 not big endian
8469 #endif
8470
8471 ;
8472 return 0;
8473}
8474_ACEOF
8475if ac_fn_c_try_compile "$LINENO"; then :
8476 ac_cv_c_bigendian=yes
8477else
8478 ac_cv_c_bigendian=no
8479fi
8480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi
8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 fi
8484 if test $ac_cv_c_bigendian = unknown; then
8485 # Compile a test program.
8486 if test "$cross_compiling" = yes; then :
8487 # Try to guess by grepping values from an object file.
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489/* end confdefs.h. */
8490short int ascii_mm[] =
8491 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8492 short int ascii_ii[] =
8493 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8494 int use_ascii (int i) {
8495 return ascii_mm[i] + ascii_ii[i];
8496 }
8497 short int ebcdic_ii[] =
8498 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8499 short int ebcdic_mm[] =
8500 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8501 int use_ebcdic (int i) {
8502 return ebcdic_mm[i] + ebcdic_ii[i];
8503 }
8504 extern int foo;
8505
8506int
8507main ()
8508{
8509return use_ascii (foo) == use_ebcdic (foo);
8510 ;
8511 return 0;
8512}
8513_ACEOF
8514if ac_fn_c_try_compile "$LINENO"; then :
8515 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8516 ac_cv_c_bigendian=yes
8517 fi
8518 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8519 if test "$ac_cv_c_bigendian" = unknown; then
8520 ac_cv_c_bigendian=no
8521 else
8522 # finding both strings is unlikely to happen, but who knows?
8523 ac_cv_c_bigendian=unknown
8524 fi
8525 fi
8526fi
8527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528else
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530/* end confdefs.h. */
8531$ac_includes_default
8532int
8533main ()
8534{
8535
8536 /* Are we little or big endian? From Harbison&Steele. */
8537 union
8538 {
8539 long int l;
8540 char c[sizeof (long int)];
8541 } u;
8542 u.l = 1;
8543 return u.c[sizeof (long int) - 1] == 1;
8544
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549if ac_fn_c_try_run "$LINENO"; then :
8550 ac_cv_c_bigendian=no
8551else
8552 ac_cv_c_bigendian=yes
8553fi
8554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8555 conftest.$ac_objext conftest.beam conftest.$ac_ext
8556fi
8557
8558 fi
8559fi
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8561$as_echo "$ac_cv_c_bigendian" >&6; }
8562 case $ac_cv_c_bigendian in #(
8563 yes)
8564 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8565;; #(
8566 no)
8567 ;; #(
8568 universal)
8569
8570$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8571
8572 ;; #(
8573 *)
1ef6de05 8574 as_fn_error $? "unknown endianness
0afb4571 8575 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
067d23c9
KY
8576 esac
8577
8578
7cae64b4
PE
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8580$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
1ef6de05 8581if ${emacs_cv_attribute_aligned+:} false; then :
7cae64b4
PE
8582 $as_echo_n "(cached) " >&6
8583else
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585/* end confdefs.h. */
8586char __attribute__ ((__aligned__ (1 << 3))) c;
8587int
8588main ()
8589{
8590
8591 ;
8592 return 0;
8593}
8594_ACEOF
8595if ac_fn_c_try_compile "$LINENO"; then :
8596 emacs_cv_attribute_aligned=yes
8597else
8598 emacs_cv_attribute_aligned=no
8599fi
8600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601fi
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8603$as_echo "$emacs_cv_attribute_aligned" >&6; }
8604if test $emacs_cv_attribute_aligned = yes; then
8605
8606$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8607
8608fi
8609
067d23c9
KY
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8611$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8612set x ${MAKE-make}
8613ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1ef6de05 8614if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
067d23c9
KY
8615 $as_echo_n "(cached) " >&6
8616else
8617 cat >conftest.make <<\_ACEOF
8618SHELL = /bin/sh
8619all:
8620 @echo '@@@%%%=$(MAKE)=@@@%%%'
8621_ACEOF
1ef6de05 8622# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8623case `${MAKE-make} -f conftest.make 2>/dev/null` in
8624 *@@@%%%=?*=@@@%%%*)
8625 eval ac_cv_prog_make_${ac_make}_set=yes;;
8626 *)
8627 eval ac_cv_prog_make_${ac_make}_set=no;;
8628esac
8629rm -f conftest.make
8630fi
8631if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8633$as_echo "yes" >&6; }
8634 SET_MAKE=
8635else
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637$as_echo "no" >&6; }
8638 SET_MAKE="MAKE=${MAKE-make}"
8639fi
8640
8641
8642DEPFLAGS=
8643MKDEPDIR=":"
8644deps_frag=deps.mk
8645if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8647$as_echo_n "checking whether we are using GNU Make... " >&6; }
8648 HAVE_GNU_MAKE=no
8649 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8650 if test "x$testval" != x; then
8651 HAVE_GNU_MAKE=yes
8652 else
8653 ac_enable_autodepend=no
8654 fi
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8656$as_echo "$HAVE_GNU_MAKE" >&6; }
8657 if test $HAVE_GNU_MAKE = yes; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8659$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8660 SAVE_CFLAGS="$CFLAGS"
8661 CFLAGS="$CFLAGS -MMD -MF deps.d"
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663/* end confdefs.h. */
8664
8665int
8666main ()
8667{
8668
8669 ;
8670 return 0;
8671}
8672_ACEOF
8673if ac_fn_c_try_compile "$LINENO"; then :
8674
8675else
8676 ac_enable_autodepend=no
8677fi
8678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 CFLAGS="$SAVE_CFLAGS"
8680 test -f deps.d || ac_enable_autodepend=no
8681 rm -rf deps.d
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8683$as_echo "$ac_enable_autodepend" >&6; }
8684 fi
8685 if test $ac_enable_autodepend = yes; then
8686 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8687 ## In parallel builds, another make might create depdir between
8688 ## the first test and mkdir, so stick another test on the end.
8689 ## Or use mkinstalldirs? mkdir -p is not portable.
8690 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8691 deps_frag=autodeps.mk
8692 fi
8693fi
8694deps_frag=$srcdir/src/$deps_frag
8695
8696
8697
8698
8699
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8701$as_echo_n "checking for long file names... " >&6; }
1ef6de05 8702if ${ac_cv_sys_long_file_names+:} false; then :
067d23c9
KY
8703 $as_echo_n "(cached) " >&6
8704else
8705 ac_cv_sys_long_file_names=yes
8706# Test for long file names in all the places we know might matter:
8707# . the current directory, where building will happen
8708# $prefix/lib where we will be installing things
8709# $exec_prefix/lib likewise
8710# $TMPDIR if set, where it might want to write temporary files
8711# /tmp where it might want to write temporary files
8712# /var/tmp likewise
8713# /usr/tmp likewise
8714for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8715 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8716 # in the usual case where exec_prefix is '${prefix}'.
8717 case $ac_dir in #(
8718 . | /* | ?:[\\/]*) ;; #(
8719 *) continue;;
8720 esac
8721 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8722 ac_xdir=$ac_dir/cf$$
8723 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8724 ac_tf1=$ac_xdir/conftest9012345
8725 ac_tf2=$ac_xdir/conftest9012346
8726 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8727 ac_cv_sys_long_file_names=no
8728 rm -f -r "$ac_xdir" 2>/dev/null
8729 test $ac_cv_sys_long_file_names = no && break
8730done
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8733$as_echo "$ac_cv_sys_long_file_names" >&6; }
8734if test $ac_cv_sys_long_file_names = yes; then
8735
8736$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8737
8738fi
8739
8740
8741#### Choose a window system.
8742
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8744$as_echo_n "checking for X... " >&6; }
8745
8746
8747# Check whether --with-x was given.
8748if test "${with_x+set}" = set; then :
8749 withval=$with_x;
8750fi
8751
8752# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8753if test "x$with_x" = xno; then
8754 # The user explicitly disabled X.
8755 have_x=disabled
8756else
8757 case $x_includes,$x_libraries in #(
1ef6de05
PE
8758 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8759 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
067d23c9
KY
8760 $as_echo_n "(cached) " >&6
8761else
8762 # One or both of the vars are not set, and there is no cached value.
8763ac_x_includes=no ac_x_libraries=no
8764rm -f -r conftest.dir
8765if mkdir conftest.dir; then
8766 cd conftest.dir
8767 cat >Imakefile <<'_ACEOF'
8768incroot:
8769 @echo incroot='${INCROOT}'
8770usrlibdir:
8771 @echo usrlibdir='${USRLIBDIR}'
8772libdir:
8773 @echo libdir='${LIBDIR}'
8774_ACEOF
8775 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1ef6de05 8776 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8777 for ac_var in incroot usrlibdir libdir; do
8778 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8779 done
8780 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8781 for ac_extension in a so sl dylib la dll; do
8782 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8783 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8784 ac_im_usrlibdir=$ac_im_libdir; break
8785 fi
8786 done
8787 # Screen out bogus values from the imake configuration. They are
8788 # bogus both because they are the default anyway, and because
8789 # using them would break gcc on systems where it needs fixed includes.
8790 case $ac_im_incroot in
8791 /usr/include) ac_x_includes= ;;
8792 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8793 esac
8794 case $ac_im_usrlibdir in
8795 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8796 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8797 esac
8798 fi
8799 cd ..
8800 rm -f -r conftest.dir
8801fi
8802
8803# Standard set of common directories for X headers.
8804# Check X11 before X11Rn because it is often a symlink to the current release.
8805ac_x_header_dirs='
8806/usr/X11/include
8807/usr/X11R7/include
8808/usr/X11R6/include
8809/usr/X11R5/include
8810/usr/X11R4/include
8811
8812/usr/include/X11
8813/usr/include/X11R7
8814/usr/include/X11R6
8815/usr/include/X11R5
8816/usr/include/X11R4
8817
8818/usr/local/X11/include
8819/usr/local/X11R7/include
8820/usr/local/X11R6/include
8821/usr/local/X11R5/include
8822/usr/local/X11R4/include
8823
8824/usr/local/include/X11
8825/usr/local/include/X11R7
8826/usr/local/include/X11R6
8827/usr/local/include/X11R5
8828/usr/local/include/X11R4
8829
8830/usr/X386/include
8831/usr/x386/include
8832/usr/XFree86/include/X11
8833
8834/usr/include
8835/usr/local/include
8836/usr/unsupported/include
8837/usr/athena/include
8838/usr/local/x11r5/include
8839/usr/lpp/Xamples/include
8840
8841/usr/openwin/include
8842/usr/openwin/share/include'
8843
8844if test "$ac_x_includes" = no; then
8845 # Guess where to find include files, by looking for Xlib.h.
8846 # First, try using that file with no special directory specified.
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848/* end confdefs.h. */
8849#include <X11/Xlib.h>
8850_ACEOF
8851if ac_fn_c_try_cpp "$LINENO"; then :
8852 # We can compile using X headers with no special include directory.
8853ac_x_includes=
8854else
8855 for ac_dir in $ac_x_header_dirs; do
8856 if test -r "$ac_dir/X11/Xlib.h"; then
8857 ac_x_includes=$ac_dir
8858 break
8859 fi
8860done
8861fi
1ef6de05 8862rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
8863fi # $ac_x_includes = no
8864
8865if test "$ac_x_libraries" = no; then
8866 # Check for the libraries.
8867 # See if we find them without any special options.
8868 # Don't add to $LIBS permanently.
8869 ac_save_LIBS=$LIBS
8870 LIBS="-lX11 $LIBS"
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h. */
8873#include <X11/Xlib.h>
8874int
8875main ()
8876{
8877XrmInitialize ()
8878 ;
8879 return 0;
8880}
8881_ACEOF
8882if ac_fn_c_try_link "$LINENO"; then :
8883 LIBS=$ac_save_LIBS
8884# We can link X programs with no special library path.
8885ac_x_libraries=
8886else
8887 LIBS=$ac_save_LIBS
8888for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8889do
8890 # Don't even attempt the hair of trying to link an X program!
8891 for ac_extension in a so sl dylib la dll; do
8892 if test -r "$ac_dir/libX11.$ac_extension"; then
8893 ac_x_libraries=$ac_dir
8894 break 2
8895 fi
8896 done
8897done
8898fi
8899rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901fi # $ac_x_libraries = no
8902
8903case $ac_x_includes,$ac_x_libraries in #(
8904 no,* | *,no | *\'*)
8905 # Didn't find X, or a directory has "'" in its name.
8906 ac_cv_have_x="have_x=no";; #(
8907 *)
8908 # Record where we found X for the cache.
8909 ac_cv_have_x="have_x=yes\
8910 ac_x_includes='$ac_x_includes'\
8911 ac_x_libraries='$ac_x_libraries'"
8912esac
8913fi
8914;; #(
8915 *) have_x=yes;;
8916 esac
8917 eval "$ac_cv_have_x"
8918fi # $with_x != no
8919
8920if test "$have_x" != yes; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8922$as_echo "$have_x" >&6; }
8923 no_x=yes
8924else
8925 # If each of the values was on the command line, it overrides each guess.
8926 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8927 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8928 # Update the cache value to reflect the command line values.
8929 ac_cv_have_x="have_x=yes\
8930 ac_x_includes='$x_includes'\
8931 ac_x_libraries='$x_libraries'"
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8933$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8934fi
8935
8936if test "$no_x" = yes; then
8937 window_system=none
8938else
8939 window_system=x11
8940fi
8941
8942## Workaround for bug in autoconf <= 2.62.
8943## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8944## No need to do anything special for these standard directories.
8945if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8946
8947 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8948
8949fi
8950
8951LD_SWITCH_X_SITE_AUX=
8952LD_SWITCH_X_SITE_AUX_RPATH=
8953if test "${x_libraries}" != NONE; then
8954 if test -n "${x_libraries}"; then
8955 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8956 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8957 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8958 fi
8959 x_default_search_path=""
8960 x_search_path=${x_libraries}
8961 if test -z "${x_search_path}"; then
8962 x_search_path=/usr/lib
8963 fi
8964 for x_library in `echo ${x_search_path}: | \
8965 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8966 x_search_path="\
8967${x_library}/X11/%L/%T/%N%C%S:\
8968${x_library}/X11/%l/%T/%N%C%S:\
8969${x_library}/X11/%T/%N%C%S:\
8970${x_library}/X11/%L/%T/%N%S:\
8971${x_library}/X11/%l/%T/%N%S:\
8972${x_library}/X11/%T/%N%S"
8973 if test x"${x_default_search_path}" = x; then
8974 x_default_search_path=${x_search_path}
8975 else
8976 x_default_search_path="${x_search_path}:${x_default_search_path}"
8977 fi
8978 done
8979fi
8980
8981
8982
8983if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8984 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8985fi
8986
8987if test x"${x_includes}" = x; then
8988 bitmapdir=/usr/include/X11/bitmaps
8989else
8990 # accumulate include directories that have X11 bitmap subdirectories
8991 bmd_acc="dummyval"
8992 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8993 if test -d "${bmd}/X11/bitmaps"; then
8994 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8995 fi
8996 if test -d "${bmd}/bitmaps"; then
8997 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8998 fi
8999 done
9000 if test ${bmd_acc} != "dummyval"; then
9001 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9002 fi
9003fi
9004
9005HAVE_NS=no
9006NS_IMPL_COCOA=no
9007NS_IMPL_GNUSTEP=no
9008tmp_CPPFLAGS="$CPPFLAGS"
9009tmp_CFLAGS="$CFLAGS"
9010CPPFLAGS="$CPPFLAGS -x objective-c"
9011CFLAGS="$CFLAGS -x objective-c"
9012TEMACS_LDFLAGS2="\${LDFLAGS}"
9013if test "${with_ns}" != no; then
9014 if test "${opsys}" = darwin; then
9015 NS_IMPL_COCOA=yes
9016 ns_appdir=`pwd`/nextstep/Emacs.app
9017 ns_appbindir=${ns_appdir}/Contents/MacOS/
9018 ns_appresdir=${ns_appdir}/Contents/Resources
9019 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9020 elif test -f $GNUSTEP_CONFIG_FILE; then
9021 NS_IMPL_GNUSTEP=yes
9022 ns_appdir=`pwd`/nextstep/Emacs.app
9023 ns_appbindir=${ns_appdir}/
9024 ns_appresdir=${ns_appdir}/Resources
9025 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9026 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9027 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9028 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9029 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9030 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9031 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9032 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9033 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9034 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9035 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9036 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9037 LIB_STANDARD=
9038 START_FILES=
9039 TEMACS_LDFLAGS2=
9040 fi
9041 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
1ef6de05 9042if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
067d23c9
KY
9043 HAVE_NS=yes
9044else
1ef6de05 9045 as_fn_error $? "\`--with-ns' was specified, but the include
067d23c9
KY
9046 files are missing or cannot be compiled." "$LINENO" 5
9047fi
9048
9049
9050 NS_HAVE_NSINTEGER=yes
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052/* end confdefs.h. */
9053#include <Foundation/NSObjCRuntime.h>
9054int
9055main ()
9056{
9057NSInteger i;
9058 ;
9059 return 0;
9060}
9061_ACEOF
9062if ac_fn_c_try_compile "$LINENO"; then :
9063 ns_have_nsinteger=yes
9064else
9065 ns_have_nsinteger=no
9066fi
9067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 if test $ns_have_nsinteger = no; then
9069 NS_HAVE_NSINTEGER=no
9070 fi
9071fi
9072
9073
9074ns_frag=/dev/null
9075NS_OBJ=
00b3c7ac 9076NS_OBJC_OBJ=
067d23c9
KY
9077NS_SUPPORT=
9078if test "${HAVE_NS}" = yes; then
9079 window_system=nextstep
9080 with_xft=no
9081 # set up packaging dirs
9082 exec_prefix=${ns_appbindir}
9083 libexecdir=${ns_appbindir}/libexec
9084 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9085 prefix=${ns_appresdir}
9086 fi
9087 ns_frag=$srcdir/src/ns.mk
00b3c7ac
TT
9088 NS_OBJ="fontset.o fringe.o image.o"
9089 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
067d23c9
KY
9090 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9091fi
9092CFLAGS="$tmp_CFLAGS"
9093CPPFLAGS="$tmp_CPPFLAGS"
9094
9095
9096
9097
9098
00b3c7ac 9099
067d23c9
KY
9100case "${window_system}" in
9101 x11 )
9102 HAVE_X_WINDOWS=yes
9103 HAVE_X11=yes
9104 case "${with_x_toolkit}" in
9105 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9106 motif ) USE_X_TOOLKIT=MOTIF ;;
9107 gtk ) with_gtk=yes
9108 USE_X_TOOLKIT=none ;;
9109 gtk3 ) with_gtk3=yes
9110 USE_X_TOOLKIT=none ;;
9111 no ) USE_X_TOOLKIT=none ;;
9112 * ) USE_X_TOOLKIT=maybe ;;
9113 esac
9114 ;;
9115 nextstep | none )
9116 HAVE_X_WINDOWS=no
9117 HAVE_X11=no
9118 USE_X_TOOLKIT=none
9119 ;;
9120esac
9121
9122if test "$window_system" = none && test "X$with_x" != "Xno"; then
9123 # Extract the first word of "X", so it can be a program name with args.
9124set dummy X; ac_word=$2
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 9127if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
067d23c9
KY
9128 $as_echo_n "(cached) " >&6
9129else
9130 if test -n "$HAVE_XSERVER"; then
9131 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9132else
9133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134for as_dir in $PATH
9135do
9136 IFS=$as_save_IFS
9137 test -z "$as_dir" && as_dir=.
9138 for ac_exec_ext in '' $ac_executable_extensions; do
9139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9140 ac_cv_prog_HAVE_XSERVER="true"
9141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9142 break 2
9143 fi
9144done
9145 done
9146IFS=$as_save_IFS
9147
9148 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9149fi
9150fi
9151HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9152if test -n "$HAVE_XSERVER"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9154$as_echo "$HAVE_XSERVER" >&6; }
9155else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157$as_echo "no" >&6; }
9158fi
9159
9160
9161 if test "$HAVE_XSERVER" = true ||
9162 test -n "$DISPLAY" ||
9163 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
1ef6de05 9164 as_fn_error $? "You seem to be running X, but no X development libraries
067d23c9
KY
9165were found. You should install the relevant development files for X
9166and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9167sure you have development files for image handling, i.e.
9168tiff, gif, jpeg, png and xpm.
9169If you are sure you want Emacs compiled without X window support, pass
9170 --without-x
9171to configure." "$LINENO" 5
9172 fi
9173fi
9174
9175### If we're using X11, we should use the X menu package.
9176HAVE_MENUS=no
9177case ${HAVE_X11} in
9178 yes ) HAVE_MENUS=yes ;;
9179esac
9180
9181# Do the opsystem or machine files prohibit the use of the GNU malloc?
9182# Assume not, until told otherwise.
9183GNU_MALLOC=yes
9184doug_lea_malloc=yes
9185ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
1ef6de05 9186if test "x$ac_cv_func_malloc_get_state" = xyes; then :
067d23c9
KY
9187
9188else
9189 doug_lea_malloc=no
9190fi
9191
9192ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
1ef6de05 9193if test "x$ac_cv_func_malloc_set_state" = xyes; then :
067d23c9
KY
9194
9195else
9196 doug_lea_malloc=no
9197fi
9198
9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9200$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
1ef6de05 9201if ${emacs_cv_var___after_morecore_hook+:} false; then :
067d23c9
KY
9202 $as_echo_n "(cached) " >&6
9203else
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h. */
9206extern void (* __after_morecore_hook)();
9207int
9208main ()
9209{
9210__after_morecore_hook = 0
9211 ;
9212 return 0;
9213}
9214_ACEOF
9215if ac_fn_c_try_link "$LINENO"; then :
9216 emacs_cv_var___after_morecore_hook=yes
9217else
9218 emacs_cv_var___after_morecore_hook=no
9219fi
9220rm -f core conftest.err conftest.$ac_objext \
9221 conftest$ac_exeext conftest.$ac_ext
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9224$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9225if test $emacs_cv_var___after_morecore_hook = no; then
9226 doug_lea_malloc=no
9227fi
9228
9229
9230system_malloc=no
9231case "$opsys" in
9232 ## darwin ld insists on the use of malloc routines in the System framework.
9233 darwin|sol2-10) system_malloc=yes ;;
9234esac
9235
9236if test "${system_malloc}" = "yes"; then
9237
9238$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9239
9240 GNU_MALLOC=no
9241 GNU_MALLOC_reason="
9242 (The GNU allocators don't work with this system configuration.)"
9243 GMALLOC_OBJ=
9244 VMLIMIT_OBJ=
9245else
9246 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9247 VMLIMIT_OBJ=vm-limit.o
9248fi
9249
9250
9251
9252if test "$doug_lea_malloc" = "yes" ; then
9253 if test "$GNU_MALLOC" = yes ; then
9254 GNU_MALLOC_reason="
9255 (Using Doug Lea's new malloc from the GNU C Library.)"
9256 fi
9257
9258$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9259
9260
9261 ## Use mmap directly for allocating larger buffers.
9262 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9263 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9264 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9265 case "$opsys" in
9266 gnu*) REL_ALLOC=no ;;
9267 esac
9268fi
9269
9270if test x"${REL_ALLOC}" = x; then
9271 REL_ALLOC=${GNU_MALLOC}
9272fi
9273
9274use_mmap_for_buffers=no
9275case "$opsys" in
9276 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9277esac
9278
9279
9280
9281
9282 for ac_header in $ac_header_list
9283do :
9284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9285ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9286"
1ef6de05 9287if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
9288 cat >>confdefs.h <<_ACEOF
9289#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9290_ACEOF
9291
9292fi
9293
9294done
9295
9296
9297
9298
9299
9300
9301
9302
9303for ac_func in getpagesize
9304do :
9305 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
1ef6de05 9306if test "x$ac_cv_func_getpagesize" = xyes; then :
067d23c9
KY
9307 cat >>confdefs.h <<_ACEOF
9308#define HAVE_GETPAGESIZE 1
9309_ACEOF
9310
9311fi
9312done
9313
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9315$as_echo_n "checking for working mmap... " >&6; }
1ef6de05 9316if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
067d23c9
KY
9317 $as_echo_n "(cached) " >&6
9318else
9319 if test "$cross_compiling" = yes; then :
9320 ac_cv_func_mmap_fixed_mapped=no
9321else
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323/* end confdefs.h. */
9324$ac_includes_default
9325/* malloc might have been renamed as rpl_malloc. */
9326#undef malloc
9327
9328/* Thanks to Mike Haertel and Jim Avera for this test.
9329 Here is a matrix of mmap possibilities:
9330 mmap private not fixed
9331 mmap private fixed at somewhere currently unmapped
9332 mmap private fixed at somewhere already mapped
9333 mmap shared not fixed
9334 mmap shared fixed at somewhere currently unmapped
9335 mmap shared fixed at somewhere already mapped
9336 For private mappings, we should verify that changes cannot be read()
9337 back from the file, nor mmap's back from the file at a different
9338 address. (There have been systems where private was not correctly
9339 implemented like the infamous i386 svr4.0, and systems where the
9340 VM page cache was not coherent with the file system buffer cache
9341 like early versions of FreeBSD and possibly contemporary NetBSD.)
9342 For shared mappings, we should conversely verify that changes get
9343 propagated back to all the places they're supposed to be.
9344
9345 Grep wants private fixed already mapped.
9346 The main things grep needs to know about mmap are:
9347 * does it exist and is it safe to write into the mmap'd area
9348 * how to use it (BSD variants) */
9349
9350#include <fcntl.h>
9351#include <sys/mman.h>
9352
9353#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9354char *malloc ();
9355#endif
9356
9357/* This mess was copied from the GNU getpagesize.h. */
9358#ifndef HAVE_GETPAGESIZE
9359# ifdef _SC_PAGESIZE
9360# define getpagesize() sysconf(_SC_PAGESIZE)
9361# else /* no _SC_PAGESIZE */
9362# ifdef HAVE_SYS_PARAM_H
9363# include <sys/param.h>
9364# ifdef EXEC_PAGESIZE
9365# define getpagesize() EXEC_PAGESIZE
9366# else /* no EXEC_PAGESIZE */
9367# ifdef NBPG
9368# define getpagesize() NBPG * CLSIZE
9369# ifndef CLSIZE
9370# define CLSIZE 1
9371# endif /* no CLSIZE */
9372# else /* no NBPG */
9373# ifdef NBPC
9374# define getpagesize() NBPC
9375# else /* no NBPC */
9376# ifdef PAGESIZE
9377# define getpagesize() PAGESIZE
9378# endif /* PAGESIZE */
9379# endif /* no NBPC */
9380# endif /* no NBPG */
9381# endif /* no EXEC_PAGESIZE */
9382# else /* no HAVE_SYS_PARAM_H */
9383# define getpagesize() 8192 /* punt totally */
9384# endif /* no HAVE_SYS_PARAM_H */
9385# endif /* no _SC_PAGESIZE */
9386
9387#endif /* no HAVE_GETPAGESIZE */
9388
9389int
9390main ()
9391{
9392 char *data, *data2, *data3;
1ef6de05 9393 const char *cdata2;
067d23c9
KY
9394 int i, pagesize;
9395 int fd, fd2;
9396
9397 pagesize = getpagesize ();
9398
9399 /* First, make a file with some known garbage in it. */
9400 data = (char *) malloc (pagesize);
9401 if (!data)
9402 return 1;
9403 for (i = 0; i < pagesize; ++i)
9404 *(data + i) = rand ();
9405 umask (0);
9406 fd = creat ("conftest.mmap", 0600);
9407 if (fd < 0)
9408 return 2;
9409 if (write (fd, data, pagesize) != pagesize)
9410 return 3;
9411 close (fd);
9412
9413 /* Next, check that the tail of a page is zero-filled. File must have
9414 non-zero length, otherwise we risk SIGBUS for entire page. */
9415 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9416 if (fd2 < 0)
9417 return 4;
1ef6de05
PE
9418 cdata2 = "";
9419 if (write (fd2, cdata2, 1) != 1)
067d23c9 9420 return 5;
1ef6de05 9421 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
067d23c9
KY
9422 if (data2 == MAP_FAILED)
9423 return 6;
9424 for (i = 0; i < pagesize; ++i)
9425 if (*(data2 + i))
9426 return 7;
9427 close (fd2);
9428 if (munmap (data2, pagesize))
9429 return 8;
9430
9431 /* Next, try to mmap the file at a fixed address which already has
9432 something else allocated at it. If we can, also make sure that
9433 we see the same garbage. */
9434 fd = open ("conftest.mmap", O_RDWR);
9435 if (fd < 0)
9436 return 9;
9437 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9438 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9439 return 10;
9440 for (i = 0; i < pagesize; ++i)
9441 if (*(data + i) != *(data2 + i))
9442 return 11;
9443
9444 /* Finally, make sure that changes to the mapped area do not
9445 percolate back to the file as seen by read(). (This is a bug on
9446 some variants of i386 svr4.0.) */
9447 for (i = 0; i < pagesize; ++i)
9448 *(data2 + i) = *(data2 + i) + 1;
9449 data3 = (char *) malloc (pagesize);
9450 if (!data3)
9451 return 12;
9452 if (read (fd, data3, pagesize) != pagesize)
9453 return 13;
9454 for (i = 0; i < pagesize; ++i)
9455 if (*(data + i) != *(data3 + i))
9456 return 14;
9457 close (fd);
9458 return 0;
9459}
9460_ACEOF
9461if ac_fn_c_try_run "$LINENO"; then :
9462 ac_cv_func_mmap_fixed_mapped=yes
9463else
9464 ac_cv_func_mmap_fixed_mapped=no
9465fi
9466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9467 conftest.$ac_objext conftest.beam conftest.$ac_ext
9468fi
9469
9470fi
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9472$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9473if test $ac_cv_func_mmap_fixed_mapped = yes; then
9474
9475$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9476
9477fi
9478rm -f conftest.mmap conftest.txt
9479
9480if test $use_mmap_for_buffers = yes; then
9481
9482$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9483
9484 REL_ALLOC=no
9485fi
9486
9487LIBS="$LIBS_SYSTEM $LIBS"
9488
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9490$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1ef6de05 9491if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
067d23c9
KY
9492 $as_echo_n "(cached) " >&6
9493else
9494 ac_check_lib_save_LIBS=$LIBS
9495LIBS="-ldnet $LIBS"
9496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h. */
9498
9499/* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9502#ifdef __cplusplus
9503extern "C"
9504#endif
9505char dnet_ntoa ();
9506int
9507main ()
9508{
9509return dnet_ntoa ();
9510 ;
9511 return 0;
9512}
9513_ACEOF
9514if ac_fn_c_try_link "$LINENO"; then :
9515 ac_cv_lib_dnet_dnet_ntoa=yes
9516else
9517 ac_cv_lib_dnet_dnet_ntoa=no
9518fi
9519rm -f core conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521LIBS=$ac_check_lib_save_LIBS
9522fi
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9524$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1ef6de05 9525if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
067d23c9
KY
9526 cat >>confdefs.h <<_ACEOF
9527#define HAVE_LIBDNET 1
9528_ACEOF
9529
9530 LIBS="-ldnet $LIBS"
9531
9532fi
9533
9534
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9536$as_echo_n "checking for main in -lXbsd... " >&6; }
1ef6de05 9537if ${ac_cv_lib_Xbsd_main+:} false; then :
067d23c9
KY
9538 $as_echo_n "(cached) " >&6
9539else
9540 ac_check_lib_save_LIBS=$LIBS
9541LIBS="-lXbsd $LIBS"
9542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543/* end confdefs.h. */
9544
9545
9546int
9547main ()
9548{
9549return main ();
9550 ;
9551 return 0;
9552}
9553_ACEOF
9554if ac_fn_c_try_link "$LINENO"; then :
9555 ac_cv_lib_Xbsd_main=yes
9556else
9557 ac_cv_lib_Xbsd_main=no
9558fi
9559rm -f core conftest.err conftest.$ac_objext \
9560 conftest$ac_exeext conftest.$ac_ext
9561LIBS=$ac_check_lib_save_LIBS
9562fi
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9564$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
1ef6de05 9565if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
067d23c9
KY
9566 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9567fi
9568
9569
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9571$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
1ef6de05 9572if ${ac_cv_lib_pthreads_cma_open+:} false; then :
067d23c9
KY
9573 $as_echo_n "(cached) " >&6
9574else
9575 ac_check_lib_save_LIBS=$LIBS
9576LIBS="-lpthreads $LIBS"
9577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h. */
9579
9580/* Override any GCC internal prototype to avoid an error.
9581 Use char because int might match the return type of a GCC
9582 builtin and then its argument prototype would still apply. */
9583#ifdef __cplusplus
9584extern "C"
9585#endif
9586char cma_open ();
9587int
9588main ()
9589{
9590return cma_open ();
9591 ;
9592 return 0;
9593}
9594_ACEOF
9595if ac_fn_c_try_link "$LINENO"; then :
9596 ac_cv_lib_pthreads_cma_open=yes
9597else
9598 ac_cv_lib_pthreads_cma_open=no
9599fi
9600rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9602LIBS=$ac_check_lib_save_LIBS
9603fi
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9605$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
1ef6de05 9606if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
067d23c9
KY
9607 cat >>confdefs.h <<_ACEOF
9608#define HAVE_LIBPTHREADS 1
9609_ACEOF
9610
9611 LIBS="-lpthreads $LIBS"
9612
9613fi
9614
9615
9616## Note: when using cpp in s/aix4.2.h, this definition depended on
9617## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9618## the system file was sourced. Hence the value of LIBS_SYSTEM
9619## added to LIBS in configure would never contain the pthreads part,
9620## but the value used in Makefiles might. FIXME?
9621##
9622## -lpthreads seems to be necessary for Xlib in X11R6, and should
9623## be harmless on older versions of X where it happens to exist.
9624test "$opsys" = "aix4-2" && \
9625 test $ac_cv_lib_pthreads_cma_open = yes && \
9626 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9627
9628
9629case ${host_os} in
9630aix*)
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9632$as_echo_n "checking for -bbigtoc option... " >&6; }
1ef6de05 9633if ${gdb_cv_bigtoc+:} false; then :
067d23c9
KY
9634 $as_echo_n "(cached) " >&6
9635else
9636
9637 case $GCC in
9638 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9639 *) gdb_cv_bigtoc=-bbigtoc ;;
9640 esac
9641
9642 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644/* end confdefs.h. */
9645
9646int
9647main ()
9648{
9649int i;
9650 ;
9651 return 0;
9652}
9653_ACEOF
9654if ac_fn_c_try_link "$LINENO"; then :
9655
9656else
9657 gdb_cv_bigtoc=
9658fi
9659rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661
9662fi
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9664$as_echo "$gdb_cv_bigtoc" >&6; }
9665 ;;
9666esac
9667
9668# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9669# used for the tests that follow. We set them back to REAL_CFLAGS and
9670# REAL_CPPFLAGS later on.
9671
9672REAL_CFLAGS="$CFLAGS"
9673REAL_CPPFLAGS="$CPPFLAGS"
9674
9675if test "${HAVE_X11}" = "yes"; then
9676 DEFS="$C_SWITCH_X_SITE $DEFS"
9677 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9678 LIBS="-lX11 $LIBS"
9679 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9680 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9681
9682 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9683 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9684 # but it's more convenient here to set LD_RUN_PATH
9685 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9686 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9687 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9688 export LD_RUN_PATH
9689 fi
9690
9691 if test "${opsys}" = "gnu-linux"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9693$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695/* end confdefs.h. */
9696
9697int
9698main ()
9699{
9700XOpenDisplay ("foo");
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705if ac_fn_c_try_link "$LINENO"; then :
9706 xlinux_first_failure=no
9707else
9708 xlinux_first_failure=yes
9709fi
9710rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 if test "${xlinux_first_failure}" = "yes"; then
9713 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9714 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9715 OLD_CPPFLAGS="$CPPFLAGS"
9716 OLD_LIBS="$LIBS"
9717 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9718 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9719 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9720 LIBS="$LIBS -b i486-linuxaout"
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722/* end confdefs.h. */
9723
9724int
9725main ()
9726{
9727XOpenDisplay ("foo");
9728 ;
9729 return 0;
9730}
9731_ACEOF
9732if ac_fn_c_try_link "$LINENO"; then :
9733 xlinux_second_failure=no
9734else
9735 xlinux_second_failure=yes
9736fi
9737rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739 if test "${xlinux_second_failure}" = "yes"; then
9740 # If we get the same failure with -b, there is no use adding -b.
9741 # So take it out. This plays safe.
9742 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9743 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9744 CPPFLAGS="$OLD_CPPFLAGS"
9745 LIBS="$OLD_LIBS"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747$as_echo "no" >&6; }
9748 else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9750$as_echo "yes" >&6; }
9751 fi
9752 else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754$as_echo "no" >&6; }
9755 fi
9756 fi
9757
9758 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9759 # header files included from there.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9761$as_echo_n "checking for Xkb... " >&6; }
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763/* end confdefs.h. */
9764#include <X11/Xlib.h>
9765#include <X11/XKBlib.h>
9766int
9767main ()
9768{
9769XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9770 ;
9771 return 0;
9772}
9773_ACEOF
9774if ac_fn_c_try_link "$LINENO"; then :
9775 emacs_xkb=yes
9776else
9777 emacs_xkb=no
9778fi
9779rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9782$as_echo "$emacs_xkb" >&6; }
9783 if test $emacs_xkb = yes; then
9784
9785$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9786
9787 fi
9788
9789 for ac_func in XrmSetDatabase XScreenResourceString \
9790XScreenNumberOfScreen XSetWMProtocols
9791do :
9792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9793ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1ef6de05 9794if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
9795 cat >>confdefs.h <<_ACEOF
9796#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9797_ACEOF
9798
9799fi
9800done
9801
9802fi
9803
9804if test "${window_system}" = "x11"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9806$as_echo_n "checking X11 version 6... " >&6; }
1ef6de05 9807 if ${emacs_cv_x11_version_6+:} false; then :
067d23c9
KY
9808 $as_echo_n "(cached) " >&6
9809else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h. */
9812#include <X11/Xlib.h>
9813int
9814main ()
9815{
9816#if XlibSpecificationRelease < 6
9817fail;
9818#endif
9819
9820 ;
9821 return 0;
9822}
9823_ACEOF
9824if ac_fn_c_try_link "$LINENO"; then :
9825 emacs_cv_x11_version_6=yes
9826else
9827 emacs_cv_x11_version_6=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831fi
9832
9833 if test $emacs_cv_x11_version_6 = yes; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9835$as_echo "6 or newer" >&6; }
9836
9837$as_echo "#define HAVE_X11R6 1" >>confdefs.h
9838
9839
9840$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9841
9842 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9843 ## XIM support.
9844 case "$opsys" in
9845 sol2-*) : ;;
9846 *)
9847$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9848
9849 ;;
9850 esac
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9853$as_echo "before 6" >&6; }
9854 fi
9855fi
9856
9857
9858### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9859HAVE_RSVG=no
9860if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9861 if test "${with_rsvg}" != "no"; then
9862 RSVG_REQUIRED=2.11.0
9863 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9864
9865
9866 succeeded=no
9867
9868 # Extract the first word of "pkg-config", so it can be a program name with args.
9869set dummy pkg-config; ac_word=$2
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 9872if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9873 $as_echo_n "(cached) " >&6
9874else
9875 case $PKG_CONFIG in
9876 [\\/]* | ?:[\\/]*)
9877 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9878 ;;
9879 *)
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9887 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 break 2
9890 fi
9891done
9892 done
9893IFS=$as_save_IFS
9894
9895 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9896 ;;
9897esac
9898fi
9899PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9900if test -n "$PKG_CONFIG"; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9902$as_echo "$PKG_CONFIG" >&6; }
9903else
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905$as_echo "no" >&6; }
9906fi
9907
9908
9909
9910 if test "$PKG_CONFIG" = "no" ; then
9911 :
9912 else
9913 PKG_CONFIG_MIN_VERSION=0.9.0
9914 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9916$as_echo_n "checking for $RSVG_MODULE... " >&6; }
9917
9918 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9920$as_echo "yes" >&6; }
9921 succeeded=yes
9922
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9924$as_echo_n "checking RSVG_CFLAGS... " >&6; }
9925 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9927$as_echo "$RSVG_CFLAGS" >&6; }
9928
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9930$as_echo_n "checking RSVG_LIBS... " >&6; }
9931 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9933$as_echo "$RSVG_LIBS" >&6; }
9934 else
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936$as_echo "no" >&6; }
9937 RSVG_CFLAGS=""
9938 RSVG_LIBS=""
9939 ## If we have a custom action on failure, don't print errors, but
9940 ## do set a variable so people can do so.
9941 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9942
9943 fi
9944
9945
9946
9947 else
9948 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9949 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9950 fi
9951 fi
9952
9953 if test $succeeded = yes; then
9954 HAVE_RSVG=yes
9955 else
9956 :
9957 fi
9958
9959
9960
9961
9962 if test $HAVE_RSVG = yes; then
9963
9964$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9965
9966 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9967 LIBS="$RSVG_LIBS $LIBS"
9968 fi
9969 fi
9970fi
9971
9972HAVE_IMAGEMAGICK=no
9973if test "${HAVE_X11}" = "yes"; then
9974 if test "${with_imagemagick}" != "no"; then
9975 IMAGEMAGICK_MODULE="Wand"
9976
9977 succeeded=no
9978
9979 # Extract the first word of "pkg-config", so it can be a program name with args.
9980set dummy pkg-config; ac_word=$2
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 9983if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9984 $as_echo_n "(cached) " >&6
9985else
9986 case $PKG_CONFIG in
9987 [\\/]* | ?:[\\/]*)
9988 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9989 ;;
9990 *)
9991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992for as_dir in $PATH
9993do
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
9996 for ac_exec_ext in '' $ac_executable_extensions; do
9997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9998 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10000 break 2
10001 fi
10002done
10003 done
10004IFS=$as_save_IFS
10005
10006 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10007 ;;
10008esac
10009fi
10010PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10011if test -n "$PKG_CONFIG"; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10013$as_echo "$PKG_CONFIG" >&6; }
10014else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016$as_echo "no" >&6; }
10017fi
10018
10019
10020
10021 if test "$PKG_CONFIG" = "no" ; then
10022 :
10023 else
10024 PKG_CONFIG_MIN_VERSION=0.9.0
10025 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10027$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10028
10029 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10031$as_echo "yes" >&6; }
10032 succeeded=yes
10033
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10035$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10036 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10038$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10039
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10041$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10042 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10044$as_echo "$IMAGEMAGICK_LIBS" >&6; }
10045 else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047$as_echo "no" >&6; }
10048 IMAGEMAGICK_CFLAGS=""
10049 IMAGEMAGICK_LIBS=""
10050 ## If we have a custom action on failure, don't print errors, but
10051 ## do set a variable so people can do so.
10052 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10053
10054 fi
10055
10056
10057
10058 else
10059 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10060 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10061 fi
10062 fi
10063
10064 if test $succeeded = yes; then
10065 HAVE_IMAGEMAGICK=yes
10066 else
10067 :
10068 fi
10069
10070
10071
10072
10073 if test $HAVE_IMAGEMAGICK = yes; then
10074
10075$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10076
10077 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10078 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10079 for ac_func in MagickExportImagePixels
10080do :
10081 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
1ef6de05 10082if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
067d23c9
KY
10083 cat >>confdefs.h <<_ACEOF
10084#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10085_ACEOF
10086
10087fi
10088done
10089
10090 fi
10091 fi
10092fi
10093
10094
10095HAVE_GTK=no
10096if test "${with_gtk3}" = "yes"; then
0afb4571
J
10097 GLIB_REQUIRED=2.28
10098 GTK_REQUIRED=3.0
067d23c9
KY
10099 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10100
10101
10102 succeeded=no
10103
10104 # Extract the first word of "pkg-config", so it can be a program name with args.
10105set dummy pkg-config; ac_word=$2
10106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 10108if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10109 $as_echo_n "(cached) " >&6
10110else
10111 case $PKG_CONFIG in
10112 [\\/]* | ?:[\\/]*)
10113 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10114 ;;
10115 *)
10116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117for as_dir in $PATH
10118do
10119 IFS=$as_save_IFS
10120 test -z "$as_dir" && as_dir=.
10121 for ac_exec_ext in '' $ac_executable_extensions; do
10122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10123 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10125 break 2
10126 fi
10127done
10128 done
10129IFS=$as_save_IFS
10130
10131 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10132 ;;
10133esac
10134fi
10135PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10136if test -n "$PKG_CONFIG"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10138$as_echo "$PKG_CONFIG" >&6; }
10139else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141$as_echo "no" >&6; }
10142fi
10143
10144
10145
10146 if test "$PKG_CONFIG" = "no" ; then
10147 pkg_check_gtk=no
10148 else
10149 PKG_CONFIG_MIN_VERSION=0.9.0
10150 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10152$as_echo_n "checking for $GTK_MODULES... " >&6; }
10153
10154 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10156$as_echo "yes" >&6; }
10157 succeeded=yes
10158
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10160$as_echo_n "checking GTK_CFLAGS... " >&6; }
10161 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10163$as_echo "$GTK_CFLAGS" >&6; }
10164
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10166$as_echo_n "checking GTK_LIBS... " >&6; }
10167 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10169$as_echo "$GTK_LIBS" >&6; }
10170 else
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172$as_echo "no" >&6; }
10173 GTK_CFLAGS=""
10174 GTK_LIBS=""
10175 ## If we have a custom action on failure, don't print errors, but
10176 ## do set a variable so people can do so.
10177 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10178
10179 fi
10180
10181
10182
10183 else
10184 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10185 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10186 fi
10187 fi
10188
10189 if test $succeeded = yes; then
10190 pkg_check_gtk=yes
10191 else
10192 pkg_check_gtk=no
10193 fi
10194
10195 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
1ef6de05 10196 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9 10197 fi
0afb4571
J
10198
10199$as_echo "#define HAVE_GTK3 1" >>confdefs.h
10200
067d23c9
KY
10201fi
10202
10203if test "$pkg_check_gtk" != "yes"; then
10204 HAVE_GTK=no
10205if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10206 GLIB_REQUIRED=2.6
10207 GTK_REQUIRED=2.6
10208 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10209
10210
10211 succeeded=no
10212
10213 # Extract the first word of "pkg-config", so it can be a program name with args.
10214set dummy pkg-config; ac_word=$2
10215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 10217if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10218 $as_echo_n "(cached) " >&6
10219else
10220 case $PKG_CONFIG in
10221 [\\/]* | ?:[\\/]*)
10222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10223 ;;
10224 *)
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226for as_dir in $PATH
10227do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236done
10237 done
10238IFS=$as_save_IFS
10239
10240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10241 ;;
10242esac
10243fi
10244PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10245if test -n "$PKG_CONFIG"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10247$as_echo "$PKG_CONFIG" >&6; }
10248else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250$as_echo "no" >&6; }
10251fi
10252
10253
10254
10255 if test "$PKG_CONFIG" = "no" ; then
10256 pkg_check_gtk=no
10257 else
10258 PKG_CONFIG_MIN_VERSION=0.9.0
10259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10261$as_echo_n "checking for $GTK_MODULES... " >&6; }
10262
10263 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10265$as_echo "yes" >&6; }
10266 succeeded=yes
10267
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10269$as_echo_n "checking GTK_CFLAGS... " >&6; }
10270 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10272$as_echo "$GTK_CFLAGS" >&6; }
10273
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10275$as_echo_n "checking GTK_LIBS... " >&6; }
10276 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10278$as_echo "$GTK_LIBS" >&6; }
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
10282 GTK_CFLAGS=""
10283 GTK_LIBS=""
10284 ## If we have a custom action on failure, don't print errors, but
10285 ## do set a variable so people can do so.
10286 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10287
10288 fi
10289
10290
10291
10292 else
10293 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10294 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10295 fi
10296 fi
10297
10298 if test $succeeded = yes; then
10299 pkg_check_gtk=yes
10300 else
10301 pkg_check_gtk=no
10302 fi
10303
10304 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
1ef6de05 10305 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10306 fi
10307fi
10308fi
10309
10310GTK_OBJ=
10311if test x"$pkg_check_gtk" = xyes; then
10312
10313
10314
10315 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10316 CFLAGS="$CFLAGS $GTK_CFLAGS"
10317 LIBS="$GTK_LIBS $LIBS"
10318 GTK_COMPILES=no
10319 for ac_func in gtk_main
10320do :
10321 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
1ef6de05 10322if test "x$ac_cv_func_gtk_main" = xyes; then :
067d23c9
KY
10323 cat >>confdefs.h <<_ACEOF
10324#define HAVE_GTK_MAIN 1
10325_ACEOF
10326 GTK_COMPILES=yes
10327fi
10328done
10329
10330 if test "${GTK_COMPILES}" != "yes"; then
10331 if test "$USE_X_TOOLKIT" != "maybe"; then
1ef6de05 10332 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
067d23c9
KY
10333 fi
10334 else
10335 HAVE_GTK=yes
10336
10337$as_echo "#define USE_GTK 1" >>confdefs.h
10338
10339 GTK_OBJ=gtkutil.o
10340 USE_X_TOOLKIT=none
10341 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10342 :
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10345 closing open displays. This is no problem if you just use
10346 one display, but if you use more than one and close one of them
10347 Emacs may crash." >&5
10348$as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10349 closing open displays. This is no problem if you just use
10350 one display, but if you use more than one and close one of them
10351 Emacs may crash." >&2;}
10352 sleep 3
10353 fi
10354 fi
10355
10356fi
10357
10358
10359
10360if test "${HAVE_GTK}" = "yes"; then
10361
10362 if test "$with_toolkit_scroll_bars" != no; then
10363 with_toolkit_scroll_bars=yes
10364 fi
10365
10366 HAVE_GTK_FILE_SELECTION=no
10367 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10368#include <gtk/gtk.h>
10369"
1ef6de05 10370if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
067d23c9
KY
10371 HAVE_GTK_FILE_SELECTION=yes
10372else
10373 HAVE_GTK_FILE_SELECTION=no
10374fi
10375
10376 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10377 for ac_func in gtk_file_selection_new
10378do :
10379 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
1ef6de05 10380if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
067d23c9
KY
10381 cat >>confdefs.h <<_ACEOF
10382#define HAVE_GTK_FILE_SELECTION_NEW 1
10383_ACEOF
10384
10385fi
10386done
10387
10388 fi
10389
10390 HAVE_GTK_AND_PTHREAD=no
10391 for ac_header in pthread.h
10392do :
10393 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
1ef6de05 10394if test "x$ac_cv_header_pthread_h" = xyes; then :
067d23c9
KY
10395 cat >>confdefs.h <<_ACEOF
10396#define HAVE_PTHREAD_H 1
10397_ACEOF
10398
10399fi
10400
10401done
10402
10403 if test "$ac_cv_header_pthread_h"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10405$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
1ef6de05 10406if ${ac_cv_lib_pthread_pthread_self+:} false; then :
067d23c9
KY
10407 $as_echo_n "(cached) " >&6
10408else
10409 ac_check_lib_save_LIBS=$LIBS
10410LIBS="-lpthread $LIBS"
10411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h. */
10413
10414/* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10417#ifdef __cplusplus
10418extern "C"
10419#endif
10420char pthread_self ();
10421int
10422main ()
10423{
10424return pthread_self ();
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429if ac_fn_c_try_link "$LINENO"; then :
10430 ac_cv_lib_pthread_pthread_self=yes
10431else
10432 ac_cv_lib_pthread_pthread_self=no
10433fi
10434rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436LIBS=$ac_check_lib_save_LIBS
10437fi
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10439$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
1ef6de05 10440if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
067d23c9
KY
10441 HAVE_GTK_AND_PTHREAD=yes
10442fi
10443
10444 fi
10445 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10446 case "${canonical}" in
10447 *-hpux*) ;;
10448 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10449 esac
10450
10451$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10452
10453 fi
10454
10455 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10456 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10457 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10458 gtk_orientable_set_orientation
10459do :
10460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10461ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1ef6de05 10462if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
10463 cat >>confdefs.h <<_ACEOF
10464#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10465_ACEOF
10466
10467fi
10468done
10469
10470
10471fi
10472
10473HAVE_DBUS=no
10474DBUS_OBJ=
10475if test "${with_dbus}" = "yes"; then
10476
10477 succeeded=no
10478
10479 # Extract the first word of "pkg-config", so it can be a program name with args.
10480set dummy pkg-config; ac_word=$2
10481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 10483if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10484 $as_echo_n "(cached) " >&6
10485else
10486 case $PKG_CONFIG in
10487 [\\/]* | ?:[\\/]*)
10488 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10489 ;;
10490 *)
10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10498 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10501 fi
10502done
10503 done
10504IFS=$as_save_IFS
10505
10506 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10507 ;;
10508esac
10509fi
10510PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10511if test -n "$PKG_CONFIG"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10513$as_echo "$PKG_CONFIG" >&6; }
10514else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516$as_echo "no" >&6; }
10517fi
10518
10519
10520
10521 if test "$PKG_CONFIG" = "no" ; then
10522 HAVE_DBUS=no
10523 else
10524 PKG_CONFIG_MIN_VERSION=0.9.0
10525 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10527$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10528
10529 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10531$as_echo "yes" >&6; }
10532 succeeded=yes
10533
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10535$as_echo_n "checking DBUS_CFLAGS... " >&6; }
10536 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10538$as_echo "$DBUS_CFLAGS" >&6; }
10539
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10541$as_echo_n "checking DBUS_LIBS... " >&6; }
10542 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10544$as_echo "$DBUS_LIBS" >&6; }
10545 else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547$as_echo "no" >&6; }
10548 DBUS_CFLAGS=""
10549 DBUS_LIBS=""
10550 ## If we have a custom action on failure, don't print errors, but
10551 ## do set a variable so people can do so.
10552 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10553
10554 fi
10555
10556
10557
10558 else
10559 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10560 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10561 fi
10562 fi
10563
10564 if test $succeeded = yes; then
10565 HAVE_DBUS=yes
10566 else
10567 HAVE_DBUS=no
10568 fi
10569
10570 if test "$HAVE_DBUS" = yes; then
10571 LIBS="$LIBS $DBUS_LIBS"
10572
10573$as_echo "#define HAVE_DBUS 1" >>confdefs.h
10574
10575 for ac_func in dbus_watch_get_unix_fd
10576do :
10577 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
1ef6de05 10578if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
067d23c9
KY
10579 cat >>confdefs.h <<_ACEOF
10580#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10581_ACEOF
10582
10583fi
10584done
10585
10586 DBUS_OBJ=dbusbind.o
10587 fi
10588fi
10589
10590
10591HAVE_GCONF=no
10592if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10593
10594 succeeded=no
10595
10596 # Extract the first word of "pkg-config", so it can be a program name with args.
10597set dummy pkg-config; ac_word=$2
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10599$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 10600if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10601 $as_echo_n "(cached) " >&6
10602else
10603 case $PKG_CONFIG in
10604 [\\/]* | ?:[\\/]*)
10605 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10606 ;;
10607 *)
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $PATH
10610do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10615 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 break 2
10618 fi
10619done
10620 done
10621IFS=$as_save_IFS
10622
10623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10624 ;;
10625esac
10626fi
10627PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10628if test -n "$PKG_CONFIG"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10630$as_echo "$PKG_CONFIG" >&6; }
10631else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633$as_echo "no" >&6; }
10634fi
10635
10636
10637
10638 if test "$PKG_CONFIG" = "no" ; then
10639 HAVE_GCONF=no
10640 else
10641 PKG_CONFIG_MIN_VERSION=0.9.0
10642 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10644$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10645
10646 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648$as_echo "yes" >&6; }
10649 succeeded=yes
10650
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10652$as_echo_n "checking GCONF_CFLAGS... " >&6; }
10653 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10655$as_echo "$GCONF_CFLAGS" >&6; }
10656
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10658$as_echo_n "checking GCONF_LIBS... " >&6; }
10659 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10661$as_echo "$GCONF_LIBS" >&6; }
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664$as_echo "no" >&6; }
10665 GCONF_CFLAGS=""
10666 GCONF_LIBS=""
10667 ## If we have a custom action on failure, don't print errors, but
10668 ## do set a variable so people can do so.
10669 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10670
10671 fi
10672
10673
10674
10675 else
10676 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10677 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10678 fi
10679 fi
10680
10681 if test $succeeded = yes; then
10682 HAVE_GCONF=yes
10683 else
10684 HAVE_GCONF=no
10685 fi
10686
10687 if test "$HAVE_GCONF" = yes; then
10688
10689$as_echo "#define HAVE_GCONF 1" >>confdefs.h
10690
10691 for ac_func in g_type_init
10692do :
10693 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
1ef6de05 10694if test "x$ac_cv_func_g_type_init" = xyes; then :
067d23c9
KY
10695 cat >>confdefs.h <<_ACEOF
10696#define HAVE_G_TYPE_INIT 1
10697_ACEOF
10698
10699fi
10700done
10701
10702 fi
10703fi
10704
10705HAVE_LIBSELINUX=no
10706LIBSELINUX_LIBS=
10707if test "${with_selinux}" = "yes"; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10709$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
1ef6de05 10710if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
067d23c9
KY
10711 $as_echo_n "(cached) " >&6
10712else
10713 ac_check_lib_save_LIBS=$LIBS
10714LIBS="-lselinux $LIBS"
10715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716/* end confdefs.h. */
10717
10718/* Override any GCC internal prototype to avoid an error.
10719 Use char because int might match the return type of a GCC
10720 builtin and then its argument prototype would still apply. */
10721#ifdef __cplusplus
10722extern "C"
10723#endif
10724char lgetfilecon ();
10725int
10726main ()
10727{
10728return lgetfilecon ();
10729 ;
10730 return 0;
10731}
10732_ACEOF
10733if ac_fn_c_try_link "$LINENO"; then :
10734 ac_cv_lib_selinux_lgetfilecon=yes
10735else
10736 ac_cv_lib_selinux_lgetfilecon=no
10737fi
10738rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740LIBS=$ac_check_lib_save_LIBS
10741fi
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10743$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
1ef6de05 10744if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
067d23c9
KY
10745 HAVE_LIBSELINUX=yes
10746else
10747 HAVE_LIBSELINUX=no
10748fi
10749
10750 if test "$HAVE_LIBSELINUX" = yes; then
10751
10752$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10753
10754 LIBSELINUX_LIBS=-lselinux
10755 fi
10756fi
10757
10758
10759HAVE_GNUTLS=no
10760if test "${with_gnutls}" = "yes" ; then
10761
10762 succeeded=no
10763
10764 # Extract the first word of "pkg-config", so it can be a program name with args.
10765set dummy pkg-config; ac_word=$2
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10767$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 10768if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10769 $as_echo_n "(cached) " >&6
10770else
10771 case $PKG_CONFIG in
10772 [\\/]* | ?:[\\/]*)
10773 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10774 ;;
10775 *)
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777for as_dir in $PATH
10778do
10779 IFS=$as_save_IFS
10780 test -z "$as_dir" && as_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10783 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10785 break 2
10786 fi
10787done
10788 done
10789IFS=$as_save_IFS
10790
10791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10792 ;;
10793esac
10794fi
10795PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10796if test -n "$PKG_CONFIG"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10798$as_echo "$PKG_CONFIG" >&6; }
10799else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801$as_echo "no" >&6; }
10802fi
10803
10804
10805
10806 if test "$PKG_CONFIG" = "no" ; then
10807 HAVE_GNUTLS=no
10808 else
10809 PKG_CONFIG_MIN_VERSION=0.9.0
10810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10812$as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10813
10814 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10816$as_echo "yes" >&6; }
10817 succeeded=yes
10818
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10820$as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10821 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10823$as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10824
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10826$as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10827 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10829$as_echo "$LIBGNUTLS_LIBS" >&6; }
10830 else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832$as_echo "no" >&6; }
10833 LIBGNUTLS_CFLAGS=""
10834 LIBGNUTLS_LIBS=""
10835 ## If we have a custom action on failure, don't print errors, but
10836 ## do set a variable so people can do so.
10837 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10838
10839 fi
10840
10841
10842
10843 else
10844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10846 fi
10847 fi
10848
10849 if test $succeeded = yes; then
10850 HAVE_GNUTLS=yes
10851 else
10852 HAVE_GNUTLS=no
10853 fi
10854
10855 if test "${HAVE_GNUTLS}" = "yes"; then
10856
10857$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10858
10859 fi
10860fi
10861
10862
10863
10864HAVE_XAW3D=no
10865LUCID_LIBW=
10866if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10867 if test "$with_xaw3d" != no; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10869$as_echo_n "checking for xaw3d... " >&6; }
1ef6de05 10870 if ${emacs_cv_xaw3d+:} false; then :
067d23c9
KY
10871 $as_echo_n "(cached) " >&6
10872else
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874/* end confdefs.h. */
10875
10876#include <X11/Intrinsic.h>
10877#include <X11/Xaw3d/Simple.h>
10878int
10879main ()
10880{
10881
10882 ;
10883 return 0;
10884}
10885_ACEOF
10886if ac_fn_c_try_link "$LINENO"; then :
14beddf4
CY
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10888$as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
1ef6de05 10889if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
ae1362a3
AS
10890 $as_echo_n "(cached) " >&6
10891else
10892 ac_check_lib_save_LIBS=$LIBS
14beddf4 10893LIBS="-lXaw3d $LIBS"
ae1362a3
AS
10894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h. */
bf89cb4d 10896
ae1362a3
AS
10897/* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10900#ifdef __cplusplus
10901extern "C"
10902#endif
14beddf4 10903char XawScrollbarSetThumb ();
ae1362a3
AS
10904int
10905main ()
10906{
14beddf4 10907return XawScrollbarSetThumb ();
ae1362a3
AS
10908 ;
10909 return 0;
10910}
10911_ACEOF
10912if ac_fn_c_try_link "$LINENO"; then :
14beddf4 10913 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
ae1362a3 10914else
14beddf4 10915 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
ae1362a3
AS
10916fi
10917rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10919LIBS=$ac_check_lib_save_LIBS
10920fi
14beddf4
CY
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10922$as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
1ef6de05 10923if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
067d23c9
KY
10924 emacs_cv_xaw3d=yes
10925else
10926 emacs_cv_xaw3d=no
10927fi
14beddf4
CY
10928
10929else
10930 emacs_cv_xaw3d=no
10931fi
067d23c9
KY
10932rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934fi
10935
10936 else
10937 emacs_cv_xaw3d=no
10938 fi
10939 if test $emacs_cv_xaw3d = yes; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10941$as_echo "yes; using Lucid toolkit" >&6; }
10942 USE_X_TOOLKIT=LUCID
10943 HAVE_XAW3D=yes
10944 LUCID_LIBW=-lXaw3d
10945
10946$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10947
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950$as_echo "no" >&6; }
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10952$as_echo_n "checking for libXaw... " >&6; }
1ef6de05 10953 if ${emacs_cv_xaw+:} false; then :
067d23c9
KY
10954 $as_echo_n "(cached) " >&6
10955else
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h. */
10958
10959#include <X11/Intrinsic.h>
10960#include <X11/Xaw/Simple.h>
10961int
10962main ()
10963{
10964
10965 ;
10966 return 0;
10967}
10968_ACEOF
10969if ac_fn_c_try_link "$LINENO"; then :
10970 emacs_cv_xaw=yes
10971else
10972 emacs_cv_xaw=no
10973fi
10974rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976fi
10977
10978 if test $emacs_cv_xaw = yes; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10980$as_echo "yes; using Lucid toolkit" >&6; }
10981 USE_X_TOOLKIT=LUCID
10982 LUCID_LIBW=-lXaw
10983 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
1ef6de05 10984 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
067d23c9
KY
10985 else
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10987$as_echo "no; do not use toolkit by default" >&6; }
10988 USE_X_TOOLKIT=none
10989 fi
10990 fi
10991fi
10992
10993X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10994
10995LIBXTR6=
10996if test "${USE_X_TOOLKIT}" != "none"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10998$as_echo_n "checking X11 toolkit version... " >&6; }
1ef6de05 10999 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
067d23c9
KY
11000 $as_echo_n "(cached) " >&6
11001else
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h. */
11004#include <X11/Intrinsic.h>
11005int
11006main ()
11007{
11008#if XtSpecificationRelease < 6
11009fail;
11010#endif
11011
11012 ;
11013 return 0;
11014}
11015_ACEOF
11016if ac_fn_c_try_link "$LINENO"; then :
11017 emacs_cv_x11_toolkit_version_6=yes
11018else
11019 emacs_cv_x11_toolkit_version_6=no
11020fi
11021rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11023fi
11024
11025 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11026 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11028$as_echo "6 or newer" >&6; }
11029
11030$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11031
11032 LIBXTR6="-lSM -lICE"
11033 case "$opsys" in
11034 ## Use libw.a along with X11R6 Xt.
11035 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11036 esac
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11039$as_echo "before 6" >&6; }
11040 fi
11041
11042 OLDLIBS="$LIBS"
11043 if test x$HAVE_X11XTR6 = xyes; then
11044 LIBS="-lXt -lSM -lICE $LIBS"
11045 else
11046 LIBS="-lXt $LIBS"
11047 fi
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11049$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
1ef6de05 11050if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
067d23c9
KY
11051 $as_echo_n "(cached) " >&6
11052else
11053 ac_check_lib_save_LIBS=$LIBS
11054LIBS="-lXmu $LIBS"
11055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056/* end confdefs.h. */
11057
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char XmuConvertStandardSelection ();
11065int
11066main ()
11067{
11068return XmuConvertStandardSelection ();
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073if ac_fn_c_try_link "$LINENO"; then :
11074 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11075else
11076 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11077fi
11078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080LIBS=$ac_check_lib_save_LIBS
11081fi
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11083$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
1ef6de05 11084if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
067d23c9
KY
11085 cat >>confdefs.h <<_ACEOF
11086#define HAVE_LIBXMU 1
11087_ACEOF
11088
11089 LIBS="-lXmu $LIBS"
11090
11091fi
11092
11093 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11094fi
11095
11096
11097LIBXMU=-lXmu
d6a003a8
AS
11098case $opsys in
11099 ## These systems don't supply Xmu.
067d23c9
KY
11100 hpux* | aix4-2 )
11101 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11102 ;;
11103esac
11104
11105
11106# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11107if test "${HAVE_X11}" = "yes"; then
11108 if test "${USE_X_TOOLKIT}" != "none"; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11110$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
1ef6de05 11111if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
067d23c9
KY
11112 $as_echo_n "(cached) " >&6
11113else
11114 ac_check_lib_save_LIBS=$LIBS
11115LIBS="-lXext $LIBS"
11116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117/* end confdefs.h. */
11118
11119/* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11122#ifdef __cplusplus
11123extern "C"
11124#endif
11125char XShapeQueryExtension ();
11126int
11127main ()
11128{
11129return XShapeQueryExtension ();
11130 ;
11131 return 0;
11132}
11133_ACEOF
11134if ac_fn_c_try_link "$LINENO"; then :
11135 ac_cv_lib_Xext_XShapeQueryExtension=yes
11136else
11137 ac_cv_lib_Xext_XShapeQueryExtension=no
11138fi
11139rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141LIBS=$ac_check_lib_save_LIBS
11142fi
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11144$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
1ef6de05 11145if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
067d23c9
KY
11146 cat >>confdefs.h <<_ACEOF
11147#define HAVE_LIBXEXT 1
11148_ACEOF
11149
11150 LIBS="-lXext $LIBS"
11151
11152fi
11153
11154 fi
11155fi
11156
11157LIBXP=
11158if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11160$as_echo_n "checking for Motif version 2.1... " >&6; }
1ef6de05 11161if ${emacs_cv_motif_version_2_1+:} false; then :
067d23c9
KY
11162 $as_echo_n "(cached) " >&6
11163else
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165/* end confdefs.h. */
11166#include <Xm/Xm.h>
11167int
11168main ()
11169{
11170#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11171int x = 5;
11172#else
11173Motif version prior to 2.1.
11174#endif
11175 ;
11176 return 0;
11177}
11178_ACEOF
11179if ac_fn_c_try_compile "$LINENO"; then :
11180 emacs_cv_motif_version_2_1=yes
11181else
11182 emacs_cv_motif_version_2_1=no
11183fi
11184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185fi
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11187$as_echo "$emacs_cv_motif_version_2_1" >&6; }
11188 if test $emacs_cv_motif_version_2_1 = yes; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11190$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
1ef6de05 11191if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
067d23c9
KY
11192 $as_echo_n "(cached) " >&6
11193else
11194 ac_check_lib_save_LIBS=$LIBS
11195LIBS="-lXp $LIBS"
11196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197/* end confdefs.h. */
11198
11199/* Override any GCC internal prototype to avoid an error.
11200 Use char because int might match the return type of a GCC
11201 builtin and then its argument prototype would still apply. */
11202#ifdef __cplusplus
11203extern "C"
11204#endif
11205char XpCreateContext ();
11206int
11207main ()
11208{
11209return XpCreateContext ();
11210 ;
11211 return 0;
11212}
11213_ACEOF
11214if ac_fn_c_try_link "$LINENO"; then :
11215 ac_cv_lib_Xp_XpCreateContext=yes
11216else
11217 ac_cv_lib_Xp_XpCreateContext=no
11218fi
11219rm -f core conftest.err conftest.$ac_objext \
11220 conftest$ac_exeext conftest.$ac_ext
11221LIBS=$ac_check_lib_save_LIBS
11222fi
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11224$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
1ef6de05 11225if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
067d23c9
KY
11226 LIBXP=-lXp
11227fi
11228
11229 else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11231$as_echo_n "checking for LessTif where some systems put it... " >&6; }
1ef6de05 11232if ${emacs_cv_lesstif+:} false; then :
067d23c9
KY
11233 $as_echo_n "(cached) " >&6
11234else
11235 # We put this in CFLAGS temporarily to precede other -I options
11236 # that might be in CFLAGS temporarily.
11237 # We put this in CPPFLAGS where it precedes the other -I options.
11238 OLD_CPPFLAGS=$CPPFLAGS
11239 OLD_CFLAGS=$CFLAGS
11240 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11241 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243/* end confdefs.h. */
11244#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11245int
11246main ()
11247{
11248int x = 5;
11249 ;
11250 return 0;
11251}
11252_ACEOF
11253if ac_fn_c_try_compile "$LINENO"; then :
11254 emacs_cv_lesstif=yes
11255else
11256 emacs_cv_lesstif=no
11257fi
11258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259fi
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11261$as_echo "$emacs_cv_lesstif" >&6; }
11262 if test $emacs_cv_lesstif = yes; then
11263 # Make sure this -I option remains in CPPFLAGS after it is set
11264 # back to REAL_CPPFLAGS.
11265 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11266 # have those other -I options anyway. Ultimately, having this
11267 # directory ultimately in CPPFLAGS will be enough.
11268 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11269 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11270 else
11271 CFLAGS=$OLD_CFLAGS
11272 CPPFLAGS=$OLD_CPPFLAGS
11273 fi
11274 fi
11275fi
11276
11277
11278USE_TOOLKIT_SCROLL_BARS=no
11279if test "${with_toolkit_scroll_bars}" != "no"; then
11280 if test "${USE_X_TOOLKIT}" != "none"; then
11281 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11282 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11283
11284 HAVE_XAW3D=no
11285 USE_TOOLKIT_SCROLL_BARS=yes
11286 elif test "${HAVE_XAW3D}" = "yes"; then
11287 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11288
11289 USE_TOOLKIT_SCROLL_BARS=yes
11290 fi
11291 elif test "${HAVE_GTK}" = "yes"; then
11292 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11293
11294 USE_TOOLKIT_SCROLL_BARS=yes
11295 elif test "${HAVE_NS}" = "yes"; then
11296 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11297
11298 USE_TOOLKIT_SCROLL_BARS=yes
11299 fi
11300fi
11301
11302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h. */
11304
11305 #include <X11/Xlib.h>
11306 #include <X11/Xresource.h>
11307int
11308main ()
11309{
11310XIMProc callback;
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315if ac_fn_c_try_compile "$LINENO"; then :
11316 HAVE_XIM=yes
11317
11318$as_echo "#define HAVE_XIM 1" >>confdefs.h
11319
11320else
11321 HAVE_XIM=no
11322fi
11323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324
11325
11326if test "${with_xim}" != "no"; then
11327
11328$as_echo "#define USE_XIM 1" >>confdefs.h
11329
11330fi
11331
11332
11333if test "${HAVE_XIM}" != "no"; then
11334 late_CFLAGS=$CFLAGS
11335 if test "$GCC" = yes; then
11336 CFLAGS="$CFLAGS --pedantic-errors"
11337 fi
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339/* end confdefs.h. */
11340
11341#include <X11/Xlib.h>
11342#include <X11/Xresource.h>
11343int
11344main ()
11345{
11346Display *display;
11347XrmDatabase db;
11348char *res_name;
11349char *res_class;
11350XIMProc callback;
11351XPointer *client_data;
11352#ifndef __GNUC__
11353/* If we're not using GCC, it's probably not XFree86, and this is
11354 probably right, but we can't use something like --pedantic-errors. */
11355extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11356 char*, XIMProc, XPointer*);
11357#endif
11358(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11359 client_data);
11360 ;
11361 return 0;
11362}
11363_ACEOF
11364if ac_fn_c_try_compile "$LINENO"; then :
11365 emacs_cv_arg6_star=yes
11366fi
11367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 if test "$emacs_cv_arg6_star" = yes; then
11369 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11370
11371 else
11372 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11373
11374 fi
11375 CFLAGS=$late_CFLAGS
11376fi
11377
11378### Start of font-backend (under any platform) section.
11379# (nothing here yet -- this is a placeholder)
11380### End of font-backend (under any platform) section.
11381
11382### Start of font-backend (under X11) section.
11383if test "${HAVE_X11}" = "yes"; then
11384
11385 succeeded=no
11386
11387 # Extract the first word of "pkg-config", so it can be a program name with args.
11388set dummy pkg-config; ac_word=$2
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 11391if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11392 $as_echo_n "(cached) " >&6
11393else
11394 case $PKG_CONFIG in
11395 [\\/]* | ?:[\\/]*)
11396 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11397 ;;
11398 *)
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400for as_dir in $PATH
11401do
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11406 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 break 2
11409 fi
11410done
11411 done
11412IFS=$as_save_IFS
11413
11414 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11415 ;;
11416esac
11417fi
11418PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11419if test -n "$PKG_CONFIG"; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11421$as_echo "$PKG_CONFIG" >&6; }
11422else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424$as_echo "no" >&6; }
11425fi
11426
11427
11428
11429 if test "$PKG_CONFIG" = "no" ; then
11430 HAVE_FC=no
11431 else
11432 PKG_CONFIG_MIN_VERSION=0.9.0
11433 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11435$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11436
11437 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439$as_echo "yes" >&6; }
11440 succeeded=yes
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11443$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11444 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11446$as_echo "$FONTCONFIG_CFLAGS" >&6; }
11447
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11449$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11450 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11452$as_echo "$FONTCONFIG_LIBS" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455$as_echo "no" >&6; }
11456 FONTCONFIG_CFLAGS=""
11457 FONTCONFIG_LIBS=""
11458 ## If we have a custom action on failure, don't print errors, but
11459 ## do set a variable so people can do so.
11460 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11461
11462 fi
11463
11464
11465
11466 else
11467 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11468 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11469 fi
11470 fi
11471
11472 if test $succeeded = yes; then
11473 HAVE_FC=yes
11474 else
11475 HAVE_FC=no
11476 fi
11477
11478
11479 ## Use -lXft if available, unless `--with-xft=no'.
11480 HAVE_XFT=maybe
11481 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11482 with_xft="no";
11483 fi
11484 if test "x${with_xft}" != "xno"; then
11485
11486
11487 succeeded=no
11488
11489 # Extract the first word of "pkg-config", so it can be a program name with args.
11490set dummy pkg-config; ac_word=$2
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 11493if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11494 $as_echo_n "(cached) " >&6
11495else
11496 case $PKG_CONFIG in
11497 [\\/]* | ?:[\\/]*)
11498 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11499 ;;
11500 *)
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502for as_dir in $PATH
11503do
11504 IFS=$as_save_IFS
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11508 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 break 2
11511 fi
11512done
11513 done
11514IFS=$as_save_IFS
11515
11516 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11517 ;;
11518esac
11519fi
11520PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11521if test -n "$PKG_CONFIG"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11523$as_echo "$PKG_CONFIG" >&6; }
11524else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526$as_echo "no" >&6; }
11527fi
11528
11529
11530
11531 if test "$PKG_CONFIG" = "no" ; then
11532 HAVE_XFT=no
11533 else
11534 PKG_CONFIG_MIN_VERSION=0.9.0
11535 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11537$as_echo_n "checking for xft >= 0.13.0... " >&6; }
11538
11539 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541$as_echo "yes" >&6; }
11542 succeeded=yes
11543
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11545$as_echo_n "checking XFT_CFLAGS... " >&6; }
11546 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11548$as_echo "$XFT_CFLAGS" >&6; }
11549
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11551$as_echo_n "checking XFT_LIBS... " >&6; }
11552 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11554$as_echo "$XFT_LIBS" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557$as_echo "no" >&6; }
11558 XFT_CFLAGS=""
11559 XFT_LIBS=""
11560 ## If we have a custom action on failure, don't print errors, but
11561 ## do set a variable so people can do so.
11562 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11563
11564 fi
11565
11566
11567
11568 else
11569 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11570 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11571 fi
11572 fi
11573
11574 if test $succeeded = yes; then
11575 :
11576 else
11577 HAVE_XFT=no
11578 fi
11579
11580 ## Because xftfont.c uses XRenderQueryExtension, we also
11581 ## need to link to -lXrender.
11582 HAVE_XRENDER=no
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11584$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
1ef6de05 11585if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
067d23c9
KY
11586 $as_echo_n "(cached) " >&6
11587else
11588 ac_check_lib_save_LIBS=$LIBS
11589LIBS="-lXrender $LIBS"
11590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591/* end confdefs.h. */
11592
11593/* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599char XRenderQueryExtension ();
11600int
11601main ()
11602{
11603return XRenderQueryExtension ();
11604 ;
11605 return 0;
11606}
11607_ACEOF
11608if ac_fn_c_try_link "$LINENO"; then :
11609 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11610else
11611 ac_cv_lib_Xrender_XRenderQueryExtension=no
11612fi
11613rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11615LIBS=$ac_check_lib_save_LIBS
11616fi
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11618$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
1ef6de05 11619if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
067d23c9
KY
11620 HAVE_XRENDER=yes
11621fi
11622
11623 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11624 OLD_CPPFLAGS="$CPPFLAGS"
11625 OLD_CFLAGS="$CFLAGS"
11626 OLD_LIBS="$LIBS"
11627 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11628 CFLAGS="$CFLAGS $XFT_CFLAGS"
11629 XFT_LIBS="-lXrender $XFT_LIBS"
11630 LIBS="$XFT_LIBS $LIBS"
11631 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
1ef6de05 11632if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
067d23c9
KY
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11634$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
1ef6de05 11635if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
067d23c9
KY
11636 $as_echo_n "(cached) " >&6
11637else
11638 ac_check_lib_save_LIBS=$LIBS
11639LIBS="-lXft $XFT_LIBS $LIBS"
11640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641/* end confdefs.h. */
11642
11643/* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11646#ifdef __cplusplus
11647extern "C"
11648#endif
11649char XftFontOpen ();
11650int
11651main ()
11652{
11653return XftFontOpen ();
11654 ;
11655 return 0;
11656}
11657_ACEOF
11658if ac_fn_c_try_link "$LINENO"; then :
11659 ac_cv_lib_Xft_XftFontOpen=yes
11660else
11661 ac_cv_lib_Xft_XftFontOpen=no
11662fi
11663rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665LIBS=$ac_check_lib_save_LIBS
11666fi
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11668$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
1ef6de05 11669if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
067d23c9
KY
11670 HAVE_XFT=yes
11671fi
11672
11673fi
11674
11675
11676
11677 if test "${HAVE_XFT}" = "yes"; then
11678
11679$as_echo "#define HAVE_XFT 1" >>confdefs.h
11680
11681
11682 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11683 else
11684 CPPFLAGS="$OLD_CPPFLAGS"
11685 CFLAGS="$OLD_CFLAGS"
11686 LIBS="$OLD_LIBS"
11687 fi # "${HAVE_XFT}" = "yes"
11688 fi # "$HAVE_XFT" != no
11689 fi # "x${with_xft}" != "xno"
11690
067d23c9
KY
11691 ## We used to allow building with FreeType and without Xft.
11692 ## However, the ftx font backend driver is not in good shape.
7834125e
GM
11693 if test "$HAVE_XFT" != "yes"; then
11694 HAVE_XFT=no
11695 HAVE_FREETYPE=no
11696 else
11697
11698 succeeded=no
11699
11700 # Extract the first word of "pkg-config", so it can be a program name with args.
11701set dummy pkg-config; ac_word=$2
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 11704if ${ac_cv_path_PKG_CONFIG+:} false; then :
7834125e
GM
11705 $as_echo_n "(cached) " >&6
11706else
11707 case $PKG_CONFIG in
11708 [\\/]* | ?:[\\/]*)
11709 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11710 ;;
11711 *)
11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713for as_dir in $PATH
11714do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 break 2
11722 fi
11723done
11724 done
11725IFS=$as_save_IFS
11726
11727 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11728 ;;
11729esac
11730fi
11731PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11732if test -n "$PKG_CONFIG"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11734$as_echo "$PKG_CONFIG" >&6; }
11735else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737$as_echo "no" >&6; }
11738fi
11739
11740
11741
11742 if test "$PKG_CONFIG" = "no" ; then
11743 HAVE_FREETYPE=no
11744 else
11745 PKG_CONFIG_MIN_VERSION=0.9.0
11746 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11748$as_echo_n "checking for freetype2... " >&6; }
11749
11750 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752$as_echo "yes" >&6; }
11753 succeeded=yes
11754
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11756$as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11757 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11759$as_echo "$FREETYPE_CFLAGS" >&6; }
11760
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11762$as_echo_n "checking FREETYPE_LIBS... " >&6; }
11763 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11765$as_echo "$FREETYPE_LIBS" >&6; }
11766 else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768$as_echo "no" >&6; }
11769 FREETYPE_CFLAGS=""
11770 FREETYPE_LIBS=""
11771 ## If we have a custom action on failure, don't print errors, but
11772 ## do set a variable so people can do so.
11773 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11774
11775 fi
11776
11777
11778
11779 else
11780 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11781 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11782 fi
11783 fi
11784
11785 if test $succeeded = yes; then
11786 HAVE_FREETYPE=yes
11787 else
11788 HAVE_FREETYPE=no
11789 fi
11790
11791
1ef6de05 11792 test "$HAVE_FREETYPE" = "no" && as_fn_error $? "libxft requires libfreetype" "$LINENO" 5
7834125e 11793 fi
067d23c9
KY
11794
11795 HAVE_LIBOTF=no
11796 if test "${HAVE_FREETYPE}" = "yes"; then
11797
11798$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11799
11800 if test "${with_libotf}" != "no"; then
11801
11802 succeeded=no
11803
11804 # Extract the first word of "pkg-config", so it can be a program name with args.
11805set dummy pkg-config; ac_word=$2
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 11808if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11809 $as_echo_n "(cached) " >&6
11810else
11811 case $PKG_CONFIG in
11812 [\\/]* | ?:[\\/]*)
11813 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11814 ;;
11815 *)
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11823 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11826 fi
11827done
11828 done
11829IFS=$as_save_IFS
11830
11831 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11832 ;;
11833esac
11834fi
11835PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11836if test -n "$PKG_CONFIG"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11838$as_echo "$PKG_CONFIG" >&6; }
11839else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841$as_echo "no" >&6; }
11842fi
11843
11844
11845
11846 if test "$PKG_CONFIG" = "no" ; then
11847 HAVE_LIBOTF=no
11848 else
11849 PKG_CONFIG_MIN_VERSION=0.9.0
11850 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11852$as_echo_n "checking for libotf... " >&6; }
11853
11854 if $PKG_CONFIG --exists "libotf" 2>&5; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11856$as_echo "yes" >&6; }
11857 succeeded=yes
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11860$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11861 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11863$as_echo "$LIBOTF_CFLAGS" >&6; }
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11866$as_echo_n "checking LIBOTF_LIBS... " >&6; }
11867 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11869$as_echo "$LIBOTF_LIBS" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872$as_echo "no" >&6; }
11873 LIBOTF_CFLAGS=""
11874 LIBOTF_LIBS=""
11875 ## If we have a custom action on failure, don't print errors, but
11876 ## do set a variable so people can do so.
11877 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11878
11879 fi
11880
11881
11882
11883 else
11884 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11885 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11886 fi
11887 fi
11888
11889 if test $succeeded = yes; then
11890 HAVE_LIBOTF=yes
11891 else
11892 HAVE_LIBOTF=no
11893 fi
11894
11895 if test "$HAVE_LIBOTF" = "yes"; then
11896
11897$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11898
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11900$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
1ef6de05 11901if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
067d23c9
KY
11902 $as_echo_n "(cached) " >&6
11903else
11904 ac_check_lib_save_LIBS=$LIBS
11905LIBS="-lotf $LIBS"
11906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907/* end confdefs.h. */
11908
11909/* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11912#ifdef __cplusplus
11913extern "C"
11914#endif
11915char OTF_get_variation_glyphs ();
11916int
11917main ()
11918{
11919return OTF_get_variation_glyphs ();
11920 ;
11921 return 0;
11922}
11923_ACEOF
11924if ac_fn_c_try_link "$LINENO"; then :
11925 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11926else
11927 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11928fi
11929rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931LIBS=$ac_check_lib_save_LIBS
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11934$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
1ef6de05 11935if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
067d23c9
KY
11936 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11937else
11938 HAVE_OTF_GET_VARIATION_GLYPHS=no
11939fi
11940
11941 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11942
11943$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11944
11945 fi
11946 fi
11947 fi
11948 fi
11949
11950 HAVE_M17N_FLT=no
11951 if test "${HAVE_LIBOTF}" = yes; then
11952 if test "${with_m17n_flt}" != "no"; then
11953
11954 succeeded=no
11955
11956 # Extract the first word of "pkg-config", so it can be a program name with args.
11957set dummy pkg-config; ac_word=$2
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 11960if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11961 $as_echo_n "(cached) " >&6
11962else
11963 case $PKG_CONFIG in
11964 [\\/]* | ?:[\\/]*)
11965 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11966 ;;
11967 *)
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969for as_dir in $PATH
11970do
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11975 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 break 2
11978 fi
11979done
11980 done
11981IFS=$as_save_IFS
11982
11983 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11984 ;;
11985esac
11986fi
11987PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11988if test -n "$PKG_CONFIG"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11990$as_echo "$PKG_CONFIG" >&6; }
11991else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993$as_echo "no" >&6; }
11994fi
11995
11996
11997
11998 if test "$PKG_CONFIG" = "no" ; then
11999 HAVE_M17N_FLT=no
12000 else
12001 PKG_CONFIG_MIN_VERSION=0.9.0
12002 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12004$as_echo_n "checking for m17n-flt... " >&6; }
12005
12006 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12008$as_echo "yes" >&6; }
12009 succeeded=yes
12010
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12012$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12013 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12015$as_echo "$M17N_FLT_CFLAGS" >&6; }
12016
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12018$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12019 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12021$as_echo "$M17N_FLT_LIBS" >&6; }
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
12025 M17N_FLT_CFLAGS=""
12026 M17N_FLT_LIBS=""
12027 ## If we have a custom action on failure, don't print errors, but
12028 ## do set a variable so people can do so.
12029 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12030
12031 fi
12032
12033
12034
12035 else
12036 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12037 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12038 fi
12039 fi
12040
12041 if test $succeeded = yes; then
12042 HAVE_M17N_FLT=yes
12043 else
12044 HAVE_M17N_FLT=no
12045 fi
12046
12047 if test "$HAVE_M17N_FLT" = "yes"; then
12048
12049$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12050
12051 fi
12052 fi
12053 fi
12054else
12055 HAVE_XFT=no
12056 HAVE_FREETYPE=no
12057 HAVE_LIBOTF=no
12058 HAVE_M17N_FLT=no
12059fi
12060
12061### End of font-backend (under X11) section.
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072### Use -lXpm if available, unless `--with-xpm=no'.
12073HAVE_XPM=no
12074LIBXPM=
12075if test "${HAVE_X11}" = "yes"; then
12076 if test "${with_xpm}" != "no"; then
12077 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
1ef6de05 12078if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
067d23c9
KY
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12080$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
1ef6de05 12081if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
067d23c9
KY
12082 $as_echo_n "(cached) " >&6
12083else
12084 ac_check_lib_save_LIBS=$LIBS
12085LIBS="-lXpm -lX11 $LIBS"
12086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087/* end confdefs.h. */
12088
12089/* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12092#ifdef __cplusplus
12093extern "C"
12094#endif
12095char XpmReadFileToPixmap ();
12096int
12097main ()
12098{
12099return XpmReadFileToPixmap ();
12100 ;
12101 return 0;
12102}
12103_ACEOF
12104if ac_fn_c_try_link "$LINENO"; then :
12105 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12106else
12107 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12108fi
12109rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12111LIBS=$ac_check_lib_save_LIBS
12112fi
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12114$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
1ef6de05 12115if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
067d23c9
KY
12116 HAVE_XPM=yes
12117fi
12118
12119fi
12120
12121
12122 if test "${HAVE_XPM}" = "yes"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12124$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126/* end confdefs.h. */
12127#include "X11/xpm.h"
12128#ifndef XpmReturnAllocPixels
12129no_return_alloc_pixels
12130#endif
12131
12132_ACEOF
12133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12134 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12135 HAVE_XPM=no
12136else
12137 HAVE_XPM=yes
12138fi
12139rm -f conftest*
12140
12141
12142 if test "${HAVE_XPM}" = "yes"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12144$as_echo "yes" >&6; }
12145 else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148 fi
12149 fi
12150 fi
12151
12152 if test "${HAVE_XPM}" = "yes"; then
12153
12154$as_echo "#define HAVE_XPM 1" >>confdefs.h
12155
12156 LIBXPM=-lXpm
12157 fi
12158fi
12159
12160
12161### Use -ljpeg if available, unless `--with-jpeg=no'.
12162HAVE_JPEG=no
12163LIBJPEG=
12164if test "${HAVE_X11}" = "yes"; then
12165 if test "${with_jpeg}" != "no"; then
12166 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
1ef6de05 12167if test "x$ac_cv_header_jerror_h" = xyes; then :
067d23c9
KY
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12169$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
1ef6de05 12170if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
067d23c9
KY
12171 $as_echo_n "(cached) " >&6
12172else
12173 ac_check_lib_save_LIBS=$LIBS
12174LIBS="-ljpeg $LIBS"
12175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176/* end confdefs.h. */
12177
12178/* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12181#ifdef __cplusplus
12182extern "C"
12183#endif
12184char jpeg_destroy_compress ();
12185int
12186main ()
12187{
12188return jpeg_destroy_compress ();
12189 ;
12190 return 0;
12191}
12192_ACEOF
12193if ac_fn_c_try_link "$LINENO"; then :
12194 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12195else
12196 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12197fi
12198rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200LIBS=$ac_check_lib_save_LIBS
12201fi
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12203$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
1ef6de05 12204if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
067d23c9
KY
12205 HAVE_JPEG=yes
12206fi
12207
12208fi
12209
12210
12211 fi
12212
12213 if test "${HAVE_JPEG}" = "yes"; then
12214 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12215
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217/* end confdefs.h. */
12218#include <jpeglib.h>
12219 version=JPEG_LIB_VERSION
12220
12221_ACEOF
12222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12223 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12224 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12225
12226else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12228$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12229 HAVE_JPEG=no
12230fi
12231rm -f conftest*
12232
12233 fi
12234 if test "${HAVE_JPEG}" = "yes"; then
12235 LIBJPEG=-ljpeg
12236 fi
12237fi
12238
12239
12240### Use -lpng if available, unless `--with-png=no'.
12241HAVE_PNG=no
12242LIBPNG=
12243if test "${HAVE_X11}" = "yes"; then
12244 if test "${with_png}" != "no"; then
12245 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12246 # in /usr/include/libpng.
12247 for ac_header in png.h libpng/png.h
12248do :
12249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12250ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1ef6de05 12251if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
12252 cat >>confdefs.h <<_ACEOF
12253#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12254_ACEOF
12255
12256fi
12257
12258done
12259
12260 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12262$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
1ef6de05 12263if ${ac_cv_lib_png_png_get_channels+:} false; then :
067d23c9
KY
12264 $as_echo_n "(cached) " >&6
12265else
12266 ac_check_lib_save_LIBS=$LIBS
12267LIBS="-lpng -lz -lm $LIBS"
12268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269/* end confdefs.h. */
12270
12271/* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12274#ifdef __cplusplus
12275extern "C"
12276#endif
12277char png_get_channels ();
12278int
12279main ()
12280{
12281return png_get_channels ();
12282 ;
12283 return 0;
12284}
12285_ACEOF
12286if ac_fn_c_try_link "$LINENO"; then :
12287 ac_cv_lib_png_png_get_channels=yes
12288else
12289 ac_cv_lib_png_png_get_channels=no
12290fi
12291rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293LIBS=$ac_check_lib_save_LIBS
12294fi
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12296$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
1ef6de05 12297if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
067d23c9
KY
12298 HAVE_PNG=yes
12299fi
12300
12301 fi
12302 fi
12303
12304 if test "${HAVE_PNG}" = "yes"; then
12305
12306$as_echo "#define HAVE_PNG 1" >>confdefs.h
12307
12308 LIBPNG="-lpng -lz -lm"
12309 fi
12310fi
12311
12312
12313### Use -ltiff if available, unless `--with-tiff=no'.
12314HAVE_TIFF=no
12315LIBTIFF=
12316if test "${HAVE_X11}" = "yes"; then
12317 if test "${with_tiff}" != "no"; then
12318 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
1ef6de05 12319if test "x$ac_cv_header_tiffio_h" = xyes; then :
067d23c9
KY
12320 tifflibs="-lz -lm"
12321 # At least one tiff package requires the jpeg library.
12322 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12324$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
1ef6de05 12325if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
067d23c9
KY
12326 $as_echo_n "(cached) " >&6
12327else
12328 ac_check_lib_save_LIBS=$LIBS
12329LIBS="-ltiff $tifflibs $LIBS"
12330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331/* end confdefs.h. */
12332
12333/* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12336#ifdef __cplusplus
12337extern "C"
12338#endif
12339char TIFFGetVersion ();
12340int
12341main ()
12342{
12343return TIFFGetVersion ();
12344 ;
12345 return 0;
12346}
12347_ACEOF
12348if ac_fn_c_try_link "$LINENO"; then :
12349 ac_cv_lib_tiff_TIFFGetVersion=yes
12350else
12351 ac_cv_lib_tiff_TIFFGetVersion=no
12352fi
12353rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12355LIBS=$ac_check_lib_save_LIBS
12356fi
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12358$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
1ef6de05 12359if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
067d23c9
KY
12360 HAVE_TIFF=yes
12361fi
12362
12363fi
12364
12365
12366 fi
12367
12368 if test "${HAVE_TIFF}" = "yes"; then
12369
12370$as_echo "#define HAVE_TIFF 1" >>confdefs.h
12371
12372 LIBTIFF=-ltiff
12373 fi
12374fi
12375
12376
12377### Use -lgif or -lungif if available, unless `--with-gif=no'.
12378HAVE_GIF=no
12379LIBGIF=
12380if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12381 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
1ef6de05 12382if test "x$ac_cv_header_gif_lib_h" = xyes; then :
067d23c9
KY
12383 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12384# Earlier versions can crash Emacs.
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12386$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
1ef6de05 12387if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12388 $as_echo_n "(cached) " >&6
12389else
12390 ac_check_lib_save_LIBS=$LIBS
12391LIBS="-lgif $LIBS"
12392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393/* end confdefs.h. */
12394
12395/* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12398#ifdef __cplusplus
12399extern "C"
12400#endif
12401char EGifPutExtensionLast ();
12402int
12403main ()
12404{
12405return EGifPutExtensionLast ();
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410if ac_fn_c_try_link "$LINENO"; then :
12411 ac_cv_lib_gif_EGifPutExtensionLast=yes
12412else
12413 ac_cv_lib_gif_EGifPutExtensionLast=no
12414fi
12415rm -f core conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417LIBS=$ac_check_lib_save_LIBS
12418fi
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12420$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
1ef6de05 12421if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12422 HAVE_GIF=yes
12423else
12424 HAVE_GIF=maybe
12425fi
12426
12427fi
12428
12429
12430
12431 if test "$HAVE_GIF" = yes; then
12432 LIBGIF=-lgif
12433 elif test "$HAVE_GIF" = maybe; then
12434# If gif_lib.h but no libgif, try libungif.
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12436$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
1ef6de05 12437if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12438 $as_echo_n "(cached) " >&6
12439else
12440 ac_check_lib_save_LIBS=$LIBS
12441LIBS="-lungif $LIBS"
12442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443/* end confdefs.h. */
12444
12445/* Override any GCC internal prototype to avoid an error.
12446 Use char because int might match the return type of a GCC
12447 builtin and then its argument prototype would still apply. */
12448#ifdef __cplusplus
12449extern "C"
12450#endif
12451char EGifPutExtensionLast ();
12452int
12453main ()
12454{
12455return EGifPutExtensionLast ();
12456 ;
12457 return 0;
12458}
12459_ACEOF
12460if ac_fn_c_try_link "$LINENO"; then :
12461 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12462else
12463 ac_cv_lib_ungif_EGifPutExtensionLast=no
12464fi
12465rm -f core conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
12467LIBS=$ac_check_lib_save_LIBS
12468fi
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12470$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
1ef6de05 12471if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12472 HAVE_GIF=yes
12473else
12474 HAVE_GIF=no
12475fi
12476
12477 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12478 fi
12479
12480 if test "${HAVE_GIF}" = "yes"; then
12481
12482$as_echo "#define HAVE_GIF 1" >>confdefs.h
12483
12484 fi
12485fi
12486
12487
12488if test "${HAVE_X11}" = "yes"; then
12489 MISSING=""
12490 WITH_NO=""
12491 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12492 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12493 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12494 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12495 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12496 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12497 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12498 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12499 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12500 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12501
12502 if test "X${MISSING}" != X; then
1ef6de05 12503 as_fn_error $? "The following required libraries were not found:
067d23c9
KY
12504 $MISSING
12505Maybe some development libraries/packages are missing?
12506If you don't want to link with them give
12507 $WITH_NO
12508as options to configure" "$LINENO" 5
12509 fi
12510fi
12511
12512### Use -lgpm if available, unless `--with-gpm=no'.
12513HAVE_GPM=no
12514LIBGPM=
12515MOUSE_SUPPORT=
12516if test "${with_gpm}" != "no"; then
12517 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
1ef6de05 12518if test "x$ac_cv_header_gpm_h" = xyes; then :
067d23c9
KY
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12520$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
1ef6de05 12521if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
067d23c9
KY
12522 $as_echo_n "(cached) " >&6
12523else
12524 ac_check_lib_save_LIBS=$LIBS
12525LIBS="-lgpm $LIBS"
12526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527/* end confdefs.h. */
12528
12529/* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532#ifdef __cplusplus
12533extern "C"
12534#endif
12535char Gpm_Open ();
12536int
12537main ()
12538{
12539return Gpm_Open ();
12540 ;
12541 return 0;
12542}
12543_ACEOF
12544if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_gpm_Gpm_Open=yes
12546else
12547 ac_cv_lib_gpm_Gpm_Open=no
12548fi
12549rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551LIBS=$ac_check_lib_save_LIBS
12552fi
12553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12554$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
1ef6de05 12555if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
067d23c9
KY
12556 HAVE_GPM=yes
12557fi
12558
12559fi
12560
12561
12562
12563 if test "${HAVE_GPM}" = "yes"; then
12564
12565$as_echo "#define HAVE_GPM 1" >>confdefs.h
12566
12567 LIBGPM=-lgpm
12568 ## May be reset below.
12569 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12570 fi
12571fi
12572
12573
12574ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
1ef6de05 12575if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
067d23c9
KY
12576
12577$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12578
12579fi
12580
12581
12582
12583C_SWITCH_X_SYSTEM=
12584### Use NeXTstep API to implement GUI.
12585if test "${HAVE_NS}" = "yes"; then
12586
12587$as_echo "#define HAVE_NS 1" >>confdefs.h
12588
12589 if test "${NS_IMPL_COCOA}" = "yes"; then
12590
12591$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12592
12593 GNU_OBJC_CFLAGS=
12594 fi
12595 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12596
12597$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12598
12599 # See also .m.o rule in Makefile.in */
12600 # FIXME: are all these flags really needed? Document here why. */
12601 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12602 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12603 fi
12604 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12605
12606$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12607
12608 fi
12609 # We also have mouse menus.
12610 HAVE_MENUS=yes
12611 OTHER_FILES=ns-app
12612fi
12613
12614
12615### Use session management (-lSM -lICE) if available
12616HAVE_X_SM=no
12617LIBXSM=
12618if test "${HAVE_X11}" = "yes"; then
12619 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
1ef6de05 12620if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
067d23c9
KY
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12622$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
1ef6de05 12623if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
067d23c9
KY
12624 $as_echo_n "(cached) " >&6
12625else
12626 ac_check_lib_save_LIBS=$LIBS
12627LIBS="-lSM -lICE $LIBS"
12628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629/* end confdefs.h. */
12630
12631/* Override any GCC internal prototype to avoid an error.
12632 Use char because int might match the return type of a GCC
12633 builtin and then its argument prototype would still apply. */
12634#ifdef __cplusplus
12635extern "C"
12636#endif
12637char SmcOpenConnection ();
12638int
12639main ()
12640{
12641return SmcOpenConnection ();
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646if ac_fn_c_try_link "$LINENO"; then :
12647 ac_cv_lib_SM_SmcOpenConnection=yes
12648else
12649 ac_cv_lib_SM_SmcOpenConnection=no
12650fi
12651rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653LIBS=$ac_check_lib_save_LIBS
12654fi
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12656$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
1ef6de05 12657if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
067d23c9
KY
12658 HAVE_X_SM=yes
12659fi
12660
12661fi
12662
12663
12664
12665 if test "${HAVE_X_SM}" = "yes"; then
12666
12667$as_echo "#define HAVE_X_SM 1" >>confdefs.h
12668
12669 LIBXSM="-lSM -lICE"
12670 case "$LIBS" in
12671 *-lSM*) ;;
12672 *) LIBS="$LIBXSM $LIBS" ;;
12673 esac
12674 fi
12675fi
12676
12677
12678### Use libxml (-lxml2) if available
12679if test "${with_xml2}" != "no"; then
12680 ### I'm not sure what the version number should be, so I just guessed.
12681
12682 succeeded=no
12683
12684 # Extract the first word of "pkg-config", so it can be a program name with args.
12685set dummy pkg-config; ac_word=$2
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 12688if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
12689 $as_echo_n "(cached) " >&6
12690else
12691 case $PKG_CONFIG in
12692 [\\/]* | ?:[\\/]*)
12693 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12694 ;;
12695 *)
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12703 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12706 fi
12707done
12708 done
12709IFS=$as_save_IFS
12710
12711 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12712 ;;
12713esac
12714fi
12715PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12716if test -n "$PKG_CONFIG"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12718$as_echo "$PKG_CONFIG" >&6; }
12719else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721$as_echo "no" >&6; }
12722fi
12723
12724
12725
12726 if test "$PKG_CONFIG" = "no" ; then
12727 HAVE_LIBXML2=no
12728 else
12729 PKG_CONFIG_MIN_VERSION=0.9.0
12730 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
dab73760
CY
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12732$as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
067d23c9 12733
dab73760 12734 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
067d23c9
KY
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12736$as_echo "yes" >&6; }
12737 succeeded=yes
12738
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12740$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
dab73760 12741 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12743$as_echo "$LIBXML2_CFLAGS" >&6; }
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12746$as_echo_n "checking LIBXML2_LIBS... " >&6; }
dab73760 12747 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12749$as_echo "$LIBXML2_LIBS" >&6; }
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752$as_echo "no" >&6; }
12753 LIBXML2_CFLAGS=""
12754 LIBXML2_LIBS=""
12755 ## If we have a custom action on failure, don't print errors, but
12756 ## do set a variable so people can do so.
dab73760 12757 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
067d23c9
KY
12758
12759 fi
12760
12761
12762
12763 else
12764 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12765 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12766 fi
12767 fi
12768
12769 if test $succeeded = yes; then
12770 HAVE_LIBXML2=yes
12771 else
12772 HAVE_LIBXML2=no
12773 fi
12774
12775 if test "${HAVE_LIBXML2}" = "yes"; then
12776 LIBS="$LIBXML2_LIBS $LIBS"
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12778$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
1ef6de05 12779if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
067d23c9
KY
12780 $as_echo_n "(cached) " >&6
12781else
12782 ac_check_lib_save_LIBS=$LIBS
12783LIBS="-lxml2 $LIBS"
12784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785/* end confdefs.h. */
12786
12787/* Override any GCC internal prototype to avoid an error.
12788 Use char because int might match the return type of a GCC
12789 builtin and then its argument prototype would still apply. */
12790#ifdef __cplusplus
12791extern "C"
12792#endif
12793char htmlReadMemory ();
12794int
12795main ()
12796{
12797return htmlReadMemory ();
12798 ;
12799 return 0;
12800}
12801_ACEOF
12802if ac_fn_c_try_link "$LINENO"; then :
12803 ac_cv_lib_xml2_htmlReadMemory=yes
12804else
12805 ac_cv_lib_xml2_htmlReadMemory=no
12806fi
12807rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809LIBS=$ac_check_lib_save_LIBS
12810fi
12811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12812$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
1ef6de05 12813if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
067d23c9
KY
12814 HAVE_LIBXML2=yes
12815else
12816 HAVE_LIBXML2=no
12817fi
12818
12819 if test "${HAVE_LIBXML2}" = "yes"; then
12820
12821$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12822
12823 else
12824 LIBXML2_LIBS=""
12825 LIBXML2_CFLAGS=""
12826 fi
12827 fi
12828fi
12829
12830
12831
12832# If netdb.h doesn't declare h_errno, we must declare it by hand.
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12834$as_echo_n "checking whether netdb declares h_errno... " >&6; }
1ef6de05 12835if ${emacs_cv_netdb_declares_h_errno+:} false; then :
067d23c9
KY
12836 $as_echo_n "(cached) " >&6
12837else
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839/* end confdefs.h. */
12840#include <netdb.h>
12841int
12842main ()
12843{
12844return h_errno;
12845 ;
12846 return 0;
12847}
12848_ACEOF
12849if ac_fn_c_try_link "$LINENO"; then :
12850 emacs_cv_netdb_declares_h_errno=yes
12851else
12852 emacs_cv_netdb_declares_h_errno=no
12853fi
12854rm -f core conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext conftest.$ac_ext
12856fi
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12858$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12859if test $emacs_cv_netdb_declares_h_errno = yes; then
12860
12861$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12862
12863fi
12864
1ef6de05
PE
12865ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12866if test "x$ac_cv_type_size_t" = xyes; then :
12867
12868else
12869
12870cat >>confdefs.h <<_ACEOF
12871#define size_t unsigned int
12872_ACEOF
12873
12874fi
12875
067d23c9
KY
12876# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12877# for constant arguments. Useless!
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12879$as_echo_n "checking for working alloca.h... " >&6; }
1ef6de05 12880if ${ac_cv_working_alloca_h+:} false; then :
067d23c9
KY
12881 $as_echo_n "(cached) " >&6
12882else
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884/* end confdefs.h. */
12885#include <alloca.h>
12886int
12887main ()
12888{
12889char *p = (char *) alloca (2 * sizeof (int));
12890 if (p) return 0;
12891 ;
12892 return 0;
12893}
12894_ACEOF
12895if ac_fn_c_try_link "$LINENO"; then :
12896 ac_cv_working_alloca_h=yes
12897else
12898 ac_cv_working_alloca_h=no
12899fi
12900rm -f core conftest.err conftest.$ac_objext \
12901 conftest$ac_exeext conftest.$ac_ext
12902fi
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12904$as_echo "$ac_cv_working_alloca_h" >&6; }
12905if test $ac_cv_working_alloca_h = yes; then
12906
12907$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12908
12909fi
12910
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12912$as_echo_n "checking for alloca... " >&6; }
1ef6de05 12913if ${ac_cv_func_alloca_works+:} false; then :
067d23c9
KY
12914 $as_echo_n "(cached) " >&6
12915else
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h. */
12918#ifdef __GNUC__
12919# define alloca __builtin_alloca
12920#else
12921# ifdef _MSC_VER
12922# include <malloc.h>
12923# define alloca _alloca
12924# else
12925# ifdef HAVE_ALLOCA_H
12926# include <alloca.h>
12927# else
12928# ifdef _AIX
12929 #pragma alloca
12930# else
12931# ifndef alloca /* predefined by HP cc +Olibcalls */
1ef6de05 12932void *alloca (size_t);
067d23c9
KY
12933# endif
12934# endif
12935# endif
12936# endif
12937#endif
12938
12939int
12940main ()
12941{
12942char *p = (char *) alloca (1);
12943 if (p) return 0;
12944 ;
12945 return 0;
12946}
12947_ACEOF
12948if ac_fn_c_try_link "$LINENO"; then :
12949 ac_cv_func_alloca_works=yes
12950else
12951 ac_cv_func_alloca_works=no
12952fi
12953rm -f core conftest.err conftest.$ac_objext \
12954 conftest$ac_exeext conftest.$ac_ext
12955fi
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12957$as_echo "$ac_cv_func_alloca_works" >&6; }
12958
12959if test $ac_cv_func_alloca_works = yes; then
12960
12961$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12962
12963else
12964 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12965# that cause trouble. Some versions do not even contain alloca or
12966# contain a buggy version. If you still want to use their alloca,
12967# use ar to extract alloca.o from them instead of compiling alloca.c.
12968
12969ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12970
12971$as_echo "#define C_ALLOCA 1" >>confdefs.h
12972
12973
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12975$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
1ef6de05 12976if ${ac_cv_os_cray+:} false; then :
067d23c9
KY
12977 $as_echo_n "(cached) " >&6
12978else
12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980/* end confdefs.h. */
12981#if defined CRAY && ! defined CRAY2
12982webecray
12983#else
12984wenotbecray
12985#endif
12986
12987_ACEOF
12988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12989 $EGREP "webecray" >/dev/null 2>&1; then :
12990 ac_cv_os_cray=yes
12991else
12992 ac_cv_os_cray=no
12993fi
12994rm -f conftest*
12995
12996fi
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12998$as_echo "$ac_cv_os_cray" >&6; }
12999if test $ac_cv_os_cray = yes; then
13000 for ac_func in _getb67 GETB67 getb67; do
13001 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13002ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1ef6de05 13003if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
13004
13005cat >>confdefs.h <<_ACEOF
13006#define CRAY_STACKSEG_END $ac_func
13007_ACEOF
13008
13009 break
13010fi
13011
13012 done
13013fi
13014
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13016$as_echo_n "checking stack direction for C alloca... " >&6; }
1ef6de05 13017if ${ac_cv_c_stack_direction+:} false; then :
067d23c9
KY
13018 $as_echo_n "(cached) " >&6
13019else
13020 if test "$cross_compiling" = yes; then :
13021 ac_cv_c_stack_direction=0
13022else
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024/* end confdefs.h. */
13025$ac_includes_default
13026int
13027find_stack_direction ()
13028{
13029 static char *addr = 0;
13030 auto char dummy;
13031 if (addr == 0)
13032 {
13033 addr = &dummy;
13034 return find_stack_direction ();
13035 }
13036 else
13037 return (&dummy > addr) ? 1 : -1;
13038}
13039
13040int
13041main ()
13042{
13043 return find_stack_direction () < 0;
13044}
13045_ACEOF
13046if ac_fn_c_try_run "$LINENO"; then :
13047 ac_cv_c_stack_direction=1
13048else
13049 ac_cv_c_stack_direction=-1
13050fi
13051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13052 conftest.$ac_objext conftest.beam conftest.$ac_ext
13053fi
13054
13055fi
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13057$as_echo "$ac_cv_c_stack_direction" >&6; }
13058cat >>confdefs.h <<_ACEOF
13059#define STACK_DIRECTION $ac_cv_c_stack_direction
13060_ACEOF
13061
13062
13063fi
13064
13065
13066if test x"$ac_cv_func_alloca_works" != xyes; then
1ef6de05 13067 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
067d23c9
KY
13068fi
13069
13070# fmod, logb, and frexp are found in -lm on most systems.
13071# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13073$as_echo_n "checking for sqrt in -lm... " >&6; }
1ef6de05 13074if ${ac_cv_lib_m_sqrt+:} false; then :
067d23c9
KY
13075 $as_echo_n "(cached) " >&6
13076else
13077 ac_check_lib_save_LIBS=$LIBS
13078LIBS="-lm $LIBS"
13079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080/* end confdefs.h. */
13081
13082/* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13085#ifdef __cplusplus
13086extern "C"
13087#endif
13088char sqrt ();
13089int
13090main ()
13091{
13092return sqrt ();
13093 ;
13094 return 0;
13095}
13096_ACEOF
13097if ac_fn_c_try_link "$LINENO"; then :
13098 ac_cv_lib_m_sqrt=yes
13099else
13100 ac_cv_lib_m_sqrt=no
13101fi
13102rm -f core conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13104LIBS=$ac_check_lib_save_LIBS
13105fi
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13107$as_echo "$ac_cv_lib_m_sqrt" >&6; }
1ef6de05 13108if test "x$ac_cv_lib_m_sqrt" = xyes; then :
067d23c9
KY
13109 cat >>confdefs.h <<_ACEOF
13110#define HAVE_LIBM 1
13111_ACEOF
13112
13113 LIBS="-lm $LIBS"
13114
13115fi
13116
13117
13118# Check for mail-locking functions in a "mail" library. Probably this should
13119# have the same check as for liblockfile below.
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13121$as_echo_n "checking for maillock in -lmail... " >&6; }
1ef6de05 13122if ${ac_cv_lib_mail_maillock+:} false; then :
067d23c9
KY
13123 $as_echo_n "(cached) " >&6
13124else
13125 ac_check_lib_save_LIBS=$LIBS
13126LIBS="-lmail $LIBS"
13127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128/* end confdefs.h. */
13129
13130/* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13133#ifdef __cplusplus
13134extern "C"
13135#endif
13136char maillock ();
13137int
13138main ()
13139{
13140return maillock ();
13141 ;
13142 return 0;
13143}
13144_ACEOF
13145if ac_fn_c_try_link "$LINENO"; then :
13146 ac_cv_lib_mail_maillock=yes
13147else
13148 ac_cv_lib_mail_maillock=no
13149fi
13150rm -f core conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13152LIBS=$ac_check_lib_save_LIBS
13153fi
13154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13155$as_echo "$ac_cv_lib_mail_maillock" >&6; }
1ef6de05 13156if test "x$ac_cv_lib_mail_maillock" = xyes; then :
067d23c9
KY
13157 have_mail=yes
13158else
13159 have_mail=no
13160fi
13161
13162if test $have_mail = yes; then
13163 LIBS_MAIL=-lmail
13164 LIBS="$LIBS_MAIL $LIBS"
13165
13166$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13167
13168else
13169 LIBS_MAIL=
13170fi
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13172$as_echo_n "checking for maillock in -llockfile... " >&6; }
1ef6de05 13173if ${ac_cv_lib_lockfile_maillock+:} false; then :
067d23c9
KY
13174 $as_echo_n "(cached) " >&6
13175else
13176 ac_check_lib_save_LIBS=$LIBS
13177LIBS="-llockfile $LIBS"
13178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179/* end confdefs.h. */
13180
13181/* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184#ifdef __cplusplus
13185extern "C"
13186#endif
13187char maillock ();
13188int
13189main ()
13190{
13191return maillock ();
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_lockfile_maillock=yes
13198else
13199 ac_cv_lib_lockfile_maillock=no
13200fi
13201rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203LIBS=$ac_check_lib_save_LIBS
13204fi
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13206$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
1ef6de05 13207if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
067d23c9
KY
13208 have_lockfile=yes
13209else
13210 have_lockfile=no
13211fi
13212
13213if test $have_lockfile = yes; then
13214 LIBS_MAIL=-llockfile
13215 LIBS="$LIBS_MAIL $LIBS"
13216
13217$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13218
13219else
13220# If we have the shared liblockfile, assume we must use it for mail
13221# locking (e.g. Debian). If we couldn't link against liblockfile
13222# (no liblockfile.a installed), ensure that we don't need to.
13223 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13224set dummy liblockfile.so; ac_word=$2
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226$as_echo_n "checking for $ac_word... " >&6; }
1ef6de05 13227if ${ac_cv_prog_liblockfile+:} false; then :
067d23c9
KY
13228 $as_echo_n "(cached) " >&6
13229else
13230 if test -n "$liblockfile"; then
13231 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13232else
13233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13235for as_dir in $as_dummy
13236do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_prog_liblockfile="yes"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245done
13246 done
13247IFS=$as_save_IFS
13248
13249 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13250fi
13251fi
13252liblockfile=$ac_cv_prog_liblockfile
13253if test -n "$liblockfile"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13255$as_echo "$liblockfile" >&6; }
13256else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258$as_echo "no" >&6; }
13259fi
13260
13261
13262 if test $ac_cv_prog_liblockfile = yes; then
1ef6de05 13263 as_fn_error $? "Shared liblockfile found but can't link against it.
067d23c9
KY
13264This probably means that movemail could lose mail.
13265There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13266 fi
13267fi
13268for ac_func in touchlock
13269do :
13270 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
1ef6de05 13271if test "x$ac_cv_func_touchlock" = xyes; then :
067d23c9
KY
13272 cat >>confdefs.h <<_ACEOF
13273#define HAVE_TOUCHLOCK 1
13274_ACEOF
13275
13276fi
13277done
13278
13279for ac_header in maillock.h
13280do :
13281 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
1ef6de05 13282if test "x$ac_cv_header_maillock_h" = xyes; then :
067d23c9
KY
13283 cat >>confdefs.h <<_ACEOF
13284#define HAVE_MAILLOCK_H 1
13285_ACEOF
13286
13287fi
13288
13289done
13290
13291
13292
13293## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13294## interlock access to the mail spool. The alternative is a lock file named
13295## /usr/spool/mail/$USER.lock.
13296mail_lock=no
13297case "$opsys" in
13298 aix4-2) mail_lock="lockf" ;;
13299
13300 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13301
13302 ## On GNU/Linux systems, both methods are used by various mail programs.
13303 ## I assume most people are using newer mailers that have heard of flock.
13304 ## Change this if you need to.
13305 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13306 ## configure gets the right answers, and that means *NOT* using flock.
13307 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13308 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13309 ## Debian maintainer hasn't provided a clean fix for Emacs.
13310 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13311 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13312 ## correct logic. -- fx
13313 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13314 ## liblockfile is a Free Software replacement for libmail, used on
13315 ## Debian systems and elsewhere. -rfr.
13316 gnu-*)
13317 mail_lock="flock"
13318 if test $have_mail = yes || test $have_lockfile = yes; then
13319 test $ac_cv_header_maillock_h = yes && mail_lock=no
13320 fi
13321 ;;
13322esac
13323
13324BLESSMAIL_TARGET=
13325case "$mail_lock" in
13326 flock)
13327$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13328 ;;
13329
13330 lockf)
13331$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13332 ;;
13333
13334 *) BLESSMAIL_TARGET="need-blessmail" ;;
13335esac
13336
13337
13338
13339for ac_func in gethostname getdomainname dup2 \
13340rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13341random lrand48 logb frexp fmod rint cbrt ftime setsid \
1fd182f0 13342strerror fpathconf select euidaccess getpagesize tzset setlocale \
067d23c9
KY
13343utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13344__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13345sendto recvfrom getsockopt setsockopt getsockname getpeername \
13346gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13347memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13348cfmakeraw cfsetspeed isnan copysign __executable_start
13349do :
13350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13351ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1ef6de05 13352if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
13353 cat >>confdefs.h <<_ACEOF
13354#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13355_ACEOF
13356
13357fi
13358done
13359
13360
2018939f
AS
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13362$as_echo_n "checking for __builtin_unwind_init... " >&6; }
1ef6de05 13363if ${emacs_cv_func___builtin_unwind_init+:} false; then :
2018939f
AS
13364 $as_echo_n "(cached) " >&6
13365else
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367/* end confdefs.h. */
13368
13369int
13370main ()
13371{
13372__builtin_unwind_init ();
13373 ;
13374 return 0;
13375}
13376_ACEOF
13377if ac_fn_c_try_link "$LINENO"; then :
13378 emacs_cv_func___builtin_unwind_init=yes
13379else
13380 emacs_cv_func___builtin_unwind_init=no
13381fi
13382rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384fi
13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13386$as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13387if test $emacs_cv_func___builtin_unwind_init = yes; then
13388
13389$as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13390
13391fi
13392
067d23c9
KY
13393for ac_header in sys/un.h
13394do :
13395 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
1ef6de05 13396if test "x$ac_cv_header_sys_un_h" = xyes; then :
067d23c9
KY
13397 cat >>confdefs.h <<_ACEOF
13398#define HAVE_SYS_UN_H 1
13399_ACEOF
13400
13401fi
13402
13403done
13404
13405
1f5d53eb
PE
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13407$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
1ef6de05 13408if ${ac_cv_sys_largefile_source+:} false; then :
067d23c9
KY
13409 $as_echo_n "(cached) " >&6
13410else
1f5d53eb
PE
13411 while :; do
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13413/* end confdefs.h. */
1f5d53eb
PE
13414#include <sys/types.h> /* for off_t */
13415 #include <stdio.h>
067d23c9
KY
13416int
13417main ()
13418{
1f5d53eb
PE
13419int (*fp) (FILE *, off_t, int) = fseeko;
13420 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13421 ;
13422 return 0;
13423}
13424_ACEOF
13425if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13426 ac_cv_sys_largefile_source=no; break
067d23c9
KY
13427fi
13428rm -f core conftest.err conftest.$ac_objext \
13429 conftest$ac_exeext conftest.$ac_ext
1f5d53eb 13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13431/* end confdefs.h. */
1f5d53eb
PE
13432#define _LARGEFILE_SOURCE 1
13433#include <sys/types.h> /* for off_t */
13434 #include <stdio.h>
067d23c9
KY
13435int
13436main ()
13437{
1f5d53eb
PE
13438int (*fp) (FILE *, off_t, int) = fseeko;
13439 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13445 ac_cv_sys_largefile_source=1; break
067d23c9
KY
13446fi
13447rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
1f5d53eb
PE
13449 ac_cv_sys_largefile_source=unknown
13450 break
13451done
067d23c9 13452fi
1f5d53eb
PE
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13454$as_echo "$ac_cv_sys_largefile_source" >&6; }
13455case $ac_cv_sys_largefile_source in #(
13456 no | unknown) ;;
13457 *)
13458cat >>confdefs.h <<_ACEOF
13459#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13460_ACEOF
13461;;
13462esac
13463rm -rf conftest*
067d23c9 13464
1f5d53eb
PE
13465# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13466# in glibc 2.1.3, but that breaks too many other things.
13467# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13468if test $ac_cv_sys_largefile_source != unknown; then
13469
13470$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
067d23c9 13471
067d23c9
KY
13472fi
13473
1f5d53eb
PE
13474
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13476$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
1ef6de05 13477if ${ac_cv_func_getpgrp_void+:} false; then :
067d23c9
KY
13478 $as_echo_n "(cached) " >&6
13479else
1f5d53eb 13480 # Use it with a single arg.
067d23c9
KY
13481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482/* end confdefs.h. */
1f5d53eb 13483$ac_includes_default
067d23c9
KY
13484int
13485main ()
13486{
1f5d53eb 13487getpgrp (0);
067d23c9
KY
13488 ;
13489 return 0;
13490}
13491_ACEOF
1f5d53eb
PE
13492if ac_fn_c_try_compile "$LINENO"; then :
13493 ac_cv_func_getpgrp_void=no
067d23c9 13494else
1f5d53eb 13495 ac_cv_func_getpgrp_void=yes
067d23c9 13496fi
1f5d53eb
PE
13497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498
067d23c9 13499fi
1f5d53eb
PE
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13501$as_echo "$ac_cv_func_getpgrp_void" >&6; }
13502if test $ac_cv_func_getpgrp_void = yes; then
13503
13504$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
067d23c9
KY
13505
13506fi
13507
1f5d53eb
PE
13508
13509# Configure gnulib.
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520 LIBC_FATAL_STDERR_=1
13521 export LIBC_FATAL_STDERR_
13522
13523
942f733f
PE
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13525$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
1ef6de05 13526if ${ac_cv_c_bigendian+:} false; then :
942f733f
PE
13527 $as_echo_n "(cached) " >&6
13528else
13529 ac_cv_c_bigendian=unknown
13530 # See if we're dealing with a universal compiler.
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532/* end confdefs.h. */
13533#ifndef __APPLE_CC__
13534 not a universal capable compiler
13535 #endif
13536 typedef int dummy;
13537
13538_ACEOF
13539if ac_fn_c_try_compile "$LINENO"; then :
13540
13541 # Check for potential -arch flags. It is not universal unless
13542 # there are at least two -arch flags with different values.
13543 ac_arch=
13544 ac_prev=
13545 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13546 if test -n "$ac_prev"; then
13547 case $ac_word in
13548 i?86 | x86_64 | ppc | ppc64)
13549 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13550 ac_arch=$ac_word
13551 else
13552 ac_cv_c_bigendian=universal
13553 break
13554 fi
13555 ;;
13556 esac
13557 ac_prev=
13558 elif test "x$ac_word" = "x-arch"; then
13559 ac_prev=arch
13560 fi
13561 done
13562fi
13563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564 if test $ac_cv_c_bigendian = unknown; then
13565 # See if sys/param.h defines the BYTE_ORDER macro.
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567/* end confdefs.h. */
13568#include <sys/types.h>
13569 #include <sys/param.h>
13570
13571int
13572main ()
13573{
13574#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13575 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13576 && LITTLE_ENDIAN)
13577 bogus endian macros
13578 #endif
13579
13580 ;
13581 return 0;
13582}
13583_ACEOF
13584if ac_fn_c_try_compile "$LINENO"; then :
13585 # It does; now see whether it defined to BIG_ENDIAN or not.
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587/* end confdefs.h. */
13588#include <sys/types.h>
13589 #include <sys/param.h>
13590
13591int
13592main ()
13593{
13594#if BYTE_ORDER != BIG_ENDIAN
13595 not big endian
13596 #endif
13597
13598 ;
13599 return 0;
13600}
13601_ACEOF
13602if ac_fn_c_try_compile "$LINENO"; then :
13603 ac_cv_c_bigendian=yes
13604else
13605 ac_cv_c_bigendian=no
13606fi
13607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608fi
13609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13610 fi
13611 if test $ac_cv_c_bigendian = unknown; then
13612 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614/* end confdefs.h. */
13615#include <limits.h>
13616
13617int
13618main ()
13619{
13620#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13621 bogus endian macros
13622 #endif
13623
13624 ;
13625 return 0;
13626}
13627_ACEOF
13628if ac_fn_c_try_compile "$LINENO"; then :
13629 # It does; now see whether it defined to _BIG_ENDIAN or not.
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631/* end confdefs.h. */
13632#include <limits.h>
13633
13634int
13635main ()
13636{
13637#ifndef _BIG_ENDIAN
13638 not big endian
13639 #endif
13640
13641 ;
13642 return 0;
13643}
13644_ACEOF
13645if ac_fn_c_try_compile "$LINENO"; then :
13646 ac_cv_c_bigendian=yes
13647else
13648 ac_cv_c_bigendian=no
13649fi
13650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651fi
13652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 fi
13654 if test $ac_cv_c_bigendian = unknown; then
13655 # Compile a test program.
13656 if test "$cross_compiling" = yes; then :
13657 # Try to guess by grepping values from an object file.
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659/* end confdefs.h. */
13660short int ascii_mm[] =
13661 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13662 short int ascii_ii[] =
13663 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13664 int use_ascii (int i) {
13665 return ascii_mm[i] + ascii_ii[i];
13666 }
13667 short int ebcdic_ii[] =
13668 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13669 short int ebcdic_mm[] =
13670 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13671 int use_ebcdic (int i) {
13672 return ebcdic_mm[i] + ebcdic_ii[i];
13673 }
13674 extern int foo;
13675
13676int
13677main ()
13678{
13679return use_ascii (foo) == use_ebcdic (foo);
13680 ;
13681 return 0;
13682}
13683_ACEOF
13684if ac_fn_c_try_compile "$LINENO"; then :
13685 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13686 ac_cv_c_bigendian=yes
13687 fi
13688 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13689 if test "$ac_cv_c_bigendian" = unknown; then
13690 ac_cv_c_bigendian=no
13691 else
13692 # finding both strings is unlikely to happen, but who knows?
13693 ac_cv_c_bigendian=unknown
13694 fi
13695 fi
13696fi
13697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698else
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700/* end confdefs.h. */
13701$ac_includes_default
13702int
13703main ()
13704{
13705
13706 /* Are we little or big endian? From Harbison&Steele. */
13707 union
13708 {
13709 long int l;
13710 char c[sizeof (long int)];
13711 } u;
13712 u.l = 1;
13713 return u.c[sizeof (long int) - 1] == 1;
13714
13715 ;
13716 return 0;
13717}
13718_ACEOF
13719if ac_fn_c_try_run "$LINENO"; then :
13720 ac_cv_c_bigendian=no
13721else
13722 ac_cv_c_bigendian=yes
13723fi
13724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13725 conftest.$ac_objext conftest.beam conftest.$ac_ext
13726fi
13727
13728 fi
13729fi
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13731$as_echo "$ac_cv_c_bigendian" >&6; }
13732 case $ac_cv_c_bigendian in #(
13733 yes)
13734 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13735;; #(
13736 no)
13737 ;; #(
13738 universal)
13739
13740$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13741
13742 ;; #(
13743 *)
1ef6de05 13744 as_fn_error $? "unknown endianness
0afb4571 13745 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
942f733f
PE
13746 esac
13747
13748
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13750$as_echo_n "checking for inline... " >&6; }
1ef6de05 13751if ${ac_cv_c_inline+:} false; then :
942f733f
PE
13752 $as_echo_n "(cached) " >&6
13753else
13754 ac_cv_c_inline=no
13755for ac_kw in inline __inline__ __inline; do
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757/* end confdefs.h. */
13758#ifndef __cplusplus
13759typedef int foo_t;
13760static $ac_kw foo_t static_foo () {return 0; }
13761$ac_kw foo_t foo () {return 0; }
13762#endif
13763
13764_ACEOF
13765if ac_fn_c_try_compile "$LINENO"; then :
13766 ac_cv_c_inline=$ac_kw
13767fi
13768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13769 test "$ac_cv_c_inline" != no && break
13770done
13771
13772fi
13773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13774$as_echo "$ac_cv_c_inline" >&6; }
13775
13776case $ac_cv_c_inline in
13777 inline | yes) ;;
13778 *)
13779 case $ac_cv_c_inline in
13780 no) ac_val=;;
13781 *) ac_val=$ac_cv_c_inline;;
13782 esac
13783 cat >>confdefs.h <<_ACEOF
13784#ifndef __cplusplus
13785#define inline $ac_val
13786#endif
13787_ACEOF
13788 ;;
13789esac
13790
13791
1f5d53eb
PE
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13793$as_echo_n "checking whether strtold conforms to C99... " >&6; }
1ef6de05 13794if ${gl_cv_func_c99_strtold+:} false; then :
067d23c9
KY
13795 $as_echo_n "(cached) " >&6
13796else
1f5d53eb 13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13798/* end confdefs.h. */
1f5d53eb
PE
13799/* On HP-UX before 11.23, strtold returns a struct instead of
13800 long double. Reject implementations like that, by requiring
13801 compatibility with the C99 prototype. */
13802 #include <stdlib.h>
13803 static long double (*p) (char const *, char **) = strtold;
13804 static long double
13805 test (char const *nptr, char **endptr)
13806 {
13807 long double r;
13808 r = strtold (nptr, endptr);
13809 return r;
13810 }
067d23c9
KY
13811int
13812main ()
13813{
1f5d53eb 13814return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
067d23c9
KY
13815 ;
13816 return 0;
13817}
13818_ACEOF
13819if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13820 gl_cv_func_c99_strtold=yes
067d23c9 13821else
1f5d53eb 13822 gl_cv_func_c99_strtold=no
067d23c9
KY
13823fi
13824rm -f core conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
067d23c9 13826fi
1f5d53eb
PE
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13828$as_echo "$gl_cv_func_c99_strtold" >&6; }
13829 if test $gl_cv_func_c99_strtold = yes; then
067d23c9 13830
1f5d53eb 13831$as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
067d23c9 13832
1f5d53eb 13833 fi
067d23c9 13834
5fa4ac76
PE
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13836$as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
1ef6de05 13837if ${ac_cv_struct_st_dm_mode+:} false; then :
5fa4ac76
PE
13838 $as_echo_n "(cached) " >&6
13839else
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h. */
13842
13843#include <sys/types.h>
13844#include <sys/stat.h>
13845int
13846main ()
13847{
13848struct stat s; s.st_dm_mode;
13849 ;
13850 return 0;
13851}
13852_ACEOF
13853if ac_fn_c_try_compile "$LINENO"; then :
13854 ac_cv_struct_st_dm_mode=yes
13855else
13856 ac_cv_struct_st_dm_mode=no
13857fi
13858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13859fi
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13861$as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13862
13863 if test $ac_cv_struct_st_dm_mode = yes; then
13864
13865$as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13866
13867 fi
13868
13869
13870ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
1ef6de05 13871if test "x$ac_cv_have_decl_strmode" = xyes; then :
5fa4ac76
PE
13872 ac_have_decl=1
13873else
13874 ac_have_decl=0
13875fi
13876
13877cat >>confdefs.h <<_ACEOF
13878#define HAVE_DECL_STRMODE $ac_have_decl
13879_ACEOF
13880
067d23c9 13881
1f5d53eb
PE
13882 GNULIB__EXIT=0;
13883 GNULIB_ATOLL=0;
13884 GNULIB_CALLOC_POSIX=0;
13885 GNULIB_CANONICALIZE_FILE_NAME=0;
13886 GNULIB_GETLOADAVG=0;
13887 GNULIB_GETSUBOPT=0;
13888 GNULIB_GRANTPT=0;
13889 GNULIB_MALLOC_POSIX=0;
9411886d 13890 GNULIB_MBTOWC=0;
1f5d53eb
PE
13891 GNULIB_MKDTEMP=0;
13892 GNULIB_MKOSTEMP=0;
13893 GNULIB_MKOSTEMPS=0;
13894 GNULIB_MKSTEMP=0;
13895 GNULIB_MKSTEMPS=0;
13896 GNULIB_PTSNAME=0;
13897 GNULIB_PUTENV=0;
13898 GNULIB_RANDOM_R=0;
13899 GNULIB_REALLOC_POSIX=0;
13900 GNULIB_REALPATH=0;
13901 GNULIB_RPMATCH=0;
13902 GNULIB_SETENV=0;
13903 GNULIB_STRTOD=0;
13904 GNULIB_STRTOLL=0;
13905 GNULIB_STRTOULL=0;
13906 GNULIB_SYSTEM_POSIX=0;
13907 GNULIB_UNLOCKPT=0;
13908 GNULIB_UNSETENV=0;
9411886d 13909 GNULIB_WCTOMB=0;
1f5d53eb
PE
13910 HAVE__EXIT=1;
13911 HAVE_ATOLL=1;
13912 HAVE_CANONICALIZE_FILE_NAME=1;
13913 HAVE_DECL_GETLOADAVG=1;
13914 HAVE_GETSUBOPT=1;
13915 HAVE_GRANTPT=1;
13916 HAVE_MKDTEMP=1;
13917 HAVE_MKOSTEMP=1;
13918 HAVE_MKOSTEMPS=1;
13919 HAVE_MKSTEMP=1;
13920 HAVE_MKSTEMPS=1;
13921 HAVE_PTSNAME=1;
13922 HAVE_RANDOM_H=1;
13923 HAVE_RANDOM_R=1;
13924 HAVE_REALPATH=1;
13925 HAVE_RPMATCH=1;
13926 HAVE_SETENV=1;
13927 HAVE_DECL_SETENV=1;
13928 HAVE_STRTOD=1;
13929 HAVE_STRTOLL=1;
13930 HAVE_STRTOULL=1;
13931 HAVE_STRUCT_RANDOM_DATA=1;
13932 HAVE_SYS_LOADAVG_H=0;
13933 HAVE_UNLOCKPT=1;
13934 HAVE_DECL_UNSETENV=1;
13935 REPLACE_CALLOC=0;
13936 REPLACE_CANONICALIZE_FILE_NAME=0;
13937 REPLACE_MALLOC=0;
9411886d 13938 REPLACE_MBTOWC=0;
1f5d53eb
PE
13939 REPLACE_MKSTEMP=0;
13940 REPLACE_PUTENV=0;
13941 REPLACE_REALLOC=0;
13942 REPLACE_REALPATH=0;
13943 REPLACE_SETENV=0;
13944 REPLACE_STRTOD=0;
13945 REPLACE_UNSETENV=0;
9411886d 13946 REPLACE_WCTOMB=0;
067d23c9 13947
067d23c9 13948
1f5d53eb
PE
13949 GNULIB_CHOWN=0;
13950 GNULIB_CLOSE=0;
13951 GNULIB_DUP2=0;
13952 GNULIB_DUP3=0;
13953 GNULIB_ENVIRON=0;
13954 GNULIB_EUIDACCESS=0;
13955 GNULIB_FACCESSAT=0;
13956 GNULIB_FCHDIR=0;
13957 GNULIB_FCHOWNAT=0;
13958 GNULIB_FSYNC=0;
13959 GNULIB_FTRUNCATE=0;
13960 GNULIB_GETCWD=0;
13961 GNULIB_GETDOMAINNAME=0;
13962 GNULIB_GETDTABLESIZE=0;
13963 GNULIB_GETGROUPS=0;
13964 GNULIB_GETHOSTNAME=0;
13965 GNULIB_GETLOGIN=0;
13966 GNULIB_GETLOGIN_R=0;
13967 GNULIB_GETPAGESIZE=0;
13968 GNULIB_GETUSERSHELL=0;
13969 GNULIB_LCHOWN=0;
13970 GNULIB_LINK=0;
13971 GNULIB_LINKAT=0;
13972 GNULIB_LSEEK=0;
13973 GNULIB_PIPE=0;
13974 GNULIB_PIPE2=0;
13975 GNULIB_PREAD=0;
13976 GNULIB_PWRITE=0;
13977 GNULIB_READLINK=0;
13978 GNULIB_READLINKAT=0;
13979 GNULIB_RMDIR=0;
13980 GNULIB_SLEEP=0;
13981 GNULIB_SYMLINK=0;
13982 GNULIB_SYMLINKAT=0;
13983 GNULIB_TTYNAME_R=0;
13984 GNULIB_UNISTD_H_GETOPT=0;
13985 GNULIB_UNISTD_H_SIGPIPE=0;
13986 GNULIB_UNLINK=0;
13987 GNULIB_UNLINKAT=0;
13988 GNULIB_USLEEP=0;
13989 GNULIB_WRITE=0;
13990 HAVE_CHOWN=1;
13991 HAVE_DUP2=1;
13992 HAVE_DUP3=1;
13993 HAVE_EUIDACCESS=1;
13994 HAVE_FACCESSAT=1;
13995 HAVE_FCHDIR=1;
13996 HAVE_FCHOWNAT=1;
13997 HAVE_FSYNC=1;
13998 HAVE_FTRUNCATE=1;
13999 HAVE_GETDTABLESIZE=1;
14000 HAVE_GETGROUPS=1;
14001 HAVE_GETHOSTNAME=1;
14002 HAVE_GETLOGIN=1;
14003 HAVE_GETPAGESIZE=1;
14004 HAVE_LCHOWN=1;
14005 HAVE_LINK=1;
14006 HAVE_LINKAT=1;
14007 HAVE_PIPE=1;
14008 HAVE_PIPE2=1;
14009 HAVE_PREAD=1;
14010 HAVE_PWRITE=1;
14011 HAVE_READLINK=1;
14012 HAVE_READLINKAT=1;
14013 HAVE_SLEEP=1;
14014 HAVE_SYMLINK=1;
14015 HAVE_SYMLINKAT=1;
14016 HAVE_UNLINKAT=1;
14017 HAVE_USLEEP=1;
14018 HAVE_DECL_ENVIRON=1;
14019 HAVE_DECL_FCHDIR=1;
14020 HAVE_DECL_GETDOMAINNAME=1;
14021 HAVE_DECL_GETLOGIN_R=1;
14022 HAVE_DECL_GETPAGESIZE=1;
14023 HAVE_DECL_GETUSERSHELL=1;
14024 HAVE_DECL_TTYNAME_R=1;
14025 HAVE_OS_H=0;
14026 HAVE_SYS_PARAM_H=0;
14027 REPLACE_CHOWN=0;
14028 REPLACE_CLOSE=0;
14029 REPLACE_DUP=0;
14030 REPLACE_DUP2=0;
14031 REPLACE_FCHOWNAT=0;
14032 REPLACE_GETCWD=0;
14033 REPLACE_GETDOMAINNAME=0;
14034 REPLACE_GETLOGIN_R=0;
14035 REPLACE_GETGROUPS=0;
14036 REPLACE_GETPAGESIZE=0;
14037 REPLACE_LCHOWN=0;
14038 REPLACE_LINK=0;
14039 REPLACE_LINKAT=0;
14040 REPLACE_LSEEK=0;
14041 REPLACE_PREAD=0;
14042 REPLACE_PWRITE=0;
14043 REPLACE_READLINK=0;
14044 REPLACE_RMDIR=0;
14045 REPLACE_SLEEP=0;
14046 REPLACE_SYMLINK=0;
14047 REPLACE_TTYNAME_R=0;
14048 REPLACE_UNLINK=0;
14049 REPLACE_UNLINKAT=0;
14050 REPLACE_USLEEP=0;
14051 REPLACE_WRITE=0;
14052 UNISTD_H_HAVE_WINSOCK2_H=0;
14053 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
067d23c9 14054
067d23c9 14055
1f5d53eb
PE
14056
14057
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14059$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
1ef6de05 14060if ${gl_cv_have_include_next+:} false; then :
067d23c9
KY
14061 $as_echo_n "(cached) " >&6
14062else
1f5d53eb
PE
14063 rm -rf conftestd1a conftestd1b conftestd2
14064 mkdir conftestd1a conftestd1b conftestd2
14065 cat <<EOF > conftestd1a/conftest.h
14066#define DEFINED_IN_CONFTESTD1
14067#include_next <conftest.h>
14068#ifdef DEFINED_IN_CONFTESTD2
14069int foo;
14070#else
14071#error "include_next doesn't work"
067d23c9 14072#endif
1f5d53eb
PE
14073EOF
14074 cat <<EOF > conftestd1b/conftest.h
14075#define DEFINED_IN_CONFTESTD1
14076#include <stdio.h>
14077#include_next <conftest.h>
14078#ifdef DEFINED_IN_CONFTESTD2
14079int foo;
14080#else
14081#error "include_next doesn't work"
14082#endif
14083EOF
14084 cat <<EOF > conftestd2/conftest.h
14085#ifndef DEFINED_IN_CONFTESTD1
14086#error "include_next test doesn't work"
14087#endif
14088#define DEFINED_IN_CONFTESTD2
14089EOF
14090 gl_save_CPPFLAGS="$CPPFLAGS"
14091 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14093/* end confdefs.h. */
14094#include <conftest.h>
067d23c9 14095_ACEOF
1f5d53eb
PE
14096if ac_fn_c_try_compile "$LINENO"; then :
14097 gl_cv_have_include_next=yes
067d23c9 14098else
1f5d53eb
PE
14099 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101/* end confdefs.h. */
14102#include <conftest.h>
067d23c9 14103_ACEOF
1f5d53eb
PE
14104if ac_fn_c_try_compile "$LINENO"; then :
14105 gl_cv_have_include_next=buggy
14106else
14107 gl_cv_have_include_next=no
067d23c9 14108fi
1f5d53eb 14109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9
KY
14110
14111fi
1f5d53eb
PE
14112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113 CPPFLAGS="$gl_save_CPPFLAGS"
14114 rm -rf conftestd1a conftestd1b conftestd2
067d23c9 14115
1f5d53eb
PE
14116fi
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14118$as_echo "$gl_cv_have_include_next" >&6; }
14119 PRAGMA_SYSTEM_HEADER=
14120 if test $gl_cv_have_include_next = yes; then
14121 INCLUDE_NEXT=include_next
14122 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14123 if test -n "$GCC"; then
14124 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14125 fi
14126 else
14127 if test $gl_cv_have_include_next = buggy; then
14128 INCLUDE_NEXT=include
14129 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14130 else
14131 INCLUDE_NEXT=include
14132 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14133 fi
14134 fi
067d23c9
KY
14135
14136
067d23c9 14137
1f5d53eb
PE
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14139$as_echo_n "checking whether system header files limit the line length... " >&6; }
1ef6de05 14140if ${gl_cv_pragma_columns+:} false; then :
1f5d53eb
PE
14141 $as_echo_n "(cached) " >&6
14142else
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144/* end confdefs.h. */
067d23c9 14145
1f5d53eb
PE
14146#ifdef __TANDEM
14147choke me
14148#endif
067d23c9 14149
067d23c9 14150_ACEOF
1f5d53eb
PE
14151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14152 $EGREP "choke me" >/dev/null 2>&1; then :
14153 gl_cv_pragma_columns=yes
14154else
14155 gl_cv_pragma_columns=no
067d23c9 14156fi
1f5d53eb 14157rm -f conftest*
067d23c9 14158
067d23c9
KY
14159
14160fi
1f5d53eb
PE
14161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14162$as_echo "$gl_cv_pragma_columns" >&6; }
14163 if test $gl_cv_pragma_columns = yes; then
14164 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14165 else
14166 PRAGMA_COLUMNS=
14167 fi
067d23c9 14168
067d23c9 14169
067d23c9
KY
14170
14171
067d23c9 14172
067d23c9
KY
14173
14174
067d23c9 14175
067d23c9 14176
067d23c9
KY
14177
14178
067d23c9 14179
067d23c9 14180
067d23c9 14181
067d23c9 14182
067d23c9 14183
067d23c9 14184
1f5d53eb
PE
14185 if test $gl_cv_have_include_next = yes; then
14186 gl_cv_next_getopt_h='<'getopt.h'>'
14187 else
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14189$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
1ef6de05 14190if ${gl_cv_next_getopt_h+:} false; then :
1f5d53eb
PE
14191 $as_echo_n "(cached) " >&6
14192else
067d23c9 14193
1f5d53eb 14194 if test $ac_cv_header_getopt_h = yes; then
067d23c9 14195
067d23c9 14196
1f5d53eb
PE
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198/* end confdefs.h. */
14199#include <getopt.h>
14200
14201_ACEOF
14202 case "$host_os" in
14203 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14204 *) gl_absname_cpp="$ac_cpp" ;;
14205 esac
14206 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14207 sed -n '\#/getopt.h#{
14208 s#.*"\(.*/getopt.h\)".*#\1#
14209 s#^/[^/]#//&#
14210 p
14211 q
14212 }'`'"'
14213 else
14214 gl_cv_next_getopt_h='<'getopt.h'>'
14215 fi
067d23c9
KY
14216
14217
14218fi
1f5d53eb
PE
14219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14220$as_echo "$gl_cv_next_getopt_h" >&6; }
14221 fi
14222 NEXT_GETOPT_H=$gl_cv_next_getopt_h
067d23c9 14223
1f5d53eb
PE
14224 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14225 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14226 gl_next_as_first_directive='<'getopt.h'>'
14227 else
14228 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14229 gl_next_as_first_directive=$gl_cv_next_getopt_h
14230 fi
14231 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
067d23c9 14232
067d23c9
KY
14233
14234
067d23c9 14235
1f5d53eb
PE
14236 if test $ac_cv_header_getopt_h = yes; then
14237 HAVE_GETOPT_H=1
14238 else
14239 HAVE_GETOPT_H=0
14240 fi
067d23c9 14241
1f5d53eb
PE
14242
14243 gl_replace_getopt=
14244
14245 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14246 for ac_header in getopt.h
14247do :
14248 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
1ef6de05 14249if test "x$ac_cv_header_getopt_h" = xyes; then :
1f5d53eb
PE
14250 cat >>confdefs.h <<_ACEOF
14251#define HAVE_GETOPT_H 1
14252_ACEOF
067d23c9
KY
14253
14254else
1f5d53eb 14255 gl_replace_getopt=yes
067d23c9
KY
14256fi
14257
1f5d53eb
PE
14258done
14259
14260 fi
14261
14262 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14263 for ac_func in getopt_long_only
14264do :
14265 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
1ef6de05 14266if test "x$ac_cv_func_getopt_long_only" = xyes; then :
1f5d53eb
PE
14267 cat >>confdefs.h <<_ACEOF
14268#define HAVE_GETOPT_LONG_ONLY 1
14269_ACEOF
067d23c9 14270
067d23c9 14271else
1f5d53eb 14272 gl_replace_getopt=yes
067d23c9 14273fi
1f5d53eb 14274done
067d23c9 14275
1f5d53eb 14276 fi
067d23c9 14277
1f5d53eb
PE
14278 if test -z "$gl_replace_getopt"; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14280$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
1ef6de05 14281if ${gl_cv_func_getopt_posix+:} false; then :
067d23c9
KY
14282 $as_echo_n "(cached) " >&6
14283else
1f5d53eb
PE
14284
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 14286/* end confdefs.h. */
1f5d53eb 14287#include <unistd.h>
067d23c9
KY
14288int
14289main ()
14290{
1f5d53eb 14291int *p = &optreset; return optreset;
067d23c9
KY
14292 ;
14293 return 0;
14294}
14295_ACEOF
1f5d53eb
PE
14296if ac_fn_c_try_compile "$LINENO"; then :
14297 gl_optind_min=1
1fd182f0 14298else
1f5d53eb 14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14300/* end confdefs.h. */
1f5d53eb 14301#include <getopt.h>
1fd182f0
PE
14302int
14303main ()
14304{
1f5d53eb 14305return !getopt_clip;
1fd182f0
PE
14306 ;
14307 return 0;
14308}
14309_ACEOF
14310if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 14311 gl_optind_min=1
1fd182f0 14312else
1f5d53eb 14313 gl_optind_min=0
1fd182f0
PE
14314fi
14315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14316fi
1f5d53eb 14317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14318
1f5d53eb
PE
14319 gl_save_CPPFLAGS=$CPPFLAGS
14320 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14321 if test "$cross_compiling" = yes; then :
14322 case "$host_os" in
14323 mingw*) gl_cv_func_getopt_posix="guessing no";;
14324 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14325 *) gl_cv_func_getopt_posix="guessing yes";;
14326 esac
1fd182f0 14327
1f5d53eb
PE
14328else
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330/* end confdefs.h. */
1fd182f0 14331
1f5d53eb
PE
14332#include <unistd.h>
14333#include <stdlib.h>
14334#include <string.h>
1fd182f0 14335
1f5d53eb
PE
14336int
14337main ()
14338{
14339 {
14340 int argc = 0;
14341 char *argv[10];
14342 int c;
1fd182f0 14343
1f5d53eb
PE
14344 argv[argc++] = "program";
14345 argv[argc++] = "-a";
14346 argv[argc++] = "foo";
14347 argv[argc++] = "bar";
14348 argv[argc] = NULL;
14349 optind = OPTIND_MIN;
14350 opterr = 0;
b06b1098 14351
1f5d53eb
PE
14352 c = getopt (argc, argv, "ab");
14353 if (!(c == 'a'))
14354 return 1;
14355 c = getopt (argc, argv, "ab");
14356 if (!(c == -1))
14357 return 2;
14358 if (!(optind == 2))
14359 return 3;
14360 }
14361 /* Some internal state exists at this point. */
14362 {
14363 int argc = 0;
14364 char *argv[10];
14365 int c;
b06b1098 14366
1f5d53eb
PE
14367 argv[argc++] = "program";
14368 argv[argc++] = "donald";
14369 argv[argc++] = "-p";
14370 argv[argc++] = "billy";
14371 argv[argc++] = "duck";
14372 argv[argc++] = "-a";
14373 argv[argc++] = "bar";
14374 argv[argc] = NULL;
14375 optind = OPTIND_MIN;
14376 opterr = 0;
b06b1098 14377
1f5d53eb
PE
14378 c = getopt (argc, argv, "+abp:q:");
14379 if (!(c == -1))
14380 return 4;
14381 if (!(strcmp (argv[0], "program") == 0))
14382 return 5;
14383 if (!(strcmp (argv[1], "donald") == 0))
14384 return 6;
14385 if (!(strcmp (argv[2], "-p") == 0))
14386 return 7;
14387 if (!(strcmp (argv[3], "billy") == 0))
14388 return 8;
14389 if (!(strcmp (argv[4], "duck") == 0))
14390 return 9;
14391 if (!(strcmp (argv[5], "-a") == 0))
14392 return 10;
14393 if (!(strcmp (argv[6], "bar") == 0))
14394 return 11;
14395 if (!(optind == 1))
14396 return 12;
14397 }
14398 /* Detect MacOS 10.5, AIX 7.1 bug. */
14399 {
14400 char *argv[3] = { "program", "-ab", NULL };
14401 optind = OPTIND_MIN;
14402 opterr = 0;
14403 if (getopt (2, argv, "ab:") != 'a')
14404 return 13;
14405 if (getopt (2, argv, "ab:") != '?')
14406 return 14;
14407 if (optopt != 'b')
14408 return 15;
14409 if (optind != 2)
14410 return 16;
14411 }
d6974efa 14412
1f5d53eb
PE
14413 return 0;
14414}
d6974efa 14415
1f5d53eb
PE
14416_ACEOF
14417if ac_fn_c_try_run "$LINENO"; then :
14418 gl_cv_func_getopt_posix=yes
14419else
14420 gl_cv_func_getopt_posix=no
14421fi
14422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14423 conftest.$ac_objext conftest.beam conftest.$ac_ext
14424fi
d6974efa 14425
1f5d53eb 14426 CPPFLAGS=$gl_save_CPPFLAGS
1fd182f0 14427
1f5d53eb
PE
14428fi
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14430$as_echo "$gl_cv_func_getopt_posix" >&6; }
14431 case "$gl_cv_func_getopt_posix" in
14432 *no) gl_replace_getopt=yes ;;
14433 esac
14434 fi
1fd182f0 14435
1f5d53eb
PE
14436 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14438$as_echo_n "checking for working GNU getopt function... " >&6; }
1ef6de05 14439if ${gl_cv_func_getopt_gnu+:} false; then :
1fd182f0 14440 $as_echo_n "(cached) " >&6
1f5d53eb
PE
14441else
14442 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14443 # optstring is necessary for programs like m4 that have POSIX-mandated
14444 # semantics for supporting options interspersed with files.
14445 # Also, since getopt_long is a GNU extension, we require optind=0.
14446 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14447 # so take care to revert to the correct (non-)export state.
14448 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14449 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14450 xx) gl_had_POSIXLY_CORRECT=exported ;;
14451 x) gl_had_POSIXLY_CORRECT=yes ;;
14452 *) gl_had_POSIXLY_CORRECT= ;;
14453 esac
14454 POSIXLY_CORRECT=1
14455 export POSIXLY_CORRECT
14456 if test "$cross_compiling" = yes; then :
14457 case $host_os:$ac_cv_have_decl_optreset in
14458 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14459 *:yes) gl_cv_func_getopt_gnu=no;;
14460 *) gl_cv_func_getopt_gnu=yes;;
14461 esac
14462
1fd182f0
PE
14463else
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465/* end confdefs.h. */
1f5d53eb
PE
14466#include <getopt.h>
14467 #include <stddef.h>
14468 #include <string.h>
14469
1fd182f0
PE
14470int
14471main ()
14472{
1f5d53eb
PE
14473
14474 int result = 0;
14475 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14476 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14477 OSF/1 5.1, Solaris 10. */
14478 {
14479 char *myargv[3];
14480 myargv[0] = "conftest";
14481 myargv[1] = "-+";
14482 myargv[2] = 0;
14483 opterr = 0;
14484 if (getopt (2, myargv, "+a") != '?')
14485 result |= 1;
14486 }
14487 /* This code succeeds on glibc 2.8, mingw,
14488 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14489 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14490 {
14491 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14492
14493 optind = 1;
14494 if (getopt (4, argv, "p::") != 'p')
14495 result |= 2;
14496 else if (optarg != NULL)
14497 result |= 4;
14498 else if (getopt (4, argv, "p::") != -1)
14499 result |= 6;
14500 else if (optind != 2)
14501 result |= 8;
14502 }
14503 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14504 {
14505 char *argv[] = { "program", "foo", "-p", NULL };
14506 optind = 0;
14507 if (getopt (3, argv, "-p") != 1)
14508 result |= 16;
14509 else if (getopt (3, argv, "-p") != 'p')
14510 result |= 32;
14511 }
14512 /* This code fails on glibc 2.11. */
14513 {
14514 char *argv[] = { "program", "-b", "-a", NULL };
14515 optind = opterr = 0;
14516 if (getopt (3, argv, "+:a:b") != 'b')
14517 result |= 64;
14518 else if (getopt (3, argv, "+:a:b") != ':')
14519 result |= 64;
14520 }
14521 return result;
14522
1fd182f0
PE
14523 ;
14524 return 0;
14525}
14526_ACEOF
1f5d53eb
PE
14527if ac_fn_c_try_run "$LINENO"; then :
14528 gl_cv_func_getopt_gnu=yes
1fd182f0 14529else
1f5d53eb 14530 gl_cv_func_getopt_gnu=no
1fd182f0 14531fi
1f5d53eb
PE
14532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14533 conftest.$ac_objext conftest.beam conftest.$ac_ext
1fd182f0 14534fi
1fd182f0 14535
1f5d53eb
PE
14536 case $gl_had_POSIXLY_CORRECT in
14537 exported) ;;
14538 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14539 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14540 esac
1fd182f0 14541
1f5d53eb
PE
14542fi
14543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14544$as_echo "$gl_cv_func_getopt_gnu" >&6; }
14545 if test "$gl_cv_func_getopt_gnu" = "no"; then
14546 gl_replace_getopt=yes
14547 fi
1fd182f0
PE
14548 fi
14549
1f5d53eb 14550ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
1ef6de05 14551if test "x$ac_cv_have_decl_getenv" = xyes; then :
1f5d53eb
PE
14552 ac_have_decl=1
14553else
14554 ac_have_decl=0
14555fi
1fd182f0 14556
1f5d53eb
PE
14557cat >>confdefs.h <<_ACEOF
14558#define HAVE_DECL_GETENV $ac_have_decl
14559_ACEOF
1fd182f0
PE
14560
14561
14562
14563
1f5d53eb
PE
14564
14565
14566 if test -n "$gl_replace_getopt"; then :
14567
14568
14569
14570 GETOPT_H=getopt.h
14571
14572$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14573
14574
14575
14576 GNULIB_UNISTD_H_GETOPT=1
14577
14578
14579
14580
14581
14582
14583
14584
14585 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14596
14597
14598
14599
14600
14601
14602fi
14603
14604
1f5d53eb 14605
ae0d7250
PE
14606 GNULIB_FCHMODAT=0;
14607 GNULIB_FSTATAT=0;
14608 GNULIB_FUTIMENS=0;
14609 GNULIB_LCHMOD=0;
14610 GNULIB_LSTAT=0;
14611 GNULIB_MKDIRAT=0;
14612 GNULIB_MKFIFO=0;
14613 GNULIB_MKFIFOAT=0;
14614 GNULIB_MKNOD=0;
14615 GNULIB_MKNODAT=0;
14616 GNULIB_STAT=0;
14617 GNULIB_UTIMENSAT=0;
14618 HAVE_FCHMODAT=1;
14619 HAVE_FSTATAT=1;
14620 HAVE_FUTIMENS=1;
14621 HAVE_LCHMOD=1;
14622 HAVE_LSTAT=1;
14623 HAVE_MKDIRAT=1;
14624 HAVE_MKFIFO=1;
14625 HAVE_MKFIFOAT=1;
14626 HAVE_MKNOD=1;
14627 HAVE_MKNODAT=1;
14628 HAVE_UTIMENSAT=1;
14629 REPLACE_FSTAT=0;
14630 REPLACE_FSTATAT=0;
14631 REPLACE_FUTIMENS=0;
14632 REPLACE_LSTAT=0;
14633 REPLACE_MKDIR=0;
14634 REPLACE_MKFIFO=0;
14635 REPLACE_MKNOD=0;
14636 REPLACE_STAT=0;
14637 REPLACE_UTIMENSAT=0;
1f5d53eb
PE
14638
14639
14640
14641
14642 for ac_func in $ac_func_list
14643do :
14644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14645ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1ef6de05 14646if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1f5d53eb
PE
14647 cat >>confdefs.h <<_ACEOF
14648#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14649_ACEOF
1fd182f0 14650
e275c824 14651fi
1f5d53eb 14652done
1fd182f0
PE
14653
14654
e275c824 14655
1fd182f0 14656
ae0d7250
PE
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14658$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
1ef6de05 14659if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
ae0d7250
PE
14660 $as_echo_n "(cached) " >&6
14661else
14662 rm -f conftest.sym conftest.file
14663 echo >conftest.file
14664 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14665 if test "$cross_compiling" = yes; then :
14666 # When cross-compiling, be pessimistic so we will end up using the
14667 # replacement version of lstat that checks for trailing slashes and
14668 # calls lstat a second time when necessary.
14669 ac_cv_func_lstat_dereferences_slashed_symlink=no
14670
14671else
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673/* end confdefs.h. */
14674$ac_includes_default
14675int
14676main ()
14677{
14678struct stat sbuf;
14679 /* Linux will dereference the symlink and fail, as required by
14680 POSIX. That is better in the sense that it means we will not
14681 have to compile and use the lstat wrapper. */
14682 return lstat ("conftest.sym/", &sbuf) == 0;
14683
14684 ;
14685 return 0;
14686}
14687_ACEOF
14688if ac_fn_c_try_run "$LINENO"; then :
14689 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14690else
14691 ac_cv_func_lstat_dereferences_slashed_symlink=no
14692fi
14693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14694 conftest.$ac_objext conftest.beam conftest.$ac_ext
14695fi
14696
14697 else
14698 # If the 'ln -s' command failed, then we probably don't even
14699 # have an lstat function.
14700 ac_cv_func_lstat_dereferences_slashed_symlink=no
14701 fi
14702 rm -f conftest.sym conftest.file
14703
14704fi
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14706$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14707 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14708
14709cat >>confdefs.h <<_ACEOF
14710#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14711_ACEOF
14712
14713 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14714
14715
14716
14717
14718
14719
14720
14721
14722 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14723
14724 fi
14725
14726
14727 GNULIB_MKTIME=0;
14728 GNULIB_NANOSLEEP=0;
14729 GNULIB_STRPTIME=0;
14730 GNULIB_TIMEGM=0;
14731 GNULIB_TIME_R=0;
14732 HAVE_DECL_LOCALTIME_R=1;
14733 HAVE_NANOSLEEP=1;
14734 HAVE_STRPTIME=1;
14735 HAVE_TIMEGM=1;
14736 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14737 REPLACE_MKTIME=GNULIB_PORTCHECK;
14738 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14739 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14740
14741
14742
14743
1f5d53eb
PE
14744 gl_cv_c_multiarch=no
14745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746/* end confdefs.h. */
14747#ifndef __APPLE_CC__
14748 not a universal capable compiler
14749 #endif
14750 typedef int dummy;
e275c824
PE
14751
14752_ACEOF
1f5d53eb 14753if ac_fn_c_try_compile "$LINENO"; then :
e275c824 14754
1f5d53eb
PE
14755 arch=
14756 prev=
14757 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14758 if test -n "$prev"; then
14759 case $word in
14760 i?86 | x86_64 | ppc | ppc64)
14761 if test -z "$arch" || test "$arch" = "$word"; then
14762 arch="$word"
14763 else
14764 gl_cv_c_multiarch=yes
14765 fi
14766 ;;
14767 esac
14768 prev=
14769 else
14770 if test "x$word" = "x-arch"; then
14771 prev=arch
14772 fi
14773 fi
14774 done
e275c824
PE
14775
14776fi
1f5d53eb
PE
14777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14778 if test $gl_cv_c_multiarch = yes; then
14779 APPLE_UNIVERSAL_BUILD=1
e275c824 14780 else
1f5d53eb 14781 APPLE_UNIVERSAL_BUILD=0
e275c824
PE
14782 fi
14783
14784
ae0d7250
PE
14785
14786
1f5d53eb
PE
14787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14788$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
1ef6de05 14789if ${ac_cv_header_stdbool_h+:} false; then :
1f5d53eb
PE
14790 $as_echo_n "(cached) " >&6
14791else
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793/* end confdefs.h. */
e275c824 14794
1f5d53eb
PE
14795 #include <stdbool.h>
14796 #ifndef bool
14797 "error: bool is not defined"
14798 #endif
14799 #ifndef false
14800 "error: false is not defined"
14801 #endif
14802 #if false
14803 "error: false is not 0"
14804 #endif
14805 #ifndef true
14806 "error: true is not defined"
14807 #endif
14808 #if true != 1
14809 "error: true is not 1"
14810 #endif
14811 #ifndef __bool_true_false_are_defined
14812 "error: __bool_true_false_are_defined is not defined"
14813 #endif
e275c824 14814
1f5d53eb 14815 struct s { _Bool s: 1; _Bool t; } s;
e275c824 14816
1f5d53eb
PE
14817 char a[true == 1 ? 1 : -1];
14818 char b[false == 0 ? 1 : -1];
14819 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14820 char d[(bool) 0.5 == true ? 1 : -1];
14821 /* See body of main program for 'e'. */
14822 char f[(_Bool) 0.0 == false ? 1 : -1];
14823 char g[true];
14824 char h[sizeof (_Bool)];
14825 char i[sizeof s.t];
14826 enum { j = false, k = true, l = false * true, m = true * 256 };
14827 /* The following fails for
14828 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14829 _Bool n[m];
14830 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14831 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14832 /* Catch a bug in an HP-UX C compiler. See
14833 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14834 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14835 */
14836 _Bool q = true;
14837 _Bool *pq = &q;
e275c824 14838
1f5d53eb
PE
14839int
14840main ()
14841{
e275c824 14842
1f5d53eb
PE
14843 bool e = &s;
14844 *pq |= q;
14845 *pq |= ! q;
14846 /* Refer to every declared value, to avoid compiler optimizations. */
14847 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14848 + !m + !n + !o + !p + !q + !pq);
e275c824 14849
1f5d53eb
PE
14850 ;
14851 return 0;
14852}
14853_ACEOF
14854if ac_fn_c_try_compile "$LINENO"; then :
14855 ac_cv_header_stdbool_h=yes
14856else
14857 ac_cv_header_stdbool_h=no
14858fi
14859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860fi
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14862$as_echo "$ac_cv_header_stdbool_h" >&6; }
14863 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
1ef6de05 14864if test "x$ac_cv_type__Bool" = xyes; then :
e275c824 14865
1f5d53eb
PE
14866cat >>confdefs.h <<_ACEOF
14867#define HAVE__BOOL 1
14868_ACEOF
e275c824
PE
14869
14870
1f5d53eb 14871fi
e275c824
PE
14872
14873
14874
1f5d53eb
PE
14875 REPLACE_NULL=0;
14876 HAVE_WCHAR_T=1;
14877 STDDEF_H='';
b06b1098
PE
14878
14879
1f5d53eb
PE
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14881$as_echo_n "checking for wchar_t... " >&6; }
1ef6de05 14882if ${gt_cv_c_wchar_t+:} false; then :
e275c824
PE
14883 $as_echo_n "(cached) " >&6
14884else
1f5d53eb 14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824 14886/* end confdefs.h. */
1f5d53eb
PE
14887#include <stddef.h>
14888 wchar_t foo = (wchar_t)'\0';
14889int
14890main ()
14891{
e275c824 14892
1f5d53eb
PE
14893 ;
14894 return 0;
14895}
e275c824 14896_ACEOF
1f5d53eb
PE
14897if ac_fn_c_try_compile "$LINENO"; then :
14898 gt_cv_c_wchar_t=yes
14899else
14900 gt_cv_c_wchar_t=no
e275c824 14901fi
1f5d53eb
PE
14902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903fi
14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14905$as_echo "$gt_cv_c_wchar_t" >&6; }
14906 if test $gt_cv_c_wchar_t = yes; then
e275c824 14907
1f5d53eb 14908$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
e275c824 14909
e275c824
PE
14910 fi
14911
14912
5f90be1b
PE
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14914$as_echo_n "checking for unsigned long long int... " >&6; }
1ef6de05 14915if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5f90be1b
PE
14916 $as_echo_n "(cached) " >&6
14917else
14918 ac_cv_type_unsigned_long_long_int=yes
14919 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921/* end confdefs.h. */
14922
14923 /* For now, do not test the preprocessor; as of 2007 there are too many
14924 implementations with broken preprocessors. Perhaps this can
14925 be revisited in 2012. In the meantime, code should not expect
14926 #if to work with literals wider than 32 bits. */
14927 /* Test literals. */
14928 long long int ll = 9223372036854775807ll;
14929 long long int nll = -9223372036854775807LL;
14930 unsigned long long int ull = 18446744073709551615ULL;
14931 /* Test constant expressions. */
14932 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14933 ? 1 : -1)];
14934 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14935 ? 1 : -1)];
14936 int i = 63;
14937int
14938main ()
14939{
14940/* Test availability of runtime routines for shift and division. */
14941 long long int llmax = 9223372036854775807ll;
14942 unsigned long long int ullmax = 18446744073709551615ull;
14943 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14944 | (llmax / ll) | (llmax % ll)
14945 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14946 | (ullmax / ull) | (ullmax % ull));
14947 ;
14948 return 0;
14949}
14950
14951_ACEOF
14952if ac_fn_c_try_link "$LINENO"; then :
14953
14954else
14955 ac_cv_type_unsigned_long_long_int=no
14956fi
14957rm -f core conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14959 fi
14960fi
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14962$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14963 if test $ac_cv_type_unsigned_long_long_int = yes; then
14964
14965$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14966
14967 fi
14968
14969
14970
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14972$as_echo_n "checking for long long int... " >&6; }
1ef6de05 14973if ${ac_cv_type_long_long_int+:} false; then :
5f90be1b
PE
14974 $as_echo_n "(cached) " >&6
14975else
14976 ac_cv_type_long_long_int=yes
14977 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14978 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14979 if test $ac_cv_type_long_long_int = yes; then
14980 if test "$cross_compiling" = yes; then :
14981 :
14982else
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984/* end confdefs.h. */
14985#include <limits.h>
14986 #ifndef LLONG_MAX
14987 # define HALF \
14988 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14989 # define LLONG_MAX (HALF - 1 + HALF)
14990 #endif
14991int
14992main ()
14993{
14994long long int n = 1;
14995 int i;
14996 for (i = 0; ; i++)
14997 {
14998 long long int m = n << i;
14999 if (m >> i != n)
15000 return 1;
15001 if (LLONG_MAX / 2 < m)
15002 break;
15003 }
15004 return 0;
15005 ;
15006 return 0;
15007}
15008_ACEOF
15009if ac_fn_c_try_run "$LINENO"; then :
15010
15011else
15012 ac_cv_type_long_long_int=no
15013fi
15014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15015 conftest.$ac_objext conftest.beam conftest.$ac_ext
15016fi
15017
15018 fi
15019 fi
15020fi
15021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15022$as_echo "$ac_cv_type_long_long_int" >&6; }
15023 if test $ac_cv_type_long_long_int = yes; then
15024
15025$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15026
15027 fi
15028
15029
15030
15031
15032
15033
1f5d53eb
PE
15034 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15035"
1ef6de05 15036if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
e275c824 15037
1f5d53eb 15038$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
e275c824 15039
e275c824
PE
15040fi
15041
e275c824 15042
e275c824 15043
e275c824 15044
5fa4ac76 15045
5fa4ac76
PE
15046
15047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15048$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
1ef6de05 15049if ${ac_cv_header_stat_broken+:} false; then :
5fa4ac76
PE
15050 $as_echo_n "(cached) " >&6
15051else
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053/* end confdefs.h. */
15054#include <sys/types.h>
15055#include <sys/stat.h>
15056
15057#if defined S_ISBLK && defined S_IFDIR
15058extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15059#endif
15060
15061#if defined S_ISBLK && defined S_IFCHR
15062extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15063#endif
15064
15065#if defined S_ISLNK && defined S_IFREG
15066extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15067#endif
15068
15069#if defined S_ISSOCK && defined S_IFREG
15070extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15071#endif
15072
15073_ACEOF
15074if ac_fn_c_try_compile "$LINENO"; then :
15075 ac_cv_header_stat_broken=no
15076else
15077 ac_cv_header_stat_broken=yes
15078fi
15079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080fi
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15082$as_echo "$ac_cv_header_stat_broken" >&6; }
15083if test $ac_cv_header_stat_broken = yes; then
15084
15085$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15086
15087fi
15088
15089
15090
1f5d53eb
PE
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15092$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
1ef6de05 15093if ${ac_cv_c_restrict+:} false; then :
d6974efa 15094 $as_echo_n "(cached) " >&6
e275c824 15095else
1f5d53eb
PE
15096 ac_cv_c_restrict=no
15097 # The order here caters to the fact that C++ does not require restrict.
15098 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6974efa 15100/* end confdefs.h. */
1f5d53eb
PE
15101typedef int * int_ptr;
15102 int foo (int_ptr $ac_kw ip) {
15103 return ip[0];
15104 }
d6974efa
PE
15105int
15106main ()
15107{
1f5d53eb
PE
15108int s[1];
15109 int * $ac_kw t = s;
15110 t[0] = 0;
15111 return foo(t)
d6974efa
PE
15112 ;
15113 return 0;
15114}
e275c824 15115_ACEOF
1f5d53eb
PE
15116if ac_fn_c_try_compile "$LINENO"; then :
15117 ac_cv_c_restrict=$ac_kw
15118fi
15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 test "$ac_cv_c_restrict" != no && break
15121 done
15122
15123fi
15124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15125$as_echo "$ac_cv_c_restrict" >&6; }
15126
15127 case $ac_cv_c_restrict in
15128 restrict) ;;
15129 no) $as_echo "#define restrict /**/" >>confdefs.h
15130 ;;
15131 *) cat >>confdefs.h <<_ACEOF
15132#define restrict $ac_cv_c_restrict
15133_ACEOF
15134 ;;
15135 esac
15136
15137
15138
15139
15140
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15142$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
1ef6de05 15143if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
1f5d53eb 15144 $as_echo_n "(cached) " >&6
e275c824 15145else
d6974efa
PE
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147/* end confdefs.h. */
1f5d53eb
PE
15148#include <time.h>
15149
d6974efa
PE
15150int
15151main ()
15152{
1f5d53eb 15153static struct timespec x; x.tv_sec = x.tv_nsec;
d6974efa
PE
15154 ;
15155 return 0;
15156}
15157_ACEOF
15158if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 15159 gl_cv_sys_struct_timespec_in_time_h=yes
e275c824 15160else
1f5d53eb 15161 gl_cv_sys_struct_timespec_in_time_h=no
e275c824 15162fi
d6974efa 15163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15164fi
1f5d53eb
PE
15165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15166$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
e275c824 15167
1f5d53eb
PE
15168 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15169 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15170 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15171 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15172 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15173 else
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15175$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
1ef6de05 15176if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
1f5d53eb 15177 $as_echo_n "(cached) " >&6
e275c824
PE
15178else
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180/* end confdefs.h. */
1f5d53eb 15181#include <sys/time.h>
e275c824 15182
e275c824
PE
15183int
15184main ()
15185{
1f5d53eb
PE
15186static struct timespec x; x.tv_sec = x.tv_nsec;
15187 ;
e275c824
PE
15188 return 0;
15189}
e275c824 15190_ACEOF
1f5d53eb
PE
15191if ac_fn_c_try_compile "$LINENO"; then :
15192 gl_cv_sys_struct_timespec_in_sys_time_h=yes
e275c824 15193else
1f5d53eb 15194 gl_cv_sys_struct_timespec_in_sys_time_h=no
e275c824 15195fi
1f5d53eb 15196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15197fi
1f5d53eb
PE
15198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15199$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15200 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15201 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15202 else
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15204$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
1ef6de05 15205if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
e275c824 15206 $as_echo_n "(cached) " >&6
e275c824
PE
15207else
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209/* end confdefs.h. */
1f5d53eb 15210#include <pthread.h>
e275c824
PE
15211
15212int
15213main ()
15214{
1f5d53eb 15215static struct timespec x; x.tv_sec = x.tv_nsec;
e275c824
PE
15216 ;
15217 return 0;
15218}
15219_ACEOF
1f5d53eb
PE
15220if ac_fn_c_try_compile "$LINENO"; then :
15221 gl_cv_sys_struct_timespec_in_pthread_h=yes
e275c824 15222else
1f5d53eb 15223 gl_cv_sys_struct_timespec_in_pthread_h=no
e275c824 15224fi
1f5d53eb 15225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15226fi
1f5d53eb
PE
15227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15228$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15229 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15230 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15231 fi
e275c824
PE
15232 fi
15233 fi
15234
e275c824 15235
e275c824 15236
e275c824
PE
15237
15238
15239
e275c824
PE
15240
15241
15242
15243
15244
15245
15246
15247
e275c824 15248
1f5d53eb
PE
15249 if test $gl_cv_have_include_next = yes; then
15250 gl_cv_next_time_h='<'time.h'>'
15251 else
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15253$as_echo_n "checking absolute name of <time.h>... " >&6; }
1ef6de05 15254if ${gl_cv_next_time_h+:} false; then :
1f5d53eb
PE
15255 $as_echo_n "(cached) " >&6
15256else
e275c824 15257
1f5d53eb
PE
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259/* end confdefs.h. */
15260#include <time.h>
e275c824 15261
1f5d53eb
PE
15262_ACEOF
15263 case "$host_os" in
15264 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15265 *) gl_absname_cpp="$ac_cpp" ;;
15266 esac
15267 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15268 sed -n '\#/time.h#{
15269 s#.*"\(.*/time.h\)".*#\1#
15270 s#^/[^/]#//&#
15271 p
15272 q
15273 }'`'"'
e275c824
PE
15274
15275
1f5d53eb
PE
15276fi
15277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15278$as_echo "$gl_cv_next_time_h" >&6; }
15279 fi
15280 NEXT_TIME_H=$gl_cv_next_time_h
e275c824 15281
1f5d53eb
PE
15282 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15284 gl_next_as_first_directive='<'time.h'>'
15285 else
15286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15287 gl_next_as_first_directive=$gl_cv_next_time_h
15288 fi
15289 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
e275c824
PE
15290
15291
15292
e275c824
PE
15293
15294
15295
1f5d53eb 15296ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
1ef6de05 15297if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
1f5d53eb
PE
15298 ac_have_decl=1
15299else
15300 ac_have_decl=0
15301fi
e275c824 15302
1f5d53eb
PE
15303cat >>confdefs.h <<_ACEOF
15304#define HAVE_DECL_LOCALTIME_R $ac_have_decl
15305_ACEOF
e275c824
PE
15306
15307
e275c824
PE
15308
15309
1f5d53eb
PE
15310 if false; then
15311 GL_COND_LIBTOOL_TRUE=
15312 GL_COND_LIBTOOL_FALSE='#'
67342916 15313else
1f5d53eb
PE
15314 GL_COND_LIBTOOL_TRUE='#'
15315 GL_COND_LIBTOOL_FALSE=
67342916 15316fi
67342916 15317
1f5d53eb
PE
15318 gl_cond_libtool=false
15319 gl_libdeps=
15320 gl_ltlibdeps=
15321 gl_m4_base='m4'
67342916 15322
67342916 15323
e275c824 15324
e275c824
PE
15325
15326
15327
15328
e275c824 15329
e275c824 15330
1f5d53eb
PE
15331 gl_source_base='lib'
15332 # Code from module arg-nonnull:
15333 # Code from module c++defs:
942f733f
PE
15334 # Code from module crypto/md5:
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15345
15346
15347
15348
15349 :
15350
36f13e16 15351 # Code from module dosname:
1f5d53eb 15352 # Code from module dtoastr:
e275c824 15353
1f5d53eb 15354 # Code from module extensions:
5fa4ac76
PE
15355 # Code from module filemode:
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15367
15368
15369
1f5d53eb 15370 # Code from module getloadavg:
e275c824
PE
15371
15372
1f5d53eb 15373# Persuade glibc <stdlib.h> to declare getloadavg().
e275c824 15374
e275c824 15375
1f5d53eb
PE
15376# Make sure getloadavg.c is where it belongs, at configure-time.
15377test -f "$srcdir/$gl_source_base/getloadavg.c" ||
1ef6de05 15378 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
e275c824 15379
1f5d53eb 15380gl_save_LIBS=$LIBS
e275c824 15381
7d315eb6
PE
15382# getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15383# NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
1f5d53eb 15384ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
1ef6de05 15385if test "x$ac_cv_func_getloadavg" = xyes; then :
e275c824 15386
1f5d53eb
PE
15387else
15388 gl_have_func=no
15389
15390 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15391 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15392 # to get the right answer into the cache.
15393 # For kstat on solaris, we need to test for libelf and libkvm to force the
15394 # definition of SVR4 below.
15395 if test $gl_have_func = no; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15397$as_echo_n "checking for elf_begin in -lelf... " >&6; }
1ef6de05 15398if ${ac_cv_lib_elf_elf_begin+:} false; then :
16c3e636
PE
15399 $as_echo_n "(cached) " >&6
15400else
1f5d53eb
PE
15401 ac_check_lib_save_LIBS=$LIBS
15402LIBS="-lelf $LIBS"
15403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16c3e636
PE
15404/* end confdefs.h. */
15405
1f5d53eb
PE
15406/* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15409#ifdef __cplusplus
15410extern "C"
15411#endif
15412char elf_begin ();
15413int
15414main ()
15415{
15416return elf_begin ();
15417 ;
15418 return 0;
15419}
15420_ACEOF
15421if ac_fn_c_try_link "$LINENO"; then :
15422 ac_cv_lib_elf_elf_begin=yes
15423else
15424 ac_cv_lib_elf_elf_begin=no
15425fi
15426rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428LIBS=$ac_check_lib_save_LIBS
15429fi
15430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15431$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
1ef6de05 15432if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
1f5d53eb
PE
15433 LIBS="-lelf $LIBS"
15434fi
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15437$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
1ef6de05 15438if ${ac_cv_lib_kvm_kvm_open+:} false; then :
1f5d53eb
PE
15439 $as_echo_n "(cached) " >&6
15440else
15441 ac_check_lib_save_LIBS=$LIBS
15442LIBS="-lkvm $LIBS"
15443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444/* end confdefs.h. */
16c3e636 15445
1f5d53eb
PE
15446/* Override any GCC internal prototype to avoid an error.
15447 Use char because int might match the return type of a GCC
15448 builtin and then its argument prototype would still apply. */
15449#ifdef __cplusplus
15450extern "C"
15451#endif
15452char kvm_open ();
16c3e636
PE
15453int
15454main ()
15455{
1f5d53eb 15456return kvm_open ();
16c3e636
PE
15457 ;
15458 return 0;
15459}
15460_ACEOF
1f5d53eb
PE
15461if ac_fn_c_try_link "$LINENO"; then :
15462 ac_cv_lib_kvm_kvm_open=yes
16c3e636 15463else
1f5d53eb 15464 ac_cv_lib_kvm_kvm_open=no
16c3e636 15465fi
1f5d53eb
PE
15466rm -f core conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15468LIBS=$ac_check_lib_save_LIBS
16c3e636 15469fi
1f5d53eb
PE
15470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15471$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
1ef6de05 15472if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
1f5d53eb 15473 LIBS="-lkvm $LIBS"
16c3e636
PE
15474fi
15475
1f5d53eb
PE
15476 # Check for the 4.4BSD definition of getloadavg.
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15478$as_echo_n "checking for getloadavg in -lutil... " >&6; }
1ef6de05 15479if ${ac_cv_lib_util_getloadavg+:} false; then :
1fd182f0
PE
15480 $as_echo_n "(cached) " >&6
15481else
1f5d53eb
PE
15482 ac_check_lib_save_LIBS=$LIBS
15483LIBS="-lutil $LIBS"
15484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15485/* end confdefs.h. */
1f5d53eb
PE
15486
15487/* Override any GCC internal prototype to avoid an error.
15488 Use char because int might match the return type of a GCC
15489 builtin and then its argument prototype would still apply. */
15490#ifdef __cplusplus
15491extern "C"
15492#endif
15493char getloadavg ();
1fd182f0
PE
15494int
15495main ()
15496{
1f5d53eb 15497return getloadavg ();
1fd182f0
PE
15498 ;
15499 return 0;
15500}
15501_ACEOF
1f5d53eb
PE
15502if ac_fn_c_try_link "$LINENO"; then :
15503 ac_cv_lib_util_getloadavg=yes
1fd182f0 15504else
1f5d53eb 15505 ac_cv_lib_util_getloadavg=no
1fd182f0 15506fi
1f5d53eb
PE
15507rm -f core conftest.err conftest.$ac_objext \
15508 conftest$ac_exeext conftest.$ac_ext
15509LIBS=$ac_check_lib_save_LIBS
1fd182f0 15510fi
1f5d53eb
PE
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15512$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
1ef6de05 15513if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
1f5d53eb 15514 LIBS="-lutil $LIBS" gl_have_func=yes
16c3e636
PE
15515fi
15516
1f5d53eb 15517 fi
16c3e636 15518
1f5d53eb
PE
15519 if test $gl_have_func = no; then
15520 # There is a commonly available library for RS/6000 AIX.
15521 # Since it is not a standard part of AIX, it might be installed locally.
15522 gl_getloadavg_LIBS=$LIBS
15523 LIBS="-L/usr/local/lib $LIBS"
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15525$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
1ef6de05 15526if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
1fd182f0
PE
15527 $as_echo_n "(cached) " >&6
15528else
1f5d53eb
PE
15529 ac_check_lib_save_LIBS=$LIBS
15530LIBS="-lgetloadavg $LIBS"
15531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15532/* end confdefs.h. */
1f5d53eb
PE
15533
15534/* Override any GCC internal prototype to avoid an error.
15535 Use char because int might match the return type of a GCC
15536 builtin and then its argument prototype would still apply. */
15537#ifdef __cplusplus
15538extern "C"
15539#endif
15540char getloadavg ();
1fd182f0
PE
15541int
15542main ()
15543{
1f5d53eb 15544return getloadavg ();
1fd182f0
PE
15545 ;
15546 return 0;
15547}
15548_ACEOF
1f5d53eb
PE
15549if ac_fn_c_try_link "$LINENO"; then :
15550 ac_cv_lib_getloadavg_getloadavg=yes
15551else
15552 ac_cv_lib_getloadavg_getloadavg=no
1fd182f0 15553fi
1f5d53eb
PE
15554rm -f core conftest.err conftest.$ac_objext \
15555 conftest$ac_exeext conftest.$ac_ext
15556LIBS=$ac_check_lib_save_LIBS
15557fi
15558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15559$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
1ef6de05 15560if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
1f5d53eb
PE
15561 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15562else
15563 LIBS=$gl_getloadavg_LIBS
1fd182f0 15564fi
1fd182f0 15565
1f5d53eb 15566 fi
1fd182f0 15567
1f5d53eb
PE
15568 # Set up the replacement function if necessary.
15569 if test $gl_have_func = no; then
1fd182f0
PE
15570
15571
15572
15573
1f5d53eb
PE
15574
15575
15576
15577
15578 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15579
15580
15581# Figure out what our getloadavg.c needs.
15582
15583# Solaris has libkstat which does not require root.
15584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15585$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
1ef6de05 15586if ${ac_cv_lib_kstat_kstat_open+:} false; then :
1fd182f0
PE
15587 $as_echo_n "(cached) " >&6
15588else
1f5d53eb
PE
15589 ac_check_lib_save_LIBS=$LIBS
15590LIBS="-lkstat $LIBS"
15591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15592/* end confdefs.h. */
1fd182f0 15593
1f5d53eb
PE
15594/* Override any GCC internal prototype to avoid an error.
15595 Use char because int might match the return type of a GCC
15596 builtin and then its argument prototype would still apply. */
15597#ifdef __cplusplus
15598extern "C"
15599#endif
15600char kstat_open ();
1fd182f0
PE
15601int
15602main ()
15603{
1f5d53eb 15604return kstat_open ();
1fd182f0
PE
15605 ;
15606 return 0;
15607}
15608_ACEOF
1f5d53eb
PE
15609if ac_fn_c_try_link "$LINENO"; then :
15610 ac_cv_lib_kstat_kstat_open=yes
1fd182f0 15611else
1f5d53eb 15612 ac_cv_lib_kstat_kstat_open=no
1fd182f0 15613fi
1f5d53eb
PE
15614rm -f core conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15616LIBS=$ac_check_lib_save_LIBS
1fd182f0 15617fi
1f5d53eb
PE
15618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15619$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
1ef6de05 15620if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
1f5d53eb
PE
15621 cat >>confdefs.h <<_ACEOF
15622#define HAVE_LIBKSTAT 1
15623_ACEOF
1fd182f0 15624
1f5d53eb
PE
15625 LIBS="-lkstat $LIBS"
15626
15627fi
15628
15629test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15630
15631# On HPUX9, an unprivileged user can get load averages this way.
15632if test $gl_have_func = no; then
15633 for ac_func in pstat_getdynamic
15634do :
15635 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
1ef6de05 15636if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
1f5d53eb
PE
15637 cat >>confdefs.h <<_ACEOF
15638#define HAVE_PSTAT_GETDYNAMIC 1
15639_ACEOF
15640 gl_have_func=yes
15641fi
15642done
15643
15644fi
15645
15646# AIX has libperfstat which does not require root
15647if test $gl_have_func = no; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15649$as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
1ef6de05 15650if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
1fd182f0
PE
15651 $as_echo_n "(cached) " >&6
15652else
1f5d53eb
PE
15653 ac_check_lib_save_LIBS=$LIBS
15654LIBS="-lperfstat $LIBS"
15655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15656/* end confdefs.h. */
1fd182f0 15657
1f5d53eb
PE
15658/* Override any GCC internal prototype to avoid an error.
15659 Use char because int might match the return type of a GCC
15660 builtin and then its argument prototype would still apply. */
15661#ifdef __cplusplus
15662extern "C"
15663#endif
15664char perfstat_cpu_total ();
1fd182f0
PE
15665int
15666main ()
15667{
1f5d53eb 15668return perfstat_cpu_total ();
1fd182f0
PE
15669 ;
15670 return 0;
15671}
15672_ACEOF
1f5d53eb
PE
15673if ac_fn_c_try_link "$LINENO"; then :
15674 ac_cv_lib_perfstat_perfstat_cpu_total=yes
1fd182f0 15675else
1f5d53eb 15676 ac_cv_lib_perfstat_perfstat_cpu_total=no
1fd182f0 15677fi
1f5d53eb
PE
15678rm -f core conftest.err conftest.$ac_objext \
15679 conftest$ac_exeext conftest.$ac_ext
15680LIBS=$ac_check_lib_save_LIBS
1fd182f0 15681fi
1f5d53eb
PE
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15683$as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
1ef6de05 15684if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
1f5d53eb
PE
15685 cat >>confdefs.h <<_ACEOF
15686#define HAVE_LIBPERFSTAT 1
15687_ACEOF
15688
15689 LIBS="-lperfstat $LIBS"
15690
15691fi
15692
15693 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15694fi
15695
15696if test $gl_have_func = no; then
15697 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
1ef6de05 15698if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
1f5d53eb
PE
15699 gl_have_func=yes
15700
15701$as_echo "#define DGUX 1" >>confdefs.h
15702
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15704$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
1ef6de05 15705if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
1fd182f0
PE
15706 $as_echo_n "(cached) " >&6
15707else
1f5d53eb
PE
15708 ac_check_lib_save_LIBS=$LIBS
15709LIBS="-ldgc $LIBS"
15710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15711/* end confdefs.h. */
1fd182f0 15712
1f5d53eb
PE
15713/* Override any GCC internal prototype to avoid an error.
15714 Use char because int might match the return type of a GCC
15715 builtin and then its argument prototype would still apply. */
15716#ifdef __cplusplus
15717extern "C"
15718#endif
15719char dg_sys_info ();
1fd182f0
PE
15720int
15721main ()
15722{
1f5d53eb 15723return dg_sys_info ();
1fd182f0
PE
15724 ;
15725 return 0;
15726}
15727_ACEOF
1f5d53eb
PE
15728if ac_fn_c_try_link "$LINENO"; then :
15729 ac_cv_lib_dgc_dg_sys_info=yes
1fd182f0 15730else
1f5d53eb 15731 ac_cv_lib_dgc_dg_sys_info=no
1fd182f0 15732fi
1f5d53eb
PE
15733rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735LIBS=$ac_check_lib_save_LIBS
1fd182f0 15736fi
1f5d53eb
PE
15737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15738$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
1ef6de05 15739if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
1f5d53eb
PE
15740 cat >>confdefs.h <<_ACEOF
15741#define HAVE_LIBDGC 1
15742_ACEOF
1fd182f0 15743
1f5d53eb 15744 LIBS="-ldgc $LIBS"
1fd182f0 15745
1f5d53eb 15746fi
1fd182f0 15747
1f5d53eb 15748fi
1fd182f0
PE
15749
15750
1f5d53eb 15751fi
1fd182f0 15752
1f5d53eb
PE
15753# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15754# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15755# Irix 4.0.5F has the header but not the library.
15756if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15757 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15758 gl_have_func=yes
1fd182f0 15759
1f5d53eb 15760$as_echo "#define SVR4 1" >>confdefs.h
1fd182f0 15761
1f5d53eb 15762fi
1fd182f0 15763
1f5d53eb
PE
15764if test $gl_have_func = no; then
15765 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
1ef6de05 15766if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
1f5d53eb 15767 gl_have_func=yes
1fd182f0 15768
1f5d53eb 15769$as_echo "#define UMAX 1" >>confdefs.h
1fd182f0
PE
15770
15771
1f5d53eb 15772$as_echo "#define UMAX4_3 1" >>confdefs.h
1fd182f0 15773
1f5d53eb 15774fi
b06b1098
PE
15775
15776
1f5d53eb 15777fi
1fd182f0 15778
1f5d53eb
PE
15779if test $gl_have_func = no; then
15780 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
1ef6de05 15781if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
1f5d53eb 15782 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
1fd182f0 15783
1f5d53eb 15784fi
b06b1098 15785
1fd182f0
PE
15786
15787fi
1fd182f0 15788
1f5d53eb
PE
15789if test $gl_have_func = no; then
15790 for ac_header in mach/mach.h
15791do :
15792 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
1ef6de05 15793if test "x$ac_cv_header_mach_mach_h" = xyes; then :
1f5d53eb
PE
15794 cat >>confdefs.h <<_ACEOF
15795#define HAVE_MACH_MACH_H 1
15796_ACEOF
1fd182f0 15797
1f5d53eb 15798fi
1fd182f0 15799
1f5d53eb 15800done
1fd182f0 15801
1f5d53eb 15802fi
1fd182f0 15803
1f5d53eb
PE
15804for ac_header in nlist.h
15805do :
15806 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
1ef6de05 15807if test "x$ac_cv_header_nlist_h" = xyes; then :
1f5d53eb
PE
15808 cat >>confdefs.h <<_ACEOF
15809#define HAVE_NLIST_H 1
15810_ACEOF
15811 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15812"
1ef6de05 15813if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
1f5d53eb
PE
15814
15815cat >>confdefs.h <<_ACEOF
15816#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15817_ACEOF
1fd182f0 15818
b06b1098 15819
1fd182f0
PE
15820fi
15821
1f5d53eb
PE
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823/* end confdefs.h. */
15824#include <nlist.h>
15825int
15826main ()
15827{
15828struct nlist x;
15829 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15830 x.n_un.n_name = "";
15831 #else
15832 x.n_name = "";
15833 #endif
15834 ;
15835 return 0;
15836}
1fd182f0 15837_ACEOF
1f5d53eb
PE
15838if ac_fn_c_try_link "$LINENO"; then :
15839
15840$as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15841
15842fi
15843rm -f core conftest.err conftest.$ac_objext \
15844 conftest$ac_exeext conftest.$ac_ext
1fd182f0 15845
1f5d53eb 15846fi
1fd182f0 15847
1f5d53eb 15848done
1fd182f0 15849
1f5d53eb
PE
15850 fi
15851fi
1fd182f0 15852
1f5d53eb
PE
15853
15854if test "x$gl_save_LIBS" = x; then
15855 GETLOADAVG_LIBS=$LIBS
1fd182f0 15856else
1f5d53eb 15857 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
1fd182f0 15858fi
1f5d53eb 15859LIBS=$gl_save_LIBS
1fd182f0 15860
1fd182f0 15861
1f5d53eb
PE
15862# Test whether the system declares getloadavg. Solaris has the function
15863# but declares it in <sys/loadavg.h>, not <stdlib.h>.
15864for ac_header in sys/loadavg.h
15865do :
15866 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
1ef6de05 15867if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
1f5d53eb
PE
15868 cat >>confdefs.h <<_ACEOF
15869#define HAVE_SYS_LOADAVG_H 1
15870_ACEOF
15871
15872fi
1fd182f0 15873
1f5d53eb 15874done
1fd182f0 15875
1f5d53eb
PE
15876if test $ac_cv_header_sys_loadavg_h = yes; then
15877 HAVE_SYS_LOADAVG_H=1
15878else
15879 HAVE_SYS_LOADAVG_H=0
15880fi
15881ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15882 # include <sys/loadavg.h>
15883 #endif
15884 #include <stdlib.h>
15885"
1ef6de05 15886if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
1fd182f0 15887
1f5d53eb
PE
15888else
15889 HAVE_DECL_GETLOADAVG=0
15890fi
1fd182f0
PE
15891
15892
15893
15894
15895
1f5d53eb
PE
15896 GNULIB_GETLOADAVG=1
15897
15898
1fd182f0 15899
e275c824
PE
15900 # Code from module getopt-gnu:
15901
15902
15903
15904
15905
15906
e275c824
PE
15907 # Code from module getopt-posix:
15908
15909
15910
15911
15912
15913 if test -n "$gl_replace_getopt"; then :
15914
15915
15916
15917 GETOPT_H=getopt.h
15918
15919$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15920
15921
15922
15923 GNULIB_UNISTD_H_GETOPT=1
15924
15925
15926
15927
15928
15929
15930
15931
15932 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15943
15944
15945
15946
15947
15948
15949fi
15950
15951
15952 # Code from module gettext-h:
15953
15954
67342916
PE
15955 # Code from module ignore-value:
15956
1fd182f0
PE
15957 # Code from module include_next:
15958 # Code from module intprops:
ae0d7250
PE
15959 # Code from module lstat:
15960
15961
15962
15963 if test $ac_cv_func_lstat = yes; then
15964
15965 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15966 REPLACE_LSTAT=1
15967 fi
15968 # Prerequisites of lib/lstat.c.
15969
15970 else
15971 HAVE_LSTAT=0
15972 fi
15973
15974
15975
15976
15977 GNULIB_LSTAT=1
15978
15979
15980
1fd182f0
PE
15981 # Code from module mktime:
15982
15983
15984
15985
15986
15987if test $APPLE_UNIVERSAL_BUILD = 1; then
15988 # A universal build on Apple MacOS X platforms.
15989 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15990 # But we need a configuration result that is valid in both modes.
15991 ac_cv_func_working_mktime=no
15992fi
15993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15994$as_echo_n "checking for working mktime... " >&6; }
1ef6de05 15995if ${ac_cv_func_working_mktime+:} false; then :
1fd182f0
PE
15996 $as_echo_n "(cached) " >&6
15997else
15998 if test "$cross_compiling" = yes; then :
15999 ac_cv_func_working_mktime=no
16000else
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002/* end confdefs.h. */
16003/* Test program from Paul Eggert and Tony Leneis. */
16004#include <limits.h>
16005#include <stdlib.h>
16006#include <time.h>
16007
16008#ifdef HAVE_UNISTD_H
16009# include <unistd.h>
16010#endif
16011
16012#ifndef HAVE_ALARM
16013# define alarm(X) /* empty */
16014#endif
16015
16016/* Work around redefinition to rpl_putenv by other config tests. */
16017#undef putenv
16018
16019static time_t time_t_max;
16020static time_t time_t_min;
16021
16022/* Values we'll use to set the TZ environment variable. */
16023static char *tz_strings[] = {
16024 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16025 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16026};
16027#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16028
16029/* Return 0 if mktime fails to convert a date in the spring-forward gap.
16030 Based on a problem report from Andreas Jaeger. */
16031static int
16032spring_forward_gap ()
16033{
16034 /* glibc (up to about 1998-10-07) failed this test. */
16035 struct tm tm;
16036
16037 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16038 instead of "TZ=America/Vancouver" in order to detect the bug even
16039 on systems that don't support the Olson extension, or don't have the
16040 full zoneinfo tables installed. */
16041 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16042
16043 tm.tm_year = 98;
16044 tm.tm_mon = 3;
16045 tm.tm_mday = 5;
16046 tm.tm_hour = 2;
16047 tm.tm_min = 0;
16048 tm.tm_sec = 0;
16049 tm.tm_isdst = -1;
16050 return mktime (&tm) != (time_t) -1;
16051}
16052
16053static int
16054mktime_test1 (time_t now)
16055{
16056 struct tm *lt;
16057 return ! (lt = localtime (&now)) || mktime (lt) == now;
16058}
16059
16060static int
16061mktime_test (time_t now)
16062{
16063 return (mktime_test1 (now)
16064 && mktime_test1 ((time_t) (time_t_max - now))
16065 && mktime_test1 ((time_t) (time_t_min + now)));
16066}
16067
16068static int
16069irix_6_4_bug ()
16070{
16071 /* Based on code from Ariel Faigon. */
16072 struct tm tm;
16073 tm.tm_year = 96;
16074 tm.tm_mon = 3;
16075 tm.tm_mday = 0;
16076 tm.tm_hour = 0;
16077 tm.tm_min = 0;
16078 tm.tm_sec = 0;
16079 tm.tm_isdst = -1;
16080 mktime (&tm);
16081 return tm.tm_mon == 2 && tm.tm_mday == 31;
16082}
16083
16084static int
16085bigtime_test (int j)
16086{
16087 struct tm tm;
16088 time_t now;
16089 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16090 now = mktime (&tm);
16091 if (now != (time_t) -1)
16092 {
16093 struct tm *lt = localtime (&now);
16094 if (! (lt
16095 && lt->tm_year == tm.tm_year
16096 && lt->tm_mon == tm.tm_mon
16097 && lt->tm_mday == tm.tm_mday
16098 && lt->tm_hour == tm.tm_hour
16099 && lt->tm_min == tm.tm_min
16100 && lt->tm_sec == tm.tm_sec
16101 && lt->tm_yday == tm.tm_yday
16102 && lt->tm_wday == tm.tm_wday
16103 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16104 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16105 return 0;
16106 }
16107 return 1;
16108}
16109
16110static int
16111year_2050_test ()
16112{
16113 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16114 ignoring leap seconds. */
16115 unsigned long int answer = 2527315200UL;
16116
16117 struct tm tm;
16118 time_t t;
16119 tm.tm_year = 2050 - 1900;
16120 tm.tm_mon = 2 - 1;
16121 tm.tm_mday = 1;
16122 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16123 tm.tm_isdst = -1;
16124
16125 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16126 instead of "TZ=America/Vancouver" in order to detect the bug even
16127 on systems that don't support the Olson extension, or don't have the
16128 full zoneinfo tables installed. */
16129 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16130
16131 t = mktime (&tm);
16132
16133 /* Check that the result is either a failure, or close enough
16134 to the correct answer that we can assume the discrepancy is
16135 due to leap seconds. */
16136 return (t == (time_t) -1
16137 || (0 < t && answer - 120 <= t && t <= answer + 120));
16138}
16139
16140int
16141main ()
16142{
16143 int result = 0;
16144 time_t t, delta;
16145 int i, j;
3de84ad9
PE
16146 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16147 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
1fd182f0
PE
16148
16149 /* This test makes some buggy mktime implementations loop.
16150 Give up after 60 seconds; a mktime slower than that
16151 isn't worth using anyway. */
16152 alarm (60);
16153
3de84ad9
PE
16154 time_t_max = (! time_t_signed
16155 ? (time_t) -1
16156 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16157 * 2 + 1));
16158 time_t_min = (! time_t_signed
16159 ? (time_t) 0
16160 : time_t_signed_magnitude
16161 ? ~ (time_t) 0
16162 : ~ time_t_max);
1fd182f0
PE
16163
16164 delta = time_t_max / 997; /* a suitable prime number */
16165 for (i = 0; i < N_STRINGS; i++)
16166 {
16167 if (tz_strings[i])
16168 putenv (tz_strings[i]);
16169
16170 for (t = 0; t <= time_t_max - delta; t += delta)
16171 if (! mktime_test (t))
16172 result |= 1;
16173 if (! (mktime_test ((time_t) 1)
16174 && mktime_test ((time_t) (60 * 60))
16175 && mktime_test ((time_t) (60 * 60 * 24))))
16176 result |= 2;
16177
16178 for (j = 1; ; j <<= 1)
16179 if (! bigtime_test (j))
16180 result |= 4;
16181 else if (INT_MAX / 2 < j)
16182 break;
16183 if (! bigtime_test (INT_MAX))
16184 result |= 8;
16185 }
16186 if (! irix_6_4_bug ())
16187 result |= 16;
16188 if (! spring_forward_gap ())
16189 result |= 32;
16190 if (! year_2050_test ())
16191 result |= 64;
16192 return result;
16193}
16194_ACEOF
16195if ac_fn_c_try_run "$LINENO"; then :
16196 ac_cv_func_working_mktime=yes
16197else
16198 ac_cv_func_working_mktime=no
16199fi
16200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16201 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 16202fi
067d23c9 16203
1fd182f0
PE
16204fi
16205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16206$as_echo "$ac_cv_func_working_mktime" >&6; }
16207if test $ac_cv_func_working_mktime = no; then
067d23c9 16208
067d23c9 16209
067d23c9
KY
16210
16211
067d23c9 16212
067d23c9
KY
16213
16214
16215
1fd182f0 16216 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
067d23c9 16217
1fd182f0 16218fi
067d23c9 16219
1fd182f0
PE
16220 if test $ac_cv_func_working_mktime = no; then
16221 REPLACE_MKTIME=1
067d23c9
KY
16222
16223
16224
1fd182f0
PE
16225 else
16226 REPLACE_MKTIME=0
16227 fi
067d23c9
KY
16228
16229
16230
067d23c9 16231
1fd182f0 16232 GNULIB_MKTIME=1
067d23c9
KY
16233
16234
16235
1fd182f0 16236 # Code from module multiarch:
067d23c9 16237
ae0d7250
PE
16238 # Code from module readlink:
16239
16240
16241
16242 if test $ac_cv_func_readlink = no; then
16243 HAVE_READLINK=0
16244
16245
16246
16247
16248
16249
16250
16251
16252 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16253
16254
16255 :
16256
16257 else
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16259$as_echo_n "checking whether readlink signature is correct... " >&6; }
1ef6de05 16260if ${gl_cv_decl_readlink_works+:} false; then :
ae0d7250
PE
16261 $as_echo_n "(cached) " >&6
16262else
16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264/* end confdefs.h. */
16265#include <unistd.h>
16266 /* Cause compilation failure if original declaration has wrong type. */
16267 ssize_t readlink (const char *, char *, size_t);
16268int
16269main ()
16270{
16271
16272 ;
16273 return 0;
16274}
16275_ACEOF
16276if ac_fn_c_try_compile "$LINENO"; then :
16277 gl_cv_decl_readlink_works=yes
16278else
16279 gl_cv_decl_readlink_works=no
16280fi
16281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16282fi
16283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16284$as_echo "$gl_cv_decl_readlink_works" >&6; }
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16286$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
1ef6de05 16287if ${gl_cv_func_readlink_works+:} false; then :
ae0d7250
PE
16288 $as_echo_n "(cached) " >&6
16289else
16290 # We have readlink, so assume ln -s works.
16291 ln -s conftest.no-such conftest.link
16292 ln -s conftest.link conftest.lnk2
16293 if test "$cross_compiling" = yes; then :
16294 gl_cv_func_readlink_works="guessing no"
16295else
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297/* end confdefs.h. */
16298#include <unistd.h>
16299
16300int
16301main ()
16302{
16303char buf[20];
16304 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16305 ;
16306 return 0;
16307}
16308_ACEOF
16309if ac_fn_c_try_run "$LINENO"; then :
16310 gl_cv_func_readlink_works=yes
16311else
16312 gl_cv_func_readlink_works=no
16313fi
16314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16315 conftest.$ac_objext conftest.beam conftest.$ac_ext
16316fi
16317
16318 rm -f conftest.link conftest.lnk2
16319fi
16320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16321$as_echo "$gl_cv_func_readlink_works" >&6; }
16322 if test "$gl_cv_func_readlink_works" != yes; then
16323
16324$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16325
16326 REPLACE_READLINK=1
16327
16328
16329
16330
16331
16332
16333
16334
16335 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16336
16337 elif test "$gl_cv_decl_readlink_works" != yes; then
16338 REPLACE_READLINK=1
16339
16340
16341
16342
16343
16344
16345
16346
16347 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16348
16349 fi
16350 fi
16351
16352
16353
16354
16355 GNULIB_READLINK=1
16356
16357
16358
16359 # Code from module stat:
16360
16361
16362
ae0d7250
PE
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16364$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
1ef6de05 16365if ${gl_cv_func_stat_dir_slash+:} false; then :
ae0d7250
PE
16366 $as_echo_n "(cached) " >&6
16367else
16368 if test "$cross_compiling" = yes; then :
16369 case $host_os in
16370 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16371 *) gl_cv_func_stat_dir_slash="guessing yes";;
16372 esac
16373else
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375/* end confdefs.h. */
16376#include <sys/stat.h>
16377
16378int
16379main ()
16380{
16381struct stat st; return stat (".", &st) != stat ("./", &st);
16382 ;
16383 return 0;
16384}
16385_ACEOF
16386if ac_fn_c_try_run "$LINENO"; then :
16387 gl_cv_func_stat_dir_slash=yes
16388else
16389 gl_cv_func_stat_dir_slash=no
16390fi
16391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16392 conftest.$ac_objext conftest.beam conftest.$ac_ext
16393fi
16394
16395fi
16396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16397$as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16399$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
1ef6de05 16400if ${gl_cv_func_stat_file_slash+:} false; then :
ae0d7250
PE
16401 $as_echo_n "(cached) " >&6
16402else
16403 touch conftest.tmp
16404 # Assume that if we have lstat, we can also check symlinks.
16405 if test $ac_cv_func_lstat = yes; then
16406 ln -s conftest.tmp conftest.lnk
16407 fi
16408 if test "$cross_compiling" = yes; then :
16409 gl_cv_func_stat_file_slash="guessing no"
16410else
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412/* end confdefs.h. */
16413#include <sys/stat.h>
16414
16415int
16416main ()
16417{
16418int result = 0;
16419 struct stat st;
16420 if (!stat ("conftest.tmp/", &st))
16421 result |= 1;
16422#if HAVE_LSTAT
16423 if (!stat ("conftest.lnk/", &st))
16424 result |= 2;
16425#endif
16426 return result;
16427
16428 ;
16429 return 0;
16430}
16431_ACEOF
16432if ac_fn_c_try_run "$LINENO"; then :
16433 gl_cv_func_stat_file_slash=yes
16434else
16435 gl_cv_func_stat_file_slash=no
16436fi
16437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16438 conftest.$ac_objext conftest.beam conftest.$ac_ext
16439fi
16440
16441 rm -f conftest.tmp conftest.lnk
16442fi
16443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16444$as_echo "$gl_cv_func_stat_file_slash" >&6; }
16445 case $gl_cv_func_stat_dir_slash in
16446 *no) REPLACE_STAT=1
16447
16448$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16449;;
16450 esac
16451 case $gl_cv_func_stat_file_slash in
16452 *no) REPLACE_STAT=1
16453
16454$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16455;;
16456 esac
16457 if test $REPLACE_STAT = 1; then
16458
16459
16460
16461
16462
16463
16464
16465
16466 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16467
16468
16469 fi
16470
16471
16472
16473
16474 GNULIB_STAT=1
16475
16476
16477
16c3e636
PE
16478 # Code from module stdbool:
16479
16480
16481
16482 # Define two additional variables used in the Makefile substitution.
16483
16484 if test "$ac_cv_header_stdbool_h" = yes; then
16485 STDBOOL_H=''
16486 else
16487 STDBOOL_H='stdbool.h'
16488 fi
16489
16490
16491 if test "$ac_cv_type__Bool" = yes; then
16492 HAVE__BOOL=1
16493 else
16494 HAVE__BOOL=0
16495 fi
16496
16497
1fd182f0 16498 # Code from module stddef:
067d23c9 16499
067d23c9 16500
067d23c9 16501
1fd182f0
PE
16502 if test $gt_cv_c_wchar_t = no; then
16503 HAVE_WCHAR_T=0
16504 STDDEF_H=stddef.h
067d23c9 16505 fi
1fd182f0
PE
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16507$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
1ef6de05 16508if ${gl_cv_decl_null_works+:} false; then :
067d23c9 16509 $as_echo_n "(cached) " >&6
067d23c9
KY
16510else
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512/* end confdefs.h. */
1fd182f0
PE
16513#include <stddef.h>
16514 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16515
067d23c9
KY
16516int
16517main ()
16518{
16519
067d23c9
KY
16520 ;
16521 return 0;
16522}
16523_ACEOF
1fd182f0
PE
16524if ac_fn_c_try_compile "$LINENO"; then :
16525 gl_cv_decl_null_works=yes
067d23c9 16526else
1fd182f0 16527 gl_cv_decl_null_works=no
067d23c9 16528fi
1fd182f0 16529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 16530fi
1fd182f0
PE
16531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16532$as_echo "$gl_cv_decl_null_works" >&6; }
16533 if test $gl_cv_decl_null_works = no; then
16534 REPLACE_NULL=1
16535 STDDEF_H=stddef.h
16536 fi
16537 if test -n "$STDDEF_H"; then
16538
16539
16540
16541
16542
16543
b06b1098
PE
16544
16545
1fd182f0
PE
16546 if test $gl_cv_have_include_next = yes; then
16547 gl_cv_next_stddef_h='<'stddef.h'>'
16548 else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16550$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
1ef6de05 16551if ${gl_cv_next_stddef_h+:} false; then :
1fd182f0
PE
16552 $as_echo_n "(cached) " >&6
16553else
16554
b06b1098 16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
16556/* end confdefs.h. */
16557#include <stddef.h>
16558
16559_ACEOF
b06b1098
PE
16560 case "$host_os" in
16561 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16562 *) gl_absname_cpp="$ac_cpp" ;;
16563 esac
16564 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16565 sed -n '\#/stddef.h#{
16566 s#.*"\(.*/stddef.h\)".*#\1#
16567 s#^/[^/]#//&#
16568 p
16569 q
16570 }'`'"'
16571
067d23c9
KY
16572
16573fi
1fd182f0
PE
16574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16575$as_echo "$gl_cv_next_stddef_h" >&6; }
16576 fi
16577 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16578
16579 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16580 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16581 gl_next_as_first_directive='<'stddef.h'>'
16582 else
16583 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16584 gl_next_as_first_directive=$gl_cv_next_stddef_h
16585 fi
16586 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16587
16588
16589
b06b1098 16590
067d23c9
KY
16591 fi
16592
5f90be1b
PE
16593 # Code from module stdint:
16594
16595
16596
16597 if test $ac_cv_type_long_long_int = yes; then
16598 HAVE_LONG_LONG_INT=1
16599 else
16600 HAVE_LONG_LONG_INT=0
16601 fi
16602
16603
16604 if test $ac_cv_type_unsigned_long_long_int = yes; then
16605 HAVE_UNSIGNED_LONG_LONG_INT=1
16606 else
16607 HAVE_UNSIGNED_LONG_LONG_INT=0
16608 fi
16609
16610
16611
16612 if test $ac_cv_header_wchar_h = yes; then
16613 HAVE_WCHAR_H=1
16614 else
16615 HAVE_WCHAR_H=0
16616 fi
16617
16618
16619 if test $ac_cv_header_inttypes_h = yes; then
16620 HAVE_INTTYPES_H=1
16621 else
16622 HAVE_INTTYPES_H=0
16623 fi
16624
16625
16626 if test $ac_cv_header_sys_types_h = yes; then
16627 HAVE_SYS_TYPES_H=1
16628 else
16629 HAVE_SYS_TYPES_H=0
16630 fi
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642 if test $gl_cv_have_include_next = yes; then
16643 gl_cv_next_stdint_h='<'stdint.h'>'
16644 else
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16646$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
1ef6de05 16647if ${gl_cv_next_stdint_h+:} false; then :
5f90be1b
PE
16648 $as_echo_n "(cached) " >&6
16649else
16650
16651 if test $ac_cv_header_stdint_h = yes; then
16652
16653
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655/* end confdefs.h. */
16656#include <stdint.h>
16657
16658_ACEOF
16659 case "$host_os" in
16660 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16661 *) gl_absname_cpp="$ac_cpp" ;;
16662 esac
16663 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16664 sed -n '\#/stdint.h#{
16665 s#.*"\(.*/stdint.h\)".*#\1#
16666 s#^/[^/]#//&#
16667 p
16668 q
16669 }'`'"'
16670 else
16671 gl_cv_next_stdint_h='<'stdint.h'>'
16672 fi
16673
16674
16675fi
16676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16677$as_echo "$gl_cv_next_stdint_h" >&6; }
16678 fi
16679 NEXT_STDINT_H=$gl_cv_next_stdint_h
16680
16681 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16683 gl_next_as_first_directive='<'stdint.h'>'
16684 else
16685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16686 gl_next_as_first_directive=$gl_cv_next_stdint_h
16687 fi
16688 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16689
16690
16691
16692
16693 if test $ac_cv_header_stdint_h = yes; then
16694 HAVE_STDINT_H=1
16695 else
16696 HAVE_STDINT_H=0
16697 fi
16698
16699
16700 if test $ac_cv_header_stdint_h = yes; then
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16702$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
1ef6de05 16703if ${gl_cv_header_working_stdint_h+:} false; then :
5f90be1b
PE
16704 $as_echo_n "(cached) " >&6
16705else
16706 gl_cv_header_working_stdint_h=no
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708/* end confdefs.h. */
16709
16710
16711#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16712#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16713#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16714#include <stdint.h>
16715/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16716#if !(defined WCHAR_MIN && defined WCHAR_MAX)
16717#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16718#endif
16719
16720
16721 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16722 included before <wchar.h>. */
16723 #include <stddef.h>
16724 #include <signal.h>
16725 #if HAVE_WCHAR_H
16726 # include <stdio.h>
16727 # include <time.h>
16728 # include <wchar.h>
16729 #endif
16730
16731
16732#ifdef INT8_MAX
16733int8_t a1 = INT8_MAX;
16734int8_t a1min = INT8_MIN;
16735#endif
16736#ifdef INT16_MAX
16737int16_t a2 = INT16_MAX;
16738int16_t a2min = INT16_MIN;
16739#endif
16740#ifdef INT32_MAX
16741int32_t a3 = INT32_MAX;
16742int32_t a3min = INT32_MIN;
16743#endif
16744#ifdef INT64_MAX
16745int64_t a4 = INT64_MAX;
16746int64_t a4min = INT64_MIN;
16747#endif
16748#ifdef UINT8_MAX
16749uint8_t b1 = UINT8_MAX;
16750#else
16751typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16752#endif
16753#ifdef UINT16_MAX
16754uint16_t b2 = UINT16_MAX;
16755#endif
16756#ifdef UINT32_MAX
16757uint32_t b3 = UINT32_MAX;
16758#endif
16759#ifdef UINT64_MAX
16760uint64_t b4 = UINT64_MAX;
16761#endif
16762int_least8_t c1 = INT8_C (0x7f);
16763int_least8_t c1max = INT_LEAST8_MAX;
16764int_least8_t c1min = INT_LEAST8_MIN;
16765int_least16_t c2 = INT16_C (0x7fff);
16766int_least16_t c2max = INT_LEAST16_MAX;
16767int_least16_t c2min = INT_LEAST16_MIN;
16768int_least32_t c3 = INT32_C (0x7fffffff);
16769int_least32_t c3max = INT_LEAST32_MAX;
16770int_least32_t c3min = INT_LEAST32_MIN;
16771int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16772int_least64_t c4max = INT_LEAST64_MAX;
16773int_least64_t c4min = INT_LEAST64_MIN;
16774uint_least8_t d1 = UINT8_C (0xff);
16775uint_least8_t d1max = UINT_LEAST8_MAX;
16776uint_least16_t d2 = UINT16_C (0xffff);
16777uint_least16_t d2max = UINT_LEAST16_MAX;
16778uint_least32_t d3 = UINT32_C (0xffffffff);
16779uint_least32_t d3max = UINT_LEAST32_MAX;
16780uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16781uint_least64_t d4max = UINT_LEAST64_MAX;
16782int_fast8_t e1 = INT_FAST8_MAX;
16783int_fast8_t e1min = INT_FAST8_MIN;
16784int_fast16_t e2 = INT_FAST16_MAX;
16785int_fast16_t e2min = INT_FAST16_MIN;
16786int_fast32_t e3 = INT_FAST32_MAX;
16787int_fast32_t e3min = INT_FAST32_MIN;
16788int_fast64_t e4 = INT_FAST64_MAX;
16789int_fast64_t e4min = INT_FAST64_MIN;
16790uint_fast8_t f1 = UINT_FAST8_MAX;
16791uint_fast16_t f2 = UINT_FAST16_MAX;
16792uint_fast32_t f3 = UINT_FAST32_MAX;
16793uint_fast64_t f4 = UINT_FAST64_MAX;
16794#ifdef INTPTR_MAX
16795intptr_t g = INTPTR_MAX;
16796intptr_t gmin = INTPTR_MIN;
16797#endif
16798#ifdef UINTPTR_MAX
16799uintptr_t h = UINTPTR_MAX;
16800#endif
16801intmax_t i = INTMAX_MAX;
16802uintmax_t j = UINTMAX_MAX;
16803
16804#include <limits.h> /* for CHAR_BIT */
16805#define TYPE_MINIMUM(t) \
16806 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16807#define TYPE_MAXIMUM(t) \
16808 ((t) ((t) 0 < (t) -1 \
16809 ? (t) -1 \
16810 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16811struct s {
16812 int check_PTRDIFF:
16813 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16814 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16815 ? 1 : -1;
16816 /* Detect bug in FreeBSD 6.0 / ia64. */
16817 int check_SIG_ATOMIC:
16818 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16819 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16820 ? 1 : -1;
16821 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16822 int check_WCHAR:
16823 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16824 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16825 ? 1 : -1;
16826 /* Detect bug in mingw. */
16827 int check_WINT:
16828 WINT_MIN == TYPE_MINIMUM (wint_t)
16829 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16830 ? 1 : -1;
16831
16832 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16833 int check_UINT8_C:
16834 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16835 int check_UINT16_C:
16836 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16837
16838 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16839#ifdef UINT8_MAX
16840 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16841#endif
16842#ifdef UINT16_MAX
16843 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16844#endif
16845#ifdef UINT32_MAX
16846 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16847#endif
16848#ifdef UINT64_MAX
16849 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16850#endif
16851 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16852 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16853 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16854 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16855 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16856 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16857 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16858 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16859 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16860 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16861 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16862};
16863
16864int
16865main ()
16866{
16867
16868 ;
16869 return 0;
16870}
16871_ACEOF
16872if ac_fn_c_try_compile "$LINENO"; then :
16873 if test "$cross_compiling" = yes; then :
16874 gl_cv_header_working_stdint_h=yes
16875
16876else
16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878/* end confdefs.h. */
16879
16880
16881#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16882#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16883#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16884#include <stdint.h>
16885
16886
16887 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16888 included before <wchar.h>. */
16889 #include <stddef.h>
16890 #include <signal.h>
16891 #if HAVE_WCHAR_H
16892 # include <stdio.h>
16893 # include <time.h>
16894 # include <wchar.h>
16895 #endif
16896
16897
16898#include <stdio.h>
16899#include <string.h>
16900#define MVAL(macro) MVAL1(macro)
16901#define MVAL1(expression) #expression
16902static const char *macro_values[] =
16903 {
16904#ifdef INT8_MAX
16905 MVAL (INT8_MAX),
16906#endif
16907#ifdef INT16_MAX
16908 MVAL (INT16_MAX),
16909#endif
16910#ifdef INT32_MAX
16911 MVAL (INT32_MAX),
16912#endif
16913#ifdef INT64_MAX
16914 MVAL (INT64_MAX),
16915#endif
16916#ifdef UINT8_MAX
16917 MVAL (UINT8_MAX),
16918#endif
16919#ifdef UINT16_MAX
16920 MVAL (UINT16_MAX),
16921#endif
16922#ifdef UINT32_MAX
16923 MVAL (UINT32_MAX),
16924#endif
16925#ifdef UINT64_MAX
16926 MVAL (UINT64_MAX),
16927#endif
16928 NULL
16929 };
16930
16931int
16932main ()
16933{
16934
16935 const char **mv;
16936 for (mv = macro_values; *mv != NULL; mv++)
16937 {
16938 const char *value = *mv;
16939 /* Test whether it looks like a cast expression. */
16940 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16941 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16942 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16943 || strncmp (value, "((int)"/*)*/, 6) == 0
16944 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16945 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16946 return mv - macro_values + 1;
16947 }
16948 return 0;
16949
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954if ac_fn_c_try_run "$LINENO"; then :
16955 gl_cv_header_working_stdint_h=yes
16956fi
16957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16958 conftest.$ac_objext conftest.beam conftest.$ac_ext
16959fi
16960
16961
16962fi
16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964
16965fi
16966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16967$as_echo "$gl_cv_header_working_stdint_h" >&6; }
16968 fi
16969 if test "$gl_cv_header_working_stdint_h" = yes; then
16970 STDINT_H=
16971 else
16972 for ac_header in sys/inttypes.h sys/bitypes.h
16973do :
16974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16975ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1ef6de05 16976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5f90be1b
PE
16977 cat >>confdefs.h <<_ACEOF
16978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16979_ACEOF
16980
16981fi
16982
16983done
16984
16985 if test $ac_cv_header_sys_inttypes_h = yes; then
16986 HAVE_SYS_INTTYPES_H=1
16987 else
16988 HAVE_SYS_INTTYPES_H=0
16989 fi
16990
16991 if test $ac_cv_header_sys_bitypes_h = yes; then
16992 HAVE_SYS_BITYPES_H=1
16993 else
16994 HAVE_SYS_BITYPES_H=0
16995 fi
16996
16997
16998
16999
17000 if test $APPLE_UNIVERSAL_BUILD = 0; then
17001
17002
17003 for gltype in ptrdiff_t size_t ; do
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17005$as_echo_n "checking for bit size of $gltype... " >&6; }
1ef6de05 17006if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
5f90be1b
PE
17007 $as_echo_n "(cached) " >&6
17008else
17009 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17010 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17011 included before <wchar.h>. */
17012 #include <stddef.h>
17013 #include <signal.h>
17014 #if HAVE_WCHAR_H
17015 # include <stdio.h>
17016 # include <time.h>
17017 # include <wchar.h>
17018 #endif
17019
17020#include <limits.h>"; then :
17021
17022else
17023 result=unknown
17024fi
17025
17026 eval gl_cv_bitsizeof_${gltype}=\$result
17027
17028fi
17029eval ac_res=\$gl_cv_bitsizeof_${gltype}
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17031$as_echo "$ac_res" >&6; }
17032 eval result=\$gl_cv_bitsizeof_${gltype}
17033 if test $result = unknown; then
17034 result=0
17035 fi
17036 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17037 cat >>confdefs.h <<_ACEOF
17038#define BITSIZEOF_${GLTYPE} $result
17039_ACEOF
17040
17041 eval BITSIZEOF_${GLTYPE}=\$result
17042 done
17043
17044
17045 fi
17046
17047
17048 for gltype in sig_atomic_t wchar_t wint_t ; do
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17050$as_echo_n "checking for bit size of $gltype... " >&6; }
1ef6de05 17051if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
5f90be1b
PE
17052 $as_echo_n "(cached) " >&6
17053else
17054 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17055 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17056 included before <wchar.h>. */
17057 #include <stddef.h>
17058 #include <signal.h>
17059 #if HAVE_WCHAR_H
17060 # include <stdio.h>
17061 # include <time.h>
17062 # include <wchar.h>
17063 #endif
17064
17065#include <limits.h>"; then :
17066
17067else
17068 result=unknown
17069fi
17070
17071 eval gl_cv_bitsizeof_${gltype}=\$result
17072
17073fi
17074eval ac_res=\$gl_cv_bitsizeof_${gltype}
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17076$as_echo "$ac_res" >&6; }
17077 eval result=\$gl_cv_bitsizeof_${gltype}
17078 if test $result = unknown; then
17079 result=0
17080 fi
17081 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17082 cat >>confdefs.h <<_ACEOF
17083#define BITSIZEOF_${GLTYPE} $result
17084_ACEOF
17085
17086 eval BITSIZEOF_${GLTYPE}=\$result
17087 done
17088
17089
17090
17091
17092 for gltype in sig_atomic_t wchar_t wint_t ; do
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17094$as_echo_n "checking whether $gltype is signed... " >&6; }
1ef6de05 17095if eval \${gl_cv_type_${gltype}_signed+:} false; then :
5f90be1b
PE
17096 $as_echo_n "(cached) " >&6
17097else
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099/* end confdefs.h. */
17100
17101 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17102 included before <wchar.h>. */
17103 #include <stddef.h>
17104 #include <signal.h>
17105 #if HAVE_WCHAR_H
17106 # include <stdio.h>
17107 # include <time.h>
17108 # include <wchar.h>
17109 #endif
17110
17111 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17112int
17113main ()
17114{
17115
17116 ;
17117 return 0;
17118}
17119_ACEOF
17120if ac_fn_c_try_compile "$LINENO"; then :
17121 result=yes
17122else
17123 result=no
17124fi
17125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126 eval gl_cv_type_${gltype}_signed=\$result
17127
17128fi
17129eval ac_res=\$gl_cv_type_${gltype}_signed
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17131$as_echo "$ac_res" >&6; }
17132 eval result=\$gl_cv_type_${gltype}_signed
17133 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17134 if test "$result" = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136#define HAVE_SIGNED_${GLTYPE} 1
17137_ACEOF
17138
17139 eval HAVE_SIGNED_${GLTYPE}=1
17140 else
17141 eval HAVE_SIGNED_${GLTYPE}=0
17142 fi
17143 done
17144
17145
17146 gl_cv_type_ptrdiff_t_signed=yes
17147 gl_cv_type_size_t_signed=no
17148 if test $APPLE_UNIVERSAL_BUILD = 0; then
17149
17150
17151 for gltype in ptrdiff_t size_t ; do
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17153$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
1ef6de05 17154if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
5f90be1b
PE
17155 $as_echo_n "(cached) " >&6
17156else
17157 eval gl_cv_type_${gltype}_suffix=no
17158 eval result=\$gl_cv_type_${gltype}_signed
17159 if test "$result" = yes; then
17160 glsufu=
17161 else
17162 glsufu=u
17163 fi
17164 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17165 case $glsuf in
17166 '') gltype1='int';;
17167 l) gltype1='long int';;
17168 ll) gltype1='long long int';;
17169 i64) gltype1='__int64';;
17170 u) gltype1='unsigned int';;
17171 ul) gltype1='unsigned long int';;
17172 ull) gltype1='unsigned long long int';;
17173 ui64)gltype1='unsigned __int64';;
17174 esac
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176/* end confdefs.h. */
17177
17178 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17179 included before <wchar.h>. */
17180 #include <stddef.h>
17181 #include <signal.h>
17182 #if HAVE_WCHAR_H
17183 # include <stdio.h>
17184 # include <time.h>
17185 # include <wchar.h>
17186 #endif
17187
17188 extern $gltype foo;
17189 extern $gltype1 foo;
17190int
17191main ()
17192{
17193
17194 ;
17195 return 0;
17196}
17197_ACEOF
17198if ac_fn_c_try_compile "$LINENO"; then :
17199 eval gl_cv_type_${gltype}_suffix=\$glsuf
17200fi
17201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202 eval result=\$gl_cv_type_${gltype}_suffix
17203 test "$result" != no && break
17204 done
17205fi
17206eval ac_res=\$gl_cv_type_${gltype}_suffix
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17208$as_echo "$ac_res" >&6; }
17209 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17210 eval result=\$gl_cv_type_${gltype}_suffix
17211 test "$result" = no && result=
17212 eval ${GLTYPE}_SUFFIX=\$result
17213 cat >>confdefs.h <<_ACEOF
17214#define ${GLTYPE}_SUFFIX $result
17215_ACEOF
17216
17217 done
17218
17219
17220 fi
17221
17222
17223 for gltype in sig_atomic_t wchar_t wint_t ; do
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17225$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
1ef6de05 17226if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
5f90be1b
PE
17227 $as_echo_n "(cached) " >&6
17228else
17229 eval gl_cv_type_${gltype}_suffix=no
17230 eval result=\$gl_cv_type_${gltype}_signed
17231 if test "$result" = yes; then
17232 glsufu=
17233 else
17234 glsufu=u
17235 fi
17236 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17237 case $glsuf in
17238 '') gltype1='int';;
17239 l) gltype1='long int';;
17240 ll) gltype1='long long int';;
17241 i64) gltype1='__int64';;
17242 u) gltype1='unsigned int';;
17243 ul) gltype1='unsigned long int';;
17244 ull) gltype1='unsigned long long int';;
17245 ui64)gltype1='unsigned __int64';;
17246 esac
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248/* end confdefs.h. */
17249
17250 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17251 included before <wchar.h>. */
17252 #include <stddef.h>
17253 #include <signal.h>
17254 #if HAVE_WCHAR_H
17255 # include <stdio.h>
17256 # include <time.h>
17257 # include <wchar.h>
17258 #endif
17259
17260 extern $gltype foo;
17261 extern $gltype1 foo;
17262int
17263main ()
17264{
17265
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270if ac_fn_c_try_compile "$LINENO"; then :
17271 eval gl_cv_type_${gltype}_suffix=\$glsuf
17272fi
17273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 eval result=\$gl_cv_type_${gltype}_suffix
17275 test "$result" != no && break
17276 done
17277fi
17278eval ac_res=\$gl_cv_type_${gltype}_suffix
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17280$as_echo "$ac_res" >&6; }
17281 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17282 eval result=\$gl_cv_type_${gltype}_suffix
17283 test "$result" = no && result=
17284 eval ${GLTYPE}_SUFFIX=\$result
17285 cat >>confdefs.h <<_ACEOF
17286#define ${GLTYPE}_SUFFIX $result
17287_ACEOF
17288
17289 done
17290
17291
17292
17293 STDINT_H=stdint.h
17294 fi
17295
17296
1f5d53eb
PE
17297 # Code from module stdlib:
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308 if test $gl_cv_have_include_next = yes; then
17309 gl_cv_next_stdlib_h='<'stdlib.h'>'
17310 else
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17312$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
1ef6de05 17313if ${gl_cv_next_stdlib_h+:} false; then :
1f5d53eb
PE
17314 $as_echo_n "(cached) " >&6
17315else
17316
17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318/* end confdefs.h. */
17319#include <stdlib.h>
17320
17321_ACEOF
17322 case "$host_os" in
17323 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17324 *) gl_absname_cpp="$ac_cpp" ;;
17325 esac
17326 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17327 sed -n '\#/stdlib.h#{
17328 s#.*"\(.*/stdlib.h\)".*#\1#
17329 s#^/[^/]#//&#
17330 p
17331 q
17332 }'`'"'
17333
17334
17335fi
17336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17337$as_echo "$gl_cv_next_stdlib_h" >&6; }
17338 fi
17339 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17340
17341 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17343 gl_next_as_first_directive='<'stdlib.h'>'
17344 else
17345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17346 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17347 fi
17348 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17349
17350
17351
17352
17353
17354
17355
16c3e636
PE
17356 # Code from module strftime:
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17368
17369
17370 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17371
17372
17373
17374
17375
17376
17377
17378$as_echo "#define my_strftime nstrftime" >>confdefs.h
17379
17380
17381
ae0d7250
PE
17382 # Code from module symlink:
17383
17384
17385
17386 if test $ac_cv_func_symlink = no; then
17387 HAVE_SYMLINK=0
17388
17389
17390
17391
17392
17393
17394
17395
17396 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17397
17398 else
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17400$as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
1ef6de05 17401if ${gl_cv_func_symlink_works+:} false; then :
ae0d7250
PE
17402 $as_echo_n "(cached) " >&6
17403else
17404 if test "$cross_compiling" = yes; then :
17405 gl_cv_func_symlink_works="guessing no"
17406else
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408/* end confdefs.h. */
17409#include <unistd.h>
17410
17411int
17412main ()
17413{
17414int result = 0;
17415 if (!symlink ("a", "conftest.link/"))
17416 result |= 1;
17417 if (symlink ("conftest.f", "conftest.lnk2"))
17418 result |= 2;
17419 else if (!symlink ("a", "conftest.lnk2/"))
17420 result |= 4;
17421 return result;
17422
17423 ;
17424 return 0;
17425}
17426_ACEOF
17427if ac_fn_c_try_run "$LINENO"; then :
17428 gl_cv_func_symlink_works=yes
17429else
17430 gl_cv_func_symlink_works=no
17431fi
17432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17433 conftest.$ac_objext conftest.beam conftest.$ac_ext
17434fi
17435
17436 rm -f conftest.f conftest.link conftest.lnk2
17437fi
17438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17439$as_echo "$gl_cv_func_symlink_works" >&6; }
17440 if test "$gl_cv_func_symlink_works" != yes; then
17441 REPLACE_SYMLINK=1
17442
17443
17444
17445
17446
17447
17448
17449
17450 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17451
17452 fi
17453 fi
17454
17455
17456
17457
17458 GNULIB_SYMLINK=1
17459
17460
17461
5fa4ac76
PE
17462 # Code from module sys_stat:
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479 if test $gl_cv_have_include_next = yes; then
17480 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17481 else
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17483$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
1ef6de05 17484if ${gl_cv_next_sys_stat_h+:} false; then :
5fa4ac76
PE
17485 $as_echo_n "(cached) " >&6
17486else
17487
17488 if test $ac_cv_header_sys_stat_h = yes; then
17489
17490
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492/* end confdefs.h. */
17493#include <sys/stat.h>
17494
17495_ACEOF
17496 case "$host_os" in
17497 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17498 *) gl_absname_cpp="$ac_cpp" ;;
17499 esac
17500 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17501 sed -n '\#/sys/stat.h#{
17502 s#.*"\(.*/sys/stat.h\)".*#\1#
17503 s#^/[^/]#//&#
17504 p
17505 q
17506 }'`'"'
17507 else
17508 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17509 fi
17510
17511
17512fi
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17514$as_echo "$gl_cv_next_sys_stat_h" >&6; }
17515 fi
17516 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17517
17518 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17519 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17520 gl_next_as_first_directive='<'sys/stat.h'>'
17521 else
17522 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17523 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17524 fi
17525 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17526
17527
17528
17529
17530
17531 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17532 #include <sys/stat.h>
17533"
1ef6de05 17534if test "x$ac_cv_type_nlink_t" = xyes; then :
5fa4ac76
PE
17535
17536else
17537
17538$as_echo "#define nlink_t int" >>confdefs.h
17539
17540fi
17541
17542
17543
17544
17545
1fd182f0 17546 # Code from module time:
067d23c9
KY
17547
17548
067d23c9 17549
1fd182f0 17550 # Code from module time_r:
067d23c9 17551
067d23c9 17552
067d23c9
KY
17553
17554
17555
067d23c9 17556
067d23c9 17557
1fd182f0
PE
17558 if test $ac_cv_have_decl_localtime_r = no; then
17559 HAVE_DECL_LOCALTIME_R=0
17560 fi
067d23c9
KY
17561
17562
1fd182f0
PE
17563 if test $ac_cv_func_localtime_r = yes; then
17564 HAVE_LOCALTIME_R=1
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17566$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
1ef6de05 17567if ${gl_cv_time_r_posix+:} false; then :
067d23c9
KY
17568 $as_echo_n "(cached) " >&6
17569else
1fd182f0 17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 17571/* end confdefs.h. */
1fd182f0 17572#include <time.h>
067d23c9
KY
17573int
17574main ()
17575{
1fd182f0
PE
17576/* We don't need to append 'restrict's to the argument types,
17577 even though the POSIX signature has the 'restrict's,
17578 since C99 says they can't affect type compatibility. */
17579 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17580 if (ptr) return 0;
17581 /* Check the return type is a pointer.
17582 On HP-UX 10 it is 'int'. */
17583 *localtime_r (0, 0);
067d23c9
KY
17584 ;
17585 return 0;
17586}
1fd182f0 17587
067d23c9
KY
17588_ACEOF
17589if ac_fn_c_try_compile "$LINENO"; then :
1fd182f0 17590 gl_cv_time_r_posix=yes
067d23c9 17591else
1fd182f0 17592 gl_cv_time_r_posix=no
067d23c9
KY
17593fi
17594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595
17596fi
1fd182f0
PE
17597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17598$as_echo "$gl_cv_time_r_posix" >&6; }
17599 if test $gl_cv_time_r_posix = yes; then
17600 REPLACE_LOCALTIME_R=0
17601 else
17602 REPLACE_LOCALTIME_R=1
17603 fi
17604 else
17605 HAVE_LOCALTIME_R=0
17606 fi
17607 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
067d23c9 17608
067d23c9
KY
17609
17610
743c80a7 17611
a451f14b
PE
17612
17613
17614
a451f14b 17615
1fd182f0 17616 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
a451f14b 17617
a451f14b 17618
1fd182f0 17619 :
a451f14b
PE
17620
17621 fi
17622
17623
743c80a7
PE
17624
17625
1fd182f0 17626 GNULIB_TIME_R=1
743c80a7
PE
17627
17628
17629
b06b1098 17630 # Code from module unistd:
a451f14b
PE
17631
17632
17633
e275c824
PE
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644 if test $gl_cv_have_include_next = yes; then
17645 gl_cv_next_unistd_h='<'unistd.h'>'
17646 else
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17648$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
1ef6de05 17649if ${gl_cv_next_unistd_h+:} false; then :
e275c824
PE
17650 $as_echo_n "(cached) " >&6
17651else
17652
b06b1098
PE
17653 if test $ac_cv_header_unistd_h = yes; then
17654
17655
17656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
17657/* end confdefs.h. */
17658#include <unistd.h>
17659
17660_ACEOF
b06b1098
PE
17661 case "$host_os" in
17662 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17663 *) gl_absname_cpp="$ac_cpp" ;;
17664 esac
17665 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17666 sed -n '\#/unistd.h#{
17667 s#.*"\(.*/unistd.h\)".*#\1#
17668 s#^/[^/]#//&#
17669 p
17670 q
17671 }'`'"'
e275c824 17672 else
b06b1098
PE
17673 gl_cv_next_unistd_h='<'unistd.h'>'
17674 fi
17675
e275c824
PE
17676
17677fi
17678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17679$as_echo "$gl_cv_next_unistd_h" >&6; }
17680 fi
17681 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17682
17683 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17684 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17685 gl_next_as_first_directive='<'unistd.h'>'
17686 else
17687 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17688 gl_next_as_first_directive=$gl_cv_next_unistd_h
17689 fi
17690 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17691
17692
17693
17694
e275c824
PE
17695 if test $ac_cv_header_unistd_h = yes; then
17696 HAVE_UNISTD_H=1
17697 else
17698 HAVE_UNISTD_H=0
17699 fi
17700
17701
17702
e275c824 17703
1fd182f0
PE
17704 # Code from module warn-on-use:
17705 # End of code from modules
a451f14b 17706
a451f14b 17707
743c80a7
PE
17708
17709
17710
17711
17712
17713
17714
17715 gltests_libdeps=
17716 gltests_ltlibdeps=
17717
17718
17719
17720
17721
a451f14b
PE
17722
17723
17724
17725
743c80a7
PE
17726 gl_source_base='tests'
17727 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
17728
17729 gl_module_indicator_condition=$gltests_WITNESS
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739 LIBGNU_LIBDEPS="$gl_libdeps"
17740
17741 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17742
17743
17744
067d23c9
KY
17745# UNIX98 PTYs.
17746for ac_func in grantpt
17747do :
17748 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
1ef6de05 17749if test "x$ac_cv_func_grantpt" = xyes; then :
067d23c9
KY
17750 cat >>confdefs.h <<_ACEOF
17751#define HAVE_GRANTPT 1
17752_ACEOF
17753
17754fi
17755done
17756
17757
17758# PTY-related GNU extensions.
17759for ac_func in getpt
17760do :
17761 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
1ef6de05 17762if test "x$ac_cv_func_getpt" = xyes; then :
067d23c9
KY
17763 cat >>confdefs.h <<_ACEOF
17764#define HAVE_GETPT 1
17765_ACEOF
17766
17767fi
17768done
17769
17770
17771# Check this now, so that we will NOT find the above functions in ncurses.
17772# That is because we have not set up to link ncurses in lib-src.
17773# It's better to believe a function is not available
17774# than to expect to find it in ncurses.
17775# Also we need tputs and friends to be able to build at all.
17776have_tputs_et_al=true
17777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17778$as_echo_n "checking for library containing tputs... " >&6; }
1ef6de05 17779if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17780 $as_echo_n "(cached) " >&6
17781else
17782 ac_func_search_save_LIBS=$LIBS
17783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784/* end confdefs.h. */
17785
17786/* Override any GCC internal prototype to avoid an error.
17787 Use char because int might match the return type of a GCC
17788 builtin and then its argument prototype would still apply. */
17789#ifdef __cplusplus
17790extern "C"
17791#endif
17792char tputs ();
17793int
17794main ()
17795{
17796return tputs ();
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801for ac_lib in '' ncurses terminfo termcap; do
17802 if test -z "$ac_lib"; then
17803 ac_res="none required"
17804 else
17805 ac_res=-l$ac_lib
17806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17807 fi
17808 if ac_fn_c_try_link "$LINENO"; then :
17809 ac_cv_search_tputs=$ac_res
17810fi
17811rm -f core conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext
1ef6de05 17813 if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17814 break
17815fi
17816done
1ef6de05 17817if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17818
17819else
17820 ac_cv_search_tputs=no
17821fi
17822rm conftest.$ac_ext
17823LIBS=$ac_func_search_save_LIBS
17824fi
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17826$as_echo "$ac_cv_search_tputs" >&6; }
17827ac_res=$ac_cv_search_tputs
17828if test "$ac_res" != no; then :
17829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17830
17831else
17832 have_tputs_et_al=false
17833fi
17834
17835if test "$have_tputs_et_al" != true; then
1ef6de05 17836 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
067d23c9
KY
17837Maybe some development libraries/packages are missing? Try installing
17838libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17839fi
17840# Must define this when any termcap library is found.
17841
17842$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17843
17844## FIXME This was the cpp logic, but I am not sure it is right.
17845## The above test has not necessarily found libncurses.
17846HAVE_LIBNCURSES=yes
17847
17848## Use terminfo instead of termcap?
17849## Note only system files NOT using terminfo are:
17850## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17851## darwin|gnu without ncurses.
17852TERMINFO=no
17853LIBS_TERMCAP=
17854case "$opsys" in
17855 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17856 ## hpux10-20: Use the system provided termcap(3) library.
17857 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17858 ## is necessary. Otherwise Emacs dumps core when run -nw.
17859 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17860
17861 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17862 ## The ncurses library has been moved out of the System framework in
17863 ## Mac OS X 10.2. So if configure detects it, set the command-line
17864 ## option to use it.
17865 darwin|gnu*)
17866 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17867 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17868 TERMINFO=yes
17869 LIBS_TERMCAP="-lncurses"
17870 fi
17871 ;;
17872
17873 freebsd)
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17875$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
1ef6de05 17876 if ${emacs_cv_freebsd_terminfo+:} false; then :
067d23c9
KY
17877 $as_echo_n "(cached) " >&6
17878else
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880/* end confdefs.h. */
17881#include <osreldate.h>
17882int
17883main ()
17884{
17885#if __FreeBSD_version < 400000
17886fail;
17887#endif
17888
17889 ;
17890 return 0;
17891}
17892_ACEOF
17893if ac_fn_c_try_link "$LINENO"; then :
17894 emacs_cv_freebsd_terminfo=yes
17895else
17896 emacs_cv_freebsd_terminfo=no
17897fi
17898rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900fi
17901
17902
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17904$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17905
17906 if test $emacs_cv_freebsd_terminfo = yes; then
17907 TERMINFO=yes
17908 LIBS_TERMCAP="-lncurses"
17909 else
17910 LIBS_TERMCAP="-ltermcap"
17911 fi
17912 ;;
17913
17914 netbsd)
17915 if test $ac_cv_search_tputs = -lterminfo; then
17916 TERMINFO=yes
17917 LIBS_TERMCAP="-lterminfo"
17918 else
17919 LIBS_TERMCAP="-ltermcap"
17920 fi
17921 ;;
17922
17923esac
17924
17925case "$opsys" in
17926 ## hpux: Make sure we get select from libc rather than from libcurses
17927 ## because libcurses on HPUX 10.10 has a broken version of select.
17928 ## We used to use -lc -lcurses, but this may be cleaner.
17929 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17930
17931 openbsd) LIBS_TERMCAP="-lncurses" ;;
17932
17933 ## Must use system termcap, if we use any termcap. It does special things.
17934 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17935esac
17936
17937TERMCAP_OBJ=tparam.o
17938if test $TERMINFO = yes; then
17939
17940$as_echo "#define TERMINFO 1" >>confdefs.h
17941
17942
17943 ## Default used to be -ltermcap. Add a case above if need something else.
17944 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17945
17946 TERMCAP_OBJ=terminfo.o
17947fi
17948
17949
17950
17951
17952# Do we have res_init, for detecting changes in /etc/resolv.conf?
17953resolv=no
17954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955/* end confdefs.h. */
17956#include <netinet/in.h>
17957#include <arpa/nameser.h>
17958#include <resolv.h>
17959int
17960main ()
17961{
17962return res_init();
17963 ;
17964 return 0;
17965}
17966_ACEOF
17967if ac_fn_c_try_link "$LINENO"; then :
17968 have_res_init=yes
17969else
17970 have_res_init=no
17971fi
17972rm -f core conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17974if test "$have_res_init" = no; then
17975 OLIBS="$LIBS"
17976 LIBS="$LIBS -lresolv"
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17978$as_echo_n "checking for res_init with -lresolv... " >&6; }
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980/* end confdefs.h. */
17981#include <netinet/in.h>
17982#include <arpa/nameser.h>
17983#include <resolv.h>
17984int
17985main ()
17986{
17987return res_init();
17988 ;
17989 return 0;
17990}
17991_ACEOF
17992if ac_fn_c_try_link "$LINENO"; then :
17993 have_res_init=yes
17994else
17995 have_res_init=no
17996fi
17997rm -f core conftest.err conftest.$ac_objext \
17998 conftest$ac_exeext conftest.$ac_ext
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18000$as_echo "$have_res_init" >&6; }
18001 if test "$have_res_init" = yes ; then
18002 resolv=yes
18003 fi
18004 LIBS="$OLIBS"
18005fi
18006
18007if test "$have_res_init" = yes; then
18008
18009$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18010
18011fi
18012
18013# Do we need the Hesiod library to provide the support routines?
18014LIBHESIOD=
18015if test "$with_hesiod" != no ; then
18016 # Don't set $LIBS here -- see comments above. FIXME which comments?
18017 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
1ef6de05 18018if test "x$ac_cv_func_res_send" = xyes; then :
067d23c9
KY
18019
18020else
18021 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
1ef6de05 18022if test "x$ac_cv_func___res_send" = xyes; then :
067d23c9
KY
18023
18024else
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18026$as_echo_n "checking for res_send in -lresolv... " >&6; }
1ef6de05 18027if ${ac_cv_lib_resolv_res_send+:} false; then :
067d23c9
KY
18028 $as_echo_n "(cached) " >&6
18029else
18030 ac_check_lib_save_LIBS=$LIBS
18031LIBS="-lresolv $LIBS"
18032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033/* end confdefs.h. */
18034
18035/* Override any GCC internal prototype to avoid an error.
18036 Use char because int might match the return type of a GCC
18037 builtin and then its argument prototype would still apply. */
18038#ifdef __cplusplus
18039extern "C"
18040#endif
18041char res_send ();
18042int
18043main ()
18044{
18045return res_send ();
18046 ;
18047 return 0;
18048}
18049_ACEOF
18050if ac_fn_c_try_link "$LINENO"; then :
18051 ac_cv_lib_resolv_res_send=yes
18052else
18053 ac_cv_lib_resolv_res_send=no
18054fi
18055rm -f core conftest.err conftest.$ac_objext \
18056 conftest$ac_exeext conftest.$ac_ext
18057LIBS=$ac_check_lib_save_LIBS
18058fi
18059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18060$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
1ef6de05 18061if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
067d23c9
KY
18062 resolv=yes
18063else
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18065$as_echo_n "checking for __res_send in -lresolv... " >&6; }
1ef6de05 18066if ${ac_cv_lib_resolv___res_send+:} false; then :
067d23c9
KY
18067 $as_echo_n "(cached) " >&6
18068else
18069 ac_check_lib_save_LIBS=$LIBS
18070LIBS="-lresolv $LIBS"
18071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072/* end confdefs.h. */
18073
18074/* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18077#ifdef __cplusplus
18078extern "C"
18079#endif
18080char __res_send ();
18081int
18082main ()
18083{
18084return __res_send ();
18085 ;
18086 return 0;
18087}
18088_ACEOF
18089if ac_fn_c_try_link "$LINENO"; then :
18090 ac_cv_lib_resolv___res_send=yes
18091else
18092 ac_cv_lib_resolv___res_send=no
18093fi
18094rm -f core conftest.err conftest.$ac_objext \
18095 conftest$ac_exeext conftest.$ac_ext
18096LIBS=$ac_check_lib_save_LIBS
18097fi
18098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18099$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
1ef6de05 18100if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
067d23c9
KY
18101 resolv=yes
18102fi
18103
18104fi
18105
18106fi
18107
18108fi
18109
18110 if test "$resolv" = yes ; then
18111 RESOLVLIB=-lresolv
18112 else
18113 RESOLVLIB=
18114 fi
18115 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
1ef6de05 18116if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
067d23c9
KY
18117
18118else
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18120$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
1ef6de05 18121if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
067d23c9
KY
18122 $as_echo_n "(cached) " >&6
18123else
18124 ac_check_lib_save_LIBS=$LIBS
18125LIBS="-lhesiod $RESOLVLIB $LIBS"
18126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127/* end confdefs.h. */
18128
18129/* Override any GCC internal prototype to avoid an error.
18130 Use char because int might match the return type of a GCC
18131 builtin and then its argument prototype would still apply. */
18132#ifdef __cplusplus
18133extern "C"
18134#endif
18135char hes_getmailhost ();
18136int
18137main ()
18138{
18139return hes_getmailhost ();
18140 ;
18141 return 0;
18142}
18143_ACEOF
18144if ac_fn_c_try_link "$LINENO"; then :
18145 ac_cv_lib_hesiod_hes_getmailhost=yes
18146else
18147 ac_cv_lib_hesiod_hes_getmailhost=no
18148fi
18149rm -f core conftest.err conftest.$ac_objext \
18150 conftest$ac_exeext conftest.$ac_ext
18151LIBS=$ac_check_lib_save_LIBS
18152fi
18153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18154$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
1ef6de05 18155if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
067d23c9
KY
18156 hesiod=yes
18157else
18158 :
18159fi
18160
18161fi
18162
18163
18164 if test x"$hesiod" = xyes; then
18165
18166$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18167
18168 LIBHESIOD=-lhesiod
18169 fi
18170fi
18171
18172
18173# Do we need libresolv (due to res_init or Hesiod)?
18174if test "$resolv" = yes ; then
18175
18176$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18177
18178 LIBRESOLV=-lresolv
18179else
18180 LIBRESOLV=
18181fi
18182
18183
18184# These tell us which Kerberos-related libraries to use.
18185COM_ERRLIB=
18186CRYPTOLIB=
18187KRB5LIB=
18188DESLIB=
18189KRB4LIB=
18190
18191if test "${with_kerberos}" != no; then
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18193$as_echo_n "checking for com_err in -lcom_err... " >&6; }
1ef6de05 18194if ${ac_cv_lib_com_err_com_err+:} false; then :
067d23c9
KY
18195 $as_echo_n "(cached) " >&6
18196else
18197 ac_check_lib_save_LIBS=$LIBS
18198LIBS="-lcom_err $LIBS"
18199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200/* end confdefs.h. */
18201
18202/* Override any GCC internal prototype to avoid an error.
18203 Use char because int might match the return type of a GCC
18204 builtin and then its argument prototype would still apply. */
18205#ifdef __cplusplus
18206extern "C"
18207#endif
18208char com_err ();
18209int
18210main ()
18211{
18212return com_err ();
18213 ;
18214 return 0;
18215}
18216_ACEOF
18217if ac_fn_c_try_link "$LINENO"; then :
18218 ac_cv_lib_com_err_com_err=yes
18219else
18220 ac_cv_lib_com_err_com_err=no
18221fi
18222rm -f core conftest.err conftest.$ac_objext \
18223 conftest$ac_exeext conftest.$ac_ext
18224LIBS=$ac_check_lib_save_LIBS
18225fi
18226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18227$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
1ef6de05 18228if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
067d23c9
KY
18229 have_com_err=yes
18230else
18231 have_com_err=no
18232fi
18233
18234 if test $have_com_err = yes; then
18235 COM_ERRLIB=-lcom_err
18236 LIBS="$COM_ERRLIB $LIBS"
18237
18238$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18239
18240 fi
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18242$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
1ef6de05 18243if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
18244 $as_echo_n "(cached) " >&6
18245else
18246 ac_check_lib_save_LIBS=$LIBS
18247LIBS="-lcrypto $LIBS"
18248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249/* end confdefs.h. */
18250
18251/* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18254#ifdef __cplusplus
18255extern "C"
18256#endif
18257char mit_des_cbc_encrypt ();
18258int
18259main ()
18260{
18261return mit_des_cbc_encrypt ();
18262 ;
18263 return 0;
18264}
18265_ACEOF
18266if ac_fn_c_try_link "$LINENO"; then :
18267 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18268else
18269 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18270fi
18271rm -f core conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18273LIBS=$ac_check_lib_save_LIBS
18274fi
18275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18276$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
1ef6de05 18277if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
18278 have_crypto=yes
18279else
18280 have_crypto=no
18281fi
18282
18283 if test $have_crypto = yes; then
18284 CRYPTOLIB=-lcrypto
18285 LIBS="$CRYPTOLIB $LIBS"
18286
18287$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18288
18289 fi
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18291$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
1ef6de05 18292if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
18293 $as_echo_n "(cached) " >&6
18294else
18295 ac_check_lib_save_LIBS=$LIBS
18296LIBS="-lk5crypto $LIBS"
18297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298/* end confdefs.h. */
18299
18300/* Override any GCC internal prototype to avoid an error.
18301 Use char because int might match the return type of a GCC
18302 builtin and then its argument prototype would still apply. */
18303#ifdef __cplusplus
18304extern "C"
18305#endif
18306char mit_des_cbc_encrypt ();
18307int
18308main ()
18309{
18310return mit_des_cbc_encrypt ();
18311 ;
18312 return 0;
18313}
18314_ACEOF
18315if ac_fn_c_try_link "$LINENO"; then :
18316 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18317else
18318 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18319fi
18320rm -f core conftest.err conftest.$ac_objext \
18321 conftest$ac_exeext conftest.$ac_ext
18322LIBS=$ac_check_lib_save_LIBS
18323fi
18324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18325$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
1ef6de05 18326if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
18327 have_k5crypto=yes
18328else
18329 have_k5crypto=no
18330fi
18331
18332 if test $have_k5crypto = yes; then
18333 CRYPTOLIB=-lk5crypto
18334 LIBS="$CRYPTOLIB $LIBS"
18335
18336$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18337
18338 fi
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18340$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
1ef6de05 18341if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
067d23c9
KY
18342 $as_echo_n "(cached) " >&6
18343else
18344 ac_check_lib_save_LIBS=$LIBS
18345LIBS="-lkrb5 $LIBS"
18346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347/* end confdefs.h. */
18348
18349/* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18352#ifdef __cplusplus
18353extern "C"
18354#endif
18355char krb5_init_context ();
18356int
18357main ()
18358{
18359return krb5_init_context ();
18360 ;
18361 return 0;
18362}
18363_ACEOF
18364if ac_fn_c_try_link "$LINENO"; then :
18365 ac_cv_lib_krb5_krb5_init_context=yes
18366else
18367 ac_cv_lib_krb5_krb5_init_context=no
18368fi
18369rm -f core conftest.err conftest.$ac_objext \
18370 conftest$ac_exeext conftest.$ac_ext
18371LIBS=$ac_check_lib_save_LIBS
18372fi
18373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18374$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
1ef6de05 18375if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
067d23c9
KY
18376 have_krb5=yes
18377else
18378 have_krb5=no
18379fi
18380
18381 if test $have_krb5=yes; then
18382 KRB5LIB=-lkrb5
18383 LIBS="$KRB5LIB $LIBS"
18384
18385$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18386
18387 fi
18388 if test "${with_kerberos5}" = no; then
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18390$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
1ef6de05 18391if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
067d23c9
KY
18392 $as_echo_n "(cached) " >&6
18393else
18394 ac_check_lib_save_LIBS=$LIBS
18395LIBS="-ldes425 $LIBS"
18396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397/* end confdefs.h. */
18398
18399/* Override any GCC internal prototype to avoid an error.
18400 Use char because int might match the return type of a GCC
18401 builtin and then its argument prototype would still apply. */
18402#ifdef __cplusplus
18403extern "C"
18404#endif
18405char des_cbc_encrypt ();
18406int
18407main ()
18408{
18409return des_cbc_encrypt ();
18410 ;
18411 return 0;
18412}
18413_ACEOF
18414if ac_fn_c_try_link "$LINENO"; then :
18415 ac_cv_lib_des425_des_cbc_encrypt=yes
18416else
18417 ac_cv_lib_des425_des_cbc_encrypt=no
18418fi
18419rm -f core conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
18421LIBS=$ac_check_lib_save_LIBS
18422fi
18423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18424$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
1ef6de05 18425if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
067d23c9
KY
18426 have_des425=yes
18427else
18428 have_des425=no
18429fi
18430
18431 if test $have_des425 = yes; then
18432 DESLIB=-ldes425
18433 LIBS="$DESLIB $LIBS"
18434
18435$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18436
18437 else
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18439$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
1ef6de05 18440if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
067d23c9
KY
18441 $as_echo_n "(cached) " >&6
18442else
18443 ac_check_lib_save_LIBS=$LIBS
18444LIBS="-ldes $LIBS"
18445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446/* end confdefs.h. */
18447
18448/* Override any GCC internal prototype to avoid an error.
18449 Use char because int might match the return type of a GCC
18450 builtin and then its argument prototype would still apply. */
18451#ifdef __cplusplus
18452extern "C"
18453#endif
18454char des_cbc_encrypt ();
18455int
18456main ()
18457{
18458return des_cbc_encrypt ();
18459 ;
18460 return 0;
18461}
18462_ACEOF
18463if ac_fn_c_try_link "$LINENO"; then :
18464 ac_cv_lib_des_des_cbc_encrypt=yes
18465else
18466 ac_cv_lib_des_des_cbc_encrypt=no
18467fi
18468rm -f core conftest.err conftest.$ac_objext \
18469 conftest$ac_exeext conftest.$ac_ext
18470LIBS=$ac_check_lib_save_LIBS
18471fi
18472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18473$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
1ef6de05 18474if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
067d23c9
KY
18475 have_des=yes
18476else
18477 have_des=no
18478fi
18479
18480 if test $have_des = yes; then
18481 DESLIB=-ldes
18482 LIBS="$DESLIB $LIBS"
18483
18484$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18485
18486 fi
18487 fi
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18489$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
1ef6de05 18490if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
067d23c9
KY
18491 $as_echo_n "(cached) " >&6
18492else
18493 ac_check_lib_save_LIBS=$LIBS
18494LIBS="-lkrb4 $LIBS"
18495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496/* end confdefs.h. */
18497
18498/* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501#ifdef __cplusplus
18502extern "C"
18503#endif
18504char krb_get_cred ();
18505int
18506main ()
18507{
18508return krb_get_cred ();
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513if ac_fn_c_try_link "$LINENO"; then :
18514 ac_cv_lib_krb4_krb_get_cred=yes
18515else
18516 ac_cv_lib_krb4_krb_get_cred=no
18517fi
18518rm -f core conftest.err conftest.$ac_objext \
18519 conftest$ac_exeext conftest.$ac_ext
18520LIBS=$ac_check_lib_save_LIBS
18521fi
18522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18523$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
1ef6de05 18524if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
067d23c9
KY
18525 have_krb4=yes
18526else
18527 have_krb4=no
18528fi
18529
18530 if test $have_krb4 = yes; then
18531 KRB4LIB=-lkrb4
18532 LIBS="$KRB4LIB $LIBS"
18533
18534$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18535
18536 else
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18538$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
1ef6de05 18539if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
067d23c9
KY
18540 $as_echo_n "(cached) " >&6
18541else
18542 ac_check_lib_save_LIBS=$LIBS
18543LIBS="-lkrb $LIBS"
18544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545/* end confdefs.h. */
18546
18547/* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18550#ifdef __cplusplus
18551extern "C"
18552#endif
18553char krb_get_cred ();
18554int
18555main ()
18556{
18557return krb_get_cred ();
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562if ac_fn_c_try_link "$LINENO"; then :
18563 ac_cv_lib_krb_krb_get_cred=yes
18564else
18565 ac_cv_lib_krb_krb_get_cred=no
18566fi
18567rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569LIBS=$ac_check_lib_save_LIBS
18570fi
18571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18572$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
1ef6de05 18573if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
067d23c9
KY
18574 have_krb=yes
18575else
18576 have_krb=no
18577fi
18578
18579 if test $have_krb = yes; then
18580 KRB4LIB=-lkrb
18581 LIBS="$KRB4LIB $LIBS"
18582
18583$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18584
18585 fi
18586 fi
18587 fi
18588
18589 if test "${with_kerberos5}" != no; then
18590 for ac_header in krb5.h
18591do :
18592 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
1ef6de05 18593if test "x$ac_cv_header_krb5_h" = xyes; then :
067d23c9
KY
18594 cat >>confdefs.h <<_ACEOF
18595#define HAVE_KRB5_H 1
18596_ACEOF
18597 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18598"
1ef6de05 18599if test "x$ac_cv_member_krb5_error_text" = xyes; then :
067d23c9
KY
18600
18601cat >>confdefs.h <<_ACEOF
18602#define HAVE_KRB5_ERROR_TEXT 1
18603_ACEOF
18604
18605
18606fi
18607ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18608"
1ef6de05 18609if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
067d23c9
KY
18610
18611cat >>confdefs.h <<_ACEOF
18612#define HAVE_KRB5_ERROR_E_TEXT 1
18613_ACEOF
18614
18615
18616fi
18617
18618fi
18619
18620done
18621
18622 else
18623 for ac_header in des.h
18624do :
18625 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
1ef6de05 18626if test "x$ac_cv_header_des_h" = xyes; then :
067d23c9
KY
18627 cat >>confdefs.h <<_ACEOF
18628#define HAVE_DES_H 1
18629_ACEOF
18630
18631else
18632 for ac_header in kerberosIV/des.h
18633do :
18634 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
1ef6de05 18635if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
067d23c9
KY
18636 cat >>confdefs.h <<_ACEOF
18637#define HAVE_KERBEROSIV_DES_H 1
18638_ACEOF
18639
18640else
18641 for ac_header in kerberos/des.h
18642do :
18643 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
1ef6de05 18644if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
067d23c9
KY
18645 cat >>confdefs.h <<_ACEOF
18646#define HAVE_KERBEROS_DES_H 1
18647_ACEOF
18648
18649fi
18650
18651done
18652
18653fi
18654
18655done
18656
18657fi
18658
18659done
18660
18661 for ac_header in krb.h
18662do :
18663 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
1ef6de05 18664if test "x$ac_cv_header_krb_h" = xyes; then :
067d23c9
KY
18665 cat >>confdefs.h <<_ACEOF
18666#define HAVE_KRB_H 1
18667_ACEOF
18668
18669else
18670 for ac_header in kerberosIV/krb.h
18671do :
18672 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
1ef6de05 18673if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
067d23c9
KY
18674 cat >>confdefs.h <<_ACEOF
18675#define HAVE_KERBEROSIV_KRB_H 1
18676_ACEOF
18677
18678else
18679 for ac_header in kerberos/krb.h
18680do :
18681 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
1ef6de05 18682if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
067d23c9
KY
18683 cat >>confdefs.h <<_ACEOF
18684#define HAVE_KERBEROS_KRB_H 1
18685_ACEOF
18686
18687fi
18688
18689done
18690
18691fi
18692
18693done
18694
18695fi
18696
18697done
18698
18699 fi
18700 for ac_header in com_err.h
18701do :
18702 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
1ef6de05 18703if test "x$ac_cv_header_com_err_h" = xyes; then :
067d23c9
KY
18704 cat >>confdefs.h <<_ACEOF
18705#define HAVE_COM_ERR_H 1
18706_ACEOF
18707
18708fi
18709
18710done
18711
18712fi
18713
18714
18715
18716
18717
18718
18719
18720# Solaris requires -lintl if you want strerror (which calls dgettext)
18721# to return localized messages.
18722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18723$as_echo_n "checking for dgettext in -lintl... " >&6; }
1ef6de05 18724if ${ac_cv_lib_intl_dgettext+:} false; then :
067d23c9
KY
18725 $as_echo_n "(cached) " >&6
18726else
18727 ac_check_lib_save_LIBS=$LIBS
18728LIBS="-lintl $LIBS"
18729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18730/* end confdefs.h. */
18731
18732/* Override any GCC internal prototype to avoid an error.
18733 Use char because int might match the return type of a GCC
18734 builtin and then its argument prototype would still apply. */
18735#ifdef __cplusplus
18736extern "C"
18737#endif
18738char dgettext ();
18739int
18740main ()
18741{
18742return dgettext ();
18743 ;
18744 return 0;
18745}
18746_ACEOF
18747if ac_fn_c_try_link "$LINENO"; then :
18748 ac_cv_lib_intl_dgettext=yes
18749else
18750 ac_cv_lib_intl_dgettext=no
18751fi
18752rm -f core conftest.err conftest.$ac_objext \
18753 conftest$ac_exeext conftest.$ac_ext
18754LIBS=$ac_check_lib_save_LIBS
18755fi
18756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18757$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
1ef6de05 18758if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
067d23c9
KY
18759 cat >>confdefs.h <<_ACEOF
18760#define HAVE_LIBINTL 1
18761_ACEOF
18762
18763 LIBS="-lintl $LIBS"
18764
18765fi
18766
18767
18768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18769$as_echo_n "checking whether localtime caches TZ... " >&6; }
1ef6de05 18770if ${emacs_cv_localtime_cache+:} false; then :
067d23c9
KY
18771 $as_echo_n "(cached) " >&6
18772else
18773 if test x$ac_cv_func_tzset = xyes; then
18774if test "$cross_compiling" = yes; then :
18775 # If we have tzset, assume the worst when cross-compiling.
18776emacs_cv_localtime_cache=yes
18777else
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779/* end confdefs.h. */
18780#include <time.h>
18781char TZ_GMT0[] = "TZ=GMT0";
18782char TZ_PST8[] = "TZ=PST8";
18783main()
18784{
18785 time_t now = time ((time_t *) 0);
18786 int hour_GMT0, hour_unset;
18787 if (putenv (TZ_GMT0) != 0)
18788 exit (1);
18789 hour_GMT0 = localtime (&now)->tm_hour;
18790 unsetenv("TZ");
18791 hour_unset = localtime (&now)->tm_hour;
18792 if (putenv (TZ_PST8) != 0)
18793 exit (1);
18794 if (localtime (&now)->tm_hour == hour_GMT0)
18795 exit (1);
18796 unsetenv("TZ");
18797 if (localtime (&now)->tm_hour != hour_unset)
18798 exit (1);
18799 exit (0);
18800}
18801_ACEOF
18802if ac_fn_c_try_run "$LINENO"; then :
18803 emacs_cv_localtime_cache=no
18804else
18805 emacs_cv_localtime_cache=yes
18806fi
18807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18808 conftest.$ac_objext conftest.beam conftest.$ac_ext
18809fi
18810
18811else
18812 # If we lack tzset, report that localtime does not cache TZ,
18813 # since we can't invalidate the cache if we don't have tzset.
18814 emacs_cv_localtime_cache=no
18815fi
18816fi
18817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18818$as_echo "$emacs_cv_localtime_cache" >&6; }
18819if test $emacs_cv_localtime_cache = yes; then
18820
18821$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18822
18823fi
18824
18825if test "x$HAVE_TIMEVAL" = xyes; then
18826 for ac_func in gettimeofday
18827do :
18828 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
1ef6de05 18829if test "x$ac_cv_func_gettimeofday" = xyes; then :
067d23c9
KY
18830 cat >>confdefs.h <<_ACEOF
18831#define HAVE_GETTIMEOFDAY 1
18832_ACEOF
18833
18834fi
18835done
18836
18837 if test $ac_cv_func_gettimeofday = yes; then
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18839$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
1ef6de05 18840if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
067d23c9
KY
18841 $as_echo_n "(cached) " >&6
18842else
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844/* end confdefs.h. */
18845
18846#ifdef TIME_WITH_SYS_TIME
18847#include <sys/time.h>
18848#include <time.h>
18849#else
18850#ifdef HAVE_SYS_TIME_H
18851#include <sys/time.h>
18852#else
18853#include <time.h>
18854#endif
18855#endif
18856int
18857main ()
18858{
18859struct timeval time;
18860 gettimeofday (&time, 0);
18861 ;
18862 return 0;
18863}
18864_ACEOF
18865if ac_fn_c_try_compile "$LINENO"; then :
18866 emacs_cv_gettimeofday_two_arguments=yes
18867else
18868 emacs_cv_gettimeofday_two_arguments=no
18869fi
18870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871fi
18872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18873$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18874 if test $emacs_cv_gettimeofday_two_arguments = no; then
18875
18876$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18877
18878 fi
18879 fi
18880fi
18881
18882ok_so_far=yes
18883ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
1ef6de05 18884if test "x$ac_cv_func_socket" = xyes; then :
067d23c9
KY
18885
18886else
18887 ok_so_far=no
18888fi
18889
18890if test $ok_so_far = yes; then
18891 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
1ef6de05 18892if test "x$ac_cv_header_netinet_in_h" = xyes; then :
067d23c9
KY
18893
18894else
18895 ok_so_far=no
18896fi
18897
18898
18899fi
18900if test $ok_so_far = yes; then
18901 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
1ef6de05 18902if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
067d23c9
KY
18903
18904else
18905 ok_so_far=no
18906fi
18907
18908
18909fi
18910if test $ok_so_far = yes; then
18911
18912$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18913
18914fi
18915
18916if test -f /usr/lpp/X11/bin/smt.exp; then
18917
18918$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18919
18920fi
18921
18922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18923$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18924if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18926$as_echo "yes" >&6; }
18927
18928$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18929
18930else
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932$as_echo "no" >&6; }
18933fi
18934
18935ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1ef6de05 18936if test "x$ac_cv_type_pid_t" = xyes; then :
067d23c9
KY
18937
18938else
18939
18940cat >>confdefs.h <<_ACEOF
18941#define pid_t int
18942_ACEOF
18943
18944fi
18945
18946for ac_header in vfork.h
18947do :
18948 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
1ef6de05 18949if test "x$ac_cv_header_vfork_h" = xyes; then :
067d23c9
KY
18950 cat >>confdefs.h <<_ACEOF
18951#define HAVE_VFORK_H 1
18952_ACEOF
18953
18954fi
18955
18956done
18957
18958for ac_func in fork vfork
18959do :
18960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18961ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1ef6de05 18962if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
18963 cat >>confdefs.h <<_ACEOF
18964#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18965_ACEOF
18966
18967fi
18968done
18969
18970if test "x$ac_cv_func_fork" = xyes; then
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18972$as_echo_n "checking for working fork... " >&6; }
1ef6de05 18973if ${ac_cv_func_fork_works+:} false; then :
067d23c9
KY
18974 $as_echo_n "(cached) " >&6
18975else
18976 if test "$cross_compiling" = yes; then :
18977 ac_cv_func_fork_works=cross
18978else
18979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980/* end confdefs.h. */
18981$ac_includes_default
18982int
18983main ()
18984{
18985
18986 /* By Ruediger Kuhlmann. */
18987 return fork () < 0;
18988
18989 ;
18990 return 0;
18991}
18992_ACEOF
18993if ac_fn_c_try_run "$LINENO"; then :
18994 ac_cv_func_fork_works=yes
18995else
18996 ac_cv_func_fork_works=no
18997fi
18998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18999 conftest.$ac_objext conftest.beam conftest.$ac_ext
19000fi
19001
19002fi
19003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19004$as_echo "$ac_cv_func_fork_works" >&6; }
19005
19006else
19007 ac_cv_func_fork_works=$ac_cv_func_fork
19008fi
19009if test "x$ac_cv_func_fork_works" = xcross; then
19010 case $host in
19011 *-*-amigaos* | *-*-msdosdjgpp*)
19012 # Override, as these systems have only a dummy fork() stub
19013 ac_cv_func_fork_works=no
19014 ;;
19015 *)
19016 ac_cv_func_fork_works=yes
19017 ;;
19018 esac
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19020$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19021fi
19022ac_cv_func_vfork_works=$ac_cv_func_vfork
19023if test "x$ac_cv_func_vfork" = xyes; then
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19025$as_echo_n "checking for working vfork... " >&6; }
1ef6de05 19026if ${ac_cv_func_vfork_works+:} false; then :
067d23c9
KY
19027 $as_echo_n "(cached) " >&6
19028else
19029 if test "$cross_compiling" = yes; then :
19030 ac_cv_func_vfork_works=cross
19031else
19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033/* end confdefs.h. */
19034/* Thanks to Paul Eggert for this test. */
19035$ac_includes_default
19036#include <sys/wait.h>
19037#ifdef HAVE_VFORK_H
19038# include <vfork.h>
19039#endif
19040/* On some sparc systems, changes by the child to local and incoming
19041 argument registers are propagated back to the parent. The compiler
19042 is told about this with #include <vfork.h>, but some compilers
19043 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19044 static variable whose address is put into a register that is
19045 clobbered by the vfork. */
19046static void
19047#ifdef __cplusplus
19048sparc_address_test (int arg)
19049# else
19050sparc_address_test (arg) int arg;
19051#endif
19052{
19053 static pid_t child;
19054 if (!child) {
19055 child = vfork ();
19056 if (child < 0) {
19057 perror ("vfork");
19058 _exit(2);
19059 }
19060 if (!child) {
19061 arg = getpid();
19062 write(-1, "", 0);
19063 _exit (arg);
19064 }
19065 }
19066}
19067
19068int
19069main ()
19070{
19071 pid_t parent = getpid ();
19072 pid_t child;
19073
19074 sparc_address_test (0);
19075
19076 child = vfork ();
19077
19078 if (child == 0) {
19079 /* Here is another test for sparc vfork register problems. This
19080 test uses lots of local variables, at least as many local
19081 variables as main has allocated so far including compiler
19082 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19083 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19084 reuse the register of parent for one of the local variables,
19085 since it will think that parent can't possibly be used any more
19086 in this routine. Assigning to the local variable will thus
19087 munge parent in the parent process. */
19088 pid_t
19089 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19090 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19091 /* Convince the compiler that p..p7 are live; otherwise, it might
19092 use the same hardware register for all 8 local variables. */
19093 if (p != p1 || p != p2 || p != p3 || p != p4
19094 || p != p5 || p != p6 || p != p7)
19095 _exit(1);
19096
19097 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19098 from child file descriptors. If the child closes a descriptor
19099 before it execs or exits, this munges the parent's descriptor
19100 as well. Test for this by closing stdout in the child. */
19101 _exit(close(fileno(stdout)) != 0);
19102 } else {
19103 int status;
19104 struct stat st;
19105
19106 while (wait(&status) != child)
19107 ;
19108 return (
19109 /* Was there some problem with vforking? */
19110 child < 0
19111
19112 /* Did the child fail? (This shouldn't happen.) */
19113 || status
19114
19115 /* Did the vfork/compiler bug occur? */
19116 || parent != getpid()
19117
19118 /* Did the file descriptor bug occur? */
19119 || fstat(fileno(stdout), &st) != 0
19120 );
19121 }
19122}
19123_ACEOF
19124if ac_fn_c_try_run "$LINENO"; then :
19125 ac_cv_func_vfork_works=yes
19126else
19127 ac_cv_func_vfork_works=no
19128fi
19129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19130 conftest.$ac_objext conftest.beam conftest.$ac_ext
19131fi
19132
19133fi
19134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19135$as_echo "$ac_cv_func_vfork_works" >&6; }
19136
19137fi;
19138if test "x$ac_cv_func_fork_works" = xcross; then
19139 ac_cv_func_vfork_works=$ac_cv_func_vfork
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19141$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19142fi
19143
19144if test "x$ac_cv_func_vfork_works" = xyes; then
19145
19146$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19147
19148else
19149
19150$as_echo "#define vfork fork" >>confdefs.h
19151
19152fi
19153if test "x$ac_cv_func_fork_works" = xyes; then
19154
19155$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19156
19157fi
19158
19159
19160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19161$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
1ef6de05 19162if ${emacs_cv_langinfo_codeset+:} false; then :
067d23c9
KY
19163 $as_echo_n "(cached) " >&6
19164else
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166/* end confdefs.h. */
19167#include <langinfo.h>
19168int
19169main ()
19170{
19171char* cs = nl_langinfo(CODESET);
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176if ac_fn_c_try_link "$LINENO"; then :
19177 emacs_cv_langinfo_codeset=yes
19178else
19179 emacs_cv_langinfo_codeset=no
19180fi
19181rm -f core conftest.err conftest.$ac_objext \
19182 conftest$ac_exeext conftest.$ac_ext
19183
19184fi
19185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19186$as_echo "$emacs_cv_langinfo_codeset" >&6; }
19187if test $emacs_cv_langinfo_codeset = yes; then
19188
19189$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19190
19191fi
19192
19193ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1ef6de05 19194if test "x$ac_cv_type_size_t" = xyes; then :
067d23c9
KY
19195
19196cat >>confdefs.h <<_ACEOF
19197#define HAVE_SIZE_T 1
19198_ACEOF
19199
19200
19201fi
19202
19203
19204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19205$as_echo_n "checking for mbstate_t... " >&6; }
1ef6de05 19206if ${ac_cv_type_mbstate_t+:} false; then :
067d23c9
KY
19207 $as_echo_n "(cached) " >&6
19208else
19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210/* end confdefs.h. */
19211$ac_includes_default
19212# include <wchar.h>
19213int
19214main ()
19215{
19216mbstate_t x; return sizeof x;
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221if ac_fn_c_try_compile "$LINENO"; then :
19222 ac_cv_type_mbstate_t=yes
19223else
19224 ac_cv_type_mbstate_t=no
19225fi
19226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227fi
19228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19229$as_echo "$ac_cv_type_mbstate_t" >&6; }
19230 if test $ac_cv_type_mbstate_t = yes; then
19231
19232$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19233
19234 else
19235
19236$as_echo "#define mbstate_t int" >>confdefs.h
19237
19238 fi
19239
067d23c9
KY
19240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19241$as_echo_n "checking for C restricted array declarations... " >&6; }
1ef6de05 19242if ${emacs_cv_c_restrict_arr+:} false; then :
067d23c9
KY
19243 $as_echo_n "(cached) " >&6
19244else
19245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19246/* end confdefs.h. */
19247void fred (int x[__restrict]);
19248int
19249main ()
19250{
19251
19252 ;
19253 return 0;
19254}
19255_ACEOF
19256if ac_fn_c_try_compile "$LINENO"; then :
19257 emacs_cv_c_restrict_arr=yes
19258else
19259 emacs_cv_c_restrict_arr=no
19260fi
19261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19262fi
19263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19264$as_echo "$emacs_cv_c_restrict_arr" >&6; }
19265if test "$emacs_cv_c_restrict_arr" = yes; then
19266
19267$as_echo "#define __restrict_arr __restrict" >>confdefs.h
19268
19269fi
19270
19271
19272
19273# Set up the CFLAGS for real compilation, so we can substitute it.
19274CFLAGS="$REAL_CFLAGS"
19275CPPFLAGS="$REAL_CPPFLAGS"
19276
19277## Hack to detect a buggy GCC version.
19278if test "x$GCC" = xyes \
19279 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19280 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19281 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
1ef6de05 19282 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
067d23c9
KY
19283fi
19284
16fab143 19285version=$PACKAGE_VERSION
067d23c9
KY
19286
19287### Specify what sort of things we'll be editing into Makefile and config.h.
19288### Use configuration here uncanonicalized to avoid exceeding size limits.
19289
19290
19291## Unused?
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19313## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19314## end of LIBX_BASE, but nothing ever set it.
19315
19316
19317
19318
19319## Used in lwlib/Makefile.in.
19320
d6a003a8
AS
19321if test -n "${machfile}"; then
19322 M_FILE="\$(srcdir)/${machfile}"
19323else
19324 M_FILE=
19325fi
19326S_FILE="\$(srcdir)/${opsysfile}"
067d23c9
KY
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
067d23c9
KY
19337cat >>confdefs.h <<_ACEOF
19338#define EMACS_CONFIGURATION "${canonical}"
19339_ACEOF
19340
19341
19342cat >>confdefs.h <<_ACEOF
19343#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19344_ACEOF
19345
d6a003a8 19346if test -n "$machfile"; then
067d23c9
KY
19347
19348cat >>confdefs.h <<_ACEOF
19349#define config_machfile "${machfile}"
19350_ACEOF
19351
d6a003a8 19352fi
067d23c9
KY
19353
19354cat >>confdefs.h <<_ACEOF
19355#define config_opsysfile "${opsysfile}"
19356_ACEOF
19357
19358
19359XMENU_OBJ=
19360XOBJ=
19361FONT_OBJ=
19362if test "${HAVE_X_WINDOWS}" = "yes" ; then
19363
19364$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19365
19366 XMENU_OBJ=xmenu.o
19367 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19368 FONT_OBJ=xfont.o
19369 if test "$HAVE_XFT" = "yes"; then
19370 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19371 elif test "$HAVE_FREETYPE" = "yes"; then
19372 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19373 fi
19374
19375fi
19376
19377
19378
19379
19380WIDGET_OBJ=
19381MOTIF_LIBW=
19382if test "${USE_X_TOOLKIT}" != "none" ; then
19383 WIDGET_OBJ=widget.o
19384
19385$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19386
19387 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19388
19389$as_echo "#define USE_LUCID 1" >>confdefs.h
19390
19391 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19392
19393$as_echo "#define USE_MOTIF 1" >>confdefs.h
19394
19395 MOTIF_LIBW=-lXm
19396 case "$opsys" in
19397 gnu-linux)
19398 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19399 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19400 ;;
19401
19402 unixware)
19403 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19404 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19405 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19406 ;;
19407
19408 aix4-2)
19409 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19410 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19411 ;;
19412 esac
19413 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19414 fi
19415fi
19416
19417
19418TOOLKIT_LIBW=
19419case "$USE_X_TOOLKIT" in
19420 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19421 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19422 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19423esac
19424
19425
19426if test "$USE_X_TOOLKIT" = "none"; then
19427 LIBXT_OTHER="\$(LIBXSM)"
19428 OLDXMENU_TARGET="really-oldXMenu"
19429else
19430 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19431 OLDXMENU_TARGET="really-lwlib"
19432fi
19433
19434
19435## The X Menu stuff is present in the X10 distribution, but missing
19436## from X11. If we have X10, just use the installed library;
19437## otherwise, use our own copy.
19438if test "${HAVE_X11}" = "yes" ; then
19439
19440$as_echo "#define HAVE_X11 1" >>confdefs.h
19441
19442
19443 if test "$USE_X_TOOLKIT" = "none"; then
19444 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19445 else
19446 OLDXMENU="\${lwlibdir}/liblw.a"
19447 fi
19448 LIBXMENU="\$(OLDXMENU)"
19449 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19450 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19451else
19452 ## For a syntactically valid Makefile; not actually used for anything.
19453 ## See comments in src/Makefile.in.
19454 OLDXMENU=nothing
19455 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19456 if test "${HAVE_X_WINDOWS}" = "yes"; then
19457 LIBXMENU="-lXMenu"
19458 else
19459 LIBXMENU=
19460 fi
19461 LIBX_OTHER=
19462 OLDXMENU_DEPS=
19463fi
19464
19465if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19466 OLDXMENU_TARGET=
19467 OLDXMENU=nothing
19468 LIBXMENU=
19469 OLDXMENU_DEPS=
19470fi
19471
19472
19473
19474
19475
19476
19477
19478if test "${HAVE_MENUS}" = "yes" ; then
19479
19480$as_echo "#define HAVE_MENUS 1" >>confdefs.h
19481
19482fi
19483
19484if test "${GNU_MALLOC}" = "yes" ; then
19485
19486$as_echo "#define GNU_MALLOC 1" >>confdefs.h
19487
19488fi
19489
19490RALLOC_OBJ=
19491if test "${REL_ALLOC}" = "yes" ; then
19492
19493$as_echo "#define REL_ALLOC 1" >>confdefs.h
19494
19495
19496 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19497fi
19498
19499
19500if test "$opsys" = "cygwin"; then
19501 CYGWIN_OBJ="sheap.o"
19502 ## Cygwin differs because of its unexec().
19503 PRE_ALLOC_OBJ=
19504 POST_ALLOC_OBJ=lastfile.o
19505else
19506 CYGWIN_OBJ=
19507 PRE_ALLOC_OBJ=lastfile.o
19508 POST_ALLOC_OBJ=
19509fi
19510
19511
19512
19513
19514
19515case "$opsys" in
19516 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19517
19518 darwin)
19519 ## The -headerpad option tells ld (see man page) to leave room at the
19520 ## end of the header for adding load commands. Needed for dumping.
19521 ## 0x690 is the total size of 30 segment load commands (at 56
19522 ## each); under Cocoa 31 commands are required.
19523 if test "$HAVE_NS" = "yes"; then
19524 libs_nsgui="-framework AppKit"
19525 headerpad_extra=6C8
19526 else
19527 libs_nsgui=
19528 headerpad_extra=690
19529 fi
19530 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19531
19532 ## This is here because src/Makefile.in did some extra fiddling around
19533 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19534 ## #ifndef LD_SWITCH_SYSTEM
19535 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19536 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19537 ## not using gcc, darwin system not on an alpha (ie darwin, since
19538 ## darwin + alpha does not occur).
19539 ## Because this was done in src/Makefile.in, the resulting part of
19540 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19541 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19542 ## rather than LD_SWITCH_SYSTEM.
19543 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19544 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19545 ;;
19546
19547 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19548 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19549 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19550 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19551 ## had different values in configure (in ac_link) and src/Makefile.in.
19552 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19553 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19554
19555 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19556esac
19557
19558if test "$NS_IMPL_GNUSTEP" = "yes"; then
19559 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19560fi
19561
19562
19563
19564
19565LD_FIRSTFLAG=
19566ORDINARY_LINK=
19567case "$opsys" in
19568 ## gnu: GNU needs its own crt0.
19569 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19570
19571 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19572 ## library search parth, i.e. it won't search /usr/lib for libc and
19573 ## friends. Using -nostartfiles instead avoids this problem, and
19574 ## will also work on earlier NetBSD releases.
19575 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19576
19577 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19578 ## MkLinux/LinuxPPC needs this.
19579 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19580 gnu-*)
19581 case "$machine" in
19582 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19583 esac
19584 ;;
19585esac
19586
19587
19588if test "x$ORDINARY_LINK" = "xyes"; then
19589
19590 LD_FIRSTFLAG=""
19591
19592$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19593
19594
19595## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19596## freebsd, gnu-* not on macppc|ibms390x.
19597elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19598
19599 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19600 ## places that are difficult to figure out at make time. Fortunately,
19601 ## these same versions allow you to pass arbitrary flags on to the
19602 ## linker, so there is no reason not to use it as a linker.
19603 ##
19604 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19605 ## searching for libraries in its internal directories, so we have to
19606 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19607 LD_FIRSTFLAG="-nostdlib"
19608fi
19609
19610## FIXME? What setting of EDIT_LDFLAGS should this have?
19611test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19612
19613
19614
19615
19616## FIXME? The logic here is not precisely the same as that above.
19617## There is no check here for a pre-defined LD_FIRSTFLAG.
19618## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19619LIB_GCC=
19620if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19621
19622 case "$opsys" in
19623 freebsd|netbsd|openbsd) LIB_GCC= ;;
19624
19625 gnu-*)
19626 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19627 ## build on ARM EABI under GNU/Linux. (Bug#5518)
d6a003a8
AS
19628 case $host_cpu in
19629 arm*)
067d23c9 19630 LIB_GCC="-lgcc_s"
d6a003a8
AS
19631 ;;
19632 *)
067d23c9
KY
19633 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19634 ## immediately undefine it again and redefine it to empty.
19635 ## Was the C_SWITCH_X_SITE part really necessary?
19636## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19637 LIB_GCC=
d6a003a8
AS
19638 ;;
19639 esac
067d23c9
KY
19640 ;;
19641
19642 ## Ask GCC where to find libgcc.a.
19643 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19644 esac
19645fi
19646
19647
19648TOOLTIP_SUPPORT=
19649WINDOW_SUPPORT=
19650## If we're using X11/GNUstep, define some consequences.
19651if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19652
19653$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19654
19655
19656$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19657
19658 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19659 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19660
19661 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19662 test "$HAVE_X_WINDOWS" = "yes" && \
19663 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19664
19665fi
19666
19667
19668
19669
19670
19671
19672
19673#### Report on what we decided to do.
19674#### Report GTK as a toolkit, even if it doesn't use Xt.
19675#### It makes printing result more understandable as using GTK sets
19676#### toolkit_scroll_bars to yes by default.
19677if test "${HAVE_GTK}" = "yes"; then
19678 USE_X_TOOLKIT=GTK
19679fi
19680
2b7f50d8
AS
19681and_machfile=
19682if test -n "$machfile"; then
19683 and_machfile=" and \`${machfile}'"
19684fi
19685
067d23c9
KY
19686echo "
19687Configured for \`${canonical}'.
19688
19689 Where should the build process find the source code? ${srcdir}
19690 What operating system and machine description files should Emacs use?
2b7f50d8 19691 \`${opsysfile}'${and_machfile}
067d23c9
KY
19692 What compiler should emacs be built with? ${CC} ${CFLAGS}
19693 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19694 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19695 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19696 What window system should Emacs use? ${window_system}
19697 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19698
19699if test -n "${x_includes}"; then
19700echo " Where do we find X Windows header files? ${x_includes}"
19701else
19702echo " Where do we find X Windows header files? Standard dirs"
19703fi
19704if test -n "${x_libraries}"; then
19705echo " Where do we find X Windows libraries? ${x_libraries}"
19706else
19707echo " Where do we find X Windows libraries? Standard dirs"
19708fi
19709
19710echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19711echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19712echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19713echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19714echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19715echo " Does Emacs use -lpng? ${HAVE_PNG}"
19716echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19717echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19718
19719echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19720echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19721echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19722echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19723echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19724echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19725
19726echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19727echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19728echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19729echo " Does Emacs use -lxft? ${HAVE_XFT}"
19730
19731echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19732echo
19733
19734if test $USE_XASSERTS = yes; then
19735 echo " Compiling with asserts turned on."
19736 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
19737fi
19738
19739echo
19740
19741if test "$HAVE_NS" = "yes"; then
19742 echo
19743 echo "You must run \"make install\" in order to test the built application.
19744The installed application will go to nextstep/Emacs.app and can be
19745run or moved from there."
19746 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19747 echo "The application will be fully self-contained."
19748 else
19749 echo "The lisp resources for the application will be installed under ${prefix}.
19750You may need to run \"make install\" with sudo. The application will fail
19751to run if these resources are not installed."
19752 fi
19753 echo
19754fi
19755
19756
19757# Remove any trailing slashes in these variables.
19758test "${prefix}" != NONE &&
19759 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19760test "${exec_prefix}" != NONE &&
19761 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19762
193770ee 19763ac_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"
067d23c9 19764
9411886d
PE
19765
19766ac_config_commands="$ac_config_commands mkdirs"
19767
19768
19769ac_config_commands="$ac_config_commands epaths"
19770
19771
19772ac_config_commands="$ac_config_commands gdbinit"
19773
067d23c9
KY
19774
19775cat >confcache <<\_ACEOF
19776# This file is a shell script that caches the results of configure
19777# tests run on this system so they can be shared between configure
19778# scripts and configure runs, see configure's option --config-cache.
19779# It is not useful on other systems. If it contains results you don't
19780# want to keep, you may remove or edit it.
19781#
19782# config.status only pays attention to the cache file if you give it
19783# the --recheck option to rerun configure.
19784#
19785# `ac_cv_env_foo' variables (set or unset) will be overridden when
19786# loading this file, other *unset* `ac_cv_foo' will be assigned the
19787# following values.
19788
19789_ACEOF
19790
19791# The following way of writing the cache mishandles newlines in values,
19792# but we know of no workaround that is simple, portable, and efficient.
19793# So, we kill variables containing newlines.
19794# Ultrix sh set writes to stderr and can't be redirected directly,
19795# and sets the high bit in the cache file unless we assign to the vars.
19796(
19797 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19798 eval ac_val=\$$ac_var
19799 case $ac_val in #(
19800 *${as_nl}*)
19801 case $ac_var in #(
19802 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19803$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19804 esac
19805 case $ac_var in #(
19806 _ | IFS | as_nl) ;; #(
19807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19808 *) { eval $ac_var=; unset $ac_var;} ;;
19809 esac ;;
19810 esac
19811 done
19812
19813 (set) 2>&1 |
19814 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19815 *${as_nl}ac_space=\ *)
19816 # `set' does not quote correctly, so add quotes: double-quote
19817 # substitution turns \\\\ into \\, and sed turns \\ into \.
19818 sed -n \
19819 "s/'/'\\\\''/g;
19820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19821 ;; #(
19822 *)
19823 # `set' quotes correctly as required by POSIX, so do not add quotes.
19824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19825 ;;
19826 esac |
19827 sort
19828) |
19829 sed '
19830 /^ac_cv_env_/b end
19831 t clear
19832 :clear
19833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19834 t end
19835 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19836 :end' >>confcache
19837if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19838 if test -w "$cache_file"; then
1ef6de05 19839 if test "x$cache_file" != "x/dev/null"; then
067d23c9
KY
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19841$as_echo "$as_me: updating cache $cache_file" >&6;}
1ef6de05
PE
19842 if test ! -f "$cache_file" || test -h "$cache_file"; then
19843 cat confcache >"$cache_file"
19844 else
19845 case $cache_file in #(
19846 */* | ?:*)
19847 mv -f confcache "$cache_file"$$ &&
19848 mv -f "$cache_file"$$ "$cache_file" ;; #(
19849 *)
19850 mv -f confcache "$cache_file" ;;
19851 esac
19852 fi
19853 fi
067d23c9
KY
19854 else
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19856$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19857 fi
19858fi
19859rm -f confcache
19860
19861test "x$prefix" = xNONE && prefix=$ac_default_prefix
19862# Let make expand exec_prefix.
19863test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19864
19865DEFS=-DHAVE_CONFIG_H
19866
19867ac_libobjs=
19868ac_ltlibobjs=
1ef6de05 19869U=
067d23c9
KY
19870for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19871 # 1. Remove the extension, and $U if already installed.
19872 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19873 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19874 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19875 # will be set to the directory where LIBOBJS objects are built.
19876 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19877 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19878done
19879LIBOBJS=$ac_libobjs
19880
19881LTLIBOBJS=$ac_ltlibobjs
19882
19883
743c80a7
PE
19884 if test -n "$EXEEXT"; then
19885 am__EXEEXT_TRUE=
19886 am__EXEEXT_FALSE='#'
19887else
19888 am__EXEEXT_TRUE='#'
19889 am__EXEEXT_FALSE=
19890fi
19891
19892if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1ef6de05 19893 as_fn_error $? "conditional \"AMDEP\" was never defined.
743c80a7
PE
19894Usually this means the macro was only invoked conditionally." "$LINENO" 5
19895fi
19896if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1ef6de05 19897 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
743c80a7
PE
19898Usually this means the macro was only invoked conditionally." "$LINENO" 5
19899fi
19900
19901if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
1ef6de05 19902 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
743c80a7
PE
19903Usually this means the macro was only invoked conditionally." "$LINENO" 5
19904fi
19905
942f733f 19906
743c80a7
PE
19907 gl_libobjs=
19908 gl_ltlibobjs=
19909 if test -n "$gl_LIBOBJS"; then
19910 # Remove the extension.
19911 sed_drop_objext='s/\.o$//;s/\.obj$//'
19912 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19913 gl_libobjs="$gl_libobjs $i.$ac_objext"
19914 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19915 done
19916 fi
19917 gl_LIBOBJS=$gl_libobjs
19918
19919 gl_LTLIBOBJS=$gl_ltlibobjs
19920
19921
19922
19923 gltests_libobjs=
19924 gltests_ltlibobjs=
19925 if test -n "$gltests_LIBOBJS"; then
19926 # Remove the extension.
19927 sed_drop_objext='s/\.o$//;s/\.obj$//'
19928 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19929 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19930 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19931 done
19932 fi
19933 gltests_LIBOBJS=$gltests_libobjs
19934
19935 gltests_LTLIBOBJS=$gltests_ltlibobjs
19936
067d23c9
KY
19937
19938
1ef6de05 19939: "${CONFIG_STATUS=./config.status}"
067d23c9
KY
19940ac_write_fail=0
19941ac_clean_files_save=$ac_clean_files
19942ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19943{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19944$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19945as_write_fail=0
19946cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19947#! $SHELL
19948# Generated by $as_me.
19949# Run this file to recreate the current configuration.
19950# Compiler output produced by configure, useful for debugging
19951# configure, is in config.log if it exists.
19952
19953debug=false
19954ac_cs_recheck=false
19955ac_cs_silent=false
19956
19957SHELL=\${CONFIG_SHELL-$SHELL}
19958export SHELL
19959_ASEOF
19960cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19961## -------------------- ##
19962## M4sh Initialization. ##
19963## -------------------- ##
19964
19965# Be more Bourne compatible
19966DUALCASE=1; export DUALCASE # for MKS sh
19967if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19968 emulate sh
19969 NULLCMD=:
19970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19971 # is contrary to our usage. Disable this feature.
19972 alias -g '${1+"$@"}'='"$@"'
19973 setopt NO_GLOB_SUBST
19974else
19975 case `(set -o) 2>/dev/null` in #(
19976 *posix*) :
19977 set -o posix ;; #(
19978 *) :
19979 ;;
19980esac
19981fi
19982
19983
19984as_nl='
19985'
19986export as_nl
19987# Printing a long string crashes Solaris 7 /usr/bin/printf.
19988as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19989as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19990as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19991# Prefer a ksh shell builtin over an external printf program on Solaris,
19992# but without wasting forks for bash or zsh.
19993if test -z "$BASH_VERSION$ZSH_VERSION" \
19994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19995 as_echo='print -r --'
19996 as_echo_n='print -rn --'
19997elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19998 as_echo='printf %s\n'
19999 as_echo_n='printf %s'
20000else
20001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20003 as_echo_n='/usr/ucb/echo -n'
20004 else
20005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20006 as_echo_n_body='eval
20007 arg=$1;
20008 case $arg in #(
20009 *"$as_nl"*)
20010 expr "X$arg" : "X\\(.*\\)$as_nl";
20011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20012 esac;
20013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20014 '
20015 export as_echo_n_body
20016 as_echo_n='sh -c $as_echo_n_body as_echo'
20017 fi
20018 export as_echo_body
20019 as_echo='sh -c $as_echo_body as_echo'
20020fi
20021
20022# The user is always right.
20023if test "${PATH_SEPARATOR+set}" != set; then
20024 PATH_SEPARATOR=:
20025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20027 PATH_SEPARATOR=';'
20028 }
20029fi
20030
20031
20032# IFS
20033# We need space, tab and new line, in precisely that order. Quoting is
20034# there to prevent editors from complaining about space-tab.
20035# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20036# splitting by setting IFS to empty value.)
20037IFS=" "" $as_nl"
20038
20039# Find who we are. Look in the path if we contain no directory separator.
1ef6de05 20040as_myself=
067d23c9
KY
20041case $0 in #((
20042 *[\\/]* ) as_myself=$0 ;;
20043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20044for as_dir in $PATH
20045do
20046 IFS=$as_save_IFS
20047 test -z "$as_dir" && as_dir=.
20048 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20049 done
20050IFS=$as_save_IFS
20051
20052 ;;
20053esac
20054# We did not find ourselves, most probably we were run as `sh COMMAND'
20055# in which case we are not to be found in the path.
20056if test "x$as_myself" = x; then
20057 as_myself=$0
20058fi
20059if test ! -f "$as_myself"; then
20060 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20061 exit 1
20062fi
20063
20064# Unset variables that we do not need and which cause bugs (e.g. in
20065# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20066# suppresses any "Segmentation fault" message there. '((' could
20067# trigger a bug in pdksh 5.2.14.
20068for as_var in BASH_ENV ENV MAIL MAILPATH
20069do eval test x\${$as_var+set} = xset \
20070 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20071done
20072PS1='$ '
20073PS2='> '
20074PS4='+ '
20075
20076# NLS nuisances.
20077LC_ALL=C
20078export LC_ALL
20079LANGUAGE=C
20080export LANGUAGE
20081
20082# CDPATH.
20083(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20084
20085
1ef6de05
PE
20086# as_fn_error STATUS ERROR [LINENO LOG_FD]
20087# ----------------------------------------
067d23c9
KY
20088# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20089# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1ef6de05 20090# script with STATUS, using 1 if that was 0.
067d23c9
KY
20091as_fn_error ()
20092{
1ef6de05
PE
20093 as_status=$1; test $as_status -eq 0 && as_status=1
20094 if test "$4"; then
20095 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20096 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 20097 fi
1ef6de05 20098 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
20099 as_fn_exit $as_status
20100} # as_fn_error
20101
20102
20103# as_fn_set_status STATUS
20104# -----------------------
20105# Set $? to STATUS, without forking.
20106as_fn_set_status ()
20107{
20108 return $1
20109} # as_fn_set_status
20110
20111# as_fn_exit STATUS
20112# -----------------
20113# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20114as_fn_exit ()
20115{
20116 set +e
20117 as_fn_set_status $1
20118 exit $1
20119} # as_fn_exit
20120
20121# as_fn_unset VAR
20122# ---------------
20123# Portably unset VAR.
20124as_fn_unset ()
20125{
20126 { eval $1=; unset $1;}
20127}
20128as_unset=as_fn_unset
20129# as_fn_append VAR VALUE
20130# ----------------------
20131# Append the text in VALUE to the end of the definition contained in VAR. Take
20132# advantage of any shell optimizations that allow amortized linear growth over
20133# repeated appends, instead of the typical quadratic growth present in naive
20134# implementations.
20135if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20136 eval 'as_fn_append ()
20137 {
20138 eval $1+=\$2
20139 }'
20140else
20141 as_fn_append ()
20142 {
20143 eval $1=\$$1\$2
20144 }
20145fi # as_fn_append
20146
20147# as_fn_arith ARG...
20148# ------------------
20149# Perform arithmetic evaluation on the ARGs, and store the result in the
20150# global $as_val. Take advantage of shells that can avoid forks. The arguments
20151# must be portable across $(()) and expr.
20152if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20153 eval 'as_fn_arith ()
20154 {
20155 as_val=$(( $* ))
20156 }'
20157else
20158 as_fn_arith ()
20159 {
20160 as_val=`expr "$@" || test $? -eq 1`
20161 }
20162fi # as_fn_arith
20163
20164
20165if expr a : '\(a\)' >/dev/null 2>&1 &&
20166 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20167 as_expr=expr
20168else
20169 as_expr=false
20170fi
20171
20172if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20173 as_basename=basename
20174else
20175 as_basename=false
20176fi
20177
20178if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20179 as_dirname=dirname
20180else
20181 as_dirname=false
20182fi
20183
20184as_me=`$as_basename -- "$0" ||
20185$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20186 X"$0" : 'X\(//\)$' \| \
20187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20188$as_echo X/"$0" |
20189 sed '/^.*\/\([^/][^/]*\)\/*$/{
20190 s//\1/
20191 q
20192 }
20193 /^X\/\(\/\/\)$/{
20194 s//\1/
20195 q
20196 }
20197 /^X\/\(\/\).*/{
20198 s//\1/
20199 q
20200 }
20201 s/.*/./; q'`
20202
20203# Avoid depending upon Character Ranges.
20204as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20205as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20206as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20207as_cr_digits='0123456789'
20208as_cr_alnum=$as_cr_Letters$as_cr_digits
20209
20210ECHO_C= ECHO_N= ECHO_T=
20211case `echo -n x` in #(((((
20212-n*)
20213 case `echo 'xy\c'` in
20214 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20215 xy) ECHO_C='\c';;
20216 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20217 ECHO_T=' ';;
20218 esac;;
20219*)
20220 ECHO_N='-n';;
20221esac
20222
20223rm -f conf$$ conf$$.exe conf$$.file
20224if test -d conf$$.dir; then
20225 rm -f conf$$.dir/conf$$.file
20226else
20227 rm -f conf$$.dir
20228 mkdir conf$$.dir 2>/dev/null
20229fi
20230if (echo >conf$$.file) 2>/dev/null; then
20231 if ln -s conf$$.file conf$$ 2>/dev/null; then
20232 as_ln_s='ln -s'
20233 # ... but there are two gotchas:
20234 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20235 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20236 # In both cases, we have to default to `cp -p'.
20237 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20238 as_ln_s='cp -p'
20239 elif ln conf$$.file conf$$ 2>/dev/null; then
20240 as_ln_s=ln
20241 else
20242 as_ln_s='cp -p'
20243 fi
20244else
20245 as_ln_s='cp -p'
20246fi
20247rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20248rmdir conf$$.dir 2>/dev/null
20249
20250
20251# as_fn_mkdir_p
20252# -------------
20253# Create "$as_dir" as a directory, including parents if necessary.
20254as_fn_mkdir_p ()
20255{
20256
20257 case $as_dir in #(
20258 -*) as_dir=./$as_dir;;
20259 esac
20260 test -d "$as_dir" || eval $as_mkdir_p || {
20261 as_dirs=
20262 while :; do
20263 case $as_dir in #(
20264 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20265 *) as_qdir=$as_dir;;
20266 esac
20267 as_dirs="'$as_qdir' $as_dirs"
20268 as_dir=`$as_dirname -- "$as_dir" ||
20269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20270 X"$as_dir" : 'X\(//\)[^/]' \| \
20271 X"$as_dir" : 'X\(//\)$' \| \
20272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20273$as_echo X"$as_dir" |
20274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20275 s//\1/
20276 q
20277 }
20278 /^X\(\/\/\)[^/].*/{
20279 s//\1/
20280 q
20281 }
20282 /^X\(\/\/\)$/{
20283 s//\1/
20284 q
20285 }
20286 /^X\(\/\).*/{
20287 s//\1/
20288 q
20289 }
20290 s/.*/./; q'`
20291 test -d "$as_dir" && break
20292 done
20293 test -z "$as_dirs" || eval "mkdir $as_dirs"
1ef6de05 20294 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
20295
20296
20297} # as_fn_mkdir_p
20298if mkdir -p . 2>/dev/null; then
20299 as_mkdir_p='mkdir -p "$as_dir"'
20300else
20301 test -d ./-p && rmdir ./-p
20302 as_mkdir_p=false
20303fi
20304
20305if test -x / >/dev/null 2>&1; then
20306 as_test_x='test -x'
20307else
20308 if ls -dL / >/dev/null 2>&1; then
20309 as_ls_L_option=L
20310 else
20311 as_ls_L_option=
20312 fi
20313 as_test_x='
20314 eval sh -c '\''
20315 if test -d "$1"; then
20316 test -d "$1/.";
20317 else
20318 case $1 in #(
20319 -*)set "./$1";;
20320 esac;
20321 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20322 ???[sx]*):;;*)false;;esac;fi
20323 '\'' sh
20324 '
20325fi
20326as_executable_p=$as_test_x
20327
20328# Sed expression to map a string onto a valid CPP name.
20329as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20330
20331# Sed expression to map a string onto a valid variable name.
20332as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20333
20334
20335exec 6>&1
20336## ----------------------------------- ##
20337## Main body of $CONFIG_STATUS script. ##
20338## ----------------------------------- ##
20339_ASEOF
20340test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20341
20342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20343# Save the log message, to keep $0 and so on meaningful, and to
20344# report actual input values of CONFIG_FILES etc. instead of their
20345# values after options handling.
20346ac_log="
20347This file was extended by emacs $as_me 24.0.50, which was
1ef6de05 20348generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
20349
20350 CONFIG_FILES = $CONFIG_FILES
20351 CONFIG_HEADERS = $CONFIG_HEADERS
20352 CONFIG_LINKS = $CONFIG_LINKS
20353 CONFIG_COMMANDS = $CONFIG_COMMANDS
20354 $ $0 $@
20355
20356on `(hostname || uname -n) 2>/dev/null | sed 1q`
20357"
20358
20359_ACEOF
20360
20361case $ac_config_files in *"
20362"*) set x $ac_config_files; shift; ac_config_files=$*;;
20363esac
20364
20365case $ac_config_headers in *"
20366"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20367esac
20368
20369
20370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20371# Files that config.status was made for.
20372config_files="$ac_config_files"
20373config_headers="$ac_config_headers"
20374config_commands="$ac_config_commands"
20375
20376_ACEOF
20377
20378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20379ac_cs_usage="\
20380\`$as_me' instantiates files and other configuration actions
20381from templates according to the current configuration. Unless the files
20382and actions are specified as TAGs, all are instantiated by default.
20383
20384Usage: $0 [OPTION]... [TAG]...
20385
20386 -h, --help print this help, then exit
20387 -V, --version print version number and configuration settings, then exit
20388 --config print configuration, then exit
20389 -q, --quiet, --silent
20390 do not print progress messages
20391 -d, --debug don't remove temporary files
20392 --recheck update $as_me by reconfiguring in the same conditions
20393 --file=FILE[:TEMPLATE]
20394 instantiate the configuration file FILE
20395 --header=FILE[:TEMPLATE]
20396 instantiate the configuration header FILE
20397
20398Configuration files:
20399$config_files
20400
20401Configuration headers:
20402$config_headers
20403
20404Configuration commands:
20405$config_commands
20406
20407Report bugs to the package provider."
20408
20409_ACEOF
20410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20411ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20412ac_cs_version="\\
20413emacs config.status 24.0.50
1ef6de05 20414configured by $0, generated by GNU Autoconf 2.68,
067d23c9
KY
20415 with options \\"\$ac_cs_config\\"
20416
1ef6de05 20417Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
20418This config.status script is free software; the Free Software Foundation
20419gives unlimited permission to copy, distribute and modify it."
20420
20421ac_pwd='$ac_pwd'
20422srcdir='$srcdir'
20423INSTALL='$INSTALL'
743c80a7
PE
20424MKDIR_P='$MKDIR_P'
20425AWK='$AWK'
067d23c9
KY
20426test -n "\$AWK" || AWK=awk
20427_ACEOF
20428
20429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20430# The default lists apply if the user does not specify any file.
20431ac_need_defaults=:
20432while test $# != 0
20433do
20434 case $1 in
1ef6de05 20435 --*=?*)
067d23c9
KY
20436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20437 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20438 ac_shift=:
20439 ;;
1ef6de05
PE
20440 --*=)
20441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20442 ac_optarg=
20443 ac_shift=:
20444 ;;
067d23c9
KY
20445 *)
20446 ac_option=$1
20447 ac_optarg=$2
20448 ac_shift=shift
20449 ;;
20450 esac
20451
20452 case $ac_option in
20453 # Handling of the options.
20454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20455 ac_cs_recheck=: ;;
20456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20457 $as_echo "$ac_cs_version"; exit ;;
20458 --config | --confi | --conf | --con | --co | --c )
20459 $as_echo "$ac_cs_config"; exit ;;
20460 --debug | --debu | --deb | --de | --d | -d )
20461 debug=: ;;
20462 --file | --fil | --fi | --f )
20463 $ac_shift
20464 case $ac_optarg in
20465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1ef6de05 20466 '') as_fn_error $? "missing file argument" ;;
067d23c9
KY
20467 esac
20468 as_fn_append CONFIG_FILES " '$ac_optarg'"
20469 ac_need_defaults=false;;
20470 --header | --heade | --head | --hea )
20471 $ac_shift
20472 case $ac_optarg in
20473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20474 esac
20475 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20476 ac_need_defaults=false;;
20477 --he | --h)
20478 # Conflict between --help and --header
1ef6de05 20479 as_fn_error $? "ambiguous option: \`$1'
067d23c9
KY
20480Try \`$0 --help' for more information.";;
20481 --help | --hel | -h )
20482 $as_echo "$ac_cs_usage"; exit ;;
20483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20485 ac_cs_silent=: ;;
20486
20487 # This is an error.
1ef6de05 20488 -*) as_fn_error $? "unrecognized option: \`$1'
067d23c9
KY
20489Try \`$0 --help' for more information." ;;
20490
20491 *) as_fn_append ac_config_targets " $1"
20492 ac_need_defaults=false ;;
20493
20494 esac
20495 shift
20496done
20497
20498ac_configure_extra_args=
20499
20500if $ac_cs_silent; then
20501 exec 6>/dev/null
20502 ac_configure_extra_args="$ac_configure_extra_args --silent"
20503fi
20504
20505_ACEOF
20506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20507if \$ac_cs_recheck; then
20508 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20509 shift
20510 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20511 CONFIG_SHELL='$SHELL'
20512 export CONFIG_SHELL
20513 exec "\$@"
20514fi
20515
20516_ACEOF
20517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20518exec 5>>config.log
20519{
20520 echo
20521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20522## Running $as_me. ##
20523_ASBOX
20524 $as_echo "$ac_log"
20525} >&5
20526
20527_ACEOF
20528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20529#
20530# INIT-COMMANDS
20531#
743c80a7 20532AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
067d23c9
KY
20533GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20534
20535_ACEOF
20536
20537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20538
20539# Handling of arguments.
20540for ac_config_target in $ac_config_targets
20541do
20542 case $ac_config_target in
20543 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
743c80a7 20544 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
067d23c9 20545 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
743c80a7 20546 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
067d23c9
KY
20547 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20548 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20549 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20550 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20551 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20552 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20553 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20554 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20555 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20556 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
ea062854 20557 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
9411886d
PE
20558 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20559 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20560 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
067d23c9 20561
1ef6de05 20562 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
067d23c9
KY
20563 esac
20564done
20565
20566
20567# If the user did not use the arguments to specify the items to instantiate,
20568# then the envvar interface is used. Set only those that are not.
20569# We use the long form for the default assignment because of an extremely
20570# bizarre bug on SunOS 4.1.3.
20571if $ac_need_defaults; then
20572 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20573 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20574 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20575fi
20576
20577# Have a temporary directory for convenience. Make it in the build tree
20578# simply because there is no reason against having it here, and in addition,
20579# creating and moving files from /tmp can sometimes cause problems.
20580# Hook for its removal unless debugging.
20581# Note that there is a small window in which the directory will not be cleaned:
20582# after its creation but before its name has been assigned to `$tmp'.
20583$debug ||
20584{
1ef6de05 20585 tmp= ac_tmp=
067d23c9 20586 trap 'exit_status=$?
1ef6de05
PE
20587 : "${ac_tmp:=$tmp}"
20588 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
067d23c9
KY
20589' 0
20590 trap 'as_fn_exit 1' 1 2 13 15
20591}
20592# Create a (secure) tmp directory for tmp files.
20593
20594{
20595 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1ef6de05 20596 test -d "$tmp"
067d23c9
KY
20597} ||
20598{
20599 tmp=./conf$$-$RANDOM
20600 (umask 077 && mkdir "$tmp")
1ef6de05
PE
20601} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20602ac_tmp=$tmp
067d23c9
KY
20603
20604# Set up the scripts for CONFIG_FILES section.
20605# No need to generate them if there are no CONFIG_FILES.
20606# This happens for instance with `./config.status config.h'.
20607if test -n "$CONFIG_FILES"; then
20608
20609if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20610 ac_cs_awk_getline=:
20611 ac_cs_awk_pipe_init=
20612 ac_cs_awk_read_file='
20613 while ((getline aline < (F[key])) > 0)
20614 print(aline)
20615 close(F[key])'
20616 ac_cs_awk_pipe_fini=
20617else
20618 ac_cs_awk_getline=false
20619 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20620 ac_cs_awk_read_file='
20621 print "|#_!!_#|"
20622 print "cat " F[key] " &&"
20623 '$ac_cs_awk_pipe_init
20624 # The final `:' finishes the AND list.
20625 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20626fi
20627ac_cr=`echo X | tr X '\015'`
20628# On cygwin, bash can eat \r inside `` if the user requested igncr.
20629# But we know of no other shell where ac_cr would be empty at this
20630# point, so we can use a bashism as a fallback.
20631if test "x$ac_cr" = x; then
20632 eval ac_cr=\$\'\\r\'
20633fi
20634ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20635if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1ef6de05 20636 ac_cs_awk_cr='\\r'
067d23c9
KY
20637else
20638 ac_cs_awk_cr=$ac_cr
20639fi
20640
1ef6de05 20641echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
067d23c9
KY
20642_ACEOF
20643
20644# Create commands to substitute file output variables.
20645{
20646 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
1ef6de05 20647 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
067d23c9
KY
20648 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20649 echo "_ACAWK" &&
20650 echo "_ACEOF"
20651} >conf$$files.sh &&
20652. ./conf$$files.sh ||
1ef6de05 20653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20654rm -f conf$$files.sh
20655
20656{
20657 echo "cat >conf$$subs.awk <<_ACEOF" &&
20658 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20659 echo "_ACEOF"
20660} >conf$$subs.sh ||
1ef6de05
PE
20661 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20662ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
067d23c9
KY
20663ac_delim='%!_!# '
20664for ac_last_try in false false false false false :; do
20665 . ./conf$$subs.sh ||
1ef6de05 20666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20667
20668 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20669 if test $ac_delim_n = $ac_delim_num; then
20670 break
20671 elif $ac_last_try; then
1ef6de05 20672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20673 else
20674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20675 fi
20676done
20677rm -f conf$$subs.sh
20678
20679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1ef6de05 20680cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
067d23c9
KY
20681_ACEOF
20682sed -n '
20683h
20684s/^/S["/; s/!.*/"]=/
20685p
20686g
20687s/^[^!]*!//
20688:repl
20689t repl
20690s/'"$ac_delim"'$//
20691t delim
20692:nl
20693h
20694s/\(.\{148\}\)..*/\1/
20695t more1
20696s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20697p
20698n
20699b repl
20700:more1
20701s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20702p
20703g
20704s/.\{148\}//
20705t nl
20706:delim
20707h
20708s/\(.\{148\}\)..*/\1/
20709t more2
20710s/["\\]/\\&/g; s/^/"/; s/$/"/
20711p
20712b
20713:more2
20714s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20715p
20716g
20717s/.\{148\}//
20718t delim
20719' <conf$$subs.awk | sed '
20720/^[^""]/{
20721 N
20722 s/\n//
20723}
20724' >>$CONFIG_STATUS || ac_write_fail=1
20725rm -f conf$$subs.awk
20726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20727_ACAWK
1ef6de05 20728cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
067d23c9
KY
20729 for (key in S) S_is_set[key] = 1
20730 FS = "\a"
20731 \$ac_cs_awk_pipe_init
20732}
20733{
20734 line = $ 0
20735 nfields = split(line, field, "@")
20736 substed = 0
20737 len = length(field[1])
20738 for (i = 2; i < nfields; i++) {
20739 key = field[i]
20740 keylen = length(key)
20741 if (S_is_set[key]) {
20742 value = S[key]
20743 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20744 len += length(value) + length(field[++i])
20745 substed = 1
20746 } else
20747 len += 1 + keylen
20748 }
20749 if (nfields == 3 && !substed) {
20750 key = field[2]
20751 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20752 \$ac_cs_awk_read_file
20753 next
20754 }
20755 }
20756 print line
20757}
20758\$ac_cs_awk_pipe_fini
20759_ACAWK
20760_ACEOF
20761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20762if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20763 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20764else
20765 cat
1ef6de05
PE
20766fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20767 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
067d23c9
KY
20768_ACEOF
20769
1ef6de05
PE
20770# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20771# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
067d23c9
KY
20772# trailing colons and then remove the whole line if VPATH becomes empty
20773# (actually we leave an empty line to preserve line numbers).
20774if test "x$srcdir" = x.; then
1ef6de05
PE
20775 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20776h
20777s///
20778s/^/:/
20779s/[ ]*$/:/
20780s/:\$(srcdir):/:/g
20781s/:\${srcdir}:/:/g
20782s/:@srcdir@:/:/g
20783s/^:*//
067d23c9 20784s/:*$//
1ef6de05
PE
20785x
20786s/\(=[ ]*\).*/\1/
20787G
20788s/\n//
067d23c9
KY
20789s/^[^=]*=[ ]*$//
20790}'
20791fi
20792
20793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20794fi # test -n "$CONFIG_FILES"
20795
20796# Set up the scripts for CONFIG_HEADERS section.
20797# No need to generate them if there are no CONFIG_HEADERS.
20798# This happens for instance with `./config.status Makefile'.
20799if test -n "$CONFIG_HEADERS"; then
1ef6de05 20800cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
067d23c9
KY
20801BEGIN {
20802_ACEOF
20803
20804# Transform confdefs.h into an awk script `defines.awk', embedded as
20805# here-document in config.status, that substitutes the proper values into
20806# config.h.in to produce config.h.
20807
20808# Create a delimiter string that does not exist in confdefs.h, to ease
20809# handling of long lines.
20810ac_delim='%!_!# '
20811for ac_last_try in false false :; do
1ef6de05
PE
20812 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20813 if test -z "$ac_tt"; then
067d23c9
KY
20814 break
20815 elif $ac_last_try; then
1ef6de05 20816 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
067d23c9
KY
20817 else
20818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20819 fi
20820done
20821
20822# For the awk script, D is an array of macro values keyed by name,
20823# likewise P contains macro parameters if any. Preserve backslash
20824# newline sequences.
20825
20826ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20827sed -n '
20828s/.\{148\}/&'"$ac_delim"'/g
20829t rset
20830:rset
20831s/^[ ]*#[ ]*define[ ][ ]*/ /
20832t def
20833d
20834:def
20835s/\\$//
20836t bsnl
20837s/["\\]/\\&/g
20838s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20839D["\1"]=" \3"/p
20840s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20841d
20842:bsnl
20843s/["\\]/\\&/g
20844s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20845D["\1"]=" \3\\\\\\n"\\/p
20846t cont
20847s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20848t cont
20849d
20850:cont
20851n
20852s/.\{148\}/&'"$ac_delim"'/g
20853t clear
20854:clear
20855s/\\$//
20856t bsnlc
20857s/["\\]/\\&/g; s/^/"/; s/$/"/p
20858d
20859:bsnlc
20860s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20861b cont
20862' <confdefs.h | sed '
20863s/'"$ac_delim"'/"\\\
20864"/g' >>$CONFIG_STATUS || ac_write_fail=1
20865
20866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20867 for (key in D) D_is_set[key] = 1
20868 FS = "\a"
20869}
20870/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20871 line = \$ 0
20872 split(line, arg, " ")
20873 if (arg[1] == "#") {
20874 defundef = arg[2]
20875 mac1 = arg[3]
20876 } else {
20877 defundef = substr(arg[1], 2)
20878 mac1 = arg[2]
20879 }
20880 split(mac1, mac2, "(") #)
20881 macro = mac2[1]
20882 prefix = substr(line, 1, index(line, defundef) - 1)
20883 if (D_is_set[macro]) {
20884 # Preserve the white space surrounding the "#".
20885 print prefix "define", macro P[macro] D[macro]
20886 next
20887 } else {
20888 # Replace #undef with comments. This is necessary, for example,
20889 # in the case of _POSIX_SOURCE, which is predefined and required
20890 # on some systems where configure will not decide to define it.
20891 if (defundef == "undef") {
20892 print "/*", prefix defundef, macro, "*/"
20893 next
20894 }
20895 }
20896}
20897{ print }
20898_ACAWK
20899_ACEOF
20900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1ef6de05 20901 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
067d23c9
KY
20902fi # test -n "$CONFIG_HEADERS"
20903
20904
20905eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20906shift
20907for ac_tag
20908do
20909 case $ac_tag in
20910 :[FHLC]) ac_mode=$ac_tag; continue;;
20911 esac
20912 case $ac_mode$ac_tag in
20913 :[FHL]*:*);;
1ef6de05 20914 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
067d23c9
KY
20915 :[FH]-) ac_tag=-:-;;
20916 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20917 esac
20918 ac_save_IFS=$IFS
20919 IFS=:
20920 set x $ac_tag
20921 IFS=$ac_save_IFS
20922 shift
20923 ac_file=$1
20924 shift
20925
20926 case $ac_mode in
20927 :L) ac_source=$1;;
20928 :[FH])
20929 ac_file_inputs=
20930 for ac_f
20931 do
20932 case $ac_f in
1ef6de05 20933 -) ac_f="$ac_tmp/stdin";;
067d23c9
KY
20934 *) # Look for the file first in the build tree, then in the source tree
20935 # (if the path is not absolute). The absolute path cannot be DOS-style,
20936 # because $ac_f cannot contain `:'.
20937 test -f "$ac_f" ||
20938 case $ac_f in
20939 [\\/$]*) false;;
20940 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20941 esac ||
1ef6de05 20942 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
067d23c9
KY
20943 esac
20944 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20945 as_fn_append ac_file_inputs " '$ac_f'"
20946 done
20947
20948 # Let's still pretend it is `configure' which instantiates (i.e., don't
20949 # use $as_me), people would be surprised to read:
20950 # /* config.h. Generated by config.status. */
20951 configure_input='Generated from '`
20952 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20953 `' by configure.'
20954 if test x"$ac_file" != x-; then
20955 configure_input="$ac_file. $configure_input"
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20957$as_echo "$as_me: creating $ac_file" >&6;}
20958 fi
20959 # Neutralize special characters interpreted by sed in replacement strings.
20960 case $configure_input in #(
20961 *\&* | *\|* | *\\* )
20962 ac_sed_conf_input=`$as_echo "$configure_input" |
20963 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20964 *) ac_sed_conf_input=$configure_input;;
20965 esac
20966
20967 case $ac_tag in
1ef6de05
PE
20968 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
067d23c9
KY
20970 esac
20971 ;;
20972 esac
20973
20974 ac_dir=`$as_dirname -- "$ac_file" ||
20975$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20976 X"$ac_file" : 'X\(//\)[^/]' \| \
20977 X"$ac_file" : 'X\(//\)$' \| \
20978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20979$as_echo X"$ac_file" |
20980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20981 s//\1/
20982 q
20983 }
20984 /^X\(\/\/\)[^/].*/{
20985 s//\1/
20986 q
20987 }
20988 /^X\(\/\/\)$/{
20989 s//\1/
20990 q
20991 }
20992 /^X\(\/\).*/{
20993 s//\1/
20994 q
20995 }
20996 s/.*/./; q'`
20997 as_dir="$ac_dir"; as_fn_mkdir_p
20998 ac_builddir=.
20999
21000case "$ac_dir" in
21001.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21002*)
21003 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21004 # A ".." for each directory in $ac_dir_suffix.
21005 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21006 case $ac_top_builddir_sub in
21007 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21008 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21009 esac ;;
21010esac
21011ac_abs_top_builddir=$ac_pwd
21012ac_abs_builddir=$ac_pwd$ac_dir_suffix
21013# for backward compatibility:
21014ac_top_builddir=$ac_top_build_prefix
21015
21016case $srcdir in
21017 .) # We are building in place.
21018 ac_srcdir=.
21019 ac_top_srcdir=$ac_top_builddir_sub
21020 ac_abs_top_srcdir=$ac_pwd ;;
21021 [\\/]* | ?:[\\/]* ) # Absolute name.
21022 ac_srcdir=$srcdir$ac_dir_suffix;
21023 ac_top_srcdir=$srcdir
21024 ac_abs_top_srcdir=$srcdir ;;
21025 *) # Relative name.
21026 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21027 ac_top_srcdir=$ac_top_build_prefix$srcdir
21028 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21029esac
21030ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21031
21032
21033 case $ac_mode in
21034 :F)
21035 #
21036 # CONFIG_FILE
21037 #
21038
21039 case $INSTALL in
21040 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21041 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21042 esac
743c80a7
PE
21043 ac_MKDIR_P=$MKDIR_P
21044 case $MKDIR_P in
21045 [\\/$]* | ?:[\\/]* ) ;;
21046 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21047 esac
067d23c9
KY
21048_ACEOF
21049
21050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21051# If the template does not know about datarootdir, expand it.
21052# FIXME: This hack should be removed a few years after 2.60.
21053ac_datarootdir_hack=; ac_datarootdir_seen=
21054ac_sed_dataroot='
21055/datarootdir/ {
21056 p
21057 q
21058}
21059/@datadir@/p
21060/@docdir@/p
21061/@infodir@/p
21062/@localedir@/p
21063/@mandir@/p'
21064case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21065*datarootdir*) ac_datarootdir_seen=yes;;
21066*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21068$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21069_ACEOF
21070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21071 ac_datarootdir_hack='
21072 s&@datadir@&$datadir&g
21073 s&@docdir@&$docdir&g
21074 s&@infodir@&$infodir&g
21075 s&@localedir@&$localedir&g
21076 s&@mandir@&$mandir&g
21077 s&\\\${datarootdir}&$datarootdir&g' ;;
21078esac
21079_ACEOF
21080
21081# Neutralize VPATH when `$srcdir' = `.'.
21082# Shell code in configure.ac might set extrasub.
21083# FIXME: do we really want to maintain this feature?
21084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21085ac_sed_extra="$ac_vpsub
21086$extrasub
21087_ACEOF
21088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21089:t
21090/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21091s|@configure_input@|$ac_sed_conf_input|;t t
21092s&@top_builddir@&$ac_top_builddir_sub&;t t
21093s&@top_build_prefix@&$ac_top_build_prefix&;t t
21094s&@srcdir@&$ac_srcdir&;t t
21095s&@abs_srcdir@&$ac_abs_srcdir&;t t
21096s&@top_srcdir@&$ac_top_srcdir&;t t
21097s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21098s&@builddir@&$ac_builddir&;t t
21099s&@abs_builddir@&$ac_abs_builddir&;t t
21100s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21101s&@INSTALL@&$ac_INSTALL&;t t
743c80a7 21102s&@MKDIR_P@&$ac_MKDIR_P&;t t
067d23c9
KY
21103$ac_datarootdir_hack
21104"
21105eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21106if $ac_cs_awk_getline; then
1ef6de05 21107 $AWK -f "$ac_tmp/subs.awk"
067d23c9 21108else
1ef6de05
PE
21109 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21110fi \
21111 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
21112
21113test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1ef6de05
PE
21114 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21115 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21116 "$ac_tmp/out"`; test -z "$ac_out"; } &&
067d23c9 21117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1ef6de05 21118which seems to be undefined. Please make sure it is defined" >&5
067d23c9 21119$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1ef6de05 21120which seems to be undefined. Please make sure it is defined" >&2;}
067d23c9 21121
1ef6de05 21122 rm -f "$ac_tmp/stdin"
067d23c9 21123 case $ac_file in
1ef6de05
PE
21124 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21125 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
067d23c9 21126 esac \
1ef6de05 21127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
21128 ;;
21129 :H)
21130 #
21131 # CONFIG_HEADER
21132 #
21133 if test x"$ac_file" != x-; then
21134 {
21135 $as_echo "/* $configure_input */" \
1ef6de05
PE
21136 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21137 } >"$ac_tmp/config.h" \
21138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21139 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
067d23c9
KY
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21141$as_echo "$as_me: $ac_file is unchanged" >&6;}
21142 else
21143 rm -f "$ac_file"
1ef6de05
PE
21144 mv "$ac_tmp/config.h" "$ac_file" \
21145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
21146 fi
21147 else
21148 $as_echo "/* $configure_input */" \
1ef6de05
PE
21149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21150 || as_fn_error $? "could not create -" "$LINENO" 5
067d23c9 21151 fi
743c80a7
PE
21152# Compute "$ac_file"'s index in $config_headers.
21153_am_arg="$ac_file"
21154_am_stamp_count=1
21155for _am_header in $config_headers :; do
21156 case $_am_header in
21157 $_am_arg | $_am_arg:* )
21158 break ;;
21159 * )
21160 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21161 esac
21162done
21163echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21164$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21165 X"$_am_arg" : 'X\(//\)[^/]' \| \
21166 X"$_am_arg" : 'X\(//\)$' \| \
21167 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21168$as_echo X"$_am_arg" |
21169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21170 s//\1/
21171 q
21172 }
21173 /^X\(\/\/\)[^/].*/{
21174 s//\1/
21175 q
21176 }
21177 /^X\(\/\/\)$/{
21178 s//\1/
21179 q
21180 }
21181 /^X\(\/\).*/{
21182 s//\1/
21183 q
21184 }
21185 s/.*/./; q'`/stamp-h$_am_stamp_count
067d23c9
KY
21186 ;;
21187
21188 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21189$as_echo "$as_me: executing $ac_file commands" >&6;}
21190 ;;
21191 esac
21192
21193
21194 case $ac_file$ac_mode in
743c80a7
PE
21195 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21196 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21197 # are listed without --file. Let's play safe and only enable the eval
21198 # if we detect the quoting.
21199 case $CONFIG_FILES in
21200 *\'*) eval set x "$CONFIG_FILES" ;;
21201 *) set x $CONFIG_FILES ;;
21202 esac
21203 shift
21204 for mf
21205 do
21206 # Strip MF so we end up with the name of the file.
21207 mf=`echo "$mf" | sed -e 's/:.*$//'`
21208 # Check whether this is an Automake generated Makefile or not.
21209 # We used to match only the files named `Makefile.in', but
21210 # some people rename them; so instead we look at the file content.
21211 # Grep'ing the first line is not enough: some people post-process
21212 # each Makefile.in and add a new line on top of each file to say so.
21213 # Grep'ing the whole file is not good either: AIX grep has a line
21214 # limit of 2048, but all sed's we know have understand at least 4000.
21215 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21216 dirpart=`$as_dirname -- "$mf" ||
21217$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21218 X"$mf" : 'X\(//\)[^/]' \| \
21219 X"$mf" : 'X\(//\)$' \| \
21220 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21221$as_echo X"$mf" |
21222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21223 s//\1/
21224 q
21225 }
21226 /^X\(\/\/\)[^/].*/{
21227 s//\1/
21228 q
21229 }
21230 /^X\(\/\/\)$/{
21231 s//\1/
21232 q
21233 }
21234 /^X\(\/\).*/{
21235 s//\1/
21236 q
21237 }
21238 s/.*/./; q'`
21239 else
21240 continue
21241 fi
21242 # Extract the definition of DEPDIR, am__include, and am__quote
21243 # from the Makefile without running `make'.
21244 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21245 test -z "$DEPDIR" && continue
21246 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21247 test -z "am__include" && continue
21248 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21249 # When using ansi2knr, U may be empty or an underscore; expand it
21250 U=`sed -n 's/^U = //p' < "$mf"`
21251 # Find all dependency output files, they are included files with
21252 # $(DEPDIR) in their names. We invoke sed twice because it is the
21253 # simplest approach to changing $(DEPDIR) to its actual value in the
21254 # expansion.
21255 for file in `sed -n "
21256 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21257 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21258 # Make sure the directory exists.
21259 test -f "$dirpart/$file" && continue
21260 fdir=`$as_dirname -- "$file" ||
21261$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262 X"$file" : 'X\(//\)[^/]' \| \
21263 X"$file" : 'X\(//\)$' \| \
21264 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21265$as_echo X"$file" |
21266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21267 s//\1/
21268 q
21269 }
21270 /^X\(\/\/\)[^/].*/{
21271 s//\1/
21272 q
21273 }
21274 /^X\(\/\/\)$/{
21275 s//\1/
21276 q
21277 }
21278 /^X\(\/\).*/{
21279 s//\1/
21280 q
21281 }
21282 s/.*/./; q'`
21283 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21284 # echo "creating $dirpart/$file"
21285 echo '# dummy' > "$dirpart/$file"
21286 done
21287 done
21288}
21289 ;;
9411886d 21290 "mkdirs":C)
067d23c9
KY
21291for dir in etc lisp ; do
21292 test -d ${dir} || mkdir ${dir}
21293done
9411886d
PE
21294 ;;
21295 "epaths":C)
067d23c9
KY
21296echo creating src/epaths.h
21297${MAKE-make} epaths-force
9411886d
PE
21298 ;;
21299 "gdbinit":C)
067d23c9
KY
21300if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21301 echo creating src/.gdbinit
21302 echo source $srcdir/src/.gdbinit > src/.gdbinit
21303fi
067d23c9
KY
21304 ;;
21305
21306 esac
21307done # for ac_tag
21308
21309
21310as_fn_exit 0
21311_ACEOF
21312ac_clean_files=$ac_clean_files_save
21313
21314test $ac_write_fail = 0 ||
1ef6de05 21315 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
21316
21317
21318# configure is writing to config.log, and then calls config.status.
21319# config.status does its own redirection, appending to config.log.
21320# Unfortunately, on DOS this fails, as config.log is still kept open
21321# by configure, so config.status won't be able to write to it; its
21322# output is simply discarded. So we exec the FD to /dev/null,
21323# effectively closing config.log, so it can be properly (re)opened and
21324# appended to by config.status. When coming back to configure, we
21325# need to make the FD available again.
21326if test "$no_create" != yes; then
21327 ac_cs_success=:
21328 ac_config_status_args=
21329 test "$silent" = yes &&
21330 ac_config_status_args="$ac_config_status_args --quiet"
21331 exec 5>/dev/null
21332 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21333 exec 5>>config.log
21334 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21335 # would make configure fail if this is the last instruction.
1ef6de05 21336 $ac_cs_success || as_fn_exit 1
067d23c9
KY
21337fi
21338if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21340$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21341fi
21342
9411886d 21343