Simplify symlink portability workaround.
[bpt/emacs.git] / configure
CommitLineData
067d23c9
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d6974efa 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,
2018939f
AS
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.
d6974efa 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.
d6974efa 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
d6974efa
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"
2018939f 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
2018939f
AS
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
2018939f 371# script with STATUS, using 1 if that was 0.
067d23c9
KY
372as_fn_error ()
373{
2018939f
AS
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
2018939f 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.
2018939f 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
ae0d7250 877REPLACE_WCTOMB
1f5d53eb
PE
878REPLACE_UNSETENV
879REPLACE_STRTOD
880REPLACE_SETENV
881REPLACE_REALPATH
882REPLACE_REALLOC
883REPLACE_PUTENV
884REPLACE_MKSTEMP
ae0d7250 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
ae0d7250 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
ae0d7250 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
957FREETYPE_LIBS
958FREETYPE_CFLAGS
959M17N_FLT_LIBS
960M17N_FLT_CFLAGS
961LIBOTF_LIBS
962LIBOTF_CFLAGS
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
1f5d53eb
PE
1168CPPFLAGS
1169CPP
1170CPPFLAGS
067d23c9
KY
1171XMKMF'
1172
1173
1174# Initialize some variables set by options.
1175ac_init_help=
1176ac_init_version=false
1177ac_unrecognized_opts=
1178ac_unrecognized_sep=
1179# The variables have the same names as the options, with
1180# dashes changed to underlines.
1181cache_file=/dev/null
1182exec_prefix=NONE
1183no_create=
1184no_recursion=
1185prefix=NONE
1186program_prefix=NONE
1187program_suffix=NONE
1188program_transform_name=s,x,x,
1189silent=
1190site=
1191srcdir=
1192verbose=
1193x_includes=NONE
1194x_libraries=NONE
1195
1196# Installation directory options.
1197# These are left unexpanded so users can "make install exec_prefix=/foo"
1198# and all the variables that are supposed to be based on exec_prefix
1199# by default will actually change.
1200# Use braces instead of parens because sh, perl, etc. also accept them.
1201# (The list follows the same order as the GNU Coding Standards.)
1202bindir='${exec_prefix}/bin'
1203sbindir='${exec_prefix}/sbin'
1204libexecdir='${exec_prefix}/libexec'
1205datarootdir='${prefix}/share'
1206datadir='${datarootdir}'
1207sysconfdir='${prefix}/etc'
1208sharedstatedir='${prefix}/com'
1209localstatedir='${prefix}/var'
1210includedir='${prefix}/include'
1211oldincludedir='/usr/include'
1212docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1213infodir='${datarootdir}/info'
1214htmldir='${docdir}'
1215dvidir='${docdir}'
1216pdfdir='${docdir}'
1217psdir='${docdir}'
1218libdir='${exec_prefix}/lib'
1219localedir='${datarootdir}/locale'
1220mandir='${datarootdir}/man'
1221
1222ac_prev=
1223ac_dashdash=
1224for ac_option
1225do
1226 # If the previous option needs an argument, assign it.
1227 if test -n "$ac_prev"; then
1228 eval $ac_prev=\$ac_option
1229 ac_prev=
1230 continue
1231 fi
1232
1233 case $ac_option in
2018939f
AS
1234 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1235 *=) ac_optarg= ;;
1236 *) ac_optarg=yes ;;
067d23c9
KY
1237 esac
1238
1239 # Accept the important Cygnus configure options, so we can diagnose typos.
1240
1241 case $ac_dashdash$ac_option in
1242 --)
1243 ac_dashdash=yes ;;
1244
1245 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1246 ac_prev=bindir ;;
1247 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1248 bindir=$ac_optarg ;;
1249
1250 -build | --build | --buil | --bui | --bu)
1251 ac_prev=build_alias ;;
1252 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1253 build_alias=$ac_optarg ;;
1254
1255 -cache-file | --cache-file | --cache-fil | --cache-fi \
1256 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1257 ac_prev=cache_file ;;
1258 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1259 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1260 cache_file=$ac_optarg ;;
1261
1262 --config-cache | -C)
1263 cache_file=config.cache ;;
1264
1265 -datadir | --datadir | --datadi | --datad)
1266 ac_prev=datadir ;;
1267 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1268 datadir=$ac_optarg ;;
1269
1270 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1271 | --dataroo | --dataro | --datar)
1272 ac_prev=datarootdir ;;
1273 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1274 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1275 datarootdir=$ac_optarg ;;
1276
1277 -disable-* | --disable-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1281 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286"enable_$ac_useropt"
1287"*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval enable_$ac_useropt=no ;;
1292
1293 -docdir | --docdir | --docdi | --doc | --do)
1294 ac_prev=docdir ;;
1295 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1296 docdir=$ac_optarg ;;
1297
1298 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1299 ac_prev=dvidir ;;
1300 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1301 dvidir=$ac_optarg ;;
1302
1303 -enable-* | --enable-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1307 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1311 *"
1312"enable_$ac_useropt"
1313"*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval enable_$ac_useropt=\$ac_optarg ;;
1318
1319 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1320 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1321 | --exec | --exe | --ex)
1322 ac_prev=exec_prefix ;;
1323 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1324 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1325 | --exec=* | --exe=* | --ex=*)
1326 exec_prefix=$ac_optarg ;;
1327
1328 -gas | --gas | --ga | --g)
1329 # Obsolete; use --with-gas.
1330 with_gas=yes ;;
1331
1332 -help | --help | --hel | --he | -h)
1333 ac_init_help=long ;;
1334 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1335 ac_init_help=recursive ;;
1336 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1337 ac_init_help=short ;;
1338
1339 -host | --host | --hos | --ho)
1340 ac_prev=host_alias ;;
1341 -host=* | --host=* | --hos=* | --ho=*)
1342 host_alias=$ac_optarg ;;
1343
1344 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1345 ac_prev=htmldir ;;
1346 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1347 | --ht=*)
1348 htmldir=$ac_optarg ;;
1349
1350 -includedir | --includedir | --includedi | --included | --include \
1351 | --includ | --inclu | --incl | --inc)
1352 ac_prev=includedir ;;
1353 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1354 | --includ=* | --inclu=* | --incl=* | --inc=*)
1355 includedir=$ac_optarg ;;
1356
1357 -infodir | --infodir | --infodi | --infod | --info | --inf)
1358 ac_prev=infodir ;;
1359 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1360 infodir=$ac_optarg ;;
1361
1362 -libdir | --libdir | --libdi | --libd)
1363 ac_prev=libdir ;;
1364 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1365 libdir=$ac_optarg ;;
1366
1367 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1368 | --libexe | --libex | --libe)
1369 ac_prev=libexecdir ;;
1370 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1371 | --libexe=* | --libex=* | --libe=*)
1372 libexecdir=$ac_optarg ;;
1373
1374 -localedir | --localedir | --localedi | --localed | --locale)
1375 ac_prev=localedir ;;
1376 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1377 localedir=$ac_optarg ;;
1378
1379 -localstatedir | --localstatedir | --localstatedi | --localstated \
1380 | --localstate | --localstat | --localsta | --localst | --locals)
1381 ac_prev=localstatedir ;;
1382 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1383 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1384 localstatedir=$ac_optarg ;;
1385
1386 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1387 ac_prev=mandir ;;
1388 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1389 mandir=$ac_optarg ;;
1390
1391 -nfp | --nfp | --nf)
1392 # Obsolete; use --without-fp.
1393 with_fp=no ;;
1394
1395 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1396 | --no-cr | --no-c | -n)
1397 no_create=yes ;;
1398
1399 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1400 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1401 no_recursion=yes ;;
1402
1403 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1404 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1405 | --oldin | --oldi | --old | --ol | --o)
1406 ac_prev=oldincludedir ;;
1407 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1408 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1409 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1410 oldincludedir=$ac_optarg ;;
1411
1412 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1413 ac_prev=prefix ;;
1414 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1415 prefix=$ac_optarg ;;
1416
1417 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1418 | --program-pre | --program-pr | --program-p)
1419 ac_prev=program_prefix ;;
1420 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1421 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1422 program_prefix=$ac_optarg ;;
1423
1424 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1425 | --program-suf | --program-su | --program-s)
1426 ac_prev=program_suffix ;;
1427 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1428 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1429 program_suffix=$ac_optarg ;;
1430
1431 -program-transform-name | --program-transform-name \
1432 | --program-transform-nam | --program-transform-na \
1433 | --program-transform-n | --program-transform- \
1434 | --program-transform | --program-transfor \
1435 | --program-transfo | --program-transf \
1436 | --program-trans | --program-tran \
1437 | --progr-tra | --program-tr | --program-t)
1438 ac_prev=program_transform_name ;;
1439 -program-transform-name=* | --program-transform-name=* \
1440 | --program-transform-nam=* | --program-transform-na=* \
1441 | --program-transform-n=* | --program-transform-=* \
1442 | --program-transform=* | --program-transfor=* \
1443 | --program-transfo=* | --program-transf=* \
1444 | --program-trans=* | --program-tran=* \
1445 | --progr-tra=* | --program-tr=* | --program-t=*)
1446 program_transform_name=$ac_optarg ;;
1447
1448 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1449 ac_prev=pdfdir ;;
1450 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1451 pdfdir=$ac_optarg ;;
1452
1453 -psdir | --psdir | --psdi | --psd | --ps)
1454 ac_prev=psdir ;;
1455 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1456 psdir=$ac_optarg ;;
1457
1458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1459 | -silent | --silent | --silen | --sile | --sil)
1460 silent=yes ;;
1461
1462 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1463 ac_prev=sbindir ;;
1464 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1465 | --sbi=* | --sb=*)
1466 sbindir=$ac_optarg ;;
1467
1468 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1469 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1470 | --sharedst | --shareds | --shared | --share | --shar \
1471 | --sha | --sh)
1472 ac_prev=sharedstatedir ;;
1473 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1474 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1475 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1476 | --sha=* | --sh=*)
1477 sharedstatedir=$ac_optarg ;;
1478
1479 -site | --site | --sit)
1480 ac_prev=site ;;
1481 -site=* | --site=* | --sit=*)
1482 site=$ac_optarg ;;
1483
1484 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1485 ac_prev=srcdir ;;
1486 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1487 srcdir=$ac_optarg ;;
1488
1489 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1490 | --syscon | --sysco | --sysc | --sys | --sy)
1491 ac_prev=sysconfdir ;;
1492 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1493 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1494 sysconfdir=$ac_optarg ;;
1495
1496 -target | --target | --targe | --targ | --tar | --ta | --t)
1497 ac_prev=target_alias ;;
1498 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1499 target_alias=$ac_optarg ;;
1500
1501 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1502 verbose=yes ;;
1503
1504 -version | --version | --versio | --versi | --vers | -V)
1505 ac_init_version=: ;;
1506
1507 -with-* | --with-*)
1508 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1509 # Reject names that are not valid shell variable names.
1510 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1511 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1512 ac_useropt_orig=$ac_useropt
1513 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1514 case $ac_user_opts in
1515 *"
1516"with_$ac_useropt"
1517"*) ;;
1518 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1519 ac_unrecognized_sep=', ';;
1520 esac
1521 eval with_$ac_useropt=\$ac_optarg ;;
1522
1523 -without-* | --without-*)
1524 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1525 # Reject names that are not valid shell variable names.
1526 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1527 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1528 ac_useropt_orig=$ac_useropt
1529 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530 case $ac_user_opts in
1531 *"
1532"with_$ac_useropt"
1533"*) ;;
1534 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1535 ac_unrecognized_sep=', ';;
1536 esac
1537 eval with_$ac_useropt=no ;;
1538
1539 --x)
1540 # Obsolete; use --with-x.
1541 with_x=yes ;;
1542
1543 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1544 | --x-incl | --x-inc | --x-in | --x-i)
1545 ac_prev=x_includes ;;
1546 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1547 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1548 x_includes=$ac_optarg ;;
1549
1550 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1551 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1552 ac_prev=x_libraries ;;
1553 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1554 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1555 x_libraries=$ac_optarg ;;
1556
2018939f
AS
1557 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1558Try \`$0 --help' for more information"
067d23c9
KY
1559 ;;
1560
1561 *=*)
1562 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1563 # Reject names that are not valid shell variable names.
1564 case $ac_envvar in #(
1565 '' | [0-9]* | *[!_$as_cr_alnum]* )
2018939f 1566 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
067d23c9
KY
1567 esac
1568 eval $ac_envvar=\$ac_optarg
1569 export $ac_envvar ;;
1570
1571 *)
1572 # FIXME: should be removed in autoconf 3.0.
1573 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1574 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1575 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6974efa 1576 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
067d23c9
KY
1577 ;;
1578
1579 esac
1580done
1581
1582if test -n "$ac_prev"; then
1583 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2018939f 1584 as_fn_error $? "missing argument to $ac_option"
067d23c9
KY
1585fi
1586
1587if test -n "$ac_unrecognized_opts"; then
1588 case $enable_option_checking in
1589 no) ;;
2018939f 1590 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
067d23c9
KY
1591 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1592 esac
1593fi
1594
1595# Check all directory arguments for consistency.
1596for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1597 datadir sysconfdir sharedstatedir localstatedir includedir \
1598 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1599 libdir localedir mandir
1600do
1601 eval ac_val=\$$ac_var
1602 # Remove trailing slashes.
1603 case $ac_val in
1604 */ )
1605 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1606 eval $ac_var=\$ac_val;;
1607 esac
1608 # Be sure to have absolute directory names.
1609 case $ac_val in
1610 [\\/$]* | ?:[\\/]* ) continue;;
1611 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1612 esac
2018939f 1613 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
067d23c9
KY
1614done
1615
1616# There might be people who depend on the old broken behavior: `$host'
1617# used to hold the argument of --host etc.
1618# FIXME: To remove some day.
1619build=$build_alias
1620host=$host_alias
1621target=$target_alias
1622
1623# FIXME: To remove some day.
1624if test "x$host_alias" != x; then
1625 if test "x$build_alias" = x; then
1626 cross_compiling=maybe
2018939f
AS
1627 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1628 If a cross compiler is detected then cross compile mode will be used" >&2
067d23c9
KY
1629 elif test "x$build_alias" != "x$host_alias"; then
1630 cross_compiling=yes
1631 fi
1632fi
1633
1634ac_tool_prefix=
1635test -n "$host_alias" && ac_tool_prefix=$host_alias-
1636
1637test "$silent" = yes && exec 6>/dev/null
1638
1639
1640ac_pwd=`pwd` && test -n "$ac_pwd" &&
1641ac_ls_di=`ls -di .` &&
1642ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2018939f 1643 as_fn_error $? "working directory cannot be determined"
067d23c9 1644test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2018939f 1645 as_fn_error $? "pwd does not report name of working directory"
067d23c9
KY
1646
1647
1648# Find the source files, if location was not specified.
1649if test -z "$srcdir"; then
1650 ac_srcdir_defaulted=yes
1651 # Try the directory containing this script, then the parent directory.
1652 ac_confdir=`$as_dirname -- "$as_myself" ||
1653$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1654 X"$as_myself" : 'X\(//\)[^/]' \| \
1655 X"$as_myself" : 'X\(//\)$' \| \
1656 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1657$as_echo X"$as_myself" |
1658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1659 s//\1/
1660 q
1661 }
1662 /^X\(\/\/\)[^/].*/{
1663 s//\1/
1664 q
1665 }
1666 /^X\(\/\/\)$/{
1667 s//\1/
1668 q
1669 }
1670 /^X\(\/\).*/{
1671 s//\1/
1672 q
1673 }
1674 s/.*/./; q'`
1675 srcdir=$ac_confdir
1676 if test ! -r "$srcdir/$ac_unique_file"; then
1677 srcdir=..
1678 fi
1679else
1680 ac_srcdir_defaulted=no
1681fi
1682if test ! -r "$srcdir/$ac_unique_file"; then
1683 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2018939f 1684 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
067d23c9
KY
1685fi
1686ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1687ac_abs_confdir=`(
2018939f 1688 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
067d23c9
KY
1689 pwd)`
1690# When building in place, set srcdir=.
1691if test "$ac_abs_confdir" = "$ac_pwd"; then
1692 srcdir=.
1693fi
1694# Remove unnecessary trailing slashes from srcdir.
1695# Double slashes in file names in object file debugging info
1696# mess up M-x gdb in Emacs.
1697case $srcdir in
1698*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1699esac
1700for ac_var in $ac_precious_vars; do
1701 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1702 eval ac_env_${ac_var}_value=\$${ac_var}
1703 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1704 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1705done
1706
1707#
1708# Report the --help message.
1709#
1710if test "$ac_init_help" = "long"; then
1711 # Omit some internal or obsolete options to make the list less imposing.
1712 # This message is too long to be a string in the A/UX 3.1 sh.
1713 cat <<_ACEOF
1714\`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1715
1716Usage: $0 [OPTION]... [VAR=VALUE]...
1717
1718To assign environment variables (e.g., CC, CFLAGS...), specify them as
1719VAR=VALUE. See below for descriptions of some of the useful variables.
1720
1721Defaults for the options are specified in brackets.
1722
1723Configuration:
1724 -h, --help display this help and exit
1725 --help=short display options specific to this package
1726 --help=recursive display the short help of all the included packages
1727 -V, --version display version information and exit
2018939f 1728 -q, --quiet, --silent do not print \`checking ...' messages
067d23c9
KY
1729 --cache-file=FILE cache test results in FILE [disabled]
1730 -C, --config-cache alias for \`--cache-file=config.cache'
1731 -n, --no-create do not create output files
1732 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1733
1734Installation directories:
1735 --prefix=PREFIX install architecture-independent files in PREFIX
1736 [$ac_default_prefix]
1737 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1738 [PREFIX]
1739
1740By default, \`make install' will install all the files in
1741\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1742an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1743for instance \`--prefix=\$HOME'.
1744
1745For better control, use the options below.
1746
1747Fine tuning of the installation directories:
1748 --bindir=DIR user executables [EPREFIX/bin]
1749 --sbindir=DIR system admin executables [EPREFIX/sbin]
1750 --libexecdir=DIR program executables [EPREFIX/libexec]
1751 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1752 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1753 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1754 --libdir=DIR object code libraries [EPREFIX/lib]
1755 --includedir=DIR C header files [PREFIX/include]
1756 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1757 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1758 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1759 --infodir=DIR info documentation [DATAROOTDIR/info]
1760 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1761 --mandir=DIR man documentation [DATAROOTDIR/man]
1762 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1763 --htmldir=DIR html documentation [DOCDIR]
1764 --dvidir=DIR dvi documentation [DOCDIR]
1765 --pdfdir=DIR pdf documentation [DOCDIR]
1766 --psdir=DIR ps documentation [DOCDIR]
1767_ACEOF
1768
1769 cat <<\_ACEOF
1770
1771Program names:
1772 --program-prefix=PREFIX prepend PREFIX to installed program names
1773 --program-suffix=SUFFIX append SUFFIX to installed program names
1774 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1775
1776X features:
1777 --x-includes=DIR X include files are in DIR
1778 --x-libraries=DIR X library files are in DIR
1779
1780System types:
1781 --build=BUILD configure for building on BUILD [guessed]
1782 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1783_ACEOF
1784fi
1785
1786if test -n "$ac_init_help"; then
1787 case $ac_init_help in
1788 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1789 esac
1790 cat <<\_ACEOF
1791
1792Optional Features:
1793 --disable-option-checking ignore unrecognized --enable/--with options
1794 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1795 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1796 --disable-ns-self-contained
1797 disable self contained build under NeXTstep
1798 --enable-asserts compile code with asserts enabled
1799 --enable-maintainer-mode
1800 enable make rules and dependencies not useful (and
1801 sometimes confusing) to the casual installer
1802 --enable-locallisppath=PATH
1803 directories Emacs should search for lisp files
1804 specific to this site
1805 --enable-checking[=LIST]
1806 enable expensive run-time checks. With LIST, enable
1807 only specific categories of checks. Categories are:
1808 all,yes,no. Flags are: stringbytes, stringoverrun,
1809 stringfreelist, xmallocoverrun, conslist
1810 --enable-use-lisp-union-type
1811 use a union for the Lisp_Object data type. This is
1812 only useful for development for catching certain
1813 types of bugs.
1814 --enable-profiling build emacs with profiling support. This might not
1815 work on all platforms
1816 --enable-autodepend automatically generate dependencies to .h-files.
1817 Requires GNU Make and Gcc. Enabled if GNU Make and
1818 Gcc is found
743c80a7
PE
1819 --disable-dependency-tracking speeds up one-time build
1820 --enable-dependency-tracking do not reject slow dependency extractors
067d23c9
KY
1821 --disable-largefile omit support for large files
1822
1823Optional Packages:
1824 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1825 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1826 --without-pop don't support POP mail retrieval with movemail
1827 --with-kerberos support Kerberos-authenticated POP
1828 --with-kerberos5 support Kerberos version 5 authenticated POP
1829 --with-hesiod support Hesiod to get the POP server host
1830 --with-mmdf support MMDF mailboxes
1831 --with-mail-unlink unlink, rather than empty, mail spool after reading
1832 --with-mailhost=HOSTNAME
1833 string giving default POP mail host
1834 --without-sound don't compile with sound support
1835 --without-sync-input process async input synchronously
1836 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1837 lucid or athena, motif, no)
1838 --without-xpm don't compile with XPM image support
1839 --without-jpeg don't compile with JPEG image support
1840 --without-tiff don't compile with TIFF image support
1841 --without-gif don't compile with GIF image support
1842 --without-png don't compile with PNG image support
1843 --without-rsvg don't compile with SVG image support
1844 --without-xml2 don't compile with XML parsing support
1845 --without-imagemagick don't compile with ImageMagick image support
1846 --without-xft don't use XFT for anti aliased fonts
1847 --without-libotf don't use libotf for OpenType font support
1848 --without-m17n-flt don't use m17n-flt for text shaping
1849 --without-toolkit-scroll-bars
1850 don't use Motif or Xaw3d scroll bars
1851 --without-xaw3d don't use Xaw3d
1852 --without-xim don't use X11 XIM
1853 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1854 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1855 console
1856 --without-dbus don't compile with D-Bus support
1857 --without-gconf don't compile with GConf support
1858 --without-selinux don't compile with SELinux support
1859 --without-gnutls don't use -lgnutls for SSL/TLS support
1860 --without-makeinfo don't require makeinfo for building manuals
1861 --without-compress-info don't compress the installed Info pages
1862 --with-pkg-config-prog=PATH
1863 path to pkg-config for finding GTK and librsvg
1864 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1865 /usr/lib, or /usr/lib64 on some platforms.
4fc5868a 1866 --with-gameuser=USER user for shared game score files
067d23c9
KY
1867 --with-gnustep-conf=PATH
1868 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1869 or /etc/GNUstep/GNUstep.conf
1870 --with-x use the X Window System
1871
1872Some influential environment variables:
1873 CC C compiler command
1874 CFLAGS C compiler flags
1875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1876 nonstandard directory <lib dir>
1877 LIBS libraries to pass to the linker, e.g. -l<library>
1878 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1879 you have headers in a nonstandard directory <include dir>
1880 CPP C preprocessor
1881 XMKMF Path to xmkmf, Makefile generator for X Window System
1882
1883Use these variables to override the choices made by `configure' or to help
1884it to find libraries and programs with nonstandard names/locations.
1885
1886Report bugs to the package provider.
1887_ACEOF
1888ac_status=$?
1889fi
1890
1891if test "$ac_init_help" = "recursive"; then
1892 # If there are subdirs, report their specific --help.
1893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1894 test -d "$ac_dir" ||
1895 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1896 continue
1897 ac_builddir=.
1898
1899case "$ac_dir" in
1900.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1901*)
1902 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1903 # A ".." for each directory in $ac_dir_suffix.
1904 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1905 case $ac_top_builddir_sub in
1906 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1907 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1908 esac ;;
1909esac
1910ac_abs_top_builddir=$ac_pwd
1911ac_abs_builddir=$ac_pwd$ac_dir_suffix
1912# for backward compatibility:
1913ac_top_builddir=$ac_top_build_prefix
1914
1915case $srcdir in
1916 .) # We are building in place.
1917 ac_srcdir=.
1918 ac_top_srcdir=$ac_top_builddir_sub
1919 ac_abs_top_srcdir=$ac_pwd ;;
1920 [\\/]* | ?:[\\/]* ) # Absolute name.
1921 ac_srcdir=$srcdir$ac_dir_suffix;
1922 ac_top_srcdir=$srcdir
1923 ac_abs_top_srcdir=$srcdir ;;
1924 *) # Relative name.
1925 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1926 ac_top_srcdir=$ac_top_build_prefix$srcdir
1927 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1928esac
1929ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1930
1931 cd "$ac_dir" || { ac_status=$?; continue; }
1932 # Check for guested configure.
1933 if test -f "$ac_srcdir/configure.gnu"; then
1934 echo &&
1935 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1936 elif test -f "$ac_srcdir/configure"; then
1937 echo &&
1938 $SHELL "$ac_srcdir/configure" --help=recursive
1939 else
1940 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1941 fi || ac_status=$?
1942 cd "$ac_pwd" || { ac_status=$?; break; }
1943 done
1944fi
1945
1946test -n "$ac_init_help" && exit $ac_status
1947if $ac_init_version; then
1948 cat <<\_ACEOF
1949emacs configure 24.0.50
d6974efa 1950generated by GNU Autoconf 2.68
067d23c9 1951
2018939f 1952Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
1953This configure script is free software; the Free Software Foundation
1954gives unlimited permission to copy, distribute and modify it.
1955_ACEOF
1956 exit
1957fi
1958
1959## ------------------------ ##
1960## Autoconf initialization. ##
1961## ------------------------ ##
1962
1963# ac_fn_c_try_compile LINENO
1964# --------------------------
1965# Try to compile conftest.$ac_ext, and return whether this succeeded.
1966ac_fn_c_try_compile ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 rm -f conftest.$ac_objext
1970 if { { ac_try="$ac_compile"
1971case "(($ac_try" in
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1974esac
1975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976$as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_compile") 2>conftest.err
1978 ac_status=$?
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1983 fi
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_c_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest.$ac_objext; then :
1989 ac_retval=0
1990else
1991 $as_echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994 ac_retval=1
1995fi
d6974efa 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1997 as_fn_set_status $ac_retval
1998
1999} # ac_fn_c_try_compile
2000
067d23c9
KY
2001# ac_fn_c_try_cpp LINENO
2002# ----------------------
2003# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2004ac_fn_c_try_cpp ()
2005{
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if { { ac_try="$ac_cpp conftest.$ac_ext"
2008case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011esac
2012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013$as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2015 ac_status=$?
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2020 fi
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018939f 2022 test $ac_status = 0; } > conftest.i && {
067d23c9
KY
2023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2024 test ! -s conftest.err
2025 }; then :
2026 ac_retval=0
2027else
2028 $as_echo "$as_me: failed program was:" >&5
2029sed 's/^/| /' conftest.$ac_ext >&5
2030
2031 ac_retval=1
2032fi
d6974efa 2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2034 as_fn_set_status $ac_retval
2035
2036} # ac_fn_c_try_cpp
2037
2038# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2039# -------------------------------------------------------
2040# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2041# the include files in INCLUDES and setting the cache variable VAR
2042# accordingly.
2043ac_fn_c_check_header_mongrel ()
2044{
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d6974efa 2046 if eval \${$3+:} false; then :
067d23c9
KY
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048$as_echo_n "checking for $2... " >&6; }
d6974efa 2049if eval \${$3+:} false; then :
067d23c9
KY
2050 $as_echo_n "(cached) " >&6
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055else
2056 # Is the header compilable?
2057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2058$as_echo_n "checking $2 usability... " >&6; }
2059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h. */
2061$4
2062#include <$2>
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065 ac_header_compiler=yes
2066else
2067 ac_header_compiler=no
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2071$as_echo "$ac_header_compiler" >&6; }
2072
2073# Is the header present?
2074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2075$as_echo_n "checking $2 presence... " >&6; }
2076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078#include <$2>
2079_ACEOF
2080if ac_fn_c_try_cpp "$LINENO"; then :
2081 ac_header_preproc=yes
2082else
2083 ac_header_preproc=no
2084fi
2018939f 2085rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2087$as_echo "$ac_header_preproc" >&6; }
2088
2089# So? What about this header?
2090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2091 yes:no: )
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2093$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096 ;;
2097 no:yes:* )
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2099$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2101$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2103$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2105$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2108 ;;
2109esac
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111$as_echo_n "checking for $2... " >&6; }
d6974efa 2112if eval \${$3+:} false; then :
067d23c9
KY
2113 $as_echo_n "(cached) " >&6
2114else
2115 eval "$3=\$ac_header_compiler"
2116fi
2117eval ac_res=\$$3
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119$as_echo "$ac_res" >&6; }
2120fi
d6974efa 2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2122
2123} # ac_fn_c_check_header_mongrel
2124
2125# ac_fn_c_try_run LINENO
2126# ----------------------
2127# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2128# that executables *can* be run.
2129ac_fn_c_try_run ()
2130{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 if { { ac_try="$ac_link"
2133case "(($ac_try" in
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2136esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_link") 2>&5
2140 ac_status=$?
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2143 { { case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146esac
2147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148$as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_try") 2>&5
2150 ac_status=$?
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; }; }; then :
2153 ac_retval=0
2154else
2155 $as_echo "$as_me: program exited with status $ac_status" >&5
2156 $as_echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 ac_retval=$ac_status
2160fi
2161 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2163 as_fn_set_status $ac_retval
2164
2165} # ac_fn_c_try_run
2166
2167# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2168# -------------------------------------------------------
2169# Tests whether HEADER exists and can be compiled using the include files in
2170# INCLUDES, setting the cache variable VAR accordingly.
2171ac_fn_c_check_header_compile ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175$as_echo_n "checking for $2... " >&6; }
d6974efa 2176if eval \${$3+:} false; then :
067d23c9
KY
2177 $as_echo_n "(cached) " >&6
2178else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182#include <$2>
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185 eval "$3=yes"
2186else
2187 eval "$3=no"
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190fi
2191eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193$as_echo "$ac_res" >&6; }
d6974efa 2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2195
2196} # ac_fn_c_check_header_compile
2197
1fd182f0
PE
2198# ac_fn_c_try_link LINENO
2199# -----------------------
2200# Try to link conftest.$ac_ext, and return whether this succeeded.
2201ac_fn_c_try_link ()
2202{
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 rm -f conftest.$ac_objext conftest$ac_exeext
2205 if { { ac_try="$ac_link"
2206case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2209esac
2210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211$as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_link") 2>conftest.err
2213 ac_status=$?
2214 if test -s conftest.err; then
2215 grep -v '^ *+' conftest.err >conftest.er1
2216 cat conftest.er1 >&5
2217 mv -f conftest.er1 conftest.err
2218 fi
2219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2220 test $ac_status = 0; } && {
2221 test -z "$ac_c_werror_flag" ||
2222 test ! -s conftest.err
2223 } && test -s conftest$ac_exeext && {
2224 test "$cross_compiling" = yes ||
2225 $as_test_x conftest$ac_exeext
2226 }; then :
2227 ac_retval=0
2228else
2229 $as_echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 ac_retval=1
2233fi
2234 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2235 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2236 # interfere with the next link command; also delete a directory that is
2237 # left behind by Apple's compiler. We do this before executing the actions.
2238 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1fd182f0
PE
2240 as_fn_set_status $ac_retval
2241
2242} # ac_fn_c_try_link
2243
2018939f
AS
2244# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2245# ---------------------------------------------
2246# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2247# accordingly.
067d23c9
KY
2248ac_fn_c_check_decl ()
2249{
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018939f
AS
2251 as_decl_name=`echo $2|sed 's/ *(.*//'`
2252 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2254$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6974efa 2255if eval \${$3+:} false; then :
067d23c9
KY
2256 $as_echo_n "(cached) " >&6
2257else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h. */
2260$4
2261int
2262main ()
2263{
2018939f
AS
2264#ifndef $as_decl_name
2265#ifdef __cplusplus
2266 (void) $as_decl_use;
2267#else
2268 (void) $as_decl_name;
2269#endif
067d23c9
KY
2270#endif
2271
2272 ;
2273 return 0;
2274}
2275_ACEOF
2276if ac_fn_c_try_compile "$LINENO"; then :
2277 eval "$3=yes"
2278else
2279 eval "$3=no"
2280fi
2281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282fi
2283eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285$as_echo "$ac_res" >&6; }
d6974efa 2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2287
2288} # ac_fn_c_check_decl
2289
2290# ac_fn_c_check_header_preproc LINENO HEADER VAR
2291# ----------------------------------------------
2292# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2293ac_fn_c_check_header_preproc ()
2294{
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297$as_echo_n "checking for $2... " >&6; }
d6974efa 2298if eval \${$3+:} false; then :
067d23c9
KY
2299 $as_echo_n "(cached) " >&6
2300else
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h. */
2303#include <$2>
2304_ACEOF
2305if ac_fn_c_try_cpp "$LINENO"; then :
2306 eval "$3=yes"
2307else
2308 eval "$3=no"
2309fi
2018939f 2310rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2311fi
2312eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314$as_echo "$ac_res" >&6; }
d6974efa 2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2316
2317} # ac_fn_c_check_header_preproc
2318
2319# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2320# ----------------------------------------------------
2321# Tries to find if the field MEMBER exists in type AGGR, after including
2322# INCLUDES, setting cache variable VAR accordingly.
2323ac_fn_c_check_member ()
2324{
2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2327$as_echo_n "checking for $2.$3... " >&6; }
d6974efa 2328if eval \${$4+:} false; then :
067d23c9
KY
2329 $as_echo_n "(cached) " >&6
2330else
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332/* end confdefs.h. */
2333$5
2334int
2335main ()
2336{
2337static $2 ac_aggr;
2338if (ac_aggr.$3)
2339return 0;
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344if ac_fn_c_try_compile "$LINENO"; then :
2345 eval "$4=yes"
2346else
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h. */
2349$5
2350int
2351main ()
2352{
2353static $2 ac_aggr;
2354if (sizeof ac_aggr.$3)
2355return 0;
2356 ;
2357 return 0;
2358}
2359_ACEOF
2360if ac_fn_c_try_compile "$LINENO"; then :
2361 eval "$4=yes"
2362else
2363 eval "$4=no"
2364fi
2365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366fi
2367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368fi
2369eval ac_res=\$$4
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371$as_echo "$ac_res" >&6; }
d6974efa 2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2373
2374} # ac_fn_c_check_member
2375
2376# ac_fn_c_check_func LINENO FUNC VAR
2377# ----------------------------------
2378# Tests whether FUNC exists, setting the cache variable VAR accordingly
2379ac_fn_c_check_func ()
2380{
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2383$as_echo_n "checking for $2... " >&6; }
d6974efa 2384if eval \${$3+:} false; then :
067d23c9
KY
2385 $as_echo_n "(cached) " >&6
2386else
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388/* end confdefs.h. */
2389/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2391#define $2 innocuous_$2
2392
2393/* System header to define __stub macros and hopefully few prototypes,
2394 which can conflict with char $2 (); below.
2395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2396 <limits.h> exists even on freestanding compilers. */
2397
2398#ifdef __STDC__
2399# include <limits.h>
2400#else
2401# include <assert.h>
2402#endif
2403
2404#undef $2
2405
2406/* Override any GCC internal prototype to avoid an error.
2407 Use char because int might match the return type of a GCC
2408 builtin and then its argument prototype would still apply. */
2409#ifdef __cplusplus
2410extern "C"
2411#endif
2412char $2 ();
2413/* The GNU C library defines this for functions which it implements
2414 to always fail with ENOSYS. Some functions are actually named
2415 something starting with __ and the normal name is an alias. */
2416#if defined __stub_$2 || defined __stub___$2
2417choke me
2418#endif
2419
2420int
2421main ()
2422{
2423return $2 ();
2424 ;
2425 return 0;
2426}
2427_ACEOF
2428if ac_fn_c_try_link "$LINENO"; then :
2429 eval "$3=yes"
2430else
2431 eval "$3=no"
2432fi
2433rm -f core conftest.err conftest.$ac_objext \
2434 conftest$ac_exeext conftest.$ac_ext
2435fi
2436eval ac_res=\$$3
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2438$as_echo "$ac_res" >&6; }
d6974efa 2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2440
2441} # ac_fn_c_check_func
2442
2443# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2444# -------------------------------------------
2445# Tests whether TYPE exists after having included INCLUDES, setting cache
2446# variable VAR accordingly.
2447ac_fn_c_check_type ()
2448{
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451$as_echo_n "checking for $2... " >&6; }
d6974efa 2452if eval \${$3+:} false; then :
067d23c9
KY
2453 $as_echo_n "(cached) " >&6
2454else
2455 eval "$3=no"
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457/* end confdefs.h. */
2458$4
2459int
2460main ()
2461{
2462if (sizeof ($2))
2463 return 0;
2464 ;
2465 return 0;
2466}
2467_ACEOF
2468if ac_fn_c_try_compile "$LINENO"; then :
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470/* end confdefs.h. */
2471$4
2472int
2473main ()
2474{
2475if (sizeof (($2)))
2476 return 0;
2477 ;
2478 return 0;
2479}
2480_ACEOF
2481if ac_fn_c_try_compile "$LINENO"; then :
2482
2483else
2484 eval "$3=yes"
2485fi
2486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487fi
2488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489fi
2490eval ac_res=\$$3
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492$as_echo "$ac_res" >&6; }
d6974efa 2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2494
2495} # ac_fn_c_check_type
5f90be1b
PE
2496
2497# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2498# --------------------------------------------
2499# Tries to find the compile-time value of EXPR in a program that includes
2500# INCLUDES, setting VAR accordingly. Returns whether the value could be
2501# computed
2502ac_fn_c_compute_int ()
2503{
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 if test "$cross_compiling" = yes; then
2506 # Depending upon the size, compute the lo and hi bounds.
2507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int
2511main ()
2512{
2513static int test_array [1 - 2 * !(($2) >= 0)];
2514test_array [0] = 0
2515
2516 ;
2517 return 0;
2518}
2519_ACEOF
2520if ac_fn_c_try_compile "$LINENO"; then :
2521 ac_lo=0 ac_mid=0
2522 while :; do
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524/* end confdefs.h. */
2525$4
2526int
2527main ()
2528{
2529static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2530test_array [0] = 0
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_compile "$LINENO"; then :
2537 ac_hi=$ac_mid; break
2538else
2539 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2540 if test $ac_lo -le $ac_mid; then
2541 ac_lo= ac_hi=
2542 break
2543 fi
2544 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2545fi
2546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 done
2548else
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h. */
2551$4
2552int
2553main ()
2554{
2555static int test_array [1 - 2 * !(($2) < 0)];
2556test_array [0] = 0
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563 ac_hi=-1 ac_mid=-1
2564 while :; do
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h. */
2567$4
2568int
2569main ()
2570{
2571static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2572test_array [0] = 0
2573
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578if ac_fn_c_try_compile "$LINENO"; then :
2579 ac_lo=$ac_mid; break
2580else
2581 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2582 if test $ac_mid -le $ac_hi; then
2583 ac_lo= ac_hi=
2584 break
2585 fi
2586 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 done
2590else
2591 ac_lo= ac_hi=
2592fi
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596# Binary search between lo and hi bounds.
2597while test "x$ac_lo" != "x$ac_hi"; do
2598 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600/* end confdefs.h. */
2601$4
2602int
2603main ()
2604{
2605static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2606test_array [0] = 0
2607
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612if ac_fn_c_try_compile "$LINENO"; then :
2613 ac_hi=$ac_mid
2614else
2615 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2616fi
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618done
2619case $ac_lo in #((
2620?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2621'') ac_retval=1 ;;
2622esac
2623 else
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625/* end confdefs.h. */
2626$4
2627static long int longval () { return $2; }
2628static unsigned long int ulongval () { return $2; }
2629#include <stdio.h>
2630#include <stdlib.h>
2631int
2632main ()
2633{
2634
2635 FILE *f = fopen ("conftest.val", "w");
2636 if (! f)
2637 return 1;
2638 if (($2) < 0)
2639 {
2640 long int i = longval ();
2641 if (i != ($2))
2642 return 1;
2643 fprintf (f, "%ld", i);
2644 }
2645 else
2646 {
2647 unsigned long int i = ulongval ();
2648 if (i != ($2))
2649 return 1;
2650 fprintf (f, "%lu", i);
2651 }
2652 /* Do not output a trailing newline, as this causes \r\n confusion
2653 on some platforms. */
2654 return ferror (f) || fclose (f) != 0;
2655
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_run "$LINENO"; then :
2661 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2662else
2663 ac_retval=1
2664fi
2665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2666 conftest.$ac_objext conftest.beam conftest.$ac_ext
2667rm -f conftest.val
2668
2669 fi
2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 as_fn_set_status $ac_retval
2672
2673} # ac_fn_c_compute_int
067d23c9
KY
2674cat >config.log <<_ACEOF
2675This file contains any messages produced by compilers while
2676running configure, to aid debugging if configure makes a mistake.
2677
2678It was created by emacs $as_me 24.0.50, which was
d6974efa 2679generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
2680
2681 $ $0 $@
2682
2683_ACEOF
2684exec 5>>config.log
2685{
2686cat <<_ASUNAME
2687## --------- ##
2688## Platform. ##
2689## --------- ##
2690
2691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2692uname -m = `(uname -m) 2>/dev/null || echo unknown`
2693uname -r = `(uname -r) 2>/dev/null || echo unknown`
2694uname -s = `(uname -s) 2>/dev/null || echo unknown`
2695uname -v = `(uname -v) 2>/dev/null || echo unknown`
2696
2697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2699
2700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2707
2708_ASUNAME
2709
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 $as_echo "PATH: $as_dir"
2716 done
2717IFS=$as_save_IFS
2718
2719} >&5
2720
2721cat >&5 <<_ACEOF
2722
2723
2724## ----------- ##
2725## Core tests. ##
2726## ----------- ##
2727
2728_ACEOF
2729
2730
2731# Keep a trace of the command line.
2732# Strip out --no-create and --no-recursion so they do not pile up.
2733# Strip out --silent because we don't want to record it for future runs.
2734# Also quote any args containing shell meta-characters.
2735# Make two passes to allow for proper duplicate-argument suppression.
2736ac_configure_args=
2737ac_configure_args0=
2738ac_configure_args1=
2739ac_must_keep_next=false
2740for ac_pass in 1 2
2741do
2742 for ac_arg
2743 do
2744 case $ac_arg in
2745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2747 | -silent | --silent | --silen | --sile | --sil)
2748 continue ;;
2749 *\'*)
2750 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2751 esac
2752 case $ac_pass in
2753 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2754 2)
2755 as_fn_append ac_configure_args1 " '$ac_arg'"
2756 if test $ac_must_keep_next = true; then
2757 ac_must_keep_next=false # Got value, back to normal.
2758 else
2759 case $ac_arg in
2760 *=* | --config-cache | -C | -disable-* | --disable-* \
2761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2763 | -with-* | --with-* | -without-* | --without-* | --x)
2764 case "$ac_configure_args0 " in
2765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2766 esac
2767 ;;
2768 -* ) ac_must_keep_next=true ;;
2769 esac
2770 fi
2771 as_fn_append ac_configure_args " '$ac_arg'"
2772 ;;
2773 esac
2774 done
2775done
2776{ ac_configure_args0=; unset ac_configure_args0;}
2777{ ac_configure_args1=; unset ac_configure_args1;}
2778
2779# When interrupted or exit'd, cleanup temporary files, and complete
2780# config.log. We remove comments because anyway the quotes in there
2781# would cause problems or look ugly.
2782# WARNING: Use '\'' to represent an apostrophe within the trap.
2783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2784trap 'exit_status=$?
2785 # Save into config.log some information that might help in debugging.
2786 {
2787 echo
2788
2018939f 2789 $as_echo "## ---------------- ##
067d23c9 2790## Cache variables. ##
2018939f 2791## ---------------- ##"
067d23c9
KY
2792 echo
2793 # The following way of writing the cache mishandles newlines in values,
2794(
2795 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2796 eval ac_val=\$$ac_var
2797 case $ac_val in #(
2798 *${as_nl}*)
2799 case $ac_var in #(
2800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2801$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2802 esac
2803 case $ac_var in #(
2804 _ | IFS | as_nl) ;; #(
2805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2806 *) { eval $ac_var=; unset $ac_var;} ;;
2807 esac ;;
2808 esac
2809 done
2810 (set) 2>&1 |
2811 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2812 *${as_nl}ac_space=\ *)
2813 sed -n \
2814 "s/'\''/'\''\\\\'\'''\''/g;
2815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2816 ;; #(
2817 *)
2818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2819 ;;
2820 esac |
2821 sort
2822)
2823 echo
2824
2018939f 2825 $as_echo "## ----------------- ##
067d23c9 2826## Output variables. ##
2018939f 2827## ----------------- ##"
067d23c9
KY
2828 echo
2829 for ac_var in $ac_subst_vars
2830 do
2831 eval ac_val=\$$ac_var
2832 case $ac_val in
2833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2834 esac
2835 $as_echo "$ac_var='\''$ac_val'\''"
2836 done | sort
2837 echo
2838
2839 if test -n "$ac_subst_files"; then
2018939f 2840 $as_echo "## ------------------- ##
067d23c9 2841## File substitutions. ##
2018939f 2842## ------------------- ##"
067d23c9
KY
2843 echo
2844 for ac_var in $ac_subst_files
2845 do
2846 eval ac_val=\$$ac_var
2847 case $ac_val in
2848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2849 esac
2850 $as_echo "$ac_var='\''$ac_val'\''"
2851 done | sort
2852 echo
2853 fi
2854
2855 if test -s confdefs.h; then
2018939f 2856 $as_echo "## ----------- ##
067d23c9 2857## confdefs.h. ##
2018939f 2858## ----------- ##"
067d23c9
KY
2859 echo
2860 cat confdefs.h
2861 echo
2862 fi
2863 test "$ac_signal" != 0 &&
2864 $as_echo "$as_me: caught signal $ac_signal"
2865 $as_echo "$as_me: exit $exit_status"
2866 } >&5
2867 rm -f core *.core core.conftest.* &&
2868 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2869 exit $exit_status
2870' 0
2871for ac_signal in 1 2 13 15; do
2872 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2873done
2874ac_signal=0
2875
2876# confdefs.h avoids OS command line length limits that DEFS can exceed.
2877rm -f -r conftest* confdefs.h
2878
2879$as_echo "/* confdefs.h */" > confdefs.h
2880
2881# Predefined preprocessor variables.
2882
2883cat >>confdefs.h <<_ACEOF
2884#define PACKAGE_NAME "$PACKAGE_NAME"
2885_ACEOF
2886
2887cat >>confdefs.h <<_ACEOF
2888#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2889_ACEOF
2890
2891cat >>confdefs.h <<_ACEOF
2892#define PACKAGE_VERSION "$PACKAGE_VERSION"
2893_ACEOF
2894
2895cat >>confdefs.h <<_ACEOF
2896#define PACKAGE_STRING "$PACKAGE_STRING"
2897_ACEOF
2898
2899cat >>confdefs.h <<_ACEOF
2900#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2901_ACEOF
2902
2903cat >>confdefs.h <<_ACEOF
2904#define PACKAGE_URL "$PACKAGE_URL"
2905_ACEOF
2906
2907
2908# Let the site file select an alternate cache file if it wants to.
2909# Prefer an explicitly selected file to automatically selected ones.
2910ac_site_file1=NONE
2911ac_site_file2=NONE
2912if test -n "$CONFIG_SITE"; then
2018939f
AS
2913 # We do not want a PATH search for config.site.
2914 case $CONFIG_SITE in #((
2915 -*) ac_site_file1=./$CONFIG_SITE;;
2916 */*) ac_site_file1=$CONFIG_SITE;;
2917 *) ac_site_file1=./$CONFIG_SITE;;
2918 esac
067d23c9
KY
2919elif test "x$prefix" != xNONE; then
2920 ac_site_file1=$prefix/share/config.site
2921 ac_site_file2=$prefix/etc/config.site
2922else
2923 ac_site_file1=$ac_default_prefix/share/config.site
2924 ac_site_file2=$ac_default_prefix/etc/config.site
2925fi
2926for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2927do
2928 test "x$ac_site_file" = xNONE && continue
2929 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2932 sed 's/^/| /' "$ac_site_file" >&5
2018939f
AS
2933 . "$ac_site_file" \
2934 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936as_fn_error $? "failed to load site script $ac_site_file
d6974efa 2937See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
2938 fi
2939done
2940
2941if test -r "$cache_file"; then
2942 # Some versions of bash will fail to source /dev/null (special files
2943 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2944 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2946$as_echo "$as_me: loading cache $cache_file" >&6;}
2947 case $cache_file in
2948 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2949 *) . "./$cache_file";;
2950 esac
2951 fi
2952else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2954$as_echo "$as_me: creating cache $cache_file" >&6;}
2955 >$cache_file
2956fi
2957
2958as_fn_append ac_header_list " stdlib.h"
2959as_fn_append ac_header_list " unistd.h"
2960as_fn_append ac_header_list " sys/param.h"
e275c824
PE
2961gl_getopt_required=GNU
2962as_fn_append ac_header_list " getopt.h"
ae0d7250 2963as_fn_append ac_func_list " lstat"
067d23c9 2964as_fn_append ac_func_list " alarm"
ae0d7250 2965as_fn_append ac_func_list " readlink"
5f90be1b
PE
2966as_fn_append ac_header_list " wchar.h"
2967as_fn_append ac_header_list " stdint.h"
16c3e636 2968as_fn_append ac_func_list " tzset"
ae0d7250 2969as_fn_append ac_func_list " symlink"
5fa4ac76 2970as_fn_append ac_header_list " sys/stat.h"
1fd182f0
PE
2971as_fn_append ac_header_list " sys/time.h"
2972as_fn_append ac_func_list " localtime_r"
067d23c9
KY
2973# Check that the precious variables saved in the cache have kept the same
2974# value.
2975ac_cache_corrupted=false
2976for ac_var in $ac_precious_vars; do
2977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2978 eval ac_new_set=\$ac_env_${ac_var}_set
2979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2980 eval ac_new_val=\$ac_env_${ac_var}_value
2981 case $ac_old_set,$ac_new_set in
2982 set,)
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2984$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2985 ac_cache_corrupted=: ;;
2986 ,set)
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2988$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2989 ac_cache_corrupted=: ;;
2990 ,);;
2991 *)
2992 if test "x$ac_old_val" != "x$ac_new_val"; then
2993 # differences in whitespace do not lead to failure.
2994 ac_old_val_w=`echo x $ac_old_val`
2995 ac_new_val_w=`echo x $ac_new_val`
2996 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2998$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2999 ac_cache_corrupted=:
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3002$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3003 eval $ac_var=\$ac_old_val
3004 fi
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3006$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3008$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3009 fi;;
3010 esac
3011 # Pass precious variables to config.status.
3012 if test "$ac_new_set" = set; then
3013 case $ac_new_val in
3014 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3015 *) ac_arg=$ac_var=$ac_new_val ;;
3016 esac
3017 case " $ac_configure_args " in
3018 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3019 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3020 esac
3021 fi
3022done
3023if $ac_cache_corrupted; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3027$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018939f 3028 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
067d23c9
KY
3029fi
3030## -------------------- ##
3031## Main body of script. ##
3032## -------------------- ##
3033
3034ac_ext=c
3035ac_cpp='$CPP $CPPFLAGS'
3036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039
3040
3041ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3042
3043
743c80a7 3044am__api_version='1.11'
067d23c9 3045
743c80a7
PE
3046ac_aux_dir=
3047for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3048 if test -f "$ac_dir/install-sh"; then
3049 ac_aux_dir=$ac_dir
3050 ac_install_sh="$ac_aux_dir/install-sh -c"
3051 break
3052 elif test -f "$ac_dir/install.sh"; then
3053 ac_aux_dir=$ac_dir
3054 ac_install_sh="$ac_aux_dir/install.sh -c"
3055 break
3056 elif test -f "$ac_dir/shtool"; then
3057 ac_aux_dir=$ac_dir
3058 ac_install_sh="$ac_aux_dir/shtool install -c"
3059 break
3060 fi
3061done
3062if test -z "$ac_aux_dir"; then
3063 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3064fi
067d23c9 3065
743c80a7
PE
3066# These three variables are undocumented and unsupported,
3067# and are intended to be withdrawn in a future Autoconf release.
3068# They can cause serious problems if a builder's source tree is in a directory
3069# whose full name contains unusual characters.
3070ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3071ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3072ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
067d23c9 3073
067d23c9 3074
743c80a7
PE
3075# Find a good install program. We prefer a C program (faster),
3076# so one script is as good as another. But avoid the broken or
3077# incompatible versions:
3078# SysV /etc/install, /usr/sbin/install
3079# SunOS /usr/etc/install
3080# IRIX /sbin/install
3081# AIX /bin/install
3082# AmigaOS /C/install, which installs bootblocks on floppy discs
3083# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3084# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3085# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3086# OS/2's system install, which has a completely different semantic
3087# ./install, which can be erroneously created by make from ./install.sh.
3088# Reject install programs that cannot install multiple files.
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3090$as_echo_n "checking for a BSD-compatible install... " >&6; }
3091if test -z "$INSTALL"; then
d6974efa 3092if ${ac_cv_path_install+:} false; then :
743c80a7
PE
3093 $as_echo_n "(cached) " >&6
3094else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 # Account for people who put trailing slashes in PATH elements.
3101case $as_dir/ in #((
3102 ./ | .// | /[cC]/* | \
3103 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3104 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3105 /usr/ucb/* ) ;;
3106 *)
3107 # OSF1 and SCO ODT 3.0 have their own names for install.
3108 # Don't use installbsd from OSF since it installs stuff as root
3109 # by default.
3110 for ac_prog in ginstall scoinst install; do
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3113 if test $ac_prog = install &&
3114 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3115 # AIX install. It has an incompatible calling convention.
3116 :
3117 elif test $ac_prog = install &&
3118 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3119 # program-specific install script used by HP pwplus--don't use.
3120 :
3121 else
3122 rm -rf conftest.one conftest.two conftest.dir
3123 echo one > conftest.one
3124 echo two > conftest.two
3125 mkdir conftest.dir
3126 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3127 test -s conftest.one && test -s conftest.two &&
3128 test -s conftest.dir/conftest.one &&
3129 test -s conftest.dir/conftest.two
3130 then
3131 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3132 break 3
3133 fi
3134 fi
3135 fi
3136 done
3137 done
3138 ;;
3139esac
067d23c9 3140
743c80a7
PE
3141 done
3142IFS=$as_save_IFS
067d23c9 3143
743c80a7 3144rm -rf conftest.one conftest.two conftest.dir
067d23c9 3145
067d23c9 3146fi
743c80a7
PE
3147 if test "${ac_cv_path_install+set}" = set; then
3148 INSTALL=$ac_cv_path_install
3149 else
3150 # As a last resort, use the slow shell script. Don't cache a
3151 # value for INSTALL within a source directory, because that will
3152 # break other packages using the cache if that directory is
3153 # removed, or if the value is a relative name.
3154 INSTALL=$ac_install_sh
3155 fi
067d23c9 3156fi
743c80a7
PE
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3158$as_echo "$INSTALL" >&6; }
067d23c9 3159
743c80a7
PE
3160# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3161# It thinks the first close brace ends the variable substitution.
3162test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
067d23c9 3163
743c80a7 3164test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
067d23c9 3165
743c80a7 3166test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
067d23c9 3167
743c80a7
PE
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3169$as_echo_n "checking whether build environment is sane... " >&6; }
3170# Just in case
3171sleep 1
3172echo timestamp > conftest.file
3173# Reject unsafe characters in $srcdir or the absolute working directory
3174# name. Accept space and tab only in the latter.
3175am_lf='
3176'
3177case `pwd` in
3178 *[\\\"\#\$\&\'\`$am_lf]*)
d6974efa 3179 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
743c80a7
PE
3180esac
3181case $srcdir in
3182 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d6974efa 3183 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
743c80a7 3184esac
067d23c9 3185
743c80a7
PE
3186# Do `set' in a subshell so we don't clobber the current shell's
3187# arguments. Must try -L first in case configure is actually a
3188# symlink; some systems play weird games with the mod time of symlinks
3189# (eg FreeBSD returns the mod time of the symlink's containing
3190# directory).
3191if (
3192 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3193 if test "$*" = "X"; then
3194 # -L didn't work.
3195 set X `ls -t "$srcdir/configure" conftest.file`
3196 fi
3197 rm -f conftest.file
3198 if test "$*" != "X $srcdir/configure conftest.file" \
3199 && test "$*" != "X conftest.file $srcdir/configure"; then
3200
3201 # If neither matched, then we have a broken ls. This can happen
3202 # if, for instance, CONFIG_SHELL is bash and it inherits a
3203 # broken ls alias from the environment. This has actually
3204 # happened. Such a system could not be considered "sane".
3205 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3206alias in your environment" "$LINENO" 5
3207 fi
067d23c9 3208
743c80a7
PE
3209 test "$2" = conftest.file
3210 )
3211then
3212 # Ok.
3213 :
067d23c9 3214else
743c80a7
PE
3215 as_fn_error $? "newly created file is older than distributed files!
3216Check your system clock" "$LINENO" 5
067d23c9 3217fi
743c80a7
PE
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219$as_echo "yes" >&6; }
3220test "$program_prefix" != NONE &&
3221 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3222# Use a double $ so make ignores it.
3223test "$program_suffix" != NONE &&
3224 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3225# Double any \ or $.
3226# By default was `s,x,x', remove it if useless.
3227ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3228program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
067d23c9 3229
743c80a7
PE
3230# expand $ac_aux_dir to an absolute path
3231am_aux_dir=`cd $ac_aux_dir && pwd`
067d23c9 3232
743c80a7
PE
3233if test x"${MISSING+set}" != xset; then
3234 case $am_aux_dir in
3235 *\ * | *\ *)
3236 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3237 *)
3238 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3239 esac
067d23c9 3240fi
743c80a7
PE
3241# Use eval to expand $SHELL
3242if eval "$MISSING --run true"; then
3243 am_missing_run="$MISSING --run "
067d23c9 3244else
743c80a7
PE
3245 am_missing_run=
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3247$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
067d23c9
KY
3248fi
3249
743c80a7
PE
3250if test x"${install_sh}" != xset; then
3251 case $am_aux_dir in
3252 *\ * | *\ *)
3253 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3254 *)
3255 install_sh="\${SHELL} $am_aux_dir/install-sh"
3256 esac
067d23c9
KY
3257fi
3258
743c80a7
PE
3259# Installed binaries are usually stripped using `strip' when the user
3260# run `make install-strip'. However `strip' might not be the right
3261# tool to use in cross-compilation environments, therefore Automake
3262# will honor the `STRIP' environment variable to overrule this program.
3263if test "$cross_compiling" != no; then
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3266set dummy ${ac_tool_prefix}strip; ac_word=$2
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3269if ${ac_cv_prog_STRIP+:} false; then :
743c80a7 3270 $as_echo_n "(cached) " >&6
067d23c9 3271else
743c80a7
PE
3272 if test -n "$STRIP"; then
3273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286done
3287 done
3288IFS=$as_save_IFS
067d23c9
KY
3289
3290fi
067d23c9 3291fi
743c80a7
PE
3292STRIP=$ac_cv_prog_STRIP
3293if test -n "$STRIP"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3295$as_echo "$STRIP" >&6; }
3296else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
067d23c9
KY
3299fi
3300
3301
067d23c9 3302fi
743c80a7
PE
3303if test -z "$ac_cv_prog_STRIP"; then
3304 ac_ct_STRIP=$STRIP
3305 # Extract the first word of "strip", so it can be a program name with args.
3306set dummy strip; ac_word=$2
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3309if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
743c80a7
PE
3310 $as_echo_n "(cached) " >&6
3311else
3312 if test -n "$ac_ct_STRIP"; then
3313 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3314else
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 ac_cv_prog_ac_ct_STRIP="strip"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3325 fi
3326done
3327 done
3328IFS=$as_save_IFS
3329
3330fi
3331fi
3332ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3333if test -n "$ac_ct_STRIP"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3335$as_echo "$ac_ct_STRIP" >&6; }
3336else
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339fi
3340
3341 if test "x$ac_ct_STRIP" = x; then
3342 STRIP=":"
3343 else
3344 case $cross_compiling:$ac_tool_warned in
3345yes:)
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348ac_tool_warned=yes ;;
3349esac
3350 STRIP=$ac_ct_STRIP
3351 fi
3352else
3353 STRIP="$ac_cv_prog_STRIP"
3354fi
3355
3356fi
3357INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3358
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3360$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3361if test -z "$MKDIR_P"; then
d6974efa 3362 if ${ac_cv_path_mkdir+:} false; then :
743c80a7
PE
3363 $as_echo_n "(cached) " >&6
3364else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_prog in mkdir gmkdir; do
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3373 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3374 'mkdir (GNU coreutils) '* | \
3375 'mkdir (coreutils) '* | \
3376 'mkdir (fileutils) '4.1*)
3377 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3378 break 3;;
3379 esac
3380 done
3381 done
3382 done
3383IFS=$as_save_IFS
3384
3385fi
3386
3387 test -d ./--version && rmdir ./--version
3388 if test "${ac_cv_path_mkdir+set}" = set; then
3389 MKDIR_P="$ac_cv_path_mkdir -p"
3390 else
3391 # As a last resort, use the slow shell script. Don't cache a
3392 # value for MKDIR_P within a source directory, because that will
3393 # break other packages using the cache if that directory is
3394 # removed, or if the value is a relative name.
3395 MKDIR_P="$ac_install_sh -d"
3396 fi
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3399$as_echo "$MKDIR_P" >&6; }
3400
a451f14b 3401
743c80a7
PE
3402mkdir_p="$MKDIR_P"
3403case $mkdir_p in
3404 [\\/$]* | ?:[\\/]*) ;;
3405 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3406esac
3407
3408for ac_prog in gawk mawk nawk awk
3409do
3410 # Extract the first word of "$ac_prog", so it can be a program name with args.
3411set dummy $ac_prog; ac_word=$2
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3414if ${ac_cv_prog_AWK+:} false; then :
743c80a7
PE
3415 $as_echo_n "(cached) " >&6
3416else
3417 if test -n "$AWK"; then
3418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3419else
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427 ac_cv_prog_AWK="$ac_prog"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431done
3432 done
3433IFS=$as_save_IFS
3434
3435fi
3436fi
3437AWK=$ac_cv_prog_AWK
3438if test -n "$AWK"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3440$as_echo "$AWK" >&6; }
3441else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443$as_echo "no" >&6; }
3444fi
3445
3446
3447 test -n "$AWK" && break
3448done
3449
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3451$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3452set x ${MAKE-make}
3453ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 3454if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
743c80a7
PE
3455 $as_echo_n "(cached) " >&6
3456else
3457 cat >conftest.make <<\_ACEOF
3458SHELL = /bin/sh
3459all:
3460 @echo '@@@%%%=$(MAKE)=@@@%%%'
3461_ACEOF
3462# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3463case `${MAKE-make} -f conftest.make 2>/dev/null` in
3464 *@@@%%%=?*=@@@%%%*)
3465 eval ac_cv_prog_make_${ac_make}_set=yes;;
3466 *)
3467 eval ac_cv_prog_make_${ac_make}_set=no;;
3468esac
3469rm -f conftest.make
3470fi
3471if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3473$as_echo "yes" >&6; }
3474 SET_MAKE=
3475else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477$as_echo "no" >&6; }
3478 SET_MAKE="MAKE=${MAKE-make}"
3479fi
3480
3481rm -rf .tst 2>/dev/null
3482mkdir .tst 2>/dev/null
3483if test -d .tst; then
3484 am__leading_dot=.
3485else
3486 am__leading_dot=_
3487fi
3488rmdir .tst 2>/dev/null
3489
3490if test "`cd $srcdir && pwd`" != "`pwd`"; then
3491 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3492 # is not polluted with repeated "-I."
3493 am__isrc=' -I$(srcdir)'
3494 # test to see if srcdir already configured
3495 if test -f $srcdir/config.status; then
3496 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3497 fi
3498fi
3499
3500# test whether we have cygpath
3501if test -z "$CYGPATH_W"; then
3502 if (cygpath --version) >/dev/null 2>/dev/null; then
3503 CYGPATH_W='cygpath -w'
3504 else
3505 CYGPATH_W=echo
3506 fi
3507fi
3508
3509
3510# Define the identity of the package.
3511 PACKAGE='emacs'
3512 VERSION='24.0.50'
3513
3514
3515cat >>confdefs.h <<_ACEOF
3516#define PACKAGE "$PACKAGE"
3517_ACEOF
3518
3519
3520cat >>confdefs.h <<_ACEOF
3521#define VERSION "$VERSION"
3522_ACEOF
3523
3524# Some tools Automake needs.
3525
3526ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3527
3528
3529AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3530
3531
3532AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3533
3534
3535AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3536
3537
3538MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3539
3540# We need awk for the "check" target. The system "awk" is bad on
3541# some platforms.
3542# Always define AMTAR for backward compatibility.
3543
3544AMTAR=${AMTAR-"${am_missing_run}tar"}
3545
3546am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3547
3548
3549
3550
3551
3552
3553
3554
3555lispdir='${datadir}/emacs/${version}/lisp'
3556locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3557'${datadir}/emacs/site-lisp'
3558lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3559etcdir='${datadir}/emacs/${version}/etc'
3560archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3561docdir='${datadir}/emacs/${version}/etc'
3562gamedir='${localstatedir}/games/emacs'
3563
3564
3565
3566
3567# Check whether --with-pop was given.
3568if test "${with_pop+set}" = set; then :
3569 withval=$with_pop;
3570else
3571 with_pop=yes
3572fi
3573
3574if test "$with_pop" = yes; then
3575 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3576
3577fi
3578
3579
3580# Check whether --with-kerberos was given.
3581if test "${with_kerberos+set}" = set; then :
3582 withval=$with_kerberos;
3583else
3584 with_kerberos=no
3585fi
3586
3587if test "$with_kerberos" != no; then
3588 $as_echo "#define KERBEROS 1" >>confdefs.h
3589
3590fi
3591
3592
3593# Check whether --with-kerberos5 was given.
3594if test "${with_kerberos5+set}" = set; then :
3595 withval=$with_kerberos5;
3596else
3597 with_kerberos5=no
3598fi
3599
3600if test "${with_kerberos5}" != no; then
3601 if test "${with_kerberos}" = no; then
3602 with_kerberos=yes
3603 $as_echo "#define KERBEROS 1" >>confdefs.h
3604
3605 fi
3606
3607$as_echo "#define KERBEROS5 1" >>confdefs.h
3608
3609fi
3610
3611
3612# Check whether --with-hesiod was given.
3613if test "${with_hesiod+set}" = set; then :
3614 withval=$with_hesiod;
3615else
3616 with_hesiod=no
3617fi
3618
3619if test "$with_hesiod" != no; then
3620
3621$as_echo "#define HESIOD 1" >>confdefs.h
3622
3623fi
3624
3625
3626# Check whether --with-mmdf was given.
3627if test "${with_mmdf+set}" = set; then :
3628 withval=$with_mmdf;
3629else
3630 with_mmdf=no
3631fi
3632
3633if test "$with_mmdf" != no; then
3634
3635$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3636
3637fi
3638
3639
3640# Check whether --with-mail-unlink was given.
3641if test "${with_mail_unlink+set}" = set; then :
3642 withval=$with_mail_unlink;
3643else
3644 with_mail_unlink=no
3645fi
3646
3647if test "$with_mail_unlink" != no; then
3648
3649$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3650
3651fi
3652
3653
3654# Check whether --with-mailhost was given.
3655if test "${with_mailhost+set}" = set; then :
3656 withval=$with_mailhost;
3657cat >>confdefs.h <<_ACEOF
3658#define MAILHOST "$withval"
3659_ACEOF
3660
3661fi
3662
3663
3664
067d23c9
KY
3665# Check whether --with-sound was given.
3666if test "${with_sound+set}" = set; then :
3667 withval=$with_sound;
3668else
3669 with_sound=yes
3670fi
3671
3672
3673
3674# Check whether --with-sync-input was given.
3675if test "${with_sync_input+set}" = set; then :
3676 withval=$with_sync_input;
3677else
3678 with_sync_input=yes
3679fi
3680
3681if test "$with_sync_input" = yes; then
3682
3683$as_echo "#define SYNC_INPUT 1" >>confdefs.h
3684
3685fi
3686
3687
3688# Check whether --with-x-toolkit was given.
3689if test "${with_x_toolkit+set}" = set; then :
3690 withval=$with_x_toolkit; case "${withval}" in
3691 y | ye | yes ) val=gtk ;;
3692 n | no ) val=no ;;
3693 l | lu | luc | luci | lucid ) val=lucid ;;
3694 a | at | ath | athe | athen | athena ) val=athena ;;
3695 m | mo | mot | moti | motif ) val=motif ;;
3696 g | gt | gtk ) val=gtk ;;
3697 gtk3 ) val=gtk3 ;;
3698 * )
2018939f 3699as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
067d23c9
KY
3700this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3701\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3702 ;;
3703 esac
3704 with_x_toolkit=$val
3705
3706fi
3707
3708
3709
3710# Check whether --with-xpm was given.
3711if test "${with_xpm+set}" = set; then :
3712 withval=$with_xpm;
3713else
3714 with_xpm=yes
3715fi
3716
3717
3718# Check whether --with-jpeg was given.
3719if test "${with_jpeg+set}" = set; then :
3720 withval=$with_jpeg;
3721else
3722 with_jpeg=yes
3723fi
3724
3725
3726# Check whether --with-tiff was given.
3727if test "${with_tiff+set}" = set; then :
3728 withval=$with_tiff;
3729else
3730 with_tiff=yes
3731fi
3732
3733
3734# Check whether --with-gif was given.
3735if test "${with_gif+set}" = set; then :
3736 withval=$with_gif;
3737else
3738 with_gif=yes
3739fi
3740
3741
3742# Check whether --with-png was given.
3743if test "${with_png+set}" = set; then :
3744 withval=$with_png;
3745else
3746 with_png=yes
3747fi
3748
3749
3750# Check whether --with-rsvg was given.
3751if test "${with_rsvg+set}" = set; then :
3752 withval=$with_rsvg;
3753else
3754 with_rsvg=yes
3755fi
3756
3757
3758# Check whether --with-xml2 was given.
3759if test "${with_xml2+set}" = set; then :
3760 withval=$with_xml2;
3761else
3762 with_xml2=yes
3763fi
3764
3765
3766# Check whether --with-imagemagick was given.
3767if test "${with_imagemagick+set}" = set; then :
3768 withval=$with_imagemagick;
3769else
3770 with_imagemagick=yes
3771fi
3772
3773
3774
3775# Check whether --with-xft was given.
3776if test "${with_xft+set}" = set; then :
3777 withval=$with_xft;
3778else
3779 with_xft=yes
3780fi
3781
3782
3783# Check whether --with-libotf was given.
3784if test "${with_libotf+set}" = set; then :
3785 withval=$with_libotf;
3786else
3787 with_libotf=yes
3788fi
3789
3790
3791# Check whether --with-m17n-flt was given.
3792if test "${with_m17n_flt+set}" = set; then :
3793 withval=$with_m17n_flt;
3794else
3795 with_m17n_flt=yes
3796fi
3797
3798
3799
3800# Check whether --with-toolkit-scroll-bars was given.
3801if test "${with_toolkit_scroll_bars+set}" = set; then :
3802 withval=$with_toolkit_scroll_bars;
3803else
3804 with_toolkit_scroll_bars=yes
3805fi
3806
3807
3808# Check whether --with-xaw3d was given.
3809if test "${with_xaw3d+set}" = set; then :
3810 withval=$with_xaw3d;
3811else
3812 with_xaw3d=yes
3813fi
3814
3815
3816# Check whether --with-xim was given.
3817if test "${with_xim+set}" = set; then :
3818 withval=$with_xim;
3819else
3820 with_xim=yes
3821fi
3822
3823
3824# Check whether --with-ns was given.
3825if test "${with_ns+set}" = set; then :
3826 withval=$with_ns;
3827else
3828 with_ns=no
3829fi
3830
3831
3832
3833# Check whether --with-gpm was given.
3834if test "${with_gpm+set}" = set; then :
3835 withval=$with_gpm;
3836else
3837 with_gpm=yes
3838fi
3839
3840
3841# Check whether --with-dbus was given.
3842if test "${with_dbus+set}" = set; then :
3843 withval=$with_dbus;
3844else
3845 with_dbus=yes
3846fi
3847
3848
3849# Check whether --with-gconf was given.
3850if test "${with_gconf+set}" = set; then :
3851 withval=$with_gconf;
3852else
3853 with_gconf=yes
3854fi
3855
3856
3857# Check whether --with-selinux was given.
3858if test "${with_selinux+set}" = set; then :
3859 withval=$with_selinux;
3860else
3861 with_selinux=yes
3862fi
3863
3864
3865# Check whether --with-gnutls was given.
3866if test "${with_gnutls+set}" = set; then :
3867 withval=$with_gnutls;
3868else
3869 with_gnutls=yes
3870fi
3871
3872
3873## For the times when you want to build Emacs but don't have
3874## a suitable makeinfo, and can live without the manuals.
3875
3876# Check whether --with-makeinfo was given.
3877if test "${with_makeinfo+set}" = set; then :
3878 withval=$with_makeinfo;
3879else
3880 with_makeinfo=yes
3881fi
3882
3883
3884## This is an option because I do not know if all info/man support
3885## compressed files, nor how to test if they do so.
3886
3887# Check whether --with-compress-info was given.
3888if test "${with_compress_info+set}" = set; then :
3889 withval=$with_compress_info;
3890else
3891 with_compress_info=yes
3892fi
3893
3894if test $with_compress_info = yes; then
3895 GZIP_INFO=yes
3896else
3897 GZIP_INFO=
3898fi
3899
3900
3901
3902# Check whether --with-pkg-config-prog was given.
3903if test "${with_pkg_config_prog+set}" = set; then :
3904 withval=$with_pkg_config_prog;
3905fi
3906
3907if test "X${with_pkg_config_prog}" != X; then
3908 if test "${with_pkg_config_prog}" != yes; then
3909 PKG_CONFIG="${with_pkg_config_prog}"
3910 fi
3911fi
3912
3913CRT_DIR=
3914
3915# Check whether --with-crt-dir was given.
3916if test "${with_crt_dir+set}" = set; then :
3917 withval=$with_crt_dir;
3918fi
3919
3920CRT_DIR="${with_crt_dir}"
3921
3922
4fc5868a
UM
3923# Check whether --with-gameuser was given.
3924if test "${with_gameuser+set}" = set; then :
3925 withval=$with_gameuser;
3926fi
3927
3928test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3929 && gameuser="${with_gameuser}"
3930test "X$gameuser" = X && gameuser=games
3931
3932
067d23c9
KY
3933# Check whether --with-gnustep-conf was given.
3934if test "${with_gnustep_conf+set}" = set; then :
3935 withval=$with_gnustep_conf;
3936fi
3937
3938test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3939 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3940test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3941 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3942
3943# Check whether --enable-ns-self-contained was given.
3944if test "${enable_ns_self_contained+set}" = set; then :
3945 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3946else
3947 EN_NS_SELF_CONTAINED=yes
3948fi
3949
3950
3951# Check whether --enable-asserts was given.
3952if test "${enable_asserts+set}" = set; then :
3953 enableval=$enable_asserts; USE_XASSERTS=$enableval
3954else
3955 USE_XASSERTS=no
3956fi
3957
3958
3959# Check whether --enable-maintainer-mode was given.
3960if test "${enable_maintainer_mode+set}" = set; then :
3961 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3962else
3963 USE_MAINTAINER_MODE=no
3964fi
3965
3966if test $USE_MAINTAINER_MODE = yes; then
3967 MAINT=
3968else
3969 MAINT=#
3970fi
3971
3972
3973# Check whether --enable-locallisppath was given.
3974if test "${enable_locallisppath+set}" = set; then :
3975 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3976 locallisppath=
3977elif test "${enableval}" != "yes"; then
3978 locallisppath=${enableval}
3979fi
3980fi
3981
3982
3983# Check whether --enable-checking was given.
3984if test "${enable_checking+set}" = set; then :
3985 enableval=$enable_checking; ac_checking_flags="${enableval}"
3986fi
3987
3988IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3989for check in $ac_checking_flags
3990do
3991 case $check in
3992 # these set all the flags to specific states
3993 yes) ac_enable_checking=1 ;;
3994 no) ac_enable_checking= ;
3995 ac_gc_check_stringbytes= ;
3996 ac_gc_check_string_overrun= ;
3997 ac_gc_check_string_free_list= ;
3998 ac_xmalloc_overrun= ;
3999 ac_gc_check_cons_list= ;;
4000 all) ac_enable_checking=1 ;
4001 ac_gc_check_stringbytes=1 ;
4002 ac_gc_check_string_overrun=1 ;
4003 ac_gc_check_string_free_list=1 ;
4004 ac_xmalloc_overrun=1 ;
4005 ac_gc_check_cons_list=1 ;;
4006 # these enable particular checks
4007 stringbytes) ac_gc_check_stringbytes=1 ;;
4008 stringoverrun) ac_gc_check_string_overrun=1 ;;
4009 stringfreelist) ac_gc_check_string_free_list=1 ;;
4010 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4011 conslist) ac_gc_check_cons_list=1 ;;
d6974efa 4012 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
067d23c9
KY
4013 esac
4014done
4015IFS="$ac_save_IFS"
4016
4017if test x$ac_enable_checking != x ; then
4018
4019$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4020
4021fi
4022if test x$ac_gc_check_stringbytes != x ; then
4023
4024$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4025
4026fi
4027if test x$ac_gc_check_stringoverrun != x ; then
4028
4029$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4030
4031fi
4032if test x$ac_gc_check_string_free_list != x ; then
4033
4034$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4035
4036fi
4037if test x$ac_xmalloc_overrun != x ; then
4038
4039$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4040
4041fi
4042if test x$ac_gc_check_cons_list != x ; then
4043
4044$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4045
4046fi
4047
4048# Check whether --enable-use-lisp-union-type was given.
4049if test "${enable_use_lisp_union_type+set}" = set; then :
4050 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4051
4052$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4053
4054fi
4055fi
4056
4057
4058
4059# Check whether --enable-profiling was given.
4060if test "${enable_profiling+set}" = set; then :
4061 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4062fi
4063
4064if test x$ac_enable_profiling != x ; then
4065 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4066else
4067 PROFILING_CFLAGS=
4068fi
4069
4070
4071# Check whether --enable-autodepend was given.
4072if test "${enable_autodepend+set}" = set; then :
4073 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4074else
4075 ac_enable_autodepend=yes
4076fi
4077
4078
4079#### Make srcdir absolute, if it isn't already. It's important to
4080#### avoid running the path through pwd unnecessarily, since pwd can
4081#### give you automounter prefixes, which can go away. We do all this
4082#### so Emacs can find its files when run uninstalled.
4083## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4084unset CDPATH
4085case "${srcdir}" in
4086 /* ) ;;
4087 . )
4088 ## We may be able to use the $PWD environment variable to make this
4089 ## absolute. But sometimes PWD is inaccurate.
4090 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4091 ## but that tested only for a well-formed and valid PWD,
4092 ## it did not object when PWD was well-formed and valid but just wrong.
4093 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4094 then
4095 srcdir="$PWD"
4096 else
4097 srcdir="`(cd ${srcdir}; pwd)`"
4098 fi
4099 ;;
4100 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4101esac
4102
4103#### Check if the source directory already has a configured system in it.
4104if test `pwd` != `(cd ${srcdir} && pwd)` \
4105 && test -f "${srcdir}/src/config.h" ; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4107 as a build directory right now; it has been configured in its own
4108 right. To configure in another directory as well, you MUST
4109 use GNU make. If you do not have GNU make, then you must
4110 now do \`make distclean' in ${srcdir},
4111 and then run $0 again." >&5
4112$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4113 as a build directory right now; it has been configured in its own
4114 right. To configure in another directory as well, you MUST
4115 use GNU make. If you do not have GNU make, then you must
4116 now do \`make distclean' in ${srcdir},
4117 and then run $0 again." >&2;}
4118fi
4119
4120#### Given the configuration name, set machfile and opsysfile to the
4121#### names of the m/*.h and s/*.h files we should use.
4122
4123### Canonicalize the configuration name.
4124
067d23c9
KY
4125# Make sure we can run config.sub.
4126$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018939f 4127 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
067d23c9
KY
4128
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4130$as_echo_n "checking build system type... " >&6; }
d6974efa 4131if ${ac_cv_build+:} false; then :
067d23c9
KY
4132 $as_echo_n "(cached) " >&6
4133else
4134 ac_build_alias=$build_alias
4135test "x$ac_build_alias" = x &&
4136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4137test "x$ac_build_alias" = x &&
2018939f 4138 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
067d23c9 4139ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018939f 4140 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
067d23c9
KY
4141
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4144$as_echo "$ac_cv_build" >&6; }
4145case $ac_cv_build in
4146*-*-*) ;;
d6974efa 4147*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
067d23c9
KY
4148esac
4149build=$ac_cv_build
4150ac_save_IFS=$IFS; IFS='-'
4151set x $ac_cv_build
4152shift
4153build_cpu=$1
4154build_vendor=$2
4155shift; shift
4156# Remember, the first character of IFS is used to create $*,
4157# except with old shells:
4158build_os=$*
4159IFS=$ac_save_IFS
4160case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4161
4162
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4164$as_echo_n "checking host system type... " >&6; }
d6974efa 4165if ${ac_cv_host+:} false; then :
067d23c9
KY
4166 $as_echo_n "(cached) " >&6
4167else
4168 if test "x$host_alias" = x; then
4169 ac_cv_host=$ac_cv_build
4170else
4171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2018939f 4172 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
067d23c9
KY
4173fi
4174
4175fi
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4177$as_echo "$ac_cv_host" >&6; }
4178case $ac_cv_host in
4179*-*-*) ;;
d6974efa 4180*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
067d23c9
KY
4181esac
4182host=$ac_cv_host
4183ac_save_IFS=$IFS; IFS='-'
4184set x $ac_cv_host
4185shift
4186host_cpu=$1
4187host_vendor=$2
4188shift; shift
4189# Remember, the first character of IFS is used to create $*,
4190# except with old shells:
4191host_os=$*
4192IFS=$ac_save_IFS
4193case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4194
4195
4196canonical=$host
4197configuration=${host_alias-${build_alias-$host}}
4198
4199
4200
4201### If you add support for a new configuration, add code to this
4202### switch statement to recognize your configuration name and select
4203### the appropriate operating system and machine description files.
4204
4205### You would hope that you could choose an m/*.h file pretty much
4206### based on the machine portion of the configuration name, and an s/*.h
4207### file based on the operating system portion. However, it turns out
4208### that each m/*.h file is pretty manufacturer-specific - for
4209### example mips.h is MIPS
4210### So we basically have to have a special case for each
4211### configuration name.
4212###
4213### As far as handling version numbers on operating systems is
4214### concerned, make sure things will fail in a fixable way. If
4215### /etc/MACHINES doesn't say anything about version numbers, be
4216### prepared to handle anything reasonably. If version numbers
4217### matter, be sure /etc/MACHINES says something about it.
4218
4219machine='' opsys='' unported=no
4220case "${canonical}" in
4221
d6a003a8
AS
4222 ## GNU/Linux ports
4223 *-*-linux-gnu*)
4224 opsys=gnu-linux
4225 case ${canonical} in
4226 alpha*) machine=alpha ;;
4227 s390-*) machine=ibms390 ;;
4228 s390x-*) machine=ibms390x ;;
4229 powerpc*) machine=macppc ;;
4230 sparc*) machine=sparc ;;
4231 ia64*) machine=ia64 ;;
4232 m68k*) machine=m68k ;;
4233 x86_64*) machine=amdx86-64 ;;
4234 esac
4235 ;;
4236
067d23c9
KY
4237 ## FreeBSD ports
4238 *-*-freebsd* )
4239 opsys=freebsd
4240 case "${canonical}" in
4241 alpha*) machine=alpha ;;
4242 amd64-*|x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4243 ia64-*) machine=ia64 ;;
4244 i[3456]86-*) machine=intel386 ;;
4245 powerpc-*) machine=macppc ;;
4246 sparc-*) machine=sparc ;;
4247 sparc64-*) machine=sparc ;;
4248 esac
4249 ;;
4250
4251 ## FreeBSD kernel + glibc based userland
4252 *-*-kfreebsd*gnu* )
4253 opsys=gnu-kfreebsd
4254 case "${canonical}" in
4255 alpha*) machine=alpha ;;
4256 amd64-*|x86_64-*) machine=amdx86-64 ;;
4257 ia64-*) machine=ia64 ;;
4258 i[3456]86-*) machine=intel386 ;;
4259 powerpc-*) machine=macppc ;;
4260 sparc-*) machine=sparc ;;
4261 sparc64-*) machine=sparc ;;
4262 esac
4263 ;;
4264
4265 ## NetBSD ports
4266 *-*-netbsd* )
4267 opsys=netbsd
4268 case "${canonical}" in
4269 alpha*) machine=alpha ;;
4270 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4271 i[3456]86-*) machine=intel386 ;;
4272 m68k-*) machine=m68k ;;
4273 powerpc-*) machine=macppc ;;
067d23c9
KY
4274 sparc*-) machine=sparc ;;
4275 vax-*) machine=vax ;;
4276 esac
4277 ;;
4278
4279 ## OpenBSD ports
4280 *-*-openbsd* )
4281 opsys=openbsd
4282 case "${canonical}" in
4283 alpha*) machine=alpha ;;
4284 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4285 i386-*) machine=intel386 ;;
4286 powerpc-*) machine=macppc ;;
4287 sparc*) machine=sparc ;;
4288 vax-*) machine=vax ;;
4289 esac
4290 ;;
4291
067d23c9
KY
4292 ## Apple Darwin / Mac OS X
4293 *-apple-darwin* )
4294 case "${canonical}" in
4295 i[3456]86-* ) machine=intel386 ;;
4296 powerpc-* ) machine=macppc ;;
4297 x86_64-* ) machine=amdx86-64 ;;
4298 * ) unported=yes ;;
4299 esac
4300 opsys=darwin
4301 # Define CPP as follows to make autoconf work correctly.
4302 CPP="${CC-cc} -E -no-cpp-precomp"
4303 # Use fink packages if available.
4304 if test -d /sw/include && test -d /sw/lib; then
4305 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4306 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4307 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4308 fi
4309 ;;
4310
4311 ## HP 9000 series 700 and 800, running HP/UX
4312 hppa*-hp-hpux10.2* )
d6a003a8 4313 opsys=hpux10-20
067d23c9
KY
4314 ;;
4315 hppa*-hp-hpux1[1-9]* )
d6a003a8 4316 opsys=hpux11
067d23c9
KY
4317 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4318 ;;
4319
125c3718
PE
4320 ia64*-hp-hpux1[1-9]* )
4321 machine=hp800 opsys=hpux11
4322 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4323 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4324 CANNOT_DUMP=yes
4325 ;;
4326
4327 hppa*-*-linux-gnu* )
4328 machine=hp800 opsys=gnu-linux
4329 ;;
4330
067d23c9 4331 ## IBM machines
067d23c9
KY
4332 rs6000-ibm-aix4.[23]* )
4333 machine=ibmrs6000 opsys=aix4-2
4334 ;;
4335 powerpc-ibm-aix4.[23]* )
4336 machine=ibmrs6000 opsys=aix4-2
4337 ;;
4338 rs6000-ibm-aix[56]* )
4339 machine=ibmrs6000 opsys=aix4-2
4340 ;;
4341 powerpc-ibm-aix[56]* )
4342 machine=ibmrs6000 opsys=aix4-2
4343 ;;
4344
067d23c9
KY
4345 ## Silicon Graphics machines
4346 ## Iris 4D
4347 mips-sgi-irix6.5 )
4348 machine=iris4d opsys=irix6-5
4349 # Without defining _LANGUAGE_C, things get masked out in the headers
4350 # so that, for instance, grepping for `free' in stdlib.h fails and
4351 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4352 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4353 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4354 ;;
4355
4356 ## Suns
067d23c9
KY
4357 *-sun-solaris* \
4358 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4359 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4360 case "${canonical}" in
4361 i[3456]86-*-* ) machine=intel386 ;;
4362 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4363 sparc* ) machine=sparc ;;
4364 * ) unported=yes ;;
4365 esac
4366 case "${canonical}" in
4367 *-sunos5.6* | *-solaris2.6* )
4368 opsys=sol2-6
4369 NON_GNU_CPP=/usr/ccs/lib/cpp
4370 RANLIB="ar -ts"
4371 ;;
4372 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4373 opsys=sol2-6
4374 emacs_check_sunpro_c=yes
4375 NON_GNU_CPP=/usr/ccs/lib/cpp
4376 ;;
4377 *-sunos5* | *-solaris* )
4378 opsys=sol2-10
4379 emacs_check_sunpro_c=yes
4380 NON_GNU_CPP=/usr/ccs/lib/cpp
4381 ;;
4382 esac
4383 ## Watch out for a compiler that we know will not work.
4384 case "${canonical}" in
4385 *-solaris* | *-sunos5* )
4386 if [ "x$CC" = x/usr/ucb/cc ]; then
4387 ## /usr/ucb/cc doesn't work;
4388 ## we should find some other compiler that does work.
4389 unset CC
4390 fi
4391 ;;
4392 *) ;;
4393 esac
4394 ;;
4395
067d23c9
KY
4396 ## Intel 386 machines where we don't care about the manufacturer.
4397 i[3456]86-*-* )
4398 machine=intel386
4399 case "${canonical}" in
4400 *-cygwin ) opsys=cygwin ;;
4401 *-darwin* ) opsys=darwin
4402 CPP="${CC-cc} -E -no-cpp-precomp"
4403 ;;
067d23c9
KY
4404 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4405 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4406 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4407 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4408 esac
4409 ;;
4410
067d23c9
KY
4411 * )
4412 unported=yes
4413 ;;
4414esac
4415
4416### If the code above didn't choose an operating system, just choose
4417### an operating system based on the configuration name. You really
4418### only want to use this when you have no idea what the right
4419### operating system is; if you know what operating systems a machine
4420### runs, it's cleaner to make it explicit in the case statement
4421### above.
4422if test x"${opsys}" = x; then
4423 case "${canonical}" in
4424 *-gnu* ) opsys=gnu ;;
4425 * )
4426 unported=yes
4427 ;;
4428 esac
4429fi
4430
4431
4432
4433if test $unported = yes; then
2018939f 4434 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
067d23c9
KY
4435Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4436fi
4437
d6a003a8
AS
4438if test -n "$machine"; then
4439 machfile="m/${machine}.h"
4440else
4441 machfile=
4442fi
067d23c9
KY
4443opsysfile="s/${opsys}.h"
4444
4445
4446#### Choose a compiler.
4447test -n "$CC" && cc_specified=yes
4448
4449# Save the value of CFLAGS that the user specified.
4450SPECIFIED_CFLAGS="$CFLAGS"
4451
4452ac_ext=c
4453ac_cpp='$CPP $CPPFLAGS'
4454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457if test -n "$ac_tool_prefix"; then
4458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4459set dummy ${ac_tool_prefix}gcc; ac_word=$2
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4462if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4463 $as_echo_n "(cached) " >&6
4464else
4465 if test -n "$CC"; then
4466 ac_cv_prog_CC="$CC" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479done
4480 done
4481IFS=$as_save_IFS
4482
4483fi
4484fi
4485CC=$ac_cv_prog_CC
4486if test -n "$CC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4488$as_echo "$CC" >&6; }
4489else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
4492fi
4493
4494
4495fi
4496if test -z "$ac_cv_prog_CC"; then
4497 ac_ct_CC=$CC
4498 # Extract the first word of "gcc", so it can be a program name with args.
4499set dummy gcc; ac_word=$2
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4502if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4503 $as_echo_n "(cached) " >&6
4504else
4505 if test -n "$ac_ct_CC"; then
4506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4507else
4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4515 ac_cv_prog_ac_ct_CC="gcc"
4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 break 2
4518 fi
4519done
4520 done
4521IFS=$as_save_IFS
4522
4523fi
4524fi
4525ac_ct_CC=$ac_cv_prog_ac_ct_CC
4526if test -n "$ac_ct_CC"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4528$as_echo "$ac_ct_CC" >&6; }
4529else
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531$as_echo "no" >&6; }
4532fi
4533
4534 if test "x$ac_ct_CC" = x; then
4535 CC=""
4536 else
4537 case $cross_compiling:$ac_tool_warned in
4538yes:)
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4541ac_tool_warned=yes ;;
4542esac
4543 CC=$ac_ct_CC
4544 fi
4545else
4546 CC="$ac_cv_prog_CC"
4547fi
4548
4549if test -z "$CC"; then
4550 if test -n "$ac_tool_prefix"; then
4551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4552set dummy ${ac_tool_prefix}cc; ac_word=$2
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4555if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4556 $as_echo_n "(cached) " >&6
4557else
4558 if test -n "$CC"; then
4559 ac_cv_prog_CC="$CC" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_CC="${ac_tool_prefix}cc"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572done
4573 done
4574IFS=$as_save_IFS
4575
4576fi
4577fi
4578CC=$ac_cv_prog_CC
4579if test -n "$CC"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4581$as_echo "$CC" >&6; }
4582else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584$as_echo "no" >&6; }
4585fi
4586
4587
4588 fi
4589fi
4590if test -z "$CC"; then
4591 # Extract the first word of "cc", so it can be a program name with args.
4592set dummy cc; ac_word=$2
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4595if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4596 $as_echo_n "(cached) " >&6
4597else
4598 if test -n "$CC"; then
4599 ac_cv_prog_CC="$CC" # Let the user override the test.
4600else
4601 ac_prog_rejected=no
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4610 ac_prog_rejected=yes
4611 continue
4612 fi
4613 ac_cv_prog_CC="cc"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617done
4618 done
4619IFS=$as_save_IFS
4620
4621if test $ac_prog_rejected = yes; then
4622 # We found a bogon in the path, so make sure we never use it.
4623 set dummy $ac_cv_prog_CC
4624 shift
4625 if test $# != 0; then
4626 # We chose a different compiler from the bogus one.
4627 # However, it has the same basename, so the bogon will be chosen
4628 # first if we set CC to just the basename; use the full file name.
4629 shift
4630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4631 fi
4632fi
4633fi
4634fi
4635CC=$ac_cv_prog_CC
4636if test -n "$CC"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4638$as_echo "$CC" >&6; }
4639else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641$as_echo "no" >&6; }
4642fi
4643
4644
4645fi
4646if test -z "$CC"; then
4647 if test -n "$ac_tool_prefix"; then
4648 for ac_prog in cl.exe
4649 do
4650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4651set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4654if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4655 $as_echo_n "(cached) " >&6
4656else
4657 if test -n "$CC"; then
4658 ac_cv_prog_CC="$CC" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672 done
4673IFS=$as_save_IFS
4674
4675fi
4676fi
4677CC=$ac_cv_prog_CC
4678if test -n "$CC"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4680$as_echo "$CC" >&6; }
4681else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683$as_echo "no" >&6; }
4684fi
4685
4686
4687 test -n "$CC" && break
4688 done
4689fi
4690if test -z "$CC"; then
4691 ac_ct_CC=$CC
4692 for ac_prog in cl.exe
4693do
4694 # Extract the first word of "$ac_prog", so it can be a program name with args.
4695set dummy $ac_prog; ac_word=$2
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4698if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4699 $as_echo_n "(cached) " >&6
4700else
4701 if test -n "$ac_ct_CC"; then
4702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_ac_ct_CC="$ac_prog"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715done
4716 done
4717IFS=$as_save_IFS
4718
4719fi
4720fi
4721ac_ct_CC=$ac_cv_prog_ac_ct_CC
4722if test -n "$ac_ct_CC"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4724$as_echo "$ac_ct_CC" >&6; }
4725else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727$as_echo "no" >&6; }
4728fi
4729
4730
4731 test -n "$ac_ct_CC" && break
4732done
4733
4734 if test "x$ac_ct_CC" = x; then
4735 CC=""
4736 else
4737 case $cross_compiling:$ac_tool_warned in
4738yes:)
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4741ac_tool_warned=yes ;;
4742esac
4743 CC=$ac_ct_CC
4744 fi
4745fi
4746
4747fi
4748
4749
4750test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4752as_fn_error $? "no acceptable C compiler found in \$PATH
d6974efa 4753See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4754
4755# Provide some information about the compiler.
4756$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4757set X $ac_compile
4758ac_compiler=$2
4759for ac_option in --version -v -V -qversion; do
4760 { { ac_try="$ac_compiler $ac_option >&5"
4761case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764esac
4765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4766$as_echo "$ac_try_echo"; } >&5
4767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4768 ac_status=$?
4769 if test -s conftest.err; then
4770 sed '10a\
4771... rest of stderr output deleted ...
4772 10q' conftest.err >conftest.er1
4773 cat conftest.er1 >&5
4774 fi
4775 rm -f conftest.er1 conftest.err
4776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4777 test $ac_status = 0; }
4778done
4779
4780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781/* end confdefs.h. */
4782
4783int
4784main ()
4785{
4786
4787 ;
4788 return 0;
4789}
4790_ACEOF
4791ac_clean_files_save=$ac_clean_files
4792ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4793# Try to create an executable without -o first, disregard a.out.
4794# It will help us diagnose broken compilers, and finding out an intuition
4795# of exeext.
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4797$as_echo_n "checking whether the C compiler works... " >&6; }
4798ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4799
4800# The possible output files:
4801ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4802
4803ac_rmfiles=
4804for ac_file in $ac_files
4805do
4806 case $ac_file in
4807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4809 esac
4810done
4811rm -f $ac_rmfiles
4812
4813if { { ac_try="$ac_link_default"
4814case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817esac
4818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4819$as_echo "$ac_try_echo"; } >&5
4820 (eval "$ac_link_default") 2>&5
4821 ac_status=$?
4822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4823 test $ac_status = 0; }; then :
4824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4825# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4826# in a Makefile. We should not override ac_cv_exeext if it was cached,
4827# so that the user can short-circuit this test for compilers unknown to
4828# Autoconf.
4829for ac_file in $ac_files ''
4830do
4831 test -f "$ac_file" || continue
4832 case $ac_file in
4833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4834 ;;
4835 [ab].out )
4836 # We found the default executable, but exeext='' is most
4837 # certainly right.
4838 break;;
4839 *.* )
4840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4841 then :; else
4842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4843 fi
4844 # We set ac_cv_exeext here because the later test for it is not
4845 # safe: cross compilers may not add the suffix if given an `-o'
4846 # argument, so we may need to know it at that point already.
4847 # Even if this section looks crufty: it has the advantage of
4848 # actually working.
4849 break;;
4850 * )
4851 break;;
4852 esac
4853done
4854test "$ac_cv_exeext" = no && ac_cv_exeext=
4855
4856else
4857 ac_file=''
4858fi
4859if test -z "$ac_file"; then :
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861$as_echo "no" >&6; }
4862$as_echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4867as_fn_error 77 "C compiler cannot create executables
d6974efa 4868See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4869else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871$as_echo "yes" >&6; }
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4874$as_echo_n "checking for C compiler default output file name... " >&6; }
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4876$as_echo "$ac_file" >&6; }
4877ac_exeext=$ac_cv_exeext
4878
4879rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4880ac_clean_files=$ac_clean_files_save
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4882$as_echo_n "checking for suffix of executables... " >&6; }
4883if { { ac_try="$ac_link"
4884case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887esac
4888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4889$as_echo "$ac_try_echo"; } >&5
4890 (eval "$ac_link") 2>&5
4891 ac_status=$?
4892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4893 test $ac_status = 0; }; then :
4894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4895# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4896# work properly (i.e., refer to `conftest.exe'), while it won't with
4897# `rm'.
4898for ac_file in conftest.exe conftest conftest.*; do
4899 test -f "$ac_file" || continue
4900 case $ac_file in
4901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4903 break;;
4904 * ) break;;
4905 esac
4906done
4907else
4908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4910as_fn_error $? "cannot compute suffix of executables: cannot compile and link
d6974efa 4911See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4912fi
4913rm -f conftest conftest$ac_cv_exeext
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4915$as_echo "$ac_cv_exeext" >&6; }
4916
4917rm -f conftest.$ac_ext
4918EXEEXT=$ac_cv_exeext
4919ac_exeext=$EXEEXT
4920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h. */
4922#include <stdio.h>
4923int
4924main ()
4925{
4926FILE *f = fopen ("conftest.out", "w");
4927 return ferror (f) || fclose (f) != 0;
4928
4929 ;
4930 return 0;
4931}
4932_ACEOF
4933ac_clean_files="$ac_clean_files conftest.out"
4934# Check that the compiler produces executables we can run. If not, either
4935# the compiler is broken, or we cross compile.
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4937$as_echo_n "checking whether we are cross compiling... " >&6; }
4938if test "$cross_compiling" != yes; then
4939 { { ac_try="$ac_link"
4940case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943esac
4944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4945$as_echo "$ac_try_echo"; } >&5
4946 (eval "$ac_link") 2>&5
4947 ac_status=$?
4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949 test $ac_status = 0; }
4950 if { ac_try='./conftest$ac_cv_exeext'
4951 { { case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954esac
4955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956$as_echo "$ac_try_echo"; } >&5
4957 (eval "$ac_try") 2>&5
4958 ac_status=$?
4959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4960 test $ac_status = 0; }; }; then
4961 cross_compiling=no
4962 else
4963 if test "$cross_compiling" = maybe; then
4964 cross_compiling=yes
4965 else
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4968as_fn_error $? "cannot run C compiled programs.
067d23c9 4969If you meant to cross compile, use \`--host'.
d6974efa 4970See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4971 fi
4972 fi
4973fi
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4975$as_echo "$cross_compiling" >&6; }
4976
4977rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4978ac_clean_files=$ac_clean_files_save
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4980$as_echo_n "checking for suffix of object files... " >&6; }
d6974efa 4981if ${ac_cv_objext+:} false; then :
067d23c9
KY
4982 $as_echo_n "(cached) " >&6
4983else
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985/* end confdefs.h. */
4986
4987int
4988main ()
4989{
4990
4991 ;
4992 return 0;
4993}
4994_ACEOF
4995rm -f conftest.o conftest.obj
4996if { { ac_try="$ac_compile"
4997case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000esac
5001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5002$as_echo "$ac_try_echo"; } >&5
5003 (eval "$ac_compile") 2>&5
5004 ac_status=$?
5005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5006 test $ac_status = 0; }; then :
5007 for ac_file in conftest.o conftest.obj conftest.*; do
5008 test -f "$ac_file" || continue;
5009 case $ac_file in
5010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5011 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5012 break;;
5013 esac
5014done
5015else
5016 $as_echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 5021as_fn_error $? "cannot compute suffix of object files: cannot compile
d6974efa 5022See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5023fi
5024rm -f conftest.$ac_cv_objext conftest.$ac_ext
5025fi
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5027$as_echo "$ac_cv_objext" >&6; }
5028OBJEXT=$ac_cv_objext
5029ac_objext=$OBJEXT
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5031$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6974efa 5032if ${ac_cv_c_compiler_gnu+:} false; then :
067d23c9
KY
5033 $as_echo_n "(cached) " >&6
5034else
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h. */
5037
5038int
5039main ()
5040{
5041#ifndef __GNUC__
5042 choke me
5043#endif
5044
5045 ;
5046 return 0;
5047}
5048_ACEOF
5049if ac_fn_c_try_compile "$LINENO"; then :
5050 ac_compiler_gnu=yes
5051else
5052 ac_compiler_gnu=no
5053fi
5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055ac_cv_c_compiler_gnu=$ac_compiler_gnu
5056
5057fi
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5059$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5060if test $ac_compiler_gnu = yes; then
5061 GCC=yes
5062else
5063 GCC=
5064fi
5065ac_test_CFLAGS=${CFLAGS+set}
5066ac_save_CFLAGS=$CFLAGS
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5068$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6974efa 5069if ${ac_cv_prog_cc_g+:} false; then :
067d23c9
KY
5070 $as_echo_n "(cached) " >&6
5071else
5072 ac_save_c_werror_flag=$ac_c_werror_flag
5073 ac_c_werror_flag=yes
5074 ac_cv_prog_cc_g=no
5075 CFLAGS="-g"
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h. */
5078
5079int
5080main ()
5081{
5082
5083 ;
5084 return 0;
5085}
5086_ACEOF
5087if ac_fn_c_try_compile "$LINENO"; then :
5088 ac_cv_prog_cc_g=yes
5089else
5090 CFLAGS=""
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h. */
5093
5094int
5095main ()
5096{
5097
5098 ;
5099 return 0;
5100}
5101_ACEOF
5102if ac_fn_c_try_compile "$LINENO"; then :
5103
5104else
5105 ac_c_werror_flag=$ac_save_c_werror_flag
5106 CFLAGS="-g"
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h. */
5109
5110int
5111main ()
5112{
5113
5114 ;
5115 return 0;
5116}
5117_ACEOF
5118if ac_fn_c_try_compile "$LINENO"; then :
5119 ac_cv_prog_cc_g=yes
5120fi
5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122fi
5123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124fi
5125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126 ac_c_werror_flag=$ac_save_c_werror_flag
5127fi
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5129$as_echo "$ac_cv_prog_cc_g" >&6; }
5130if test "$ac_test_CFLAGS" = set; then
5131 CFLAGS=$ac_save_CFLAGS
5132elif test $ac_cv_prog_cc_g = yes; then
5133 if test "$GCC" = yes; then
5134 CFLAGS="-g -O2"
5135 else
5136 CFLAGS="-g"
5137 fi
5138else
5139 if test "$GCC" = yes; then
5140 CFLAGS="-O2"
5141 else
5142 CFLAGS=
5143 fi
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5146$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6974efa 5147if ${ac_cv_prog_cc_c89+:} false; then :
067d23c9
KY
5148 $as_echo_n "(cached) " >&6
5149else
5150 ac_cv_prog_cc_c89=no
5151ac_save_CC=$CC
5152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h. */
5154#include <stdarg.h>
5155#include <stdio.h>
5156#include <sys/types.h>
5157#include <sys/stat.h>
5158/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5159struct buf { int x; };
5160FILE * (*rcsopen) (struct buf *, struct stat *, int);
5161static char *e (p, i)
5162 char **p;
5163 int i;
5164{
5165 return p[i];
5166}
5167static char *f (char * (*g) (char **, int), char **p, ...)
5168{
5169 char *s;
5170 va_list v;
5171 va_start (v,p);
5172 s = g (p, va_arg (v,int));
5173 va_end (v);
5174 return s;
5175}
5176
5177/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5178 function prototypes and stuff, but not '\xHH' hex character constants.
5179 These don't provoke an error unfortunately, instead are silently treated
5180 as 'x'. The following induces an error, until -std is added to get
5181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5182 array size at least. It's necessary to write '\x00'==0 to get something
5183 that's true only with -std. */
5184int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5185
5186/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5187 inside strings and character constants. */
5188#define FOO(x) 'x'
5189int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5190
5191int test (int i, double x);
5192struct s1 {int (*f) (int a);};
5193struct s2 {int (*f) (double a);};
5194int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5195int argc;
5196char **argv;
5197int
5198main ()
5199{
5200return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5201 ;
5202 return 0;
5203}
5204_ACEOF
5205for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5207do
5208 CC="$ac_save_CC $ac_arg"
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210 ac_cv_prog_cc_c89=$ac_arg
5211fi
5212rm -f core conftest.err conftest.$ac_objext
5213 test "x$ac_cv_prog_cc_c89" != "xno" && break
5214done
743c80a7
PE
5215rm -f conftest.$ac_ext
5216CC=$ac_save_CC
5217
5218fi
5219# AC_CACHE_VAL
5220case "x$ac_cv_prog_cc_c89" in
5221 x)
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5223$as_echo "none needed" >&6; } ;;
5224 xno)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5226$as_echo "unsupported" >&6; } ;;
5227 *)
5228 CC="$CC $ac_cv_prog_cc_c89"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5230$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5231esac
5232if test "x$ac_cv_prog_cc_c89" != xno; then :
5233
5234fi
5235
5236ac_ext=c
5237ac_cpp='$CPP $CPPFLAGS'
5238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241DEPDIR="${am__leading_dot}deps"
5242
5243ac_config_commands="$ac_config_commands depfiles"
5244
5245
5246am_make=${MAKE-make}
5247cat > confinc << 'END'
5248am__doit:
5249 @echo this is the am__doit target
5250.PHONY: am__doit
5251END
5252# If we don't find an include directive, just comment out the code.
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5254$as_echo_n "checking for style of include used by $am_make... " >&6; }
5255am__include="#"
5256am__quote=
5257_am_result=none
5258# First try GNU make style include.
5259echo "include confinc" > confmf
5260# Ignore all kinds of additional output from `make'.
5261case `$am_make -s -f confmf 2> /dev/null` in #(
5262*the\ am__doit\ target*)
5263 am__include=include
5264 am__quote=
5265 _am_result=GNU
5266 ;;
5267esac
5268# Now try BSD make style include.
5269if test "$am__include" = "#"; then
5270 echo '.include "confinc"' > confmf
5271 case `$am_make -s -f confmf 2> /dev/null` in #(
5272 *the\ am__doit\ target*)
5273 am__include=.include
5274 am__quote="\""
5275 _am_result=BSD
5276 ;;
5277 esac
5278fi
5279
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5282$as_echo "$_am_result" >&6; }
5283rm -f confinc confmf
5284
5285# Check whether --enable-dependency-tracking was given.
5286if test "${enable_dependency_tracking+set}" = set; then :
5287 enableval=$enable_dependency_tracking;
5288fi
5289
5290if test "x$enable_dependency_tracking" != xno; then
5291 am_depcomp="$ac_aux_dir/depcomp"
5292 AMDEPBACKSLASH='\'
5293fi
5294 if test "x$enable_dependency_tracking" != xno; then
5295 AMDEP_TRUE=
5296 AMDEP_FALSE='#'
5297else
5298 AMDEP_TRUE='#'
5299 AMDEP_FALSE=
5300fi
5301
5302
5303
5304depcc="$CC" am_compiler_list=
5305
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5307$as_echo_n "checking dependency style of $depcc... " >&6; }
d6974efa 5308if ${am_cv_CC_dependencies_compiler_type+:} false; then :
743c80a7
PE
5309 $as_echo_n "(cached) " >&6
5310else
5311 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5312 # We make a subdir and do the tests there. Otherwise we can end up
5313 # making bogus files that we don't know about and never remove. For
5314 # instance it was reported that on HP-UX the gcc test will end up
5315 # making a dummy file named `D' -- because `-MD' means `put the output
5316 # in D'.
5317 mkdir conftest.dir
5318 # Copy depcomp to subdir because otherwise we won't find it if we're
5319 # using a relative directory.
5320 cp "$am_depcomp" conftest.dir
5321 cd conftest.dir
5322 # We will build objects and dependencies in a subdirectory because
5323 # it helps to detect inapplicable dependency modes. For instance
5324 # both Tru64's cc and ICC support -MD to output dependencies as a
5325 # side effect of compilation, but ICC will put the dependencies in
5326 # the current directory while Tru64 will put them in the object
5327 # directory.
5328 mkdir sub
5329
5330 am_cv_CC_dependencies_compiler_type=none
5331 if test "$am_compiler_list" = ""; then
5332 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5333 fi
5334 am__universal=false
5335 case " $depcc " in #(
5336 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5337 esac
5338
5339 for depmode in $am_compiler_list; do
5340 # Setup a source with many dependencies, because some compilers
5341 # like to wrap large dependency lists on column 80 (with \), and
5342 # we should not choose a depcomp mode which is confused by this.
5343 #
5344 # We need to recreate these files for each test, as the compiler may
5345 # overwrite some of them when testing with obscure command lines.
5346 # This happens at least with the AIX C compiler.
5347 : > sub/conftest.c
5348 for i in 1 2 3 4 5 6; do
5349 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5350 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5351 # Solaris 8's {/usr,}/bin/sh.
5352 touch sub/conftst$i.h
5353 done
5354 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5355
5356 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5357 # mode. It turns out that the SunPro C++ compiler does not properly
5358 # handle `-M -o', and we need to detect this. Also, some Intel
5359 # versions had trouble with output in subdirs
5360 am__obj=sub/conftest.${OBJEXT-o}
5361 am__minus_obj="-o $am__obj"
5362 case $depmode in
5363 gcc)
5364 # This depmode causes a compiler race in universal mode.
5365 test "$am__universal" = false || continue
5366 ;;
5367 nosideeffect)
5368 # after this tag, mechanisms are not by side-effect, so they'll
5369 # only be used when explicitly requested
5370 if test "x$enable_dependency_tracking" = xyes; then
5371 continue
5372 else
5373 break
5374 fi
5375 ;;
5376 msvisualcpp | msvcmsys)
5377 # This compiler won't grok `-c -o', but also, the minuso test has
5378 # not run yet. These depmodes are late enough in the game, and
5379 # so weak that their functioning should not be impacted.
5380 am__obj=conftest.${OBJEXT-o}
5381 am__minus_obj=
5382 ;;
5383 none) break ;;
5384 esac
5385 if depmode=$depmode \
5386 source=sub/conftest.c object=$am__obj \
5387 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5388 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5389 >/dev/null 2>conftest.err &&
5390 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5391 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5392 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5393 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5394 # icc doesn't choke on unknown options, it will just issue warnings
5395 # or remarks (even with -Werror). So we grep stderr for any message
5396 # that says an option was ignored or not supported.
5397 # When given -MP, icc 7.0 and 7.1 complain thusly:
5398 # icc: Command line warning: ignoring option '-M'; no argument required
5399 # The diagnosis changed in icc 8.0:
5400 # icc: Command line remark: option '-MP' not supported
5401 if (grep 'ignoring option' conftest.err ||
5402 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5403 am_cv_CC_dependencies_compiler_type=$depmode
5404 break
5405 fi
5406 fi
5407 done
5408
5409 cd ..
5410 rm -rf conftest.dir
5411else
5412 am_cv_CC_dependencies_compiler_type=none
5413fi
5414
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5417$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5418CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5419
5420 if
5421 test "x$enable_dependency_tracking" != xno \
5422 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5423 am__fastdepCC_TRUE=
5424 am__fastdepCC_FALSE='#'
5425else
5426 am__fastdepCC_TRUE='#'
5427 am__fastdepCC_FALSE=
5428fi
5429
5430
5431if test "x$CC" != xcc; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5433$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5434else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5436$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5437fi
5438set dummy $CC; ac_cc=`$as_echo "$2" |
5439 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
d6974efa 5440if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
743c80a7
PE
5441 $as_echo_n "(cached) " >&6
5442else
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h. */
5445
5446int
5447main ()
5448{
5449
5450 ;
5451 return 0;
5452}
5453_ACEOF
5454# Make sure it works both with $CC and with simple cc.
5455# We do the test twice because some compilers refuse to overwrite an
5456# existing .o file with -o, though they will create one.
5457ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5458rm -f conftest2.*
5459if { { case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5464$as_echo "$ac_try_echo"; } >&5
5465 (eval "$ac_try") 2>&5
5466 ac_status=$?
5467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468 test $ac_status = 0; } &&
5469 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472esac
5473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5474$as_echo "$ac_try_echo"; } >&5
5475 (eval "$ac_try") 2>&5
5476 ac_status=$?
5477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5478 test $ac_status = 0; };
5479then
5480 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5481 if test "x$CC" != xcc; then
5482 # Test first that cc exists at all.
5483 if { ac_try='cc -c conftest.$ac_ext >&5'
5484 { { case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5489$as_echo "$ac_try_echo"; } >&5
5490 (eval "$ac_try") 2>&5
5491 ac_status=$?
5492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5493 test $ac_status = 0; }; }; then
5494 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5495 rm -f conftest2.*
5496 if { { case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499esac
5500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5501$as_echo "$ac_try_echo"; } >&5
5502 (eval "$ac_try") 2>&5
5503 ac_status=$?
5504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5505 test $ac_status = 0; } &&
5506 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509esac
5510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5511$as_echo "$ac_try_echo"; } >&5
5512 (eval "$ac_try") 2>&5
5513 ac_status=$?
5514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5515 test $ac_status = 0; };
5516 then
5517 # cc works too.
5518 :
5519 else
5520 # cc exists but doesn't like -o.
5521 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5522 fi
5523 fi
5524 fi
5525else
5526 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5527fi
5528rm -f core conftest*
5529
5530fi
5531if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5533$as_echo "yes" >&6; }
5534else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536$as_echo "no" >&6; }
5537
5538$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5539
5540fi
5541
5542# FIXME: we rely on the cache variable name because
5543# there is no other way.
5544set dummy $CC
5545am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5546eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5547if test "$am_t" != yes; then
5548 # Losing compiler, so override with the script.
5549 # FIXME: It is wrong to rewrite CC.
5550 # But if we don't then we get into trouble of one sort or another.
5551 # A longer-term fix would be to have automake use am__CC in this case,
5552 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5553 CC="$am_aux_dir/compile $CC"
5554fi
5555
5556
5557
5558# Initialize gnulib right after verifying that the C compiler works.
5559if test -n "$ac_tool_prefix"; then
5560 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5561set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5564if ${ac_cv_prog_RANLIB+:} false; then :
743c80a7
PE
5565 $as_echo_n "(cached) " >&6
5566else
5567 if test -n "$RANLIB"; then
5568 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581done
5582 done
5583IFS=$as_save_IFS
5584
5585fi
5586fi
5587RANLIB=$ac_cv_prog_RANLIB
5588if test -n "$RANLIB"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5590$as_echo "$RANLIB" >&6; }
5591else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593$as_echo "no" >&6; }
5594fi
5595
5596
5597fi
5598if test -z "$ac_cv_prog_RANLIB"; then
5599 ac_ct_RANLIB=$RANLIB
5600 # Extract the first word of "ranlib", so it can be a program name with args.
5601set dummy ranlib; ac_word=$2
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5604if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
743c80a7
PE
5605 $as_echo_n "(cached) " >&6
5606else
5607 if test -n "$ac_ct_RANLIB"; then
5608 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_prog_ac_ct_RANLIB="ranlib"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621done
5622 done
5623IFS=$as_save_IFS
067d23c9
KY
5624
5625fi
743c80a7
PE
5626fi
5627ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5628if test -n "$ac_ct_RANLIB"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5630$as_echo "$ac_ct_RANLIB" >&6; }
5631else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634fi
067d23c9 5635
743c80a7
PE
5636 if test "x$ac_ct_RANLIB" = x; then
5637 RANLIB=":"
5638 else
5639 case $cross_compiling:$ac_tool_warned in
5640yes:)
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5643ac_tool_warned=yes ;;
5644esac
5645 RANLIB=$ac_ct_RANLIB
5646 fi
5647else
5648 RANLIB="$ac_cv_prog_RANLIB"
067d23c9
KY
5649fi
5650
743c80a7 5651
067d23c9
KY
5652ac_ext=c
5653ac_cpp='$CPP $CPPFLAGS'
5654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5656ac_compiler_gnu=$ac_cv_c_compiler_gnu
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5658$as_echo_n "checking how to run the C preprocessor... " >&6; }
5659# On Suns, sometimes $CPP names a directory.
5660if test -n "$CPP" && test -d "$CPP"; then
5661 CPP=
5662fi
5663if test -z "$CPP"; then
d6974efa 5664 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
5665 $as_echo_n "(cached) " >&6
5666else
5667 # Double quotes because CPP needs to be expanded
5668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5669 do
5670 ac_preproc_ok=false
5671for ac_c_preproc_warn_flag in '' yes
5672do
5673 # Use a header file that comes with gcc, so configuring glibc
5674 # with a fresh cross-compiler works.
5675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5676 # <limits.h> exists even on freestanding compilers.
5677 # On the NeXT, cc -E runs the code through the compiler's parser,
5678 # not just through cpp. "Syntax error" is here to catch this case.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681#ifdef __STDC__
5682# include <limits.h>
5683#else
5684# include <assert.h>
5685#endif
5686 Syntax error
5687_ACEOF
5688if ac_fn_c_try_cpp "$LINENO"; then :
5689
5690else
5691 # Broken: fails on valid input.
5692continue
5693fi
2018939f 5694rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5695
5696 # OK, works on sane cases. Now check whether nonexistent headers
5697 # can be detected and how.
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699/* end confdefs.h. */
5700#include <ac_nonexistent.h>
5701_ACEOF
5702if ac_fn_c_try_cpp "$LINENO"; then :
5703 # Broken: success on invalid input.
5704continue
5705else
5706 # Passes both tests.
5707ac_preproc_ok=:
5708break
5709fi
2018939f 5710rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5711
5712done
5713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5714rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5715if $ac_preproc_ok; then :
5716 break
5717fi
5718
5719 done
5720 ac_cv_prog_CPP=$CPP
5721
5722fi
5723 CPP=$ac_cv_prog_CPP
5724else
5725 ac_cv_prog_CPP=$CPP
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5728$as_echo "$CPP" >&6; }
5729ac_preproc_ok=false
5730for ac_c_preproc_warn_flag in '' yes
5731do
5732 # Use a header file that comes with gcc, so configuring glibc
5733 # with a fresh cross-compiler works.
5734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5735 # <limits.h> exists even on freestanding compilers.
5736 # On the NeXT, cc -E runs the code through the compiler's parser,
5737 # not just through cpp. "Syntax error" is here to catch this case.
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h. */
5740#ifdef __STDC__
5741# include <limits.h>
5742#else
5743# include <assert.h>
5744#endif
5745 Syntax error
5746_ACEOF
5747if ac_fn_c_try_cpp "$LINENO"; then :
5748
5749else
5750 # Broken: fails on valid input.
5751continue
5752fi
2018939f 5753rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5754
5755 # OK, works on sane cases. Now check whether nonexistent headers
5756 # can be detected and how.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h. */
5759#include <ac_nonexistent.h>
5760_ACEOF
5761if ac_fn_c_try_cpp "$LINENO"; then :
5762 # Broken: success on invalid input.
5763continue
5764else
5765 # Passes both tests.
5766ac_preproc_ok=:
5767break
5768fi
2018939f 5769rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5770
5771done
5772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5773rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5774if $ac_preproc_ok; then :
5775
5776else
5777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 5779as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 5780See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5781fi
5782
5783ac_ext=c
5784ac_cpp='$CPP $CPPFLAGS'
5785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788
5789
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5791$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d6974efa 5792if ${ac_cv_path_GREP+:} false; then :
067d23c9
KY
5793 $as_echo_n "(cached) " >&6
5794else
5795 if test -z "$GREP"; then
5796 ac_path_GREP_found=false
5797 # Loop through the user's path and test for each of PROGNAME-LIST
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_prog in grep ggrep; do
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5806 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5807# Check for GNU ac_path_GREP and select it if it is found.
5808 # Check for GNU $ac_path_GREP
5809case `"$ac_path_GREP" --version 2>&1` in
5810*GNU*)
5811 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5812*)
5813 ac_count=0
5814 $as_echo_n 0123456789 >"conftest.in"
5815 while :
5816 do
5817 cat "conftest.in" "conftest.in" >"conftest.tmp"
5818 mv "conftest.tmp" "conftest.in"
5819 cp "conftest.in" "conftest.nl"
5820 $as_echo 'GREP' >> "conftest.nl"
5821 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5823 as_fn_arith $ac_count + 1 && ac_count=$as_val
5824 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5825 # Best one so far, save it but keep looking for a better one
5826 ac_cv_path_GREP="$ac_path_GREP"
5827 ac_path_GREP_max=$ac_count
5828 fi
5829 # 10*(2^10) chars as input seems more than enough
5830 test $ac_count -gt 10 && break
5831 done
5832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5833esac
5834
5835 $ac_path_GREP_found && break 3
5836 done
5837 done
5838 done
5839IFS=$as_save_IFS
5840 if test -z "$ac_cv_path_GREP"; then
2018939f 5841 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5842 fi
5843else
5844 ac_cv_path_GREP=$GREP
5845fi
5846
5847fi
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5849$as_echo "$ac_cv_path_GREP" >&6; }
5850 GREP="$ac_cv_path_GREP"
5851
5852
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5854$as_echo_n "checking for egrep... " >&6; }
d6974efa 5855if ${ac_cv_path_EGREP+:} false; then :
067d23c9
KY
5856 $as_echo_n "(cached) " >&6
5857else
5858 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5859 then ac_cv_path_EGREP="$GREP -E"
5860 else
5861 if test -z "$EGREP"; then
5862 ac_path_EGREP_found=false
5863 # Loop through the user's path and test for each of PROGNAME-LIST
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_prog in egrep; do
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5872 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5873# Check for GNU ac_path_EGREP and select it if it is found.
5874 # Check for GNU $ac_path_EGREP
5875case `"$ac_path_EGREP" --version 2>&1` in
5876*GNU*)
5877 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5878*)
5879 ac_count=0
5880 $as_echo_n 0123456789 >"conftest.in"
5881 while :
5882 do
5883 cat "conftest.in" "conftest.in" >"conftest.tmp"
5884 mv "conftest.tmp" "conftest.in"
5885 cp "conftest.in" "conftest.nl"
5886 $as_echo 'EGREP' >> "conftest.nl"
5887 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5889 as_fn_arith $ac_count + 1 && ac_count=$as_val
5890 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5891 # Best one so far, save it but keep looking for a better one
5892 ac_cv_path_EGREP="$ac_path_EGREP"
5893 ac_path_EGREP_max=$ac_count
5894 fi
5895 # 10*(2^10) chars as input seems more than enough
5896 test $ac_count -gt 10 && break
5897 done
5898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5899esac
5900
5901 $ac_path_EGREP_found && break 3
5902 done
5903 done
5904 done
5905IFS=$as_save_IFS
5906 if test -z "$ac_cv_path_EGREP"; then
2018939f 5907 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5908 fi
5909else
5910 ac_cv_path_EGREP=$EGREP
5911fi
5912
5913 fi
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5916$as_echo "$ac_cv_path_EGREP" >&6; }
5917 EGREP="$ac_cv_path_EGREP"
5918
5919
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5921$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 5922if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
5923 $as_echo_n "(cached) " >&6
5924else
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h. */
5927#include <stdlib.h>
5928#include <stdarg.h>
5929#include <string.h>
5930#include <float.h>
5931
5932int
5933main ()
5934{
5935
5936 ;
5937 return 0;
5938}
5939_ACEOF
5940if ac_fn_c_try_compile "$LINENO"; then :
5941 ac_cv_header_stdc=yes
5942else
5943 ac_cv_header_stdc=no
5944fi
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946
5947if test $ac_cv_header_stdc = yes; then
5948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h. */
5951#include <string.h>
5952
5953_ACEOF
5954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955 $EGREP "memchr" >/dev/null 2>&1; then :
5956
5957else
5958 ac_cv_header_stdc=no
5959fi
5960rm -f conftest*
5961
5962fi
5963
5964if test $ac_cv_header_stdc = yes; then
5965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h. */
5968#include <stdlib.h>
5969
5970_ACEOF
5971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5972 $EGREP "free" >/dev/null 2>&1; then :
5973
5974else
5975 ac_cv_header_stdc=no
5976fi
5977rm -f conftest*
5978
5979fi
5980
5981if test $ac_cv_header_stdc = yes; then
5982 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5983 if test "$cross_compiling" = yes; then :
5984 :
5985else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h. */
5988#include <ctype.h>
5989#include <stdlib.h>
5990#if ((' ' & 0x0FF) == 0x020)
5991# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5992# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5993#else
5994# define ISLOWER(c) \
5995 (('a' <= (c) && (c) <= 'i') \
5996 || ('j' <= (c) && (c) <= 'r') \
5997 || ('s' <= (c) && (c) <= 'z'))
5998# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5999#endif
6000
6001#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6002int
6003main ()
6004{
6005 int i;
6006 for (i = 0; i < 256; i++)
6007 if (XOR (islower (i), ISLOWER (i))
6008 || toupper (i) != TOUPPER (i))
6009 return 2;
6010 return 0;
6011}
6012_ACEOF
6013if ac_fn_c_try_run "$LINENO"; then :
6014
6015else
6016 ac_cv_header_stdc=no
6017fi
6018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6019 conftest.$ac_objext conftest.beam conftest.$ac_ext
6020fi
6021
6022fi
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6025$as_echo "$ac_cv_header_stdc" >&6; }
6026if test $ac_cv_header_stdc = yes; then
6027
6028$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6029
6030fi
6031
6032# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6033for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6034 inttypes.h stdint.h unistd.h
6035do :
6036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6037ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6038"
2018939f 6039if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
6040 cat >>confdefs.h <<_ACEOF
6041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6042_ACEOF
6043
6044fi
6045
6046done
6047
6048
6049
1fd182f0
PE
6050
6051
067d23c9 6052 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d6974efa 6053if test "x$ac_cv_header_minix_config_h" = xyes; then :
067d23c9
KY
6054 MINIX=yes
6055else
6056 MINIX=
6057fi
6058
6059
6060 if test "$MINIX" = yes; then
6061
6062$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6063
6064
6065$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6066
6067
6068$as_echo "#define _MINIX 1" >>confdefs.h
6069
6070 fi
6071
1fd182f0
PE
6072 case "$host_os" in
6073 hpux*)
6074
6075$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6076
6077 ;;
6078 esac
6079
067d23c9
KY
6080
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6082$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d6974efa 6083if ${ac_cv_safe_to_define___extensions__+:} false; then :
067d23c9
KY
6084 $as_echo_n "(cached) " >&6
6085else
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h. */
6088
1fd182f0
PE
6089# define __EXTENSIONS__ 1
6090 $ac_includes_default
067d23c9
KY
6091int
6092main ()
6093{
6094
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099if ac_fn_c_try_compile "$LINENO"; then :
6100 ac_cv_safe_to_define___extensions__=yes
6101else
6102 ac_cv_safe_to_define___extensions__=no
6103fi
6104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105fi
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6107$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6108 test $ac_cv_safe_to_define___extensions__ = yes &&
6109 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6110
6111 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6112
6113 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6114
6115 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6116
6117 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6118
6119
6120
1fd182f0
PE
6121
6122
6123
6124
6125
6126
6127
6128 # Code from module arg-nonnull:
6129 # Code from module c++defs:
942f733f 6130 # Code from module crypto/md5:
36f13e16 6131 # Code from module dosname:
f737437b 6132 # Code from module dtoastr:
1fd182f0
PE
6133 # Code from module extensions:
6134
5fa4ac76 6135 # Code from module filemode:
1f5d53eb 6136 # Code from module getloadavg:
e275c824
PE
6137 # Code from module getopt-gnu:
6138 # Code from module getopt-posix:
6139 # Code from module gettext-h:
67342916 6140 # Code from module ignore-value:
1fd182f0
PE
6141 # Code from module include_next:
6142 # Code from module intprops:
ae0d7250 6143 # Code from module lstat:
1fd182f0
PE
6144 # Code from module mktime:
6145 # Code from module multiarch:
ae0d7250
PE
6146 # Code from module readlink:
6147 # Code from module stat:
16c3e636 6148 # Code from module stdbool:
1fd182f0 6149 # Code from module stddef:
5f90be1b 6150 # Code from module stdint:
1f5d53eb 6151 # Code from module stdlib:
16c3e636 6152 # Code from module strftime:
ae0d7250 6153 # Code from module symlink:
5fa4ac76 6154 # Code from module sys_stat:
1fd182f0
PE
6155 # Code from module time:
6156 # Code from module time_r:
e275c824 6157 # Code from module unistd:
1fd182f0
PE
6158 # Code from module warn-on-use:
6159
6160
6161# On Suns, sometimes $CPP names a directory.
6162if test -n "$CPP" && test -d "$CPP"; then
6163 CPP=
6164fi
6165
6166## If not using gcc, and on Solaris, and no CPP specified, see if
6167## using a Sun compiler, which needs -Xs to prevent whitespace.
6168if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6169 test x"$CPP" = x; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6171$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
d6974efa 6172 if ${emacs_cv_sunpro_c+:} false; then :
1fd182f0
PE
6173 $as_echo_n "(cached) " >&6
6174else
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176/* end confdefs.h. */
6177
6178int
6179main ()
6180{
6181#ifndef __SUNPRO_C
6182fail;
6183#endif
6184
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189if ac_fn_c_try_link "$LINENO"; then :
6190 emacs_cv_sunpro_c=yes
6191else
6192 emacs_cv_sunpro_c=no
6193fi
6194rm -f core conftest.err conftest.$ac_objext \
6195 conftest$ac_exeext conftest.$ac_ext
6196fi
6197
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6199$as_echo "$emacs_cv_sunpro_c" >&6; }
6200
6201 if test x"$emacs_cv_sunpro_c" = xyes; then
6202 NON_GNU_CPP="$CC -E -Xs"
6203 fi
6204fi
6205
6206#### Some systems specify a CPP to use unless we are using GCC.
6207#### Now that we know whether we are using GCC, we can decide whether
6208#### to use that one.
6209if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6210then
6211 CPP="$NON_GNU_CPP"
6212fi
6213
6214#### Some systems specify a CC to use unless we are using GCC.
6215#### Now that we know whether we are using GCC, we can decide whether
6216#### to use that one.
6217if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6218 test x$cc_specified != xyes
6219then
6220 CC="$NON_GNU_CC"
6221fi
6222
6223if test x$GCC = xyes; then
6224 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6225else
6226 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6227fi
6228
067d23c9
KY
6229### Use -Wdeclaration-after-statement if the compiler supports it
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6231$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6232SAVE_CFLAGS="$CFLAGS"
6233CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h. */
6236
6237int
6238main ()
6239{
6240
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245if ac_fn_c_try_compile "$LINENO"; then :
6246 has_option=yes
6247else
6248 has_option=no
6249fi
6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251if test $has_option = yes; then
6252 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6255$as_echo "$has_option" >&6; }
6256CFLAGS="$SAVE_CFLAGS"
6257unset has_option
6258unset SAVE_CFLAGS
6259
6260### Use -Wold-style-definition if the compiler supports it
6261# This can be removed when conversion to standard C is finished.
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6263$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6264SAVE_CFLAGS="$CFLAGS"
6265CFLAGS="$CFLAGS -Wold-style-definition"
6266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h. */
6268
6269int
6270main ()
6271{
6272
6273 ;
6274 return 0;
6275}
6276_ACEOF
6277if ac_fn_c_try_compile "$LINENO"; then :
6278 has_option=yes
6279else
6280 has_option=no
6281fi
6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283if test $has_option = yes; then
6284 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6285fi
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6287$as_echo "$has_option" >&6; }
6288CFLAGS="$SAVE_CFLAGS"
6289unset has_option
6290unset SAVE_CFLAGS
6291
6292### Use -Wimplicit-function-declaration if the compiler supports it
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6294$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6295SAVE_CFLAGS="$CFLAGS"
6296CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h. */
6299
6300int
6301main ()
6302{
6303
6304 ;
6305 return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_compile "$LINENO"; then :
6309 has_option=yes
6310else
6311 has_option=no
6312fi
6313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314if test $has_option = yes; then
6315 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6316fi
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6318$as_echo "$has_option" >&6; }
6319CFLAGS="$SAVE_CFLAGS"
6320unset has_option
6321unset SAVE_CFLAGS
6322
6323
6324
6325
6326#### Some other nice autoconf tests.
6327
6328ac_ext=c
6329ac_cpp='$CPP $CPPFLAGS'
6330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6334$as_echo_n "checking how to run the C preprocessor... " >&6; }
6335# On Suns, sometimes $CPP names a directory.
6336if test -n "$CPP" && test -d "$CPP"; then
6337 CPP=
6338fi
6339if test -z "$CPP"; then
d6974efa 6340 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
6341 $as_echo_n "(cached) " >&6
6342else
6343 # Double quotes because CPP needs to be expanded
6344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6345 do
6346 ac_preproc_ok=false
6347for ac_c_preproc_warn_flag in '' yes
6348do
6349 # Use a header file that comes with gcc, so configuring glibc
6350 # with a fresh cross-compiler works.
6351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6352 # <limits.h> exists even on freestanding compilers.
6353 # On the NeXT, cc -E runs the code through the compiler's parser,
6354 # not just through cpp. "Syntax error" is here to catch this case.
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h. */
6357#ifdef __STDC__
6358# include <limits.h>
6359#else
6360# include <assert.h>
6361#endif
6362 Syntax error
6363_ACEOF
6364if ac_fn_c_try_cpp "$LINENO"; then :
6365
6366else
6367 # Broken: fails on valid input.
6368continue
6369fi
2018939f 6370rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6371
6372 # OK, works on sane cases. Now check whether nonexistent headers
6373 # can be detected and how.
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375/* end confdefs.h. */
6376#include <ac_nonexistent.h>
6377_ACEOF
6378if ac_fn_c_try_cpp "$LINENO"; then :
6379 # Broken: success on invalid input.
6380continue
6381else
6382 # Passes both tests.
6383ac_preproc_ok=:
6384break
6385fi
2018939f 6386rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6387
6388done
6389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6390rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6391if $ac_preproc_ok; then :
6392 break
6393fi
6394
6395 done
6396 ac_cv_prog_CPP=$CPP
6397
6398fi
6399 CPP=$ac_cv_prog_CPP
6400else
6401 ac_cv_prog_CPP=$CPP
6402fi
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6404$as_echo "$CPP" >&6; }
6405ac_preproc_ok=false
6406for ac_c_preproc_warn_flag in '' yes
6407do
6408 # Use a header file that comes with gcc, so configuring glibc
6409 # with a fresh cross-compiler works.
6410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6411 # <limits.h> exists even on freestanding compilers.
6412 # On the NeXT, cc -E runs the code through the compiler's parser,
6413 # not just through cpp. "Syntax error" is here to catch this case.
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415/* end confdefs.h. */
6416#ifdef __STDC__
6417# include <limits.h>
6418#else
6419# include <assert.h>
6420#endif
6421 Syntax error
6422_ACEOF
6423if ac_fn_c_try_cpp "$LINENO"; then :
6424
6425else
6426 # Broken: fails on valid input.
6427continue
6428fi
2018939f 6429rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6430
6431 # OK, works on sane cases. Now check whether nonexistent headers
6432 # can be detected and how.
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h. */
6435#include <ac_nonexistent.h>
6436_ACEOF
6437if ac_fn_c_try_cpp "$LINENO"; then :
6438 # Broken: success on invalid input.
6439continue
6440else
6441 # Passes both tests.
6442ac_preproc_ok=:
6443break
6444fi
2018939f 6445rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6446
6447done
6448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6449rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6450if $ac_preproc_ok; then :
6451
6452else
6453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 6455as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 6456See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
6457fi
6458
6459ac_ext=c
6460ac_cpp='$CPP $CPPFLAGS'
6461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463ac_compiler_gnu=$ac_cv_c_compiler_gnu
6464
067d23c9
KY
6465
6466if test "x$RANLIB" = x; then
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6469set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6472if ${ac_cv_prog_RANLIB+:} false; then :
067d23c9
KY
6473 $as_echo_n "(cached) " >&6
6474else
6475 if test -n "$RANLIB"; then
6476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6477else
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490 done
6491IFS=$as_save_IFS
6492
6493fi
6494fi
6495RANLIB=$ac_cv_prog_RANLIB
6496if test -n "$RANLIB"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6498$as_echo "$RANLIB" >&6; }
6499else
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501$as_echo "no" >&6; }
6502fi
6503
6504
6505fi
6506if test -z "$ac_cv_prog_RANLIB"; then
6507 ac_ct_RANLIB=$RANLIB
6508 # Extract the first word of "ranlib", so it can be a program name with args.
6509set dummy ranlib; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6512if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
067d23c9
KY
6513 $as_echo_n "(cached) " >&6
6514else
6515 if test -n "$ac_ct_RANLIB"; then
6516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_ac_ct_RANLIB="ranlib"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530 done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6536if test -n "$ac_ct_RANLIB"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6538$as_echo "$ac_ct_RANLIB" >&6; }
6539else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; }
6542fi
6543
6544 if test "x$ac_ct_RANLIB" = x; then
6545 RANLIB=":"
6546 else
6547 case $cross_compiling:$ac_tool_warned in
6548yes:)
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551ac_tool_warned=yes ;;
6552esac
6553 RANLIB=$ac_ct_RANLIB
6554 fi
6555else
6556 RANLIB="$ac_cv_prog_RANLIB"
6557fi
6558
6559fi
6560
6561## Although we're running on an amd64 kernel, we're actually compiling for
6562## the x86 architecture. The user should probably have provided an
6563## explicit --build to `configure', but if everything else than the kernel
6564## is running in i386 mode, we can help them out.
6565if test "$machine" = "amdx86-64"; then
6566 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
d6974efa 6567if test "x$ac_cv_have_decl_i386" = xyes; then :
067d23c9
KY
6568
6569fi
6570
6571 if test "$ac_cv_have_decl_i386" = "yes"; then
6572 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6573 machine=intel386
6574 machfile="m/${machine}.h"
6575 fi
6576fi
6577
6578# Extract the first word of "install-info", so it can be a program name with args.
6579set dummy install-info; ac_word=$2
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6582if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6583 $as_echo_n "(cached) " >&6
6584else
6585 case $INSTALL_INFO in
6586 [\\/]* | ?:[\\/]*)
6587 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6588 ;;
6589 *)
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602 done
6603IFS=$as_save_IFS
6604
6605 ;;
6606esac
6607fi
6608INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6609if test -n "$INSTALL_INFO"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6611$as_echo "$INSTALL_INFO" >&6; }
6612else
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614$as_echo "no" >&6; }
6615fi
6616
6617
6618# Extract the first word of "install-info", so it can be a program name with args.
6619set dummy install-info; ac_word=$2
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6622if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6623 $as_echo_n "(cached) " >&6
6624else
6625 case $INSTALL_INFO in
6626 [\\/]* | ?:[\\/]*)
6627 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6628 ;;
6629 *)
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in /usr/sbin
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641done
6642 done
6643IFS=$as_save_IFS
6644
6645 ;;
6646esac
6647fi
6648INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6649if test -n "$INSTALL_INFO"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6651$as_echo "$INSTALL_INFO" >&6; }
6652else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654$as_echo "no" >&6; }
6655fi
6656
6657
6658# Extract the first word of "install-info", so it can be a program name with args.
6659set dummy install-info; ac_word=$2
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6662if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6663 $as_echo_n "(cached) " >&6
6664else
6665 case $INSTALL_INFO in
6666 [\\/]* | ?:[\\/]*)
6667 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6668 ;;
6669 *)
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in /sbin
6672do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681done
6682 done
6683IFS=$as_save_IFS
6684
6685 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6686 ;;
6687esac
6688fi
6689INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6690if test -n "$INSTALL_INFO"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6692$as_echo "$INSTALL_INFO" >&6; }
6693else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695$as_echo "no" >&6; }
6696fi
6697
6698
6699# Extract the first word of "gzip", so it can be a program name with args.
6700set dummy gzip; ac_word=$2
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6703if ${ac_cv_path_GZIP_PROG+:} false; then :
067d23c9
KY
6704 $as_echo_n "(cached) " >&6
6705else
6706 case $GZIP_PROG in
6707 [\\/]* | ?:[\\/]*)
6708 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6709 ;;
6710 *)
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722done
6723 done
6724IFS=$as_save_IFS
6725
6726 ;;
6727esac
6728fi
6729GZIP_PROG=$ac_cv_path_GZIP_PROG
6730if test -n "$GZIP_PROG"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6732$as_echo "$GZIP_PROG" >&6; }
6733else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735$as_echo "no" >&6; }
6736fi
6737
6738
6739
6740
6741## Need makeinfo >= 4.6 (?) to build the manuals.
6742# Extract the first word of "makeinfo", so it can be a program name with args.
6743set dummy makeinfo; ac_word=$2
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6746if ${ac_cv_path_MAKEINFO+:} false; then :
067d23c9
KY
6747 $as_echo_n "(cached) " >&6
6748else
6749 case $MAKEINFO in
6750 [\\/]* | ?:[\\/]*)
6751 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6752 ;;
6753 *)
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765done
6766 done
6767IFS=$as_save_IFS
6768
6769 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6770 ;;
6771esac
6772fi
6773MAKEINFO=$ac_cv_path_MAKEINFO
6774if test -n "$MAKEINFO"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6776$as_echo "$MAKEINFO" >&6; }
6777else
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779$as_echo "no" >&6; }
6780fi
6781
6782
6783if test "$MAKEINFO" != "no" && \
6784 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
6785 MAKEINFO=no
6786fi
6787
6788## Makeinfo is unusual. For a released Emacs, the manuals are
6789## pre-built, and not deleted by the normal clean rules. makeinfo is
6790## therefore in the category of "special tools" not normally required, which
6791## configure does not have to check for (eg autoconf itself).
6792## In a Bazaar checkout on the other hand, the manuals are not included.
6793## So makeinfo is a requirement to build from Bazaar, and configure
6794## should test for it as it does for any other build requirement.
6795## We use the presence of $srcdir/info/emacs to distinguish a release,
6796## with pre-built manuals, from a Bazaar checkout.
96f129d5
GM
6797HAVE_MAKEINFO=yes
6798
067d23c9 6799if test "$MAKEINFO" = "no"; then
96f129d5 6800 MAKEINFO=makeinfo
067d23c9 6801 if test "x${with_makeinfo}" = "xno"; then
96f129d5 6802 HAVE_MAKEINFO=no
067d23c9 6803 elif test ! -e $srcdir/info/emacs; then
2018939f 6804 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
067d23c9
KY
6805source tree does not seem to have pre-built manuals in the \`info' directory.
6806Either install a suitable version of makeinfo, or re-run configure
6807with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6808 fi
6809fi
6810
6811
96f129d5 6812
067d23c9
KY
6813if test x$GCC = xyes; then
6814 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6815 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6816else
6817 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6818 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6819fi
6820
6821
6822late_LDFLAGS=$LDFLAGS
6823if test x$GCC = xyes; then
6824 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6825else
6826 LDFLAGS="$LDFLAGS -znocombreloc"
6827fi
6828
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6830$as_echo_n "checking for -znocombreloc... " >&6; }
6831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h. */
6833
6834int
6835main ()
6836{
6837
6838 ;
6839 return 0;
6840}
6841_ACEOF
6842if ac_fn_c_try_link "$LINENO"; then :
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6844$as_echo "yes" >&6; }
6845else
6846 LDFLAGS=$late_LDFLAGS
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848$as_echo "no" >&6; }
6849fi
6850rm -f core conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852
6853
6854# The value of CPP is a quoted variable reference, so we need to do this
6855# to get its actual value...
6856CPP=`eval "echo $CPP"`
6857
6858
125c3718 6859test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
067d23c9 6860case "$opsys" in
125c3718
PE
6861 your-opsys-here) CANNOT_DUMP=yes ;;
6862esac
6863
6864test "$CANNOT_DUMP" = "yes" && \
067d23c9
KY
6865
6866$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6867
125c3718 6868
067d23c9
KY
6869
6870
6871
6872UNEXEC_OBJ=unexelf.o
6873case "$opsys" in
6874 # MSDOS uses unexcoff.o
6875 # MSWindows uses unexw32.o
6876 aix4-2)
6877 UNEXEC_OBJ=unexaix.o
6878 ;;
6879 cygwin)
6880 UNEXEC_OBJ=unexcw.o
6881 ;;
6882 darwin)
6883 UNEXEC_OBJ=unexmacosx.o
6884 ;;
6885 hpux10-20 | hpux11)
6886 UNEXEC_OBJ=unexhp9k800.o
6887 ;;
6888 sol2-10)
6889 # Use the Solaris dldump() function, called from unexsol.c, to dump
6890 # emacs, instead of the generic ELF dump code found in unexelf.c.
6891 # The resulting binary has a complete symbol table, and is better
6892 # for debugging and other observability tools (debuggers, pstack, etc).
6893 #
6894 # If you encounter a problem using dldump(), please consider sending
6895 # a message to the OpenSolaris tools-linking mailing list:
6896 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6897 #
6898 # It is likely that dldump() works with older Solaris too, but this has
6899 # not been tested, so for now this change is for Solaris 10 or newer.
6900 UNEXEC_OBJ=unexsol.o
6901 ;;
6902esac
6903
6904LD_SWITCH_SYSTEM=
6905case "$opsys" in
6906 freebsd)
6907 ## Let `ld' find image libs and similar things in /usr/local/lib.
6908 ## The system compiler, GCC, has apparently been modified to not
6909 ## look there, contrary to what a stock GCC would do.
6910 LD_SWITCH_SYSTEM=-L/usr/local/lib
6911 ;;
6912
6913 gnu-linux)
6914 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
d6a003a8 6915 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
067d23c9
KY
6916 ;;
6917
6918 netbsd)
6919 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6920 ;;
6921
6922 openbsd)
6923 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6924 ## otherwise Emacs dumps core on elf systems.
6925 LD_SWITCH_SYSTEM="-Z"
6926 ;;
6927esac
6928
6929
6930ac_link="$ac_link $LD_SWITCH_SYSTEM"
6931
6932## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6933## which has not been defined yet. When this was handled with cpp,
6934## it was expanded to null when configure sourced the s/*.h file.
6935## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6936## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6937## (or somesuch), but because it is supposed to go at the _front_
6938## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6939## Compare with the gnu-linux case below, which added to the end
6940## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6941## LD_SWITCH_SYSTEM_TEMACS.
6942case "$opsys" in
6943 netbsd|openbsd)
6944 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6945 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6946esac
6947
6948
6949C_SWITCH_MACHINE=
6950if test "$machine" = "alpha"; then
6951 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
d6974efa 6952if test "x$ac_cv_have_decl___ELF__" = xyes; then :
067d23c9
KY
6953
6954fi
6955
6956 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6957 ## With ELF, make sure that all common symbols get allocated to in the
6958 ## data section. Otherwise, the dump of temacs may miss variables in
6959 ## the shared library that have been initialized. For example, with
6960 ## GNU libc, __malloc_initialized would normally be resolved to the
6961 ## shared library's .bss section, which is fatal.
6962 if test "x$GCC" = "xyes"; then
6963 C_SWITCH_MACHINE="-fno-common"
6964 else
2018939f 6965 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
067d23c9
KY
6966 fi
6967 else
6968 UNEXEC_OBJ=unexalpha.o
6969 fi
6970fi
6971
6972
6973
6974
6975C_SWITCH_SYSTEM=
6976## Some programs in src produce warnings saying certain subprograms
6977## are too complex and need a MAXMEM value greater than 2000 for
6978## additional optimization. --nils@exp-math.uni-essen.de
6979test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6980 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6981## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6982## It is redundant in glibc2, since we define _GNU_SOURCE.
6983
6984
6985
6986LIBS_SYSTEM=
6987case "$opsys" in
6988 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6989 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6990
6991 freebsd) LIBS_SYSTEM="-lutil" ;;
6992
6993 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6994
1f5d53eb 6995 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
067d23c9
KY
6996
6997 ## Motif needs -lgen.
6998 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6999esac
7000
7001
7002
7003### Make sure subsequent tests use flags consistent with the build flags.
7004
7005if test x"${OVERRIDE_CPPFLAGS}" != x; then
7006 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7007else
7008 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7009fi
7010
067d23c9
KY
7011# Check whether --enable-largefile was given.
7012if test "${enable_largefile+set}" = set; then :
7013 enableval=$enable_largefile;
7014fi
7015
7016if test "$enable_largefile" != no; then
7017
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7019$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d6974efa 7020if ${ac_cv_sys_largefile_CC+:} false; then :
067d23c9
KY
7021 $as_echo_n "(cached) " >&6
7022else
7023 ac_cv_sys_largefile_CC=no
7024 if test "$GCC" != yes; then
7025 ac_save_CC=$CC
7026 while :; do
7027 # IRIX 6.2 and later do not support large files by default,
7028 # so use the C compiler's -n32 option if that helps.
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030/* end confdefs.h. */
7031#include <sys/types.h>
7032 /* Check that off_t can represent 2**63 - 1 correctly.
7033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7034 since some C++ compilers masquerading as C compilers
7035 incorrectly reject 9223372036854775807. */
7036#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7038 && LARGE_OFF_T % 2147483647 == 1)
7039 ? 1 : -1];
7040int
7041main ()
7042{
7043
7044 ;
7045 return 0;
7046}
7047_ACEOF
7048 if ac_fn_c_try_compile "$LINENO"; then :
7049 break
7050fi
7051rm -f core conftest.err conftest.$ac_objext
7052 CC="$CC -n32"
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054 ac_cv_sys_largefile_CC=' -n32'; break
7055fi
7056rm -f core conftest.err conftest.$ac_objext
7057 break
7058 done
7059 CC=$ac_save_CC
7060 rm -f conftest.$ac_ext
7061 fi
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7064$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7065 if test "$ac_cv_sys_largefile_CC" != no; then
7066 CC=$CC$ac_cv_sys_largefile_CC
7067 fi
7068
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7070$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d6974efa 7071if ${ac_cv_sys_file_offset_bits+:} false; then :
067d23c9
KY
7072 $as_echo_n "(cached) " >&6
7073else
7074 while :; do
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h. */
7077#include <sys/types.h>
7078 /* Check that off_t can represent 2**63 - 1 correctly.
7079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7080 since some C++ compilers masquerading as C compilers
7081 incorrectly reject 9223372036854775807. */
7082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7084 && LARGE_OFF_T % 2147483647 == 1)
7085 ? 1 : -1];
7086int
7087main ()
7088{
7089
7090 ;
7091 return 0;
7092}
7093_ACEOF
7094if ac_fn_c_try_compile "$LINENO"; then :
7095 ac_cv_sys_file_offset_bits=no; break
7096fi
7097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h. */
7100#define _FILE_OFFSET_BITS 64
7101#include <sys/types.h>
7102 /* Check that off_t can represent 2**63 - 1 correctly.
7103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7104 since some C++ compilers masquerading as C compilers
7105 incorrectly reject 9223372036854775807. */
7106#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7108 && LARGE_OFF_T % 2147483647 == 1)
7109 ? 1 : -1];
7110int
7111main ()
7112{
7113
7114 ;
7115 return 0;
7116}
7117_ACEOF
7118if ac_fn_c_try_compile "$LINENO"; then :
7119 ac_cv_sys_file_offset_bits=64; break
7120fi
7121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 ac_cv_sys_file_offset_bits=unknown
7123 break
7124done
7125fi
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7127$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7128case $ac_cv_sys_file_offset_bits in #(
7129 no | unknown) ;;
7130 *)
7131cat >>confdefs.h <<_ACEOF
7132#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7133_ACEOF
7134;;
7135esac
7136rm -rf conftest*
7137 if test $ac_cv_sys_file_offset_bits = unknown; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7139$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d6974efa 7140if ${ac_cv_sys_large_files+:} false; then :
067d23c9
KY
7141 $as_echo_n "(cached) " >&6
7142else
7143 while :; do
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145/* end confdefs.h. */
7146#include <sys/types.h>
7147 /* Check that off_t can represent 2**63 - 1 correctly.
7148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7149 since some C++ compilers masquerading as C compilers
7150 incorrectly reject 9223372036854775807. */
7151#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7153 && LARGE_OFF_T % 2147483647 == 1)
7154 ? 1 : -1];
7155int
7156main ()
7157{
7158
7159 ;
7160 return 0;
7161}
7162_ACEOF
7163if ac_fn_c_try_compile "$LINENO"; then :
7164 ac_cv_sys_large_files=no; break
7165fi
7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h. */
7169#define _LARGE_FILES 1
7170#include <sys/types.h>
7171 /* Check that off_t can represent 2**63 - 1 correctly.
7172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7173 since some C++ compilers masquerading as C compilers
7174 incorrectly reject 9223372036854775807. */
7175#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7177 && LARGE_OFF_T % 2147483647 == 1)
7178 ? 1 : -1];
7179int
7180main ()
7181{
7182
7183 ;
7184 return 0;
7185}
7186_ACEOF
7187if ac_fn_c_try_compile "$LINENO"; then :
7188 ac_cv_sys_large_files=1; break
7189fi
7190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 ac_cv_sys_large_files=unknown
7192 break
7193done
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7196$as_echo "$ac_cv_sys_large_files" >&6; }
7197case $ac_cv_sys_large_files in #(
7198 no | unknown) ;;
7199 *)
7200cat >>confdefs.h <<_ACEOF
7201#define _LARGE_FILES $ac_cv_sys_large_files
7202_ACEOF
7203;;
7204esac
7205rm -rf conftest*
7206 fi
7207fi
7208
7209
7210
7211## If user specified a crt-dir, use that unconditionally.
7212if test "X$CRT_DIR" = "X"; then
7213
7214 case "$canonical" in
7215 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7216 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7217 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7218 ## For anything else (eg /usr/lib32), it is up the user to specify
7219 ## the location (bug#5655).
7220 ## Test for crtn.o, not just the directory, because sometimes the
7221 ## directory exists but does not have the relevant files (bug#1287).
7222 ## FIXME better to test for binary compatibility somehow.
7223 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7224 ;;
7225
7226 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7227 esac
7228
7229 case "$opsys" in
7230 hpux10-20) CRT_DIR=/lib ;;
7231 esac
7232
7233 ## Default is /usr/lib.
7234 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7235
7236else
7237
7238 ## Some platforms don't use any of these files, so it is not
7239 ## appropriate to put this test outside the if block.
7240 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
2018939f 7241 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
067d23c9
KY
7242
7243fi
7244
7245
7246
7247LIB_MATH=-lm
7248LIB_STANDARD=
7249START_FILES=
7250
7251case $opsys in
7252 cygwin )
7253 LIB_MATH=
7254 START_FILES='pre-crt0.o'
7255 ;;
7256 darwin )
7257 ## Adding -lm confuses the dynamic linker, so omit it.
7258 LIB_MATH=
7259 START_FILES='pre-crt0.o'
7260 ;;
7261 freebsd )
7262 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7263 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7264 ;;
7265 gnu-linux | gnu-kfreebsd )
7266 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7267 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7268 ;;
7269 hpux10-20 | hpux11 )
7270 LIB_STANDARD=-lc
7271 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7272 ;;
7273 netbsd | openbsd )
7274 if test -f $CRT_DIR/crti.o; then
7275 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7276 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7277 else
7278 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7279 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7280 fi
7281 ;;
7282esac
7283
7284
7285
7286
7287
7288
7289
7290if test "${with_sound}" != "no"; then
7291 # Sound support for GNU/Linux and the free BSDs.
7292 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7293do :
7294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7296if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7297 cat >>confdefs.h <<_ACEOF
7298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299_ACEOF
7300 have_sound_header=yes
7301fi
7302
7303done
7304
7305 # Emulation library used on NetBSD.
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7307$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
d6974efa 7308if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
067d23c9
KY
7309 $as_echo_n "(cached) " >&6
7310else
7311 ac_check_lib_save_LIBS=$LIBS
7312LIBS="-lossaudio $LIBS"
7313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h. */
7315
7316/* Override any GCC internal prototype to avoid an error.
7317 Use char because int might match the return type of a GCC
7318 builtin and then its argument prototype would still apply. */
7319#ifdef __cplusplus
7320extern "C"
7321#endif
7322char _oss_ioctl ();
7323int
7324main ()
7325{
7326return _oss_ioctl ();
7327 ;
7328 return 0;
7329}
7330_ACEOF
7331if ac_fn_c_try_link "$LINENO"; then :
7332 ac_cv_lib_ossaudio__oss_ioctl=yes
7333else
7334 ac_cv_lib_ossaudio__oss_ioctl=no
7335fi
7336rm -f core conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
7338LIBS=$ac_check_lib_save_LIBS
7339fi
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7341$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
d6974efa 7342if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
067d23c9
KY
7343 LIBSOUND=-lossaudio
7344else
7345 LIBSOUND=
7346fi
7347
7348
7349
7350 ALSA_REQUIRED=1.0.0
7351 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7352
7353 succeeded=no
7354
7355 # Extract the first word of "pkg-config", so it can be a program name with args.
7356set dummy pkg-config; ac_word=$2
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 7359if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
7360 $as_echo_n "(cached) " >&6
7361else
7362 case $PKG_CONFIG in
7363 [\\/]* | ?:[\\/]*)
7364 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7365 ;;
7366 *)
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378done
7379 done
7380IFS=$as_save_IFS
7381
7382 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7383 ;;
7384esac
7385fi
7386PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7387if test -n "$PKG_CONFIG"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7389$as_echo "$PKG_CONFIG" >&6; }
7390else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394
7395
7396
7397 if test "$PKG_CONFIG" = "no" ; then
7398 HAVE_ALSA=no
7399 else
7400 PKG_CONFIG_MIN_VERSION=0.9.0
7401 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7403$as_echo_n "checking for $ALSA_MODULES... " >&6; }
7404
7405 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7407$as_echo "yes" >&6; }
7408 succeeded=yes
7409
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7411$as_echo_n "checking ALSA_CFLAGS... " >&6; }
7412 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7414$as_echo "$ALSA_CFLAGS" >&6; }
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7417$as_echo_n "checking ALSA_LIBS... " >&6; }
7418 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7420$as_echo "$ALSA_LIBS" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424 ALSA_CFLAGS=""
7425 ALSA_LIBS=""
7426 ## If we have a custom action on failure, don't print errors, but
7427 ## do set a variable so people can do so.
7428 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7429
7430 fi
7431
7432
7433
7434 else
7435 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7436 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7437 fi
7438 fi
7439
7440 if test $succeeded = yes; then
7441 HAVE_ALSA=yes
7442 else
7443 HAVE_ALSA=no
7444 fi
7445
7446 if test $HAVE_ALSA = yes; then
7447 SAVE_CFLAGS="$CFLAGS"
7448 SAVE_LDFLAGS="$LDFLAGS"
7449 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7450 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h. */
7453#include <asoundlib.h>
7454int
7455main ()
7456{
7457snd_lib_error_set_handler (0);
7458 ;
7459 return 0;
7460}
7461_ACEOF
7462if ac_fn_c_try_compile "$LINENO"; then :
7463 emacs_alsa_normal=yes
7464else
7465 emacs_alsa_normal=no
7466fi
7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 if test "$emacs_alsa_normal" != yes; then
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h. */
7471#include <alsa/asoundlib.h>
7472int
7473main ()
7474{
7475snd_lib_error_set_handler (0);
7476 ;
7477 return 0;
7478}
7479_ACEOF
7480if ac_fn_c_try_compile "$LINENO"; then :
7481 emacs_alsa_subdir=yes
7482else
7483 emacs_alsa_subdir=no
7484fi
7485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 if test "$emacs_alsa_subdir" != yes; then
2018939f 7487 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
067d23c9
KY
7488 fi
7489 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7490 fi
7491
7492 CFLAGS="$SAVE_CFLAGS"
7493 LDFLAGS="$SAVE_LDFLAGS"
7494 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7495 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7496
7497$as_echo "#define HAVE_ALSA 1" >>confdefs.h
7498
7499 fi
7500
7501 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7502 case "$opsys" in
7503 gnu-linux|freebsd|netbsd)
7504
7505$as_echo "#define HAVE_SOUND 1" >>confdefs.h
7506
7507 ;;
7508 esac
7509 fi
7510
7511
7512fi
7513
7514for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7515 linux/version.h sys/systeminfo.h limits.h \
7516 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7517 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7518 sys/utsname.h pwd.h utmp.h dirent.h util.h
7519do :
7520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7521ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7522if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7523 cat >>confdefs.h <<_ACEOF
7524#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7525_ACEOF
7526
7527fi
7528
7529done
7530
7531
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7533$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h. */
7536#include <sys/personality.h>
7537int
7538main ()
7539{
7540personality (PER_LINUX32)
7541 ;
7542 return 0;
7543}
7544_ACEOF
7545if ac_fn_c_try_compile "$LINENO"; then :
7546 emacs_cv_personality_linux32=yes
7547else
7548 emacs_cv_personality_linux32=no
7549fi
7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7552$as_echo "$emacs_cv_personality_linux32" >&6; }
7553
7554if test $emacs_cv_personality_linux32 = yes; then
7555
7556$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7557
7558fi
7559
7560for ac_header in term.h
7561do :
7562 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
d6974efa 7563if test "x$ac_cv_header_term_h" = xyes; then :
067d23c9
KY
7564 cat >>confdefs.h <<_ACEOF
7565#define HAVE_TERM_H 1
7566_ACEOF
7567
7568fi
7569
7570done
7571
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7573$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 7574if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
7575 $as_echo_n "(cached) " >&6
7576else
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h. */
7579#include <stdlib.h>
7580#include <stdarg.h>
7581#include <string.h>
7582#include <float.h>
7583
7584int
7585main ()
7586{
7587
7588 ;
7589 return 0;
7590}
7591_ACEOF
7592if ac_fn_c_try_compile "$LINENO"; then :
7593 ac_cv_header_stdc=yes
7594else
7595 ac_cv_header_stdc=no
7596fi
7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598
7599if test $ac_cv_header_stdc = yes; then
7600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h. */
7603#include <string.h>
7604
7605_ACEOF
7606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7607 $EGREP "memchr" >/dev/null 2>&1; then :
7608
7609else
7610 ac_cv_header_stdc=no
7611fi
7612rm -f conftest*
7613
7614fi
7615
7616if test $ac_cv_header_stdc = yes; then
7617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h. */
7620#include <stdlib.h>
7621
7622_ACEOF
7623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624 $EGREP "free" >/dev/null 2>&1; then :
7625
7626else
7627 ac_cv_header_stdc=no
7628fi
7629rm -f conftest*
7630
7631fi
7632
7633if test $ac_cv_header_stdc = yes; then
7634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7635 if test "$cross_compiling" = yes; then :
7636 :
7637else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h. */
7640#include <ctype.h>
7641#include <stdlib.h>
7642#if ((' ' & 0x0FF) == 0x020)
7643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7645#else
7646# define ISLOWER(c) \
7647 (('a' <= (c) && (c) <= 'i') \
7648 || ('j' <= (c) && (c) <= 'r') \
7649 || ('s' <= (c) && (c) <= 'z'))
7650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7651#endif
7652
7653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7654int
7655main ()
7656{
7657 int i;
7658 for (i = 0; i < 256; i++)
7659 if (XOR (islower (i), ISLOWER (i))
7660 || toupper (i) != TOUPPER (i))
7661 return 2;
7662 return 0;
7663}
7664_ACEOF
7665if ac_fn_c_try_run "$LINENO"; then :
7666
7667else
7668 ac_cv_header_stdc=no
7669fi
7670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7671 conftest.$ac_objext conftest.beam conftest.$ac_ext
7672fi
7673
7674fi
7675fi
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7677$as_echo "$ac_cv_header_stdc" >&6; }
7678if test $ac_cv_header_stdc = yes; then
7679
7680$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7681
7682fi
7683
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7685$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
d6974efa 7686if ${ac_cv_header_time+:} false; then :
067d23c9
KY
7687 $as_echo_n "(cached) " >&6
7688else
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h. */
7691#include <sys/types.h>
7692#include <sys/time.h>
7693#include <time.h>
7694
7695int
7696main ()
7697{
7698if ((struct tm *) 0)
7699return 0;
7700 ;
7701 return 0;
7702}
7703_ACEOF
7704if ac_fn_c_try_compile "$LINENO"; then :
7705 ac_cv_header_time=yes
7706else
7707 ac_cv_header_time=no
7708fi
7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710fi
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7712$as_echo "$ac_cv_header_time" >&6; }
7713if test $ac_cv_header_time = yes; then
7714
7715$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7716
7717fi
7718
7719ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
d6974efa 7720if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
067d23c9
KY
7721 ac_have_decl=1
7722else
7723 ac_have_decl=0
7724fi
7725
7726cat >>confdefs.h <<_ACEOF
7727#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7728_ACEOF
7729
7730if test $ac_cv_have_decl_sys_siglist != yes; then
7731 # For Tru64, at least:
7732 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
d6974efa 7733if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
067d23c9
KY
7734 ac_have_decl=1
7735else
7736 ac_have_decl=0
7737fi
7738
7739cat >>confdefs.h <<_ACEOF
7740#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7741_ACEOF
7742
7743 if test $ac_cv_have_decl___sys_siglist = yes; then
7744
7745$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7746
7747 fi
7748fi
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7750$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
d6974efa 7751if ${ac_cv_header_sys_wait_h+:} false; then :
067d23c9
KY
7752 $as_echo_n "(cached) " >&6
7753else
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h. */
7756#include <sys/types.h>
7757#include <sys/wait.h>
7758#ifndef WEXITSTATUS
7759# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7760#endif
7761#ifndef WIFEXITED
7762# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7763#endif
7764
7765int
7766main ()
7767{
7768 int s;
7769 wait (&s);
7770 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7771 ;
7772 return 0;
7773}
7774_ACEOF
7775if ac_fn_c_try_compile "$LINENO"; then :
7776 ac_cv_header_sys_wait_h=yes
7777else
7778 ac_cv_header_sys_wait_h=no
7779fi
7780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781fi
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7783$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7784if test $ac_cv_header_sys_wait_h = yes; then
7785
7786$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7787
7788fi
7789
7790
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7792$as_echo_n "checking for struct utimbuf... " >&6; }
d6974efa 7793if ${emacs_cv_struct_utimbuf+:} false; then :
067d23c9
KY
7794 $as_echo_n "(cached) " >&6
7795else
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797/* end confdefs.h. */
7798#ifdef TIME_WITH_SYS_TIME
7799#include <sys/time.h>
7800#include <time.h>
7801#else
7802#ifdef HAVE_SYS_TIME_H
7803#include <sys/time.h>
7804#else
7805#include <time.h>
7806#endif
7807#endif
7808#ifdef HAVE_UTIME_H
7809#include <utime.h>
7810#endif
7811int
7812main ()
7813{
7814static struct utimbuf x; x.actime = x.modtime;
7815 ;
7816 return 0;
7817}
7818_ACEOF
7819if ac_fn_c_try_compile "$LINENO"; then :
7820 emacs_cv_struct_utimbuf=yes
7821else
7822 emacs_cv_struct_utimbuf=no
7823fi
7824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825fi
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7827$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7828if test $emacs_cv_struct_utimbuf = yes; then
7829
7830$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7831
7832fi
7833
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7835$as_echo_n "checking return type of signal handlers... " >&6; }
d6974efa 7836if ${ac_cv_type_signal+:} false; then :
067d23c9
KY
7837 $as_echo_n "(cached) " >&6
7838else
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h. */
7841#include <sys/types.h>
7842#include <signal.h>
7843
7844int
7845main ()
7846{
7847return *(signal (0, 0)) (0) == 1;
7848 ;
7849 return 0;
7850}
7851_ACEOF
7852if ac_fn_c_try_compile "$LINENO"; then :
7853 ac_cv_type_signal=int
7854else
7855 ac_cv_type_signal=void
7856fi
7857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858fi
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7860$as_echo "$ac_cv_type_signal" >&6; }
7861
7862cat >>confdefs.h <<_ACEOF
7863#define RETSIGTYPE $ac_cv_type_signal
7864_ACEOF
7865
7866
7867
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7869$as_echo_n "checking for speed_t... " >&6; }
d6974efa 7870if ${emacs_cv_speed_t+:} false; then :
067d23c9
KY
7871 $as_echo_n "(cached) " >&6
7872else
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h. */
7875#include <termios.h>
7876int
7877main ()
7878{
7879speed_t x = 1;
7880 ;
7881 return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_compile "$LINENO"; then :
7885 emacs_cv_speed_t=yes
7886else
7887 emacs_cv_speed_t=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890fi
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7892$as_echo "$emacs_cv_speed_t" >&6; }
7893if test $emacs_cv_speed_t = yes; then
7894
7895$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7896
7897fi
7898
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7900$as_echo_n "checking for struct timeval... " >&6; }
d6974efa 7901if ${emacs_cv_struct_timeval+:} false; then :
067d23c9
KY
7902 $as_echo_n "(cached) " >&6
7903else
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h. */
7906#ifdef TIME_WITH_SYS_TIME
7907#include <sys/time.h>
7908#include <time.h>
7909#else
7910#ifdef HAVE_SYS_TIME_H
7911#include <sys/time.h>
7912#else
7913#include <time.h>
7914#endif
7915#endif
7916int
7917main ()
7918{
7919static struct timeval x; x.tv_sec = x.tv_usec;
7920 ;
7921 return 0;
7922}
7923_ACEOF
7924if ac_fn_c_try_compile "$LINENO"; then :
7925 emacs_cv_struct_timeval=yes
7926else
7927 emacs_cv_struct_timeval=no
7928fi
7929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930fi
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7932$as_echo "$emacs_cv_struct_timeval" >&6; }
7933HAVE_TIMEVAL=$emacs_cv_struct_timeval
7934if test $emacs_cv_struct_timeval = yes; then
7935
7936$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7937
7938fi
7939
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7941$as_echo_n "checking for struct exception... " >&6; }
d6974efa 7942if ${emacs_cv_struct_exception+:} false; then :
067d23c9
KY
7943 $as_echo_n "(cached) " >&6
7944else
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946/* end confdefs.h. */
7947#include <math.h>
7948int
7949main ()
7950{
7951static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7952 ;
7953 return 0;
7954}
7955_ACEOF
7956if ac_fn_c_try_compile "$LINENO"; then :
7957 emacs_cv_struct_exception=yes
7958else
7959 emacs_cv_struct_exception=no
7960fi
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962fi
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7964$as_echo "$emacs_cv_struct_exception" >&6; }
7965HAVE_EXCEPTION=$emacs_cv_struct_exception
7966if test $emacs_cv_struct_exception != yes; then
7967
7968$as_echo "#define NO_MATHERR 1" >>confdefs.h
7969
7970fi
7971
7972for ac_header in sys/socket.h
7973do :
7974 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
d6974efa 7975if test "x$ac_cv_header_sys_socket_h" = xyes; then :
067d23c9
KY
7976 cat >>confdefs.h <<_ACEOF
7977#define HAVE_SYS_SOCKET_H 1
7978_ACEOF
7979
7980fi
7981
7982done
7983
7984for ac_header in net/if.h
7985do :
7986 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7987#if HAVE_SYS_SOCKET_H
7988#include <sys/socket.h>
7989#endif
7990"
d6974efa 7991if test "x$ac_cv_header_net_if_h" = xyes; then :
067d23c9
KY
7992 cat >>confdefs.h <<_ACEOF
7993#define HAVE_NET_IF_H 1
7994_ACEOF
7995
7996fi
7997
7998done
7999
8000
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8002$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
d6974efa 8003if ${ac_cv_struct_tm+:} false; then :
067d23c9
KY
8004 $as_echo_n "(cached) " >&6
8005else
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007/* end confdefs.h. */
8008#include <sys/types.h>
8009#include <time.h>
8010
8011int
8012main ()
8013{
8014struct tm tm;
8015 int *p = &tm.tm_sec;
8016 return !p;
8017 ;
8018 return 0;
8019}
8020_ACEOF
8021if ac_fn_c_try_compile "$LINENO"; then :
8022 ac_cv_struct_tm=time.h
8023else
8024 ac_cv_struct_tm=sys/time.h
8025fi
8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8029$as_echo "$ac_cv_struct_tm" >&6; }
8030if test $ac_cv_struct_tm = sys/time.h; then
8031
8032$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8033
8034fi
8035
8036ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8037#include <$ac_cv_struct_tm>
8038
8039"
d6974efa 8040if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
067d23c9
KY
8041
8042cat >>confdefs.h <<_ACEOF
8043#define HAVE_STRUCT_TM_TM_ZONE 1
8044_ACEOF
8045
8046
8047fi
8048
8049if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8050
8051$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8052
8053else
8054 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8055"
d6974efa 8056if test "x$ac_cv_have_decl_tzname" = xyes; then :
067d23c9
KY
8057 ac_have_decl=1
8058else
8059 ac_have_decl=0
8060fi
8061
8062cat >>confdefs.h <<_ACEOF
8063#define HAVE_DECL_TZNAME $ac_have_decl
8064_ACEOF
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8067$as_echo_n "checking for tzname... " >&6; }
d6974efa 8068if ${ac_cv_var_tzname+:} false; then :
067d23c9
KY
8069 $as_echo_n "(cached) " >&6
8070else
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072/* end confdefs.h. */
8073#include <time.h>
8074#if !HAVE_DECL_TZNAME
8075extern char *tzname[];
8076#endif
8077
8078int
8079main ()
8080{
8081return tzname[0][0];
8082 ;
8083 return 0;
8084}
8085_ACEOF
8086if ac_fn_c_try_link "$LINENO"; then :
8087 ac_cv_var_tzname=yes
8088else
8089 ac_cv_var_tzname=no
8090fi
8091rm -f core conftest.err conftest.$ac_objext \
8092 conftest$ac_exeext conftest.$ac_ext
8093fi
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8095$as_echo "$ac_cv_var_tzname" >&6; }
8096 if test $ac_cv_var_tzname = yes; then
8097
8098$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8099
8100 fi
8101fi
8102
8103ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8104"
d6974efa 8105if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
067d23c9
KY
8106
8107$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8108
8109fi
8110
8111ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8112#if HAVE_SYS_SOCKET_H
8113#include <sys/socket.h>
8114#endif
8115#if HAVE_NET_IF_H
8116#include <net/if.h>
8117#endif
8118"
d6974efa 8119if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
067d23c9
KY
8120
8121cat >>confdefs.h <<_ACEOF
8122#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8123_ACEOF
8124
8125
8126fi
8127ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8128#if HAVE_SYS_SOCKET_H
8129#include <sys/socket.h>
8130#endif
8131#if HAVE_NET_IF_H
8132#include <net/if.h>
8133#endif
8134"
d6974efa 8135if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
067d23c9
KY
8136
8137cat >>confdefs.h <<_ACEOF
8138#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8139_ACEOF
8140
8141
8142fi
8143ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8144#if HAVE_SYS_SOCKET_H
8145#include <sys/socket.h>
8146#endif
8147#if HAVE_NET_IF_H
8148#include <net/if.h>
8149#endif
8150"
d6974efa 8151if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
067d23c9
KY
8152
8153cat >>confdefs.h <<_ACEOF
8154#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8155_ACEOF
8156
8157
8158fi
8159ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8160#if HAVE_SYS_SOCKET_H
8161#include <sys/socket.h>
8162#endif
8163#if HAVE_NET_IF_H
8164#include <net/if.h>
8165#endif
8166"
d6974efa 8167if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
067d23c9
KY
8168
8169cat >>confdefs.h <<_ACEOF
8170#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8171_ACEOF
8172
8173
8174fi
8175ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8176#if HAVE_SYS_SOCKET_H
8177#include <sys/socket.h>
8178#endif
8179#if HAVE_NET_IF_H
8180#include <net/if.h>
8181#endif
8182"
d6974efa 8183if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
067d23c9
KY
8184
8185cat >>confdefs.h <<_ACEOF
8186#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8187_ACEOF
8188
8189
8190fi
8191
8192
8193
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8195$as_echo_n "checking for function prototypes... " >&6; }
8196if test "$ac_cv_prog_cc_c89" != no; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8198$as_echo "yes" >&6; }
8199
8200$as_echo "#define PROTOTYPES 1" >>confdefs.h
8201
8202
8203$as_echo "#define __PROTOTYPES 1" >>confdefs.h
8204
8205else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207$as_echo "no" >&6; }
8208fi
8209
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8211$as_echo_n "checking for working volatile... " >&6; }
d6974efa 8212if ${ac_cv_c_volatile+:} false; then :
067d23c9
KY
8213 $as_echo_n "(cached) " >&6
8214else
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216/* end confdefs.h. */
8217
8218int
8219main ()
8220{
8221
8222volatile int x;
8223int * volatile y = (int *) 0;
8224return !x && !y;
8225 ;
8226 return 0;
8227}
8228_ACEOF
8229if ac_fn_c_try_compile "$LINENO"; then :
8230 ac_cv_c_volatile=yes
8231else
8232 ac_cv_c_volatile=no
8233fi
8234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235fi
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8237$as_echo "$ac_cv_c_volatile" >&6; }
8238if test $ac_cv_c_volatile = no; then
8239
8240$as_echo "#define volatile /**/" >>confdefs.h
8241
8242fi
8243
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8245$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
d6974efa 8246if ${ac_cv_c_const+:} false; then :
067d23c9
KY
8247 $as_echo_n "(cached) " >&6
8248else
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250/* end confdefs.h. */
8251
8252int
8253main ()
8254{
8255/* FIXME: Include the comments suggested by Paul. */
8256#ifndef __cplusplus
8257 /* Ultrix mips cc rejects this. */
8258 typedef int charset[2];
8259 const charset cs;
8260 /* SunOS 4.1.1 cc rejects this. */
8261 char const *const *pcpcc;
8262 char **ppc;
8263 /* NEC SVR4.0.2 mips cc rejects this. */
8264 struct point {int x, y;};
8265 static struct point const zero = {0,0};
8266 /* AIX XL C 1.02.0.0 rejects this.
8267 It does not let you subtract one const X* pointer from another in
8268 an arm of an if-expression whose if-part is not a constant
8269 expression */
8270 const char *g = "string";
8271 pcpcc = &g + (g ? g-g : 0);
8272 /* HPUX 7.0 cc rejects these. */
8273 ++pcpcc;
8274 ppc = (char**) pcpcc;
8275 pcpcc = (char const *const *) ppc;
8276 { /* SCO 3.2v4 cc rejects this. */
8277 char *t;
8278 char const *s = 0 ? (char *) 0 : (char const *) 0;
8279
8280 *t++ = 0;
8281 if (s) return 0;
8282 }
8283 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8284 int x[] = {25, 17};
8285 const int *foo = &x[0];
8286 ++foo;
8287 }
8288 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8289 typedef const int *iptr;
8290 iptr p = 0;
8291 ++p;
8292 }
8293 { /* AIX XL C 1.02.0.0 rejects this saying
8294 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8295 struct s { int j; const int *ap[3]; };
8296 struct s *b; b->j = 5;
8297 }
8298 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8299 const int foo = 10;
8300 if (!foo) return 0;
8301 }
8302 return !cs[0] && !zero.x;
8303#endif
8304
8305 ;
8306 return 0;
8307}
8308_ACEOF
8309if ac_fn_c_try_compile "$LINENO"; then :
8310 ac_cv_c_const=yes
8311else
8312 ac_cv_c_const=no
8313fi
8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315fi
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8317$as_echo "$ac_cv_c_const" >&6; }
8318if test $ac_cv_c_const = no; then
8319
8320$as_echo "#define const /**/" >>confdefs.h
8321
8322fi
8323
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8325$as_echo_n "checking for void * support... " >&6; }
d6974efa 8326if ${emacs_cv_void_star+:} false; then :
067d23c9
KY
8327 $as_echo_n "(cached) " >&6
8328else
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330/* end confdefs.h. */
8331
8332int
8333main ()
8334{
8335void * foo;
8336 ;
8337 return 0;
8338}
8339_ACEOF
8340if ac_fn_c_try_compile "$LINENO"; then :
8341 emacs_cv_void_star=yes
8342else
8343 emacs_cv_void_star=no
8344fi
8345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346fi
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8348$as_echo "$emacs_cv_void_star" >&6; }
8349if test $emacs_cv_void_star = yes; then
8350 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8351
8352else
8353 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8354
8355fi
8356
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8358$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6974efa 8359if ${ac_cv_c_bigendian+:} false; then :
067d23c9
KY
8360 $as_echo_n "(cached) " >&6
8361else
8362 ac_cv_c_bigendian=unknown
8363 # See if we're dealing with a universal compiler.
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h. */
8366#ifndef __APPLE_CC__
8367 not a universal capable compiler
8368 #endif
8369 typedef int dummy;
8370
8371_ACEOF
8372if ac_fn_c_try_compile "$LINENO"; then :
8373
8374 # Check for potential -arch flags. It is not universal unless
8375 # there are at least two -arch flags with different values.
8376 ac_arch=
8377 ac_prev=
8378 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8379 if test -n "$ac_prev"; then
8380 case $ac_word in
8381 i?86 | x86_64 | ppc | ppc64)
8382 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8383 ac_arch=$ac_word
8384 else
8385 ac_cv_c_bigendian=universal
8386 break
8387 fi
8388 ;;
8389 esac
8390 ac_prev=
8391 elif test "x$ac_word" = "x-arch"; then
8392 ac_prev=arch
8393 fi
8394 done
8395fi
8396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 if test $ac_cv_c_bigendian = unknown; then
8398 # See if sys/param.h defines the BYTE_ORDER macro.
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h. */
8401#include <sys/types.h>
8402 #include <sys/param.h>
8403
8404int
8405main ()
8406{
8407#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8408 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8409 && LITTLE_ENDIAN)
8410 bogus endian macros
8411 #endif
8412
8413 ;
8414 return 0;
8415}
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"; then :
8418 # It does; now see whether it defined to BIG_ENDIAN or not.
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h. */
8421#include <sys/types.h>
8422 #include <sys/param.h>
8423
8424int
8425main ()
8426{
8427#if BYTE_ORDER != BIG_ENDIAN
8428 not big endian
8429 #endif
8430
8431 ;
8432 return 0;
8433}
8434_ACEOF
8435if ac_fn_c_try_compile "$LINENO"; then :
8436 ac_cv_c_bigendian=yes
8437else
8438 ac_cv_c_bigendian=no
8439fi
8440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441fi
8442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 fi
8444 if test $ac_cv_c_bigendian = unknown; then
8445 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h. */
8448#include <limits.h>
8449
8450int
8451main ()
8452{
8453#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8454 bogus endian macros
8455 #endif
8456
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461if ac_fn_c_try_compile "$LINENO"; then :
8462 # It does; now see whether it defined to _BIG_ENDIAN or not.
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h. */
8465#include <limits.h>
8466
8467int
8468main ()
8469{
8470#ifndef _BIG_ENDIAN
8471 not big endian
8472 #endif
8473
8474 ;
8475 return 0;
8476}
8477_ACEOF
8478if ac_fn_c_try_compile "$LINENO"; then :
8479 ac_cv_c_bigendian=yes
8480else
8481 ac_cv_c_bigendian=no
8482fi
8483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484fi
8485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 fi
8487 if test $ac_cv_c_bigendian = unknown; then
8488 # Compile a test program.
8489 if test "$cross_compiling" = yes; then :
8490 # Try to guess by grepping values from an object file.
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h. */
8493short int ascii_mm[] =
8494 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8495 short int ascii_ii[] =
8496 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8497 int use_ascii (int i) {
8498 return ascii_mm[i] + ascii_ii[i];
8499 }
8500 short int ebcdic_ii[] =
8501 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8502 short int ebcdic_mm[] =
8503 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8504 int use_ebcdic (int i) {
8505 return ebcdic_mm[i] + ebcdic_ii[i];
8506 }
8507 extern int foo;
8508
8509int
8510main ()
8511{
8512return use_ascii (foo) == use_ebcdic (foo);
8513 ;
8514 return 0;
8515}
8516_ACEOF
8517if ac_fn_c_try_compile "$LINENO"; then :
8518 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8519 ac_cv_c_bigendian=yes
8520 fi
8521 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8522 if test "$ac_cv_c_bigendian" = unknown; then
8523 ac_cv_c_bigendian=no
8524 else
8525 # finding both strings is unlikely to happen, but who knows?
8526 ac_cv_c_bigendian=unknown
8527 fi
8528 fi
8529fi
8530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531else
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533/* end confdefs.h. */
8534$ac_includes_default
8535int
8536main ()
8537{
8538
8539 /* Are we little or big endian? From Harbison&Steele. */
8540 union
8541 {
8542 long int l;
8543 char c[sizeof (long int)];
8544 } u;
8545 u.l = 1;
8546 return u.c[sizeof (long int) - 1] == 1;
8547
8548 ;
8549 return 0;
8550}
8551_ACEOF
8552if ac_fn_c_try_run "$LINENO"; then :
8553 ac_cv_c_bigendian=no
8554else
8555 ac_cv_c_bigendian=yes
8556fi
8557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8558 conftest.$ac_objext conftest.beam conftest.$ac_ext
8559fi
8560
8561 fi
8562fi
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8564$as_echo "$ac_cv_c_bigendian" >&6; }
8565 case $ac_cv_c_bigendian in #(
8566 yes)
8567 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8568;; #(
8569 no)
8570 ;; #(
8571 universal)
8572
8573$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8574
8575 ;; #(
8576 *)
2018939f 8577 as_fn_error $? "unknown endianness
d6974efa 8578 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
067d23c9
KY
8579 esac
8580
8581
7cae64b4
PE
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8583$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
d6974efa 8584if ${emacs_cv_attribute_aligned+:} false; then :
7cae64b4
PE
8585 $as_echo_n "(cached) " >&6
8586else
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588/* end confdefs.h. */
8589char __attribute__ ((__aligned__ (1 << 3))) c;
8590int
8591main ()
8592{
8593
8594 ;
8595 return 0;
8596}
8597_ACEOF
8598if ac_fn_c_try_compile "$LINENO"; then :
8599 emacs_cv_attribute_aligned=yes
8600else
8601 emacs_cv_attribute_aligned=no
8602fi
8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604fi
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8606$as_echo "$emacs_cv_attribute_aligned" >&6; }
8607if test $emacs_cv_attribute_aligned = yes; then
8608
8609$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8610
8611fi
8612
067d23c9
KY
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8614$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8615set x ${MAKE-make}
8616ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 8617if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
067d23c9
KY
8618 $as_echo_n "(cached) " >&6
8619else
8620 cat >conftest.make <<\_ACEOF
8621SHELL = /bin/sh
8622all:
8623 @echo '@@@%%%=$(MAKE)=@@@%%%'
8624_ACEOF
2018939f 8625# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8626case `${MAKE-make} -f conftest.make 2>/dev/null` in
8627 *@@@%%%=?*=@@@%%%*)
8628 eval ac_cv_prog_make_${ac_make}_set=yes;;
8629 *)
8630 eval ac_cv_prog_make_${ac_make}_set=no;;
8631esac
8632rm -f conftest.make
8633fi
8634if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8636$as_echo "yes" >&6; }
8637 SET_MAKE=
8638else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640$as_echo "no" >&6; }
8641 SET_MAKE="MAKE=${MAKE-make}"
8642fi
8643
8644
8645DEPFLAGS=
8646MKDEPDIR=":"
8647deps_frag=deps.mk
8648if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8650$as_echo_n "checking whether we are using GNU Make... " >&6; }
8651 HAVE_GNU_MAKE=no
8652 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8653 if test "x$testval" != x; then
8654 HAVE_GNU_MAKE=yes
8655 else
8656 ac_enable_autodepend=no
8657 fi
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8659$as_echo "$HAVE_GNU_MAKE" >&6; }
8660 if test $HAVE_GNU_MAKE = yes; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8662$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8663 SAVE_CFLAGS="$CFLAGS"
8664 CFLAGS="$CFLAGS -MMD -MF deps.d"
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666/* end confdefs.h. */
8667
8668int
8669main ()
8670{
8671
8672 ;
8673 return 0;
8674}
8675_ACEOF
8676if ac_fn_c_try_compile "$LINENO"; then :
8677
8678else
8679 ac_enable_autodepend=no
8680fi
8681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 CFLAGS="$SAVE_CFLAGS"
8683 test -f deps.d || ac_enable_autodepend=no
8684 rm -rf deps.d
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8686$as_echo "$ac_enable_autodepend" >&6; }
8687 fi
8688 if test $ac_enable_autodepend = yes; then
8689 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8690 ## In parallel builds, another make might create depdir between
8691 ## the first test and mkdir, so stick another test on the end.
8692 ## Or use mkinstalldirs? mkdir -p is not portable.
8693 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8694 deps_frag=autodeps.mk
8695 fi
8696fi
8697deps_frag=$srcdir/src/$deps_frag
8698
8699
8700
8701
8702
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8704$as_echo_n "checking for long file names... " >&6; }
d6974efa 8705if ${ac_cv_sys_long_file_names+:} false; then :
067d23c9
KY
8706 $as_echo_n "(cached) " >&6
8707else
8708 ac_cv_sys_long_file_names=yes
8709# Test for long file names in all the places we know might matter:
8710# . the current directory, where building will happen
8711# $prefix/lib where we will be installing things
8712# $exec_prefix/lib likewise
8713# $TMPDIR if set, where it might want to write temporary files
8714# /tmp where it might want to write temporary files
8715# /var/tmp likewise
8716# /usr/tmp likewise
8717for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8718 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8719 # in the usual case where exec_prefix is '${prefix}'.
8720 case $ac_dir in #(
8721 . | /* | ?:[\\/]*) ;; #(
8722 *) continue;;
8723 esac
8724 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8725 ac_xdir=$ac_dir/cf$$
8726 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8727 ac_tf1=$ac_xdir/conftest9012345
8728 ac_tf2=$ac_xdir/conftest9012346
8729 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8730 ac_cv_sys_long_file_names=no
8731 rm -f -r "$ac_xdir" 2>/dev/null
8732 test $ac_cv_sys_long_file_names = no && break
8733done
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8736$as_echo "$ac_cv_sys_long_file_names" >&6; }
8737if test $ac_cv_sys_long_file_names = yes; then
8738
8739$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8740
8741fi
8742
8743
8744#### Choose a window system.
8745
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8747$as_echo_n "checking for X... " >&6; }
8748
8749
8750# Check whether --with-x was given.
8751if test "${with_x+set}" = set; then :
8752 withval=$with_x;
8753fi
8754
8755# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8756if test "x$with_x" = xno; then
8757 # The user explicitly disabled X.
8758 have_x=disabled
8759else
8760 case $x_includes,$x_libraries in #(
d6974efa
PE
8761 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8762 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
067d23c9
KY
8763 $as_echo_n "(cached) " >&6
8764else
8765 # One or both of the vars are not set, and there is no cached value.
8766ac_x_includes=no ac_x_libraries=no
8767rm -f -r conftest.dir
8768if mkdir conftest.dir; then
8769 cd conftest.dir
8770 cat >Imakefile <<'_ACEOF'
8771incroot:
8772 @echo incroot='${INCROOT}'
8773usrlibdir:
8774 @echo usrlibdir='${USRLIBDIR}'
8775libdir:
8776 @echo libdir='${LIBDIR}'
8777_ACEOF
8778 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2018939f 8779 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8780 for ac_var in incroot usrlibdir libdir; do
8781 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8782 done
8783 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8784 for ac_extension in a so sl dylib la dll; do
8785 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8786 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8787 ac_im_usrlibdir=$ac_im_libdir; break
8788 fi
8789 done
8790 # Screen out bogus values from the imake configuration. They are
8791 # bogus both because they are the default anyway, and because
8792 # using them would break gcc on systems where it needs fixed includes.
8793 case $ac_im_incroot in
8794 /usr/include) ac_x_includes= ;;
8795 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8796 esac
8797 case $ac_im_usrlibdir in
8798 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8799 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8800 esac
8801 fi
8802 cd ..
8803 rm -f -r conftest.dir
8804fi
8805
8806# Standard set of common directories for X headers.
8807# Check X11 before X11Rn because it is often a symlink to the current release.
8808ac_x_header_dirs='
8809/usr/X11/include
8810/usr/X11R7/include
8811/usr/X11R6/include
8812/usr/X11R5/include
8813/usr/X11R4/include
8814
8815/usr/include/X11
8816/usr/include/X11R7
8817/usr/include/X11R6
8818/usr/include/X11R5
8819/usr/include/X11R4
8820
8821/usr/local/X11/include
8822/usr/local/X11R7/include
8823/usr/local/X11R6/include
8824/usr/local/X11R5/include
8825/usr/local/X11R4/include
8826
8827/usr/local/include/X11
8828/usr/local/include/X11R7
8829/usr/local/include/X11R6
8830/usr/local/include/X11R5
8831/usr/local/include/X11R4
8832
8833/usr/X386/include
8834/usr/x386/include
8835/usr/XFree86/include/X11
8836
8837/usr/include
8838/usr/local/include
8839/usr/unsupported/include
8840/usr/athena/include
8841/usr/local/x11r5/include
8842/usr/lpp/Xamples/include
8843
8844/usr/openwin/include
8845/usr/openwin/share/include'
8846
8847if test "$ac_x_includes" = no; then
8848 # Guess where to find include files, by looking for Xlib.h.
8849 # First, try using that file with no special directory specified.
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851/* end confdefs.h. */
8852#include <X11/Xlib.h>
8853_ACEOF
8854if ac_fn_c_try_cpp "$LINENO"; then :
8855 # We can compile using X headers with no special include directory.
8856ac_x_includes=
8857else
8858 for ac_dir in $ac_x_header_dirs; do
8859 if test -r "$ac_dir/X11/Xlib.h"; then
8860 ac_x_includes=$ac_dir
8861 break
8862 fi
8863done
8864fi
2018939f 8865rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
8866fi # $ac_x_includes = no
8867
8868if test "$ac_x_libraries" = no; then
8869 # Check for the libraries.
8870 # See if we find them without any special options.
8871 # Don't add to $LIBS permanently.
8872 ac_save_LIBS=$LIBS
8873 LIBS="-lX11 $LIBS"
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875/* end confdefs.h. */
8876#include <X11/Xlib.h>
8877int
8878main ()
8879{
8880XrmInitialize ()
8881 ;
8882 return 0;
8883}
8884_ACEOF
8885if ac_fn_c_try_link "$LINENO"; then :
8886 LIBS=$ac_save_LIBS
8887# We can link X programs with no special library path.
8888ac_x_libraries=
8889else
8890 LIBS=$ac_save_LIBS
8891for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8892do
8893 # Don't even attempt the hair of trying to link an X program!
8894 for ac_extension in a so sl dylib la dll; do
8895 if test -r "$ac_dir/libX11.$ac_extension"; then
8896 ac_x_libraries=$ac_dir
8897 break 2
8898 fi
8899 done
8900done
8901fi
8902rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904fi # $ac_x_libraries = no
8905
8906case $ac_x_includes,$ac_x_libraries in #(
8907 no,* | *,no | *\'*)
8908 # Didn't find X, or a directory has "'" in its name.
8909 ac_cv_have_x="have_x=no";; #(
8910 *)
8911 # Record where we found X for the cache.
8912 ac_cv_have_x="have_x=yes\
8913 ac_x_includes='$ac_x_includes'\
8914 ac_x_libraries='$ac_x_libraries'"
8915esac
8916fi
8917;; #(
8918 *) have_x=yes;;
8919 esac
8920 eval "$ac_cv_have_x"
8921fi # $with_x != no
8922
8923if test "$have_x" != yes; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8925$as_echo "$have_x" >&6; }
8926 no_x=yes
8927else
8928 # If each of the values was on the command line, it overrides each guess.
8929 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8930 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8931 # Update the cache value to reflect the command line values.
8932 ac_cv_have_x="have_x=yes\
8933 ac_x_includes='$x_includes'\
8934 ac_x_libraries='$x_libraries'"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8936$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8937fi
8938
8939if test "$no_x" = yes; then
8940 window_system=none
8941else
8942 window_system=x11
8943fi
8944
8945## Workaround for bug in autoconf <= 2.62.
8946## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8947## No need to do anything special for these standard directories.
8948if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8949
8950 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8951
8952fi
8953
8954LD_SWITCH_X_SITE_AUX=
8955LD_SWITCH_X_SITE_AUX_RPATH=
8956if test "${x_libraries}" != NONE; then
8957 if test -n "${x_libraries}"; then
8958 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8959 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8960 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8961 fi
8962 x_default_search_path=""
8963 x_search_path=${x_libraries}
8964 if test -z "${x_search_path}"; then
8965 x_search_path=/usr/lib
8966 fi
8967 for x_library in `echo ${x_search_path}: | \
8968 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8969 x_search_path="\
8970${x_library}/X11/%L/%T/%N%C%S:\
8971${x_library}/X11/%l/%T/%N%C%S:\
8972${x_library}/X11/%T/%N%C%S:\
8973${x_library}/X11/%L/%T/%N%S:\
8974${x_library}/X11/%l/%T/%N%S:\
8975${x_library}/X11/%T/%N%S"
8976 if test x"${x_default_search_path}" = x; then
8977 x_default_search_path=${x_search_path}
8978 else
8979 x_default_search_path="${x_search_path}:${x_default_search_path}"
8980 fi
8981 done
8982fi
8983
8984
8985
8986if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8987 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8988fi
8989
8990if test x"${x_includes}" = x; then
8991 bitmapdir=/usr/include/X11/bitmaps
8992else
8993 # accumulate include directories that have X11 bitmap subdirectories
8994 bmd_acc="dummyval"
8995 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8996 if test -d "${bmd}/X11/bitmaps"; then
8997 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8998 fi
8999 if test -d "${bmd}/bitmaps"; then
9000 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9001 fi
9002 done
9003 if test ${bmd_acc} != "dummyval"; then
9004 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9005 fi
9006fi
9007
9008HAVE_NS=no
9009NS_IMPL_COCOA=no
9010NS_IMPL_GNUSTEP=no
9011tmp_CPPFLAGS="$CPPFLAGS"
9012tmp_CFLAGS="$CFLAGS"
9013CPPFLAGS="$CPPFLAGS -x objective-c"
9014CFLAGS="$CFLAGS -x objective-c"
9015TEMACS_LDFLAGS2="\${LDFLAGS}"
9016if test "${with_ns}" != no; then
9017 if test "${opsys}" = darwin; then
9018 NS_IMPL_COCOA=yes
9019 ns_appdir=`pwd`/nextstep/Emacs.app
9020 ns_appbindir=${ns_appdir}/Contents/MacOS/
9021 ns_appresdir=${ns_appdir}/Contents/Resources
9022 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9023 elif test -f $GNUSTEP_CONFIG_FILE; then
9024 NS_IMPL_GNUSTEP=yes
9025 ns_appdir=`pwd`/nextstep/Emacs.app
9026 ns_appbindir=${ns_appdir}/
9027 ns_appresdir=${ns_appdir}/Resources
9028 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9029 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9030 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9031 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9032 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9033 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9034 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9035 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9036 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9037 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9038 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9039 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9040 LIB_STANDARD=
9041 START_FILES=
9042 TEMACS_LDFLAGS2=
9043 fi
9044 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
d6974efa 9045if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
067d23c9
KY
9046 HAVE_NS=yes
9047else
2018939f 9048 as_fn_error $? "\`--with-ns' was specified, but the include
067d23c9
KY
9049 files are missing or cannot be compiled." "$LINENO" 5
9050fi
9051
9052
9053 NS_HAVE_NSINTEGER=yes
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055/* end confdefs.h. */
9056#include <Foundation/NSObjCRuntime.h>
9057int
9058main ()
9059{
9060NSInteger i;
9061 ;
9062 return 0;
9063}
9064_ACEOF
9065if ac_fn_c_try_compile "$LINENO"; then :
9066 ns_have_nsinteger=yes
9067else
9068 ns_have_nsinteger=no
9069fi
9070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 if test $ns_have_nsinteger = no; then
9072 NS_HAVE_NSINTEGER=no
9073 fi
9074fi
9075
9076
9077ns_frag=/dev/null
9078NS_OBJ=
00b3c7ac 9079NS_OBJC_OBJ=
067d23c9
KY
9080NS_SUPPORT=
9081if test "${HAVE_NS}" = yes; then
9082 window_system=nextstep
9083 with_xft=no
9084 # set up packaging dirs
9085 exec_prefix=${ns_appbindir}
9086 libexecdir=${ns_appbindir}/libexec
9087 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9088 prefix=${ns_appresdir}
9089 fi
9090 ns_frag=$srcdir/src/ns.mk
00b3c7ac
TT
9091 NS_OBJ="fontset.o fringe.o image.o"
9092 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
067d23c9
KY
9093 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9094fi
9095CFLAGS="$tmp_CFLAGS"
9096CPPFLAGS="$tmp_CPPFLAGS"
9097
9098
9099
9100
9101
00b3c7ac 9102
067d23c9
KY
9103case "${window_system}" in
9104 x11 )
9105 HAVE_X_WINDOWS=yes
9106 HAVE_X11=yes
9107 case "${with_x_toolkit}" in
9108 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9109 motif ) USE_X_TOOLKIT=MOTIF ;;
9110 gtk ) with_gtk=yes
9111 USE_X_TOOLKIT=none ;;
9112 gtk3 ) with_gtk3=yes
9113 USE_X_TOOLKIT=none ;;
9114 no ) USE_X_TOOLKIT=none ;;
9115 * ) USE_X_TOOLKIT=maybe ;;
9116 esac
9117 ;;
9118 nextstep | none )
9119 HAVE_X_WINDOWS=no
9120 HAVE_X11=no
9121 USE_X_TOOLKIT=none
9122 ;;
9123esac
9124
9125if test "$window_system" = none && test "X$with_x" != "Xno"; then
9126 # Extract the first word of "X", so it can be a program name with args.
9127set dummy X; ac_word=$2
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9130if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
067d23c9
KY
9131 $as_echo_n "(cached) " >&6
9132else
9133 if test -n "$HAVE_XSERVER"; then
9134 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9135else
9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9143 ac_cv_prog_HAVE_XSERVER="true"
9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9146 fi
9147done
9148 done
9149IFS=$as_save_IFS
9150
9151 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9152fi
9153fi
9154HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9155if test -n "$HAVE_XSERVER"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9157$as_echo "$HAVE_XSERVER" >&6; }
9158else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160$as_echo "no" >&6; }
9161fi
9162
9163
9164 if test "$HAVE_XSERVER" = true ||
9165 test -n "$DISPLAY" ||
9166 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
2018939f 9167 as_fn_error $? "You seem to be running X, but no X development libraries
067d23c9
KY
9168were found. You should install the relevant development files for X
9169and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9170sure you have development files for image handling, i.e.
9171tiff, gif, jpeg, png and xpm.
9172If you are sure you want Emacs compiled without X window support, pass
9173 --without-x
9174to configure." "$LINENO" 5
9175 fi
9176fi
9177
9178### If we're using X11, we should use the X menu package.
9179HAVE_MENUS=no
9180case ${HAVE_X11} in
9181 yes ) HAVE_MENUS=yes ;;
9182esac
9183
9184# Do the opsystem or machine files prohibit the use of the GNU malloc?
9185# Assume not, until told otherwise.
9186GNU_MALLOC=yes
9187doug_lea_malloc=yes
9188ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
d6974efa 9189if test "x$ac_cv_func_malloc_get_state" = xyes; then :
067d23c9
KY
9190
9191else
9192 doug_lea_malloc=no
9193fi
9194
9195ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
d6974efa 9196if test "x$ac_cv_func_malloc_set_state" = xyes; then :
067d23c9
KY
9197
9198else
9199 doug_lea_malloc=no
9200fi
9201
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9203$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
d6974efa 9204if ${emacs_cv_var___after_morecore_hook+:} false; then :
067d23c9
KY
9205 $as_echo_n "(cached) " >&6
9206else
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208/* end confdefs.h. */
9209extern void (* __after_morecore_hook)();
9210int
9211main ()
9212{
9213__after_morecore_hook = 0
9214 ;
9215 return 0;
9216}
9217_ACEOF
9218if ac_fn_c_try_link "$LINENO"; then :
9219 emacs_cv_var___after_morecore_hook=yes
9220else
9221 emacs_cv_var___after_morecore_hook=no
9222fi
9223rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9225fi
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9227$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9228if test $emacs_cv_var___after_morecore_hook = no; then
9229 doug_lea_malloc=no
9230fi
9231
9232
9233system_malloc=no
9234case "$opsys" in
9235 ## darwin ld insists on the use of malloc routines in the System framework.
9236 darwin|sol2-10) system_malloc=yes ;;
9237esac
9238
9239if test "${system_malloc}" = "yes"; then
9240
9241$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9242
9243 GNU_MALLOC=no
9244 GNU_MALLOC_reason="
9245 (The GNU allocators don't work with this system configuration.)"
9246 GMALLOC_OBJ=
9247 VMLIMIT_OBJ=
9248else
9249 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9250 VMLIMIT_OBJ=vm-limit.o
9251fi
9252
9253
9254
9255if test "$doug_lea_malloc" = "yes" ; then
9256 if test "$GNU_MALLOC" = yes ; then
9257 GNU_MALLOC_reason="
9258 (Using Doug Lea's new malloc from the GNU C Library.)"
9259 fi
9260
9261$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9262
9263
9264 ## Use mmap directly for allocating larger buffers.
9265 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9266 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9267 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9268 case "$opsys" in
9269 gnu*) REL_ALLOC=no ;;
9270 esac
9271fi
9272
9273if test x"${REL_ALLOC}" = x; then
9274 REL_ALLOC=${GNU_MALLOC}
9275fi
9276
9277use_mmap_for_buffers=no
9278case "$opsys" in
9279 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9280esac
9281
9282
9283
9284
9285 for ac_header in $ac_header_list
9286do :
9287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9289"
2018939f 9290if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
9291 cat >>confdefs.h <<_ACEOF
9292#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9293_ACEOF
9294
9295fi
9296
9297done
9298
9299
9300
9301
9302
9303
9304
9305
9306for ac_func in getpagesize
9307do :
9308 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d6974efa 9309if test "x$ac_cv_func_getpagesize" = xyes; then :
067d23c9
KY
9310 cat >>confdefs.h <<_ACEOF
9311#define HAVE_GETPAGESIZE 1
9312_ACEOF
9313
9314fi
9315done
9316
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9318$as_echo_n "checking for working mmap... " >&6; }
d6974efa 9319if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
067d23c9
KY
9320 $as_echo_n "(cached) " >&6
9321else
9322 if test "$cross_compiling" = yes; then :
9323 ac_cv_func_mmap_fixed_mapped=no
9324else
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326/* end confdefs.h. */
9327$ac_includes_default
9328/* malloc might have been renamed as rpl_malloc. */
9329#undef malloc
9330
9331/* Thanks to Mike Haertel and Jim Avera for this test.
9332 Here is a matrix of mmap possibilities:
9333 mmap private not fixed
9334 mmap private fixed at somewhere currently unmapped
9335 mmap private fixed at somewhere already mapped
9336 mmap shared not fixed
9337 mmap shared fixed at somewhere currently unmapped
9338 mmap shared fixed at somewhere already mapped
9339 For private mappings, we should verify that changes cannot be read()
9340 back from the file, nor mmap's back from the file at a different
9341 address. (There have been systems where private was not correctly
9342 implemented like the infamous i386 svr4.0, and systems where the
9343 VM page cache was not coherent with the file system buffer cache
9344 like early versions of FreeBSD and possibly contemporary NetBSD.)
9345 For shared mappings, we should conversely verify that changes get
9346 propagated back to all the places they're supposed to be.
9347
9348 Grep wants private fixed already mapped.
9349 The main things grep needs to know about mmap are:
9350 * does it exist and is it safe to write into the mmap'd area
9351 * how to use it (BSD variants) */
9352
9353#include <fcntl.h>
9354#include <sys/mman.h>
9355
9356#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9357char *malloc ();
9358#endif
9359
9360/* This mess was copied from the GNU getpagesize.h. */
9361#ifndef HAVE_GETPAGESIZE
9362# ifdef _SC_PAGESIZE
9363# define getpagesize() sysconf(_SC_PAGESIZE)
9364# else /* no _SC_PAGESIZE */
9365# ifdef HAVE_SYS_PARAM_H
9366# include <sys/param.h>
9367# ifdef EXEC_PAGESIZE
9368# define getpagesize() EXEC_PAGESIZE
9369# else /* no EXEC_PAGESIZE */
9370# ifdef NBPG
9371# define getpagesize() NBPG * CLSIZE
9372# ifndef CLSIZE
9373# define CLSIZE 1
9374# endif /* no CLSIZE */
9375# else /* no NBPG */
9376# ifdef NBPC
9377# define getpagesize() NBPC
9378# else /* no NBPC */
9379# ifdef PAGESIZE
9380# define getpagesize() PAGESIZE
9381# endif /* PAGESIZE */
9382# endif /* no NBPC */
9383# endif /* no NBPG */
9384# endif /* no EXEC_PAGESIZE */
9385# else /* no HAVE_SYS_PARAM_H */
9386# define getpagesize() 8192 /* punt totally */
9387# endif /* no HAVE_SYS_PARAM_H */
9388# endif /* no _SC_PAGESIZE */
9389
9390#endif /* no HAVE_GETPAGESIZE */
9391
9392int
9393main ()
9394{
9395 char *data, *data2, *data3;
2018939f 9396 const char *cdata2;
067d23c9
KY
9397 int i, pagesize;
9398 int fd, fd2;
9399
9400 pagesize = getpagesize ();
9401
9402 /* First, make a file with some known garbage in it. */
9403 data = (char *) malloc (pagesize);
9404 if (!data)
9405 return 1;
9406 for (i = 0; i < pagesize; ++i)
9407 *(data + i) = rand ();
9408 umask (0);
9409 fd = creat ("conftest.mmap", 0600);
9410 if (fd < 0)
9411 return 2;
9412 if (write (fd, data, pagesize) != pagesize)
9413 return 3;
9414 close (fd);
9415
9416 /* Next, check that the tail of a page is zero-filled. File must have
9417 non-zero length, otherwise we risk SIGBUS for entire page. */
9418 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9419 if (fd2 < 0)
9420 return 4;
2018939f
AS
9421 cdata2 = "";
9422 if (write (fd2, cdata2, 1) != 1)
067d23c9 9423 return 5;
2018939f 9424 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
067d23c9
KY
9425 if (data2 == MAP_FAILED)
9426 return 6;
9427 for (i = 0; i < pagesize; ++i)
9428 if (*(data2 + i))
9429 return 7;
9430 close (fd2);
9431 if (munmap (data2, pagesize))
9432 return 8;
9433
9434 /* Next, try to mmap the file at a fixed address which already has
9435 something else allocated at it. If we can, also make sure that
9436 we see the same garbage. */
9437 fd = open ("conftest.mmap", O_RDWR);
9438 if (fd < 0)
9439 return 9;
9440 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9441 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9442 return 10;
9443 for (i = 0; i < pagesize; ++i)
9444 if (*(data + i) != *(data2 + i))
9445 return 11;
9446
9447 /* Finally, make sure that changes to the mapped area do not
9448 percolate back to the file as seen by read(). (This is a bug on
9449 some variants of i386 svr4.0.) */
9450 for (i = 0; i < pagesize; ++i)
9451 *(data2 + i) = *(data2 + i) + 1;
9452 data3 = (char *) malloc (pagesize);
9453 if (!data3)
9454 return 12;
9455 if (read (fd, data3, pagesize) != pagesize)
9456 return 13;
9457 for (i = 0; i < pagesize; ++i)
9458 if (*(data + i) != *(data3 + i))
9459 return 14;
9460 close (fd);
9461 return 0;
9462}
9463_ACEOF
9464if ac_fn_c_try_run "$LINENO"; then :
9465 ac_cv_func_mmap_fixed_mapped=yes
9466else
9467 ac_cv_func_mmap_fixed_mapped=no
9468fi
9469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9470 conftest.$ac_objext conftest.beam conftest.$ac_ext
9471fi
9472
9473fi
9474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9475$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9476if test $ac_cv_func_mmap_fixed_mapped = yes; then
9477
9478$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9479
9480fi
9481rm -f conftest.mmap conftest.txt
9482
9483if test $use_mmap_for_buffers = yes; then
9484
9485$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9486
9487 REL_ALLOC=no
9488fi
9489
9490LIBS="$LIBS_SYSTEM $LIBS"
9491
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9493$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
d6974efa 9494if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
067d23c9
KY
9495 $as_echo_n "(cached) " >&6
9496else
9497 ac_check_lib_save_LIBS=$LIBS
9498LIBS="-ldnet $LIBS"
9499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500/* end confdefs.h. */
9501
9502/* Override any GCC internal prototype to avoid an error.
9503 Use char because int might match the return type of a GCC
9504 builtin and then its argument prototype would still apply. */
9505#ifdef __cplusplus
9506extern "C"
9507#endif
9508char dnet_ntoa ();
9509int
9510main ()
9511{
9512return dnet_ntoa ();
9513 ;
9514 return 0;
9515}
9516_ACEOF
9517if ac_fn_c_try_link "$LINENO"; then :
9518 ac_cv_lib_dnet_dnet_ntoa=yes
9519else
9520 ac_cv_lib_dnet_dnet_ntoa=no
9521fi
9522rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9524LIBS=$ac_check_lib_save_LIBS
9525fi
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9527$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
d6974efa 9528if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
067d23c9
KY
9529 cat >>confdefs.h <<_ACEOF
9530#define HAVE_LIBDNET 1
9531_ACEOF
9532
9533 LIBS="-ldnet $LIBS"
9534
9535fi
9536
9537
9538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9539$as_echo_n "checking for main in -lXbsd... " >&6; }
d6974efa 9540if ${ac_cv_lib_Xbsd_main+:} false; then :
067d23c9
KY
9541 $as_echo_n "(cached) " >&6
9542else
9543 ac_check_lib_save_LIBS=$LIBS
9544LIBS="-lXbsd $LIBS"
9545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546/* end confdefs.h. */
9547
9548
9549int
9550main ()
9551{
9552return main ();
9553 ;
9554 return 0;
9555}
9556_ACEOF
9557if ac_fn_c_try_link "$LINENO"; then :
9558 ac_cv_lib_Xbsd_main=yes
9559else
9560 ac_cv_lib_Xbsd_main=no
9561fi
9562rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564LIBS=$ac_check_lib_save_LIBS
9565fi
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9567$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
d6974efa 9568if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
067d23c9
KY
9569 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9570fi
9571
9572
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9574$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
d6974efa 9575if ${ac_cv_lib_pthreads_cma_open+:} false; then :
067d23c9
KY
9576 $as_echo_n "(cached) " >&6
9577else
9578 ac_check_lib_save_LIBS=$LIBS
9579LIBS="-lpthreads $LIBS"
9580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581/* end confdefs.h. */
9582
9583/* Override any GCC internal prototype to avoid an error.
9584 Use char because int might match the return type of a GCC
9585 builtin and then its argument prototype would still apply. */
9586#ifdef __cplusplus
9587extern "C"
9588#endif
9589char cma_open ();
9590int
9591main ()
9592{
9593return cma_open ();
9594 ;
9595 return 0;
9596}
9597_ACEOF
9598if ac_fn_c_try_link "$LINENO"; then :
9599 ac_cv_lib_pthreads_cma_open=yes
9600else
9601 ac_cv_lib_pthreads_cma_open=no
9602fi
9603rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605LIBS=$ac_check_lib_save_LIBS
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9608$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
d6974efa 9609if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
067d23c9
KY
9610 cat >>confdefs.h <<_ACEOF
9611#define HAVE_LIBPTHREADS 1
9612_ACEOF
9613
9614 LIBS="-lpthreads $LIBS"
9615
9616fi
9617
9618
9619## Note: when using cpp in s/aix4.2.h, this definition depended on
9620## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9621## the system file was sourced. Hence the value of LIBS_SYSTEM
9622## added to LIBS in configure would never contain the pthreads part,
9623## but the value used in Makefiles might. FIXME?
9624##
9625## -lpthreads seems to be necessary for Xlib in X11R6, and should
9626## be harmless on older versions of X where it happens to exist.
9627test "$opsys" = "aix4-2" && \
9628 test $ac_cv_lib_pthreads_cma_open = yes && \
9629 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9630
9631
9632case ${host_os} in
9633aix*)
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9635$as_echo_n "checking for -bbigtoc option... " >&6; }
d6974efa 9636if ${gdb_cv_bigtoc+:} false; then :
067d23c9
KY
9637 $as_echo_n "(cached) " >&6
9638else
9639
9640 case $GCC in
9641 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9642 *) gdb_cv_bigtoc=-bbigtoc ;;
9643 esac
9644
9645 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647/* end confdefs.h. */
9648
9649int
9650main ()
9651{
9652int i;
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657if ac_fn_c_try_link "$LINENO"; then :
9658
9659else
9660 gdb_cv_bigtoc=
9661fi
9662rm -f core conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664
9665fi
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9667$as_echo "$gdb_cv_bigtoc" >&6; }
9668 ;;
9669esac
9670
9671# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9672# used for the tests that follow. We set them back to REAL_CFLAGS and
9673# REAL_CPPFLAGS later on.
9674
9675REAL_CFLAGS="$CFLAGS"
9676REAL_CPPFLAGS="$CPPFLAGS"
9677
9678if test "${HAVE_X11}" = "yes"; then
9679 DEFS="$C_SWITCH_X_SITE $DEFS"
9680 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9681 LIBS="-lX11 $LIBS"
9682 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9683 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9684
9685 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9686 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9687 # but it's more convenient here to set LD_RUN_PATH
9688 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9689 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9690 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9691 export LD_RUN_PATH
9692 fi
9693
9694 if test "${opsys}" = "gnu-linux"; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9696$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698/* end confdefs.h. */
9699
9700int
9701main ()
9702{
9703XOpenDisplay ("foo");
9704 ;
9705 return 0;
9706}
9707_ACEOF
9708if ac_fn_c_try_link "$LINENO"; then :
9709 xlinux_first_failure=no
9710else
9711 xlinux_first_failure=yes
9712fi
9713rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 if test "${xlinux_first_failure}" = "yes"; then
9716 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9717 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9718 OLD_CPPFLAGS="$CPPFLAGS"
9719 OLD_LIBS="$LIBS"
9720 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9721 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9722 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9723 LIBS="$LIBS -b i486-linuxaout"
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h. */
9726
9727int
9728main ()
9729{
9730XOpenDisplay ("foo");
9731 ;
9732 return 0;
9733}
9734_ACEOF
9735if ac_fn_c_try_link "$LINENO"; then :
9736 xlinux_second_failure=no
9737else
9738 xlinux_second_failure=yes
9739fi
9740rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742 if test "${xlinux_second_failure}" = "yes"; then
9743 # If we get the same failure with -b, there is no use adding -b.
9744 # So take it out. This plays safe.
9745 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9746 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9747 CPPFLAGS="$OLD_CPPFLAGS"
9748 LIBS="$OLD_LIBS"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751 else
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9753$as_echo "yes" >&6; }
9754 fi
9755 else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757$as_echo "no" >&6; }
9758 fi
9759 fi
9760
9761 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9762 # header files included from there.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9764$as_echo_n "checking for Xkb... " >&6; }
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h. */
9767#include <X11/Xlib.h>
9768#include <X11/XKBlib.h>
9769int
9770main ()
9771{
9772XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9773 ;
9774 return 0;
9775}
9776_ACEOF
9777if ac_fn_c_try_link "$LINENO"; then :
9778 emacs_xkb=yes
9779else
9780 emacs_xkb=no
9781fi
9782rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9785$as_echo "$emacs_xkb" >&6; }
9786 if test $emacs_xkb = yes; then
9787
9788$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9789
9790 fi
9791
9792 for ac_func in XrmSetDatabase XScreenResourceString \
9793XScreenNumberOfScreen XSetWMProtocols
9794do :
9795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9796ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 9797if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
9798 cat >>confdefs.h <<_ACEOF
9799#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9800_ACEOF
9801
9802fi
9803done
9804
9805fi
9806
9807if test "${window_system}" = "x11"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9809$as_echo_n "checking X11 version 6... " >&6; }
d6974efa 9810 if ${emacs_cv_x11_version_6+:} false; then :
067d23c9
KY
9811 $as_echo_n "(cached) " >&6
9812else
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h. */
9815#include <X11/Xlib.h>
9816int
9817main ()
9818{
9819#if XlibSpecificationRelease < 6
9820fail;
9821#endif
9822
9823 ;
9824 return 0;
9825}
9826_ACEOF
9827if ac_fn_c_try_link "$LINENO"; then :
9828 emacs_cv_x11_version_6=yes
9829else
9830 emacs_cv_x11_version_6=no
9831fi
9832rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834fi
9835
9836 if test $emacs_cv_x11_version_6 = yes; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9838$as_echo "6 or newer" >&6; }
9839
9840$as_echo "#define HAVE_X11R6 1" >>confdefs.h
9841
9842
9843$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9844
9845 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9846 ## XIM support.
9847 case "$opsys" in
9848 sol2-*) : ;;
9849 *)
9850$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9851
9852 ;;
9853 esac
9854 else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9856$as_echo "before 6" >&6; }
9857 fi
9858fi
9859
9860
9861### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9862HAVE_RSVG=no
9863if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9864 if test "${with_rsvg}" != "no"; then
9865 RSVG_REQUIRED=2.11.0
9866 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9867
9868
9869 succeeded=no
9870
9871 # Extract the first word of "pkg-config", so it can be a program name with args.
9872set dummy pkg-config; ac_word=$2
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9875if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9876 $as_echo_n "(cached) " >&6
9877else
9878 case $PKG_CONFIG in
9879 [\\/]* | ?:[\\/]*)
9880 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9881 ;;
9882 *)
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 break 2
9893 fi
9894done
9895 done
9896IFS=$as_save_IFS
9897
9898 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9899 ;;
9900esac
9901fi
9902PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9903if test -n "$PKG_CONFIG"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9905$as_echo "$PKG_CONFIG" >&6; }
9906else
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908$as_echo "no" >&6; }
9909fi
9910
9911
9912
9913 if test "$PKG_CONFIG" = "no" ; then
9914 :
9915 else
9916 PKG_CONFIG_MIN_VERSION=0.9.0
9917 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9919$as_echo_n "checking for $RSVG_MODULE... " >&6; }
9920
9921 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9923$as_echo "yes" >&6; }
9924 succeeded=yes
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9927$as_echo_n "checking RSVG_CFLAGS... " >&6; }
9928 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9930$as_echo "$RSVG_CFLAGS" >&6; }
9931
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9933$as_echo_n "checking RSVG_LIBS... " >&6; }
9934 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9936$as_echo "$RSVG_LIBS" >&6; }
9937 else
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939$as_echo "no" >&6; }
9940 RSVG_CFLAGS=""
9941 RSVG_LIBS=""
9942 ## If we have a custom action on failure, don't print errors, but
9943 ## do set a variable so people can do so.
9944 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9945
9946 fi
9947
9948
9949
9950 else
9951 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9952 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9953 fi
9954 fi
9955
9956 if test $succeeded = yes; then
9957 HAVE_RSVG=yes
9958 else
9959 :
9960 fi
9961
9962
9963
9964
9965 if test $HAVE_RSVG = yes; then
9966
9967$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9968
9969 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9970 LIBS="$RSVG_LIBS $LIBS"
9971 fi
9972 fi
9973fi
9974
9975HAVE_IMAGEMAGICK=no
9976if test "${HAVE_X11}" = "yes"; then
9977 if test "${with_imagemagick}" != "no"; then
9978 IMAGEMAGICK_MODULE="Wand"
9979
9980 succeeded=no
9981
9982 # Extract the first word of "pkg-config", so it can be a program name with args.
9983set dummy pkg-config; ac_word=$2
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9986if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9987 $as_echo_n "(cached) " >&6
9988else
9989 case $PKG_CONFIG in
9990 [\\/]* | ?:[\\/]*)
9991 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9992 ;;
9993 *)
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995for as_dir in $PATH
9996do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10001 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10004 fi
10005done
10006 done
10007IFS=$as_save_IFS
10008
10009 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10010 ;;
10011esac
10012fi
10013PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10014if test -n "$PKG_CONFIG"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10016$as_echo "$PKG_CONFIG" >&6; }
10017else
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019$as_echo "no" >&6; }
10020fi
10021
10022
10023
10024 if test "$PKG_CONFIG" = "no" ; then
10025 :
10026 else
10027 PKG_CONFIG_MIN_VERSION=0.9.0
10028 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10030$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10031
10032 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10034$as_echo "yes" >&6; }
10035 succeeded=yes
10036
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10038$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10039 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10041$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10042
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10044$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10045 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10047$as_echo "$IMAGEMAGICK_LIBS" >&6; }
10048 else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050$as_echo "no" >&6; }
10051 IMAGEMAGICK_CFLAGS=""
10052 IMAGEMAGICK_LIBS=""
10053 ## If we have a custom action on failure, don't print errors, but
10054 ## do set a variable so people can do so.
10055 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10056
10057 fi
10058
10059
10060
10061 else
10062 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10063 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10064 fi
10065 fi
10066
10067 if test $succeeded = yes; then
10068 HAVE_IMAGEMAGICK=yes
10069 else
10070 :
10071 fi
10072
10073
10074
10075
10076 if test $HAVE_IMAGEMAGICK = yes; then
10077
10078$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10079
10080 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10081 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10082 for ac_func in MagickExportImagePixels
10083do :
10084 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
d6974efa 10085if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
067d23c9
KY
10086 cat >>confdefs.h <<_ACEOF
10087#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10088_ACEOF
10089
10090fi
10091done
10092
10093 fi
10094 fi
10095fi
10096
10097
10098HAVE_GTK=no
10099if test "${with_gtk3}" = "yes"; then
10100 GLIB_REQUIRED=2.6
10101 GTK_REQUIRED=2.90
10102 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10103
10104
10105 succeeded=no
10106
10107 # Extract the first word of "pkg-config", so it can be a program name with args.
10108set dummy pkg-config; ac_word=$2
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10111if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10112 $as_echo_n "(cached) " >&6
10113else
10114 case $PKG_CONFIG in
10115 [\\/]* | ?:[\\/]*)
10116 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10117 ;;
10118 *)
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120for as_dir in $PATH
10121do
10122 IFS=$as_save_IFS
10123 test -z "$as_dir" && as_dir=.
10124 for ac_exec_ext in '' $ac_executable_extensions; do
10125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10126 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 break 2
10129 fi
10130done
10131 done
10132IFS=$as_save_IFS
10133
10134 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10135 ;;
10136esac
10137fi
10138PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10139if test -n "$PKG_CONFIG"; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10141$as_echo "$PKG_CONFIG" >&6; }
10142else
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144$as_echo "no" >&6; }
10145fi
10146
10147
10148
10149 if test "$PKG_CONFIG" = "no" ; then
10150 pkg_check_gtk=no
10151 else
10152 PKG_CONFIG_MIN_VERSION=0.9.0
10153 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10155$as_echo_n "checking for $GTK_MODULES... " >&6; }
10156
10157 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159$as_echo "yes" >&6; }
10160 succeeded=yes
10161
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10163$as_echo_n "checking GTK_CFLAGS... " >&6; }
10164 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10166$as_echo "$GTK_CFLAGS" >&6; }
10167
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10169$as_echo_n "checking GTK_LIBS... " >&6; }
10170 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10172$as_echo "$GTK_LIBS" >&6; }
10173 else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
10176 GTK_CFLAGS=""
10177 GTK_LIBS=""
10178 ## If we have a custom action on failure, don't print errors, but
10179 ## do set a variable so people can do so.
10180 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10181
10182 fi
10183
10184
10185
10186 else
10187 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10188 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10189 fi
10190 fi
10191
10192 if test $succeeded = yes; then
10193 pkg_check_gtk=yes
10194 else
10195 pkg_check_gtk=no
10196 fi
10197
10198 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10199 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10200 fi
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; }
d6974efa 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
2018939f 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"
d6974efa 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
d6974efa 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"
d6974efa 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"
d6974efa 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"
d6974efa 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; }
d6974efa 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; }
d6974efa 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"
2018939f 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; }
d6974efa 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"
d6974efa 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; }
d6974efa 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"
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
67342916 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; }
67342916 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; }
d6974efa 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
2018939f 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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; }
d6974efa 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"
d6974efa 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; }
d6974efa 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; }
d6974efa 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
11691 if test "$HAVE_XFT" != "yes"; then
11692 HAVE_XFT=no
11693 fi
11694
067d23c9
KY
11695 ## We used to allow building with FreeType and without Xft.
11696 ## However, the ftx font backend driver is not in good shape.
9ba41eb9 11697 HAVE_FREETYPE=$HAVE_XFT
067d23c9
KY
11698
11699 HAVE_LIBOTF=no
11700 if test "${HAVE_FREETYPE}" = "yes"; then
11701
11702$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11703
11704 if test "${with_libotf}" != "no"; then
11705
11706 succeeded=no
11707
11708 # Extract the first word of "pkg-config", so it can be a program name with args.
11709set dummy pkg-config; ac_word=$2
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11712if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11713 $as_echo_n "(cached) " >&6
11714else
11715 case $PKG_CONFIG in
11716 [\\/]* | ?:[\\/]*)
11717 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11718 ;;
11719 *)
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721for as_dir in $PATH
11722do
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11727 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 break 2
11730 fi
11731done
11732 done
11733IFS=$as_save_IFS
11734
11735 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11736 ;;
11737esac
11738fi
11739PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11740if test -n "$PKG_CONFIG"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11742$as_echo "$PKG_CONFIG" >&6; }
11743else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
11746fi
11747
11748
11749
11750 if test "$PKG_CONFIG" = "no" ; then
11751 HAVE_LIBOTF=no
11752 else
11753 PKG_CONFIG_MIN_VERSION=0.9.0
11754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11756$as_echo_n "checking for libotf... " >&6; }
11757
11758 if $PKG_CONFIG --exists "libotf" 2>&5; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11760$as_echo "yes" >&6; }
11761 succeeded=yes
11762
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11764$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11765 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11767$as_echo "$LIBOTF_CFLAGS" >&6; }
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11770$as_echo_n "checking LIBOTF_LIBS... " >&6; }
11771 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11773$as_echo "$LIBOTF_LIBS" >&6; }
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776$as_echo "no" >&6; }
11777 LIBOTF_CFLAGS=""
11778 LIBOTF_LIBS=""
11779 ## If we have a custom action on failure, don't print errors, but
11780 ## do set a variable so people can do so.
11781 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11782
11783 fi
11784
11785
11786
11787 else
11788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11790 fi
11791 fi
11792
11793 if test $succeeded = yes; then
11794 HAVE_LIBOTF=yes
11795 else
11796 HAVE_LIBOTF=no
11797 fi
11798
11799 if test "$HAVE_LIBOTF" = "yes"; then
11800
11801$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11802
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11804$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
d6974efa 11805if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
067d23c9
KY
11806 $as_echo_n "(cached) " >&6
11807else
11808 ac_check_lib_save_LIBS=$LIBS
11809LIBS="-lotf $LIBS"
11810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811/* end confdefs.h. */
11812
11813/* Override any GCC internal prototype to avoid an error.
11814 Use char because int might match the return type of a GCC
11815 builtin and then its argument prototype would still apply. */
11816#ifdef __cplusplus
11817extern "C"
11818#endif
11819char OTF_get_variation_glyphs ();
11820int
11821main ()
11822{
11823return OTF_get_variation_glyphs ();
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828if ac_fn_c_try_link "$LINENO"; then :
11829 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11830else
11831 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11832fi
11833rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835LIBS=$ac_check_lib_save_LIBS
11836fi
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11838$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
d6974efa 11839if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
067d23c9
KY
11840 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11841else
11842 HAVE_OTF_GET_VARIATION_GLYPHS=no
11843fi
11844
11845 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11846
11847$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11848
11849 fi
11850 fi
11851 fi
11852 fi
11853
11854 HAVE_M17N_FLT=no
11855 if test "${HAVE_LIBOTF}" = yes; then
11856 if test "${with_m17n_flt}" != "no"; then
11857
11858 succeeded=no
11859
11860 # Extract the first word of "pkg-config", so it can be a program name with args.
11861set dummy pkg-config; ac_word=$2
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11864if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11865 $as_echo_n "(cached) " >&6
11866else
11867 case $PKG_CONFIG in
11868 [\\/]* | ?:[\\/]*)
11869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11870 ;;
11871 *)
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $PATH
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883done
11884 done
11885IFS=$as_save_IFS
11886
11887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11888 ;;
11889esac
11890fi
11891PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11892if test -n "$PKG_CONFIG"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11894$as_echo "$PKG_CONFIG" >&6; }
11895else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
11898fi
11899
11900
11901
11902 if test "$PKG_CONFIG" = "no" ; then
11903 HAVE_M17N_FLT=no
11904 else
11905 PKG_CONFIG_MIN_VERSION=0.9.0
11906 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11908$as_echo_n "checking for m17n-flt... " >&6; }
11909
11910 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11912$as_echo "yes" >&6; }
11913 succeeded=yes
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11916$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11917 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11919$as_echo "$M17N_FLT_CFLAGS" >&6; }
11920
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11922$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11923 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11925$as_echo "$M17N_FLT_LIBS" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
11929 M17N_FLT_CFLAGS=""
11930 M17N_FLT_LIBS=""
11931 ## If we have a custom action on failure, don't print errors, but
11932 ## do set a variable so people can do so.
11933 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11934
11935 fi
11936
11937
11938
11939 else
11940 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11941 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11942 fi
11943 fi
11944
11945 if test $succeeded = yes; then
11946 HAVE_M17N_FLT=yes
11947 else
11948 HAVE_M17N_FLT=no
11949 fi
11950
11951 if test "$HAVE_M17N_FLT" = "yes"; then
11952
11953$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11954
11955 fi
11956 fi
11957 fi
11958else
11959 HAVE_XFT=no
11960 HAVE_FREETYPE=no
11961 HAVE_LIBOTF=no
11962 HAVE_M17N_FLT=no
11963fi
11964
11965### End of font-backend (under X11) section.
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976### Use -lXpm if available, unless `--with-xpm=no'.
11977HAVE_XPM=no
11978LIBXPM=
11979if test "${HAVE_X11}" = "yes"; then
11980 if test "${with_xpm}" != "no"; then
11981 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
d6974efa 11982if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
067d23c9
KY
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11984$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
d6974efa 11985if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
067d23c9
KY
11986 $as_echo_n "(cached) " >&6
11987else
11988 ac_check_lib_save_LIBS=$LIBS
11989LIBS="-lXpm -lX11 $LIBS"
11990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991/* end confdefs.h. */
11992
11993/* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
11996#ifdef __cplusplus
11997extern "C"
11998#endif
11999char XpmReadFileToPixmap ();
12000int
12001main ()
12002{
12003return XpmReadFileToPixmap ();
12004 ;
12005 return 0;
12006}
12007_ACEOF
12008if ac_fn_c_try_link "$LINENO"; then :
12009 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12010else
12011 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12012fi
12013rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015LIBS=$ac_check_lib_save_LIBS
12016fi
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12018$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
d6974efa 12019if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
067d23c9
KY
12020 HAVE_XPM=yes
12021fi
12022
12023fi
12024
12025
12026 if test "${HAVE_XPM}" = "yes"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12028$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030/* end confdefs.h. */
12031#include "X11/xpm.h"
12032#ifndef XpmReturnAllocPixels
12033no_return_alloc_pixels
12034#endif
12035
12036_ACEOF
12037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12038 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12039 HAVE_XPM=no
12040else
12041 HAVE_XPM=yes
12042fi
12043rm -f conftest*
12044
12045
12046 if test "${HAVE_XPM}" = "yes"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12048$as_echo "yes" >&6; }
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051$as_echo "no" >&6; }
12052 fi
12053 fi
12054 fi
12055
12056 if test "${HAVE_XPM}" = "yes"; then
12057
12058$as_echo "#define HAVE_XPM 1" >>confdefs.h
12059
12060 LIBXPM=-lXpm
12061 fi
12062fi
12063
12064
12065### Use -ljpeg if available, unless `--with-jpeg=no'.
12066HAVE_JPEG=no
12067LIBJPEG=
12068if test "${HAVE_X11}" = "yes"; then
12069 if test "${with_jpeg}" != "no"; then
12070 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
d6974efa 12071if test "x$ac_cv_header_jerror_h" = xyes; then :
067d23c9
KY
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12073$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
d6974efa 12074if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
067d23c9
KY
12075 $as_echo_n "(cached) " >&6
12076else
12077 ac_check_lib_save_LIBS=$LIBS
12078LIBS="-ljpeg $LIBS"
12079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080/* end confdefs.h. */
12081
12082/* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12085#ifdef __cplusplus
12086extern "C"
12087#endif
12088char jpeg_destroy_compress ();
12089int
12090main ()
12091{
12092return jpeg_destroy_compress ();
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097if ac_fn_c_try_link "$LINENO"; then :
12098 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12099else
12100 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12101fi
12102rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104LIBS=$ac_check_lib_save_LIBS
12105fi
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12107$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
d6974efa 12108if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
067d23c9
KY
12109 HAVE_JPEG=yes
12110fi
12111
12112fi
12113
12114
12115 fi
12116
12117 if test "${HAVE_JPEG}" = "yes"; then
12118 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12119
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121/* end confdefs.h. */
12122#include <jpeglib.h>
12123 version=JPEG_LIB_VERSION
12124
12125_ACEOF
12126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12127 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12128 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12129
12130else
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12132$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12133 HAVE_JPEG=no
12134fi
12135rm -f conftest*
12136
12137 fi
12138 if test "${HAVE_JPEG}" = "yes"; then
12139 LIBJPEG=-ljpeg
12140 fi
12141fi
12142
12143
12144### Use -lpng if available, unless `--with-png=no'.
12145HAVE_PNG=no
12146LIBPNG=
12147if test "${HAVE_X11}" = "yes"; then
12148 if test "${with_png}" != "no"; then
12149 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12150 # in /usr/include/libpng.
12151 for ac_header in png.h libpng/png.h
12152do :
12153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12154ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 12155if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
12156 cat >>confdefs.h <<_ACEOF
12157#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12158_ACEOF
12159
12160fi
12161
12162done
12163
12164 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12166$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
d6974efa 12167if ${ac_cv_lib_png_png_get_channels+:} false; then :
067d23c9
KY
12168 $as_echo_n "(cached) " >&6
12169else
12170 ac_check_lib_save_LIBS=$LIBS
12171LIBS="-lpng -lz -lm $LIBS"
12172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173/* end confdefs.h. */
12174
12175/* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178#ifdef __cplusplus
12179extern "C"
12180#endif
12181char png_get_channels ();
12182int
12183main ()
12184{
12185return png_get_channels ();
12186 ;
12187 return 0;
12188}
12189_ACEOF
12190if ac_fn_c_try_link "$LINENO"; then :
12191 ac_cv_lib_png_png_get_channels=yes
12192else
12193 ac_cv_lib_png_png_get_channels=no
12194fi
12195rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197LIBS=$ac_check_lib_save_LIBS
12198fi
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12200$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
d6974efa 12201if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
067d23c9
KY
12202 HAVE_PNG=yes
12203fi
12204
12205 fi
12206 fi
12207
12208 if test "${HAVE_PNG}" = "yes"; then
12209
12210$as_echo "#define HAVE_PNG 1" >>confdefs.h
12211
12212 LIBPNG="-lpng -lz -lm"
12213 fi
12214fi
12215
12216
12217### Use -ltiff if available, unless `--with-tiff=no'.
12218HAVE_TIFF=no
12219LIBTIFF=
12220if test "${HAVE_X11}" = "yes"; then
12221 if test "${with_tiff}" != "no"; then
12222 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
d6974efa 12223if test "x$ac_cv_header_tiffio_h" = xyes; then :
067d23c9
KY
12224 tifflibs="-lz -lm"
12225 # At least one tiff package requires the jpeg library.
12226 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12228$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
d6974efa 12229if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
067d23c9
KY
12230 $as_echo_n "(cached) " >&6
12231else
12232 ac_check_lib_save_LIBS=$LIBS
12233LIBS="-ltiff $tifflibs $LIBS"
12234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235/* end confdefs.h. */
12236
12237/* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12240#ifdef __cplusplus
12241extern "C"
12242#endif
12243char TIFFGetVersion ();
12244int
12245main ()
12246{
12247return TIFFGetVersion ();
12248 ;
12249 return 0;
12250}
12251_ACEOF
12252if ac_fn_c_try_link "$LINENO"; then :
12253 ac_cv_lib_tiff_TIFFGetVersion=yes
12254else
12255 ac_cv_lib_tiff_TIFFGetVersion=no
12256fi
12257rm -f core conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12259LIBS=$ac_check_lib_save_LIBS
12260fi
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12262$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
d6974efa 12263if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
067d23c9
KY
12264 HAVE_TIFF=yes
12265fi
12266
12267fi
12268
12269
12270 fi
12271
12272 if test "${HAVE_TIFF}" = "yes"; then
12273
12274$as_echo "#define HAVE_TIFF 1" >>confdefs.h
12275
12276 LIBTIFF=-ltiff
12277 fi
12278fi
12279
12280
12281### Use -lgif or -lungif if available, unless `--with-gif=no'.
12282HAVE_GIF=no
12283LIBGIF=
12284if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12285 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
d6974efa 12286if test "x$ac_cv_header_gif_lib_h" = xyes; then :
067d23c9
KY
12287 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12288# Earlier versions can crash Emacs.
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12290$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
d6974efa 12291if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12292 $as_echo_n "(cached) " >&6
12293else
12294 ac_check_lib_save_LIBS=$LIBS
12295LIBS="-lgif $LIBS"
12296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297/* end confdefs.h. */
12298
12299/* Override any GCC internal prototype to avoid an error.
12300 Use char because int might match the return type of a GCC
12301 builtin and then its argument prototype would still apply. */
12302#ifdef __cplusplus
12303extern "C"
12304#endif
12305char EGifPutExtensionLast ();
12306int
12307main ()
12308{
12309return EGifPutExtensionLast ();
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314if ac_fn_c_try_link "$LINENO"; then :
12315 ac_cv_lib_gif_EGifPutExtensionLast=yes
12316else
12317 ac_cv_lib_gif_EGifPutExtensionLast=no
12318fi
12319rm -f core conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12321LIBS=$ac_check_lib_save_LIBS
12322fi
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12324$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
d6974efa 12325if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12326 HAVE_GIF=yes
12327else
12328 HAVE_GIF=maybe
12329fi
12330
12331fi
12332
12333
12334
12335 if test "$HAVE_GIF" = yes; then
12336 LIBGIF=-lgif
12337 elif test "$HAVE_GIF" = maybe; then
12338# If gif_lib.h but no libgif, try libungif.
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12340$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
d6974efa 12341if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12342 $as_echo_n "(cached) " >&6
12343else
12344 ac_check_lib_save_LIBS=$LIBS
12345LIBS="-lungif $LIBS"
12346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347/* end confdefs.h. */
12348
12349/* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12352#ifdef __cplusplus
12353extern "C"
12354#endif
12355char EGifPutExtensionLast ();
12356int
12357main ()
12358{
12359return EGifPutExtensionLast ();
12360 ;
12361 return 0;
12362}
12363_ACEOF
12364if ac_fn_c_try_link "$LINENO"; then :
12365 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12366else
12367 ac_cv_lib_ungif_EGifPutExtensionLast=no
12368fi
12369rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371LIBS=$ac_check_lib_save_LIBS
12372fi
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12374$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
d6974efa 12375if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12376 HAVE_GIF=yes
12377else
12378 HAVE_GIF=no
12379fi
12380
12381 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12382 fi
12383
12384 if test "${HAVE_GIF}" = "yes"; then
12385
12386$as_echo "#define HAVE_GIF 1" >>confdefs.h
12387
12388 fi
12389fi
12390
12391
12392if test "${HAVE_X11}" = "yes"; then
12393 MISSING=""
12394 WITH_NO=""
12395 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12396 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12397 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12398 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12399 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12400 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12401 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12402 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12403 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12404 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12405
12406 if test "X${MISSING}" != X; then
2018939f 12407 as_fn_error $? "The following required libraries were not found:
067d23c9
KY
12408 $MISSING
12409Maybe some development libraries/packages are missing?
12410If you don't want to link with them give
12411 $WITH_NO
12412as options to configure" "$LINENO" 5
12413 fi
12414fi
12415
12416### Use -lgpm if available, unless `--with-gpm=no'.
12417HAVE_GPM=no
12418LIBGPM=
12419MOUSE_SUPPORT=
12420if test "${with_gpm}" != "no"; then
12421 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
d6974efa 12422if test "x$ac_cv_header_gpm_h" = xyes; then :
067d23c9
KY
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12424$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
d6974efa 12425if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
067d23c9
KY
12426 $as_echo_n "(cached) " >&6
12427else
12428 ac_check_lib_save_LIBS=$LIBS
12429LIBS="-lgpm $LIBS"
12430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431/* end confdefs.h. */
12432
12433/* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436#ifdef __cplusplus
12437extern "C"
12438#endif
12439char Gpm_Open ();
12440int
12441main ()
12442{
12443return Gpm_Open ();
12444 ;
12445 return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_link "$LINENO"; then :
12449 ac_cv_lib_gpm_Gpm_Open=yes
12450else
12451 ac_cv_lib_gpm_Gpm_Open=no
12452fi
12453rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455LIBS=$ac_check_lib_save_LIBS
12456fi
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12458$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
d6974efa 12459if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
067d23c9
KY
12460 HAVE_GPM=yes
12461fi
12462
12463fi
12464
12465
12466
12467 if test "${HAVE_GPM}" = "yes"; then
12468
12469$as_echo "#define HAVE_GPM 1" >>confdefs.h
12470
12471 LIBGPM=-lgpm
12472 ## May be reset below.
12473 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12474 fi
12475fi
12476
12477
12478ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
d6974efa 12479if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
067d23c9
KY
12480
12481$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12482
12483fi
12484
12485
12486
12487C_SWITCH_X_SYSTEM=
12488### Use NeXTstep API to implement GUI.
12489if test "${HAVE_NS}" = "yes"; then
12490
12491$as_echo "#define HAVE_NS 1" >>confdefs.h
12492
12493 if test "${NS_IMPL_COCOA}" = "yes"; then
12494
12495$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12496
12497 GNU_OBJC_CFLAGS=
12498 fi
12499 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12500
12501$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12502
12503 # See also .m.o rule in Makefile.in */
12504 # FIXME: are all these flags really needed? Document here why. */
12505 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12506 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12507 fi
12508 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12509
12510$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12511
12512 fi
12513 # We also have mouse menus.
12514 HAVE_MENUS=yes
12515 OTHER_FILES=ns-app
12516fi
12517
12518
12519### Use session management (-lSM -lICE) if available
12520HAVE_X_SM=no
12521LIBXSM=
12522if test "${HAVE_X11}" = "yes"; then
12523 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
d6974efa 12524if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
067d23c9
KY
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12526$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
d6974efa 12527if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
067d23c9
KY
12528 $as_echo_n "(cached) " >&6
12529else
12530 ac_check_lib_save_LIBS=$LIBS
12531LIBS="-lSM -lICE $LIBS"
12532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533/* end confdefs.h. */
12534
12535/* Override any GCC internal prototype to avoid an error.
12536 Use char because int might match the return type of a GCC
12537 builtin and then its argument prototype would still apply. */
12538#ifdef __cplusplus
12539extern "C"
12540#endif
12541char SmcOpenConnection ();
12542int
12543main ()
12544{
12545return SmcOpenConnection ();
12546 ;
12547 return 0;
12548}
12549_ACEOF
12550if ac_fn_c_try_link "$LINENO"; then :
12551 ac_cv_lib_SM_SmcOpenConnection=yes
12552else
12553 ac_cv_lib_SM_SmcOpenConnection=no
12554fi
12555rm -f core conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12557LIBS=$ac_check_lib_save_LIBS
12558fi
12559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12560$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
d6974efa 12561if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
067d23c9
KY
12562 HAVE_X_SM=yes
12563fi
12564
12565fi
12566
12567
12568
12569 if test "${HAVE_X_SM}" = "yes"; then
12570
12571$as_echo "#define HAVE_X_SM 1" >>confdefs.h
12572
12573 LIBXSM="-lSM -lICE"
12574 case "$LIBS" in
12575 *-lSM*) ;;
12576 *) LIBS="$LIBXSM $LIBS" ;;
12577 esac
12578 fi
12579fi
12580
12581
12582### Use libxml (-lxml2) if available
12583if test "${with_xml2}" != "no"; then
12584 ### I'm not sure what the version number should be, so I just guessed.
12585
12586 succeeded=no
12587
12588 # Extract the first word of "pkg-config", so it can be a program name with args.
12589set dummy pkg-config; ac_word=$2
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 12592if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
12593 $as_echo_n "(cached) " >&6
12594else
12595 case $PKG_CONFIG in
12596 [\\/]* | ?:[\\/]*)
12597 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12598 ;;
12599 *)
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611done
12612 done
12613IFS=$as_save_IFS
12614
12615 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12616 ;;
12617esac
12618fi
12619PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12620if test -n "$PKG_CONFIG"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12622$as_echo "$PKG_CONFIG" >&6; }
12623else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625$as_echo "no" >&6; }
12626fi
12627
12628
12629
12630 if test "$PKG_CONFIG" = "no" ; then
12631 HAVE_LIBXML2=no
12632 else
12633 PKG_CONFIG_MIN_VERSION=0.9.0
12634 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
dab73760
CY
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12636$as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
067d23c9 12637
dab73760 12638 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
067d23c9
KY
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12640$as_echo "yes" >&6; }
12641 succeeded=yes
12642
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12644$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
dab73760 12645 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12647$as_echo "$LIBXML2_CFLAGS" >&6; }
12648
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12650$as_echo_n "checking LIBXML2_LIBS... " >&6; }
dab73760 12651 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12653$as_echo "$LIBXML2_LIBS" >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656$as_echo "no" >&6; }
12657 LIBXML2_CFLAGS=""
12658 LIBXML2_LIBS=""
12659 ## If we have a custom action on failure, don't print errors, but
12660 ## do set a variable so people can do so.
dab73760 12661 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
067d23c9
KY
12662
12663 fi
12664
12665
12666
12667 else
12668 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12669 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12670 fi
12671 fi
12672
12673 if test $succeeded = yes; then
12674 HAVE_LIBXML2=yes
12675 else
12676 HAVE_LIBXML2=no
12677 fi
12678
12679 if test "${HAVE_LIBXML2}" = "yes"; then
12680 LIBS="$LIBXML2_LIBS $LIBS"
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12682$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
d6974efa 12683if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
067d23c9
KY
12684 $as_echo_n "(cached) " >&6
12685else
12686 ac_check_lib_save_LIBS=$LIBS
12687LIBS="-lxml2 $LIBS"
12688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689/* end confdefs.h. */
12690
12691/* Override any GCC internal prototype to avoid an error.
12692 Use char because int might match the return type of a GCC
12693 builtin and then its argument prototype would still apply. */
12694#ifdef __cplusplus
12695extern "C"
12696#endif
12697char htmlReadMemory ();
12698int
12699main ()
12700{
12701return htmlReadMemory ();
12702 ;
12703 return 0;
12704}
12705_ACEOF
12706if ac_fn_c_try_link "$LINENO"; then :
12707 ac_cv_lib_xml2_htmlReadMemory=yes
12708else
12709 ac_cv_lib_xml2_htmlReadMemory=no
12710fi
12711rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713LIBS=$ac_check_lib_save_LIBS
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12716$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
d6974efa 12717if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
067d23c9
KY
12718 HAVE_LIBXML2=yes
12719else
12720 HAVE_LIBXML2=no
12721fi
12722
12723 if test "${HAVE_LIBXML2}" = "yes"; then
12724
12725$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12726
12727 else
12728 LIBXML2_LIBS=""
12729 LIBXML2_CFLAGS=""
12730 fi
12731 fi
12732fi
12733
12734
12735
12736# If netdb.h doesn't declare h_errno, we must declare it by hand.
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12738$as_echo_n "checking whether netdb declares h_errno... " >&6; }
d6974efa 12739if ${emacs_cv_netdb_declares_h_errno+:} false; then :
067d23c9
KY
12740 $as_echo_n "(cached) " >&6
12741else
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743/* end confdefs.h. */
12744#include <netdb.h>
12745int
12746main ()
12747{
12748return h_errno;
12749 ;
12750 return 0;
12751}
12752_ACEOF
12753if ac_fn_c_try_link "$LINENO"; then :
12754 emacs_cv_netdb_declares_h_errno=yes
12755else
12756 emacs_cv_netdb_declares_h_errno=no
12757fi
12758rm -f core conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
12760fi
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12762$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12763if test $emacs_cv_netdb_declares_h_errno = yes; then
12764
12765$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12766
12767fi
12768
d6974efa
PE
12769ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12770if test "x$ac_cv_type_size_t" = xyes; then :
12771
12772else
12773
12774cat >>confdefs.h <<_ACEOF
12775#define size_t unsigned int
12776_ACEOF
12777
12778fi
12779
067d23c9
KY
12780# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12781# for constant arguments. Useless!
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12783$as_echo_n "checking for working alloca.h... " >&6; }
d6974efa 12784if ${ac_cv_working_alloca_h+:} false; then :
067d23c9
KY
12785 $as_echo_n "(cached) " >&6
12786else
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788/* end confdefs.h. */
12789#include <alloca.h>
12790int
12791main ()
12792{
12793char *p = (char *) alloca (2 * sizeof (int));
12794 if (p) return 0;
12795 ;
12796 return 0;
12797}
12798_ACEOF
12799if ac_fn_c_try_link "$LINENO"; then :
12800 ac_cv_working_alloca_h=yes
12801else
12802 ac_cv_working_alloca_h=no
12803fi
12804rm -f core conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806fi
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12808$as_echo "$ac_cv_working_alloca_h" >&6; }
12809if test $ac_cv_working_alloca_h = yes; then
12810
12811$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12812
12813fi
12814
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12816$as_echo_n "checking for alloca... " >&6; }
d6974efa 12817if ${ac_cv_func_alloca_works+:} false; then :
067d23c9
KY
12818 $as_echo_n "(cached) " >&6
12819else
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821/* end confdefs.h. */
12822#ifdef __GNUC__
12823# define alloca __builtin_alloca
12824#else
12825# ifdef _MSC_VER
12826# include <malloc.h>
12827# define alloca _alloca
12828# else
12829# ifdef HAVE_ALLOCA_H
12830# include <alloca.h>
12831# else
12832# ifdef _AIX
12833 #pragma alloca
12834# else
12835# ifndef alloca /* predefined by HP cc +Olibcalls */
d6974efa 12836void *alloca (size_t);
067d23c9
KY
12837# endif
12838# endif
12839# endif
12840# endif
12841#endif
12842
12843int
12844main ()
12845{
12846char *p = (char *) alloca (1);
12847 if (p) return 0;
12848 ;
12849 return 0;
12850}
12851_ACEOF
12852if ac_fn_c_try_link "$LINENO"; then :
12853 ac_cv_func_alloca_works=yes
12854else
12855 ac_cv_func_alloca_works=no
12856fi
12857rm -f core conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
12859fi
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12861$as_echo "$ac_cv_func_alloca_works" >&6; }
12862
12863if test $ac_cv_func_alloca_works = yes; then
12864
12865$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12866
12867else
12868 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12869# that cause trouble. Some versions do not even contain alloca or
12870# contain a buggy version. If you still want to use their alloca,
12871# use ar to extract alloca.o from them instead of compiling alloca.c.
12872
12873ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12874
12875$as_echo "#define C_ALLOCA 1" >>confdefs.h
12876
12877
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12879$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
d6974efa 12880if ${ac_cv_os_cray+:} false; then :
067d23c9
KY
12881 $as_echo_n "(cached) " >&6
12882else
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884/* end confdefs.h. */
12885#if defined CRAY && ! defined CRAY2
12886webecray
12887#else
12888wenotbecray
12889#endif
12890
12891_ACEOF
12892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12893 $EGREP "webecray" >/dev/null 2>&1; then :
12894 ac_cv_os_cray=yes
12895else
12896 ac_cv_os_cray=no
12897fi
12898rm -f conftest*
12899
12900fi
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12902$as_echo "$ac_cv_os_cray" >&6; }
12903if test $ac_cv_os_cray = yes; then
12904 for ac_func in _getb67 GETB67 getb67; do
12905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12906ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12907if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12908
12909cat >>confdefs.h <<_ACEOF
12910#define CRAY_STACKSEG_END $ac_func
12911_ACEOF
12912
12913 break
12914fi
12915
12916 done
12917fi
12918
12919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12920$as_echo_n "checking stack direction for C alloca... " >&6; }
d6974efa 12921if ${ac_cv_c_stack_direction+:} false; then :
067d23c9
KY
12922 $as_echo_n "(cached) " >&6
12923else
12924 if test "$cross_compiling" = yes; then :
12925 ac_cv_c_stack_direction=0
12926else
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928/* end confdefs.h. */
12929$ac_includes_default
12930int
12931find_stack_direction ()
12932{
12933 static char *addr = 0;
12934 auto char dummy;
12935 if (addr == 0)
12936 {
12937 addr = &dummy;
12938 return find_stack_direction ();
12939 }
12940 else
12941 return (&dummy > addr) ? 1 : -1;
12942}
12943
12944int
12945main ()
12946{
12947 return find_stack_direction () < 0;
12948}
12949_ACEOF
12950if ac_fn_c_try_run "$LINENO"; then :
12951 ac_cv_c_stack_direction=1
12952else
12953 ac_cv_c_stack_direction=-1
12954fi
12955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12956 conftest.$ac_objext conftest.beam conftest.$ac_ext
12957fi
12958
12959fi
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12961$as_echo "$ac_cv_c_stack_direction" >&6; }
12962cat >>confdefs.h <<_ACEOF
12963#define STACK_DIRECTION $ac_cv_c_stack_direction
12964_ACEOF
12965
12966
12967fi
12968
12969
12970if test x"$ac_cv_func_alloca_works" != xyes; then
2018939f 12971 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
067d23c9
KY
12972fi
12973
12974# fmod, logb, and frexp are found in -lm on most systems.
12975# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12977$as_echo_n "checking for sqrt in -lm... " >&6; }
d6974efa 12978if ${ac_cv_lib_m_sqrt+:} false; then :
067d23c9
KY
12979 $as_echo_n "(cached) " >&6
12980else
12981 ac_check_lib_save_LIBS=$LIBS
12982LIBS="-lm $LIBS"
12983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984/* end confdefs.h. */
12985
12986/* Override any GCC internal prototype to avoid an error.
12987 Use char because int might match the return type of a GCC
12988 builtin and then its argument prototype would still apply. */
12989#ifdef __cplusplus
12990extern "C"
12991#endif
12992char sqrt ();
12993int
12994main ()
12995{
12996return sqrt ();
12997 ;
12998 return 0;
12999}
13000_ACEOF
13001if ac_fn_c_try_link "$LINENO"; then :
13002 ac_cv_lib_m_sqrt=yes
13003else
13004 ac_cv_lib_m_sqrt=no
13005fi
13006rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13008LIBS=$ac_check_lib_save_LIBS
13009fi
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13011$as_echo "$ac_cv_lib_m_sqrt" >&6; }
d6974efa 13012if test "x$ac_cv_lib_m_sqrt" = xyes; then :
067d23c9
KY
13013 cat >>confdefs.h <<_ACEOF
13014#define HAVE_LIBM 1
13015_ACEOF
13016
13017 LIBS="-lm $LIBS"
13018
13019fi
13020
13021
13022# Check for mail-locking functions in a "mail" library. Probably this should
13023# have the same check as for liblockfile below.
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13025$as_echo_n "checking for maillock in -lmail... " >&6; }
d6974efa 13026if ${ac_cv_lib_mail_maillock+:} false; then :
067d23c9
KY
13027 $as_echo_n "(cached) " >&6
13028else
13029 ac_check_lib_save_LIBS=$LIBS
13030LIBS="-lmail $LIBS"
13031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h. */
13033
13034/* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13037#ifdef __cplusplus
13038extern "C"
13039#endif
13040char maillock ();
13041int
13042main ()
13043{
13044return maillock ();
13045 ;
13046 return 0;
13047}
13048_ACEOF
13049if ac_fn_c_try_link "$LINENO"; then :
13050 ac_cv_lib_mail_maillock=yes
13051else
13052 ac_cv_lib_mail_maillock=no
13053fi
13054rm -f core conftest.err conftest.$ac_objext \
13055 conftest$ac_exeext conftest.$ac_ext
13056LIBS=$ac_check_lib_save_LIBS
13057fi
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13059$as_echo "$ac_cv_lib_mail_maillock" >&6; }
d6974efa 13060if test "x$ac_cv_lib_mail_maillock" = xyes; then :
067d23c9
KY
13061 have_mail=yes
13062else
13063 have_mail=no
13064fi
13065
13066if test $have_mail = yes; then
13067 LIBS_MAIL=-lmail
13068 LIBS="$LIBS_MAIL $LIBS"
13069
13070$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13071
13072else
13073 LIBS_MAIL=
13074fi
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13076$as_echo_n "checking for maillock in -llockfile... " >&6; }
d6974efa 13077if ${ac_cv_lib_lockfile_maillock+:} false; then :
067d23c9
KY
13078 $as_echo_n "(cached) " >&6
13079else
13080 ac_check_lib_save_LIBS=$LIBS
13081LIBS="-llockfile $LIBS"
13082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h. */
13084
13085/* Override any GCC internal prototype to avoid an error.
13086 Use char because int might match the return type of a GCC
13087 builtin and then its argument prototype would still apply. */
13088#ifdef __cplusplus
13089extern "C"
13090#endif
13091char maillock ();
13092int
13093main ()
13094{
13095return maillock ();
13096 ;
13097 return 0;
13098}
13099_ACEOF
13100if ac_fn_c_try_link "$LINENO"; then :
13101 ac_cv_lib_lockfile_maillock=yes
13102else
13103 ac_cv_lib_lockfile_maillock=no
13104fi
13105rm -f core conftest.err conftest.$ac_objext \
13106 conftest$ac_exeext conftest.$ac_ext
13107LIBS=$ac_check_lib_save_LIBS
13108fi
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13110$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
d6974efa 13111if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
067d23c9
KY
13112 have_lockfile=yes
13113else
13114 have_lockfile=no
13115fi
13116
13117if test $have_lockfile = yes; then
13118 LIBS_MAIL=-llockfile
13119 LIBS="$LIBS_MAIL $LIBS"
13120
13121$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13122
13123else
13124# If we have the shared liblockfile, assume we must use it for mail
13125# locking (e.g. Debian). If we couldn't link against liblockfile
13126# (no liblockfile.a installed), ensure that we don't need to.
13127 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13128set dummy liblockfile.so; ac_word=$2
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13130$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 13131if ${ac_cv_prog_liblockfile+:} false; then :
067d23c9
KY
13132 $as_echo_n "(cached) " >&6
13133else
13134 if test -n "$liblockfile"; then
13135 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13136else
13137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13139for as_dir in $as_dummy
13140do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_liblockfile="yes"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149done
13150 done
13151IFS=$as_save_IFS
13152
13153 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13154fi
13155fi
13156liblockfile=$ac_cv_prog_liblockfile
13157if test -n "$liblockfile"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13159$as_echo "$liblockfile" >&6; }
13160else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162$as_echo "no" >&6; }
13163fi
13164
13165
13166 if test $ac_cv_prog_liblockfile = yes; then
2018939f 13167 as_fn_error $? "Shared liblockfile found but can't link against it.
067d23c9
KY
13168This probably means that movemail could lose mail.
13169There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13170 fi
13171fi
13172for ac_func in touchlock
13173do :
13174 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
d6974efa 13175if test "x$ac_cv_func_touchlock" = xyes; then :
067d23c9
KY
13176 cat >>confdefs.h <<_ACEOF
13177#define HAVE_TOUCHLOCK 1
13178_ACEOF
13179
13180fi
13181done
13182
13183for ac_header in maillock.h
13184do :
13185 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
d6974efa 13186if test "x$ac_cv_header_maillock_h" = xyes; then :
067d23c9
KY
13187 cat >>confdefs.h <<_ACEOF
13188#define HAVE_MAILLOCK_H 1
13189_ACEOF
13190
13191fi
13192
13193done
13194
13195
13196
13197## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13198## interlock access to the mail spool. The alternative is a lock file named
13199## /usr/spool/mail/$USER.lock.
13200mail_lock=no
13201case "$opsys" in
13202 aix4-2) mail_lock="lockf" ;;
13203
13204 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13205
13206 ## On GNU/Linux systems, both methods are used by various mail programs.
13207 ## I assume most people are using newer mailers that have heard of flock.
13208 ## Change this if you need to.
13209 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13210 ## configure gets the right answers, and that means *NOT* using flock.
13211 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13212 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13213 ## Debian maintainer hasn't provided a clean fix for Emacs.
13214 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13215 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13216 ## correct logic. -- fx
13217 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13218 ## liblockfile is a Free Software replacement for libmail, used on
13219 ## Debian systems and elsewhere. -rfr.
13220 gnu-*)
13221 mail_lock="flock"
13222 if test $have_mail = yes || test $have_lockfile = yes; then
13223 test $ac_cv_header_maillock_h = yes && mail_lock=no
13224 fi
13225 ;;
13226esac
13227
13228BLESSMAIL_TARGET=
13229case "$mail_lock" in
13230 flock)
13231$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13232 ;;
13233
13234 lockf)
13235$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13236 ;;
13237
13238 *) BLESSMAIL_TARGET="need-blessmail" ;;
13239esac
13240
13241
13242
13243for ac_func in gethostname getdomainname dup2 \
13244rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13245random lrand48 logb frexp fmod rint cbrt ftime setsid \
1fd182f0 13246strerror fpathconf select euidaccess getpagesize tzset setlocale \
067d23c9
KY
13247utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13248__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13249sendto recvfrom getsockopt setsockopt getsockname getpeername \
13250gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13251memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13252cfmakeraw cfsetspeed isnan copysign __executable_start
13253do :
13254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13255ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 13256if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
13257 cat >>confdefs.h <<_ACEOF
13258#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13259_ACEOF
13260
13261fi
13262done
13263
13264
2018939f
AS
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13266$as_echo_n "checking for __builtin_unwind_init... " >&6; }
d6974efa 13267if ${emacs_cv_func___builtin_unwind_init+:} false; then :
2018939f
AS
13268 $as_echo_n "(cached) " >&6
13269else
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271/* end confdefs.h. */
13272
13273int
13274main ()
13275{
13276__builtin_unwind_init ();
13277 ;
13278 return 0;
13279}
13280_ACEOF
13281if ac_fn_c_try_link "$LINENO"; then :
13282 emacs_cv_func___builtin_unwind_init=yes
13283else
13284 emacs_cv_func___builtin_unwind_init=no
13285fi
13286rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288fi
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13290$as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13291if test $emacs_cv_func___builtin_unwind_init = yes; then
13292
13293$as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13294
13295fi
13296
067d23c9
KY
13297for ac_header in sys/un.h
13298do :
13299 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
d6974efa 13300if test "x$ac_cv_header_sys_un_h" = xyes; then :
067d23c9
KY
13301 cat >>confdefs.h <<_ACEOF
13302#define HAVE_SYS_UN_H 1
13303_ACEOF
13304
13305fi
13306
13307done
13308
13309
1f5d53eb
PE
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13311$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13312if ${ac_cv_sys_largefile_source+:} false; then :
067d23c9
KY
13313 $as_echo_n "(cached) " >&6
13314else
1f5d53eb
PE
13315 while :; do
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13317/* end confdefs.h. */
1f5d53eb
PE
13318#include <sys/types.h> /* for off_t */
13319 #include <stdio.h>
067d23c9
KY
13320int
13321main ()
13322{
1f5d53eb
PE
13323int (*fp) (FILE *, off_t, int) = fseeko;
13324 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13325 ;
13326 return 0;
13327}
13328_ACEOF
13329if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13330 ac_cv_sys_largefile_source=no; break
067d23c9
KY
13331fi
13332rm -f core conftest.err conftest.$ac_objext \
13333 conftest$ac_exeext conftest.$ac_ext
1f5d53eb 13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13335/* end confdefs.h. */
1f5d53eb
PE
13336#define _LARGEFILE_SOURCE 1
13337#include <sys/types.h> /* for off_t */
13338 #include <stdio.h>
067d23c9
KY
13339int
13340main ()
13341{
1f5d53eb
PE
13342int (*fp) (FILE *, off_t, int) = fseeko;
13343 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13344 ;
13345 return 0;
13346}
13347_ACEOF
13348if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13349 ac_cv_sys_largefile_source=1; break
067d23c9
KY
13350fi
13351rm -f core conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
1f5d53eb
PE
13353 ac_cv_sys_largefile_source=unknown
13354 break
13355done
067d23c9 13356fi
1f5d53eb
PE
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13358$as_echo "$ac_cv_sys_largefile_source" >&6; }
13359case $ac_cv_sys_largefile_source in #(
13360 no | unknown) ;;
13361 *)
13362cat >>confdefs.h <<_ACEOF
13363#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13364_ACEOF
13365;;
13366esac
13367rm -rf conftest*
067d23c9 13368
1f5d53eb
PE
13369# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13370# in glibc 2.1.3, but that breaks too many other things.
13371# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13372if test $ac_cv_sys_largefile_source != unknown; then
13373
13374$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
067d23c9 13375
067d23c9
KY
13376fi
13377
1f5d53eb
PE
13378
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13380$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13381if ${ac_cv_func_getpgrp_void+:} false; then :
067d23c9
KY
13382 $as_echo_n "(cached) " >&6
13383else
1f5d53eb 13384 # Use it with a single arg.
067d23c9
KY
13385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386/* end confdefs.h. */
1f5d53eb 13387$ac_includes_default
067d23c9
KY
13388int
13389main ()
13390{
1f5d53eb 13391getpgrp (0);
067d23c9
KY
13392 ;
13393 return 0;
13394}
13395_ACEOF
1f5d53eb
PE
13396if ac_fn_c_try_compile "$LINENO"; then :
13397 ac_cv_func_getpgrp_void=no
067d23c9 13398else
1f5d53eb 13399 ac_cv_func_getpgrp_void=yes
067d23c9 13400fi
1f5d53eb
PE
13401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402
067d23c9 13403fi
1f5d53eb
PE
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13405$as_echo "$ac_cv_func_getpgrp_void" >&6; }
13406if test $ac_cv_func_getpgrp_void = yes; then
13407
13408$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
067d23c9
KY
13409
13410fi
13411
1f5d53eb
PE
13412
13413# Configure gnulib.
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424 LIBC_FATAL_STDERR_=1
13425 export LIBC_FATAL_STDERR_
13426
13427
942f733f
PE
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13429$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13430if ${ac_cv_c_bigendian+:} false; then :
13431 $as_echo_n "(cached) " >&6
13432else
13433 ac_cv_c_bigendian=unknown
13434 # See if we're dealing with a universal compiler.
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436/* end confdefs.h. */
13437#ifndef __APPLE_CC__
13438 not a universal capable compiler
13439 #endif
13440 typedef int dummy;
13441
13442_ACEOF
13443if ac_fn_c_try_compile "$LINENO"; then :
13444
13445 # Check for potential -arch flags. It is not universal unless
13446 # there are at least two -arch flags with different values.
13447 ac_arch=
13448 ac_prev=
13449 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13450 if test -n "$ac_prev"; then
13451 case $ac_word in
13452 i?86 | x86_64 | ppc | ppc64)
13453 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13454 ac_arch=$ac_word
13455 else
13456 ac_cv_c_bigendian=universal
13457 break
13458 fi
13459 ;;
13460 esac
13461 ac_prev=
13462 elif test "x$ac_word" = "x-arch"; then
13463 ac_prev=arch
13464 fi
13465 done
13466fi
13467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 if test $ac_cv_c_bigendian = unknown; then
13469 # See if sys/param.h defines the BYTE_ORDER macro.
13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471/* end confdefs.h. */
13472#include <sys/types.h>
13473 #include <sys/param.h>
13474
13475int
13476main ()
13477{
13478#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13479 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13480 && LITTLE_ENDIAN)
13481 bogus endian macros
13482 #endif
13483
13484 ;
13485 return 0;
13486}
13487_ACEOF
13488if ac_fn_c_try_compile "$LINENO"; then :
13489 # It does; now see whether it defined to BIG_ENDIAN or not.
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h. */
13492#include <sys/types.h>
13493 #include <sys/param.h>
13494
13495int
13496main ()
13497{
13498#if BYTE_ORDER != BIG_ENDIAN
13499 not big endian
13500 #endif
13501
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506if ac_fn_c_try_compile "$LINENO"; then :
13507 ac_cv_c_bigendian=yes
13508else
13509 ac_cv_c_bigendian=no
13510fi
13511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512fi
13513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 fi
13515 if test $ac_cv_c_bigendian = unknown; then
13516 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518/* end confdefs.h. */
13519#include <limits.h>
13520
13521int
13522main ()
13523{
13524#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13525 bogus endian macros
13526 #endif
13527
13528 ;
13529 return 0;
13530}
13531_ACEOF
13532if ac_fn_c_try_compile "$LINENO"; then :
13533 # It does; now see whether it defined to _BIG_ENDIAN or not.
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535/* end confdefs.h. */
13536#include <limits.h>
13537
13538int
13539main ()
13540{
13541#ifndef _BIG_ENDIAN
13542 not big endian
13543 #endif
13544
13545 ;
13546 return 0;
13547}
13548_ACEOF
13549if ac_fn_c_try_compile "$LINENO"; then :
13550 ac_cv_c_bigendian=yes
13551else
13552 ac_cv_c_bigendian=no
13553fi
13554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555fi
13556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557 fi
13558 if test $ac_cv_c_bigendian = unknown; then
13559 # Compile a test program.
13560 if test "$cross_compiling" = yes; then :
13561 # Try to guess by grepping values from an object file.
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563/* end confdefs.h. */
13564short int ascii_mm[] =
13565 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13566 short int ascii_ii[] =
13567 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13568 int use_ascii (int i) {
13569 return ascii_mm[i] + ascii_ii[i];
13570 }
13571 short int ebcdic_ii[] =
13572 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13573 short int ebcdic_mm[] =
13574 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13575 int use_ebcdic (int i) {
13576 return ebcdic_mm[i] + ebcdic_ii[i];
13577 }
13578 extern int foo;
13579
13580int
13581main ()
13582{
13583return use_ascii (foo) == use_ebcdic (foo);
13584 ;
13585 return 0;
13586}
13587_ACEOF
13588if ac_fn_c_try_compile "$LINENO"; then :
13589 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13590 ac_cv_c_bigendian=yes
13591 fi
13592 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13593 if test "$ac_cv_c_bigendian" = unknown; then
13594 ac_cv_c_bigendian=no
13595 else
13596 # finding both strings is unlikely to happen, but who knows?
13597 ac_cv_c_bigendian=unknown
13598 fi
13599 fi
13600fi
13601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602else
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604/* end confdefs.h. */
13605$ac_includes_default
13606int
13607main ()
13608{
13609
13610 /* Are we little or big endian? From Harbison&Steele. */
13611 union
13612 {
13613 long int l;
13614 char c[sizeof (long int)];
13615 } u;
13616 u.l = 1;
13617 return u.c[sizeof (long int) - 1] == 1;
13618
13619 ;
13620 return 0;
13621}
13622_ACEOF
13623if ac_fn_c_try_run "$LINENO"; then :
13624 ac_cv_c_bigendian=no
13625else
13626 ac_cv_c_bigendian=yes
13627fi
13628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13629 conftest.$ac_objext conftest.beam conftest.$ac_ext
13630fi
13631
13632 fi
13633fi
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13635$as_echo "$ac_cv_c_bigendian" >&6; }
13636 case $ac_cv_c_bigendian in #(
13637 yes)
13638 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13639;; #(
13640 no)
13641 ;; #(
13642 universal)
13643
13644$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13645
13646 ;; #(
13647 *)
13648 as_fn_error $? "unknown endianness
13649 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13650 esac
13651
13652
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13654$as_echo_n "checking for inline... " >&6; }
13655if ${ac_cv_c_inline+:} false; then :
13656 $as_echo_n "(cached) " >&6
13657else
13658 ac_cv_c_inline=no
13659for ac_kw in inline __inline__ __inline; do
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661/* end confdefs.h. */
13662#ifndef __cplusplus
13663typedef int foo_t;
13664static $ac_kw foo_t static_foo () {return 0; }
13665$ac_kw foo_t foo () {return 0; }
13666#endif
13667
13668_ACEOF
13669if ac_fn_c_try_compile "$LINENO"; then :
13670 ac_cv_c_inline=$ac_kw
13671fi
13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 test "$ac_cv_c_inline" != no && break
13674done
13675
13676fi
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13678$as_echo "$ac_cv_c_inline" >&6; }
13679
13680case $ac_cv_c_inline in
13681 inline | yes) ;;
13682 *)
13683 case $ac_cv_c_inline in
13684 no) ac_val=;;
13685 *) ac_val=$ac_cv_c_inline;;
13686 esac
13687 cat >>confdefs.h <<_ACEOF
13688#ifndef __cplusplus
13689#define inline $ac_val
13690#endif
13691_ACEOF
13692 ;;
13693esac
13694
13695
1f5d53eb
PE
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13697$as_echo_n "checking whether strtold conforms to C99... " >&6; }
13698if ${gl_cv_func_c99_strtold+:} false; then :
067d23c9
KY
13699 $as_echo_n "(cached) " >&6
13700else
1f5d53eb 13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13702/* end confdefs.h. */
1f5d53eb
PE
13703/* On HP-UX before 11.23, strtold returns a struct instead of
13704 long double. Reject implementations like that, by requiring
13705 compatibility with the C99 prototype. */
13706 #include <stdlib.h>
13707 static long double (*p) (char const *, char **) = strtold;
13708 static long double
13709 test (char const *nptr, char **endptr)
13710 {
13711 long double r;
13712 r = strtold (nptr, endptr);
13713 return r;
13714 }
067d23c9
KY
13715int
13716main ()
13717{
1f5d53eb 13718return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
067d23c9
KY
13719 ;
13720 return 0;
13721}
13722_ACEOF
13723if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13724 gl_cv_func_c99_strtold=yes
067d23c9 13725else
1f5d53eb 13726 gl_cv_func_c99_strtold=no
067d23c9
KY
13727fi
13728rm -f core conftest.err conftest.$ac_objext \
13729 conftest$ac_exeext conftest.$ac_ext
067d23c9 13730fi
1f5d53eb
PE
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13732$as_echo "$gl_cv_func_c99_strtold" >&6; }
13733 if test $gl_cv_func_c99_strtold = yes; then
067d23c9 13734
1f5d53eb 13735$as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
067d23c9 13736
1f5d53eb 13737 fi
067d23c9 13738
5fa4ac76
PE
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13740$as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13741if ${ac_cv_struct_st_dm_mode+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743else
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745/* end confdefs.h. */
13746
13747#include <sys/types.h>
13748#include <sys/stat.h>
13749int
13750main ()
13751{
13752struct stat s; s.st_dm_mode;
13753 ;
13754 return 0;
13755}
13756_ACEOF
13757if ac_fn_c_try_compile "$LINENO"; then :
13758 ac_cv_struct_st_dm_mode=yes
13759else
13760 ac_cv_struct_st_dm_mode=no
13761fi
13762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13765$as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13766
13767 if test $ac_cv_struct_st_dm_mode = yes; then
13768
13769$as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13770
13771 fi
13772
13773
13774ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13775if test "x$ac_cv_have_decl_strmode" = xyes; then :
13776 ac_have_decl=1
13777else
13778 ac_have_decl=0
13779fi
13780
13781cat >>confdefs.h <<_ACEOF
13782#define HAVE_DECL_STRMODE $ac_have_decl
13783_ACEOF
13784
067d23c9 13785
1f5d53eb
PE
13786 GNULIB__EXIT=0;
13787 GNULIB_ATOLL=0;
13788 GNULIB_CALLOC_POSIX=0;
13789 GNULIB_CANONICALIZE_FILE_NAME=0;
13790 GNULIB_GETLOADAVG=0;
13791 GNULIB_GETSUBOPT=0;
13792 GNULIB_GRANTPT=0;
13793 GNULIB_MALLOC_POSIX=0;
ae0d7250 13794 GNULIB_MBTOWC=0;
1f5d53eb
PE
13795 GNULIB_MKDTEMP=0;
13796 GNULIB_MKOSTEMP=0;
13797 GNULIB_MKOSTEMPS=0;
13798 GNULIB_MKSTEMP=0;
13799 GNULIB_MKSTEMPS=0;
13800 GNULIB_PTSNAME=0;
13801 GNULIB_PUTENV=0;
13802 GNULIB_RANDOM_R=0;
13803 GNULIB_REALLOC_POSIX=0;
13804 GNULIB_REALPATH=0;
13805 GNULIB_RPMATCH=0;
13806 GNULIB_SETENV=0;
13807 GNULIB_STRTOD=0;
13808 GNULIB_STRTOLL=0;
13809 GNULIB_STRTOULL=0;
13810 GNULIB_SYSTEM_POSIX=0;
13811 GNULIB_UNLOCKPT=0;
13812 GNULIB_UNSETENV=0;
ae0d7250 13813 GNULIB_WCTOMB=0;
1f5d53eb
PE
13814 HAVE__EXIT=1;
13815 HAVE_ATOLL=1;
13816 HAVE_CANONICALIZE_FILE_NAME=1;
13817 HAVE_DECL_GETLOADAVG=1;
13818 HAVE_GETSUBOPT=1;
13819 HAVE_GRANTPT=1;
13820 HAVE_MKDTEMP=1;
13821 HAVE_MKOSTEMP=1;
13822 HAVE_MKOSTEMPS=1;
13823 HAVE_MKSTEMP=1;
13824 HAVE_MKSTEMPS=1;
13825 HAVE_PTSNAME=1;
13826 HAVE_RANDOM_H=1;
13827 HAVE_RANDOM_R=1;
13828 HAVE_REALPATH=1;
13829 HAVE_RPMATCH=1;
13830 HAVE_SETENV=1;
13831 HAVE_DECL_SETENV=1;
13832 HAVE_STRTOD=1;
13833 HAVE_STRTOLL=1;
13834 HAVE_STRTOULL=1;
13835 HAVE_STRUCT_RANDOM_DATA=1;
13836 HAVE_SYS_LOADAVG_H=0;
13837 HAVE_UNLOCKPT=1;
13838 HAVE_DECL_UNSETENV=1;
13839 REPLACE_CALLOC=0;
13840 REPLACE_CANONICALIZE_FILE_NAME=0;
13841 REPLACE_MALLOC=0;
ae0d7250 13842 REPLACE_MBTOWC=0;
1f5d53eb
PE
13843 REPLACE_MKSTEMP=0;
13844 REPLACE_PUTENV=0;
13845 REPLACE_REALLOC=0;
13846 REPLACE_REALPATH=0;
13847 REPLACE_SETENV=0;
13848 REPLACE_STRTOD=0;
13849 REPLACE_UNSETENV=0;
ae0d7250 13850 REPLACE_WCTOMB=0;
067d23c9 13851
067d23c9 13852
1f5d53eb
PE
13853 GNULIB_CHOWN=0;
13854 GNULIB_CLOSE=0;
13855 GNULIB_DUP2=0;
13856 GNULIB_DUP3=0;
13857 GNULIB_ENVIRON=0;
13858 GNULIB_EUIDACCESS=0;
13859 GNULIB_FACCESSAT=0;
13860 GNULIB_FCHDIR=0;
13861 GNULIB_FCHOWNAT=0;
13862 GNULIB_FSYNC=0;
13863 GNULIB_FTRUNCATE=0;
13864 GNULIB_GETCWD=0;
13865 GNULIB_GETDOMAINNAME=0;
13866 GNULIB_GETDTABLESIZE=0;
13867 GNULIB_GETGROUPS=0;
13868 GNULIB_GETHOSTNAME=0;
13869 GNULIB_GETLOGIN=0;
13870 GNULIB_GETLOGIN_R=0;
13871 GNULIB_GETPAGESIZE=0;
13872 GNULIB_GETUSERSHELL=0;
13873 GNULIB_LCHOWN=0;
13874 GNULIB_LINK=0;
13875 GNULIB_LINKAT=0;
13876 GNULIB_LSEEK=0;
13877 GNULIB_PIPE=0;
13878 GNULIB_PIPE2=0;
13879 GNULIB_PREAD=0;
13880 GNULIB_PWRITE=0;
13881 GNULIB_READLINK=0;
13882 GNULIB_READLINKAT=0;
13883 GNULIB_RMDIR=0;
13884 GNULIB_SLEEP=0;
13885 GNULIB_SYMLINK=0;
13886 GNULIB_SYMLINKAT=0;
13887 GNULIB_TTYNAME_R=0;
13888 GNULIB_UNISTD_H_GETOPT=0;
13889 GNULIB_UNISTD_H_SIGPIPE=0;
13890 GNULIB_UNLINK=0;
13891 GNULIB_UNLINKAT=0;
13892 GNULIB_USLEEP=0;
13893 GNULIB_WRITE=0;
13894 HAVE_CHOWN=1;
13895 HAVE_DUP2=1;
13896 HAVE_DUP3=1;
13897 HAVE_EUIDACCESS=1;
13898 HAVE_FACCESSAT=1;
13899 HAVE_FCHDIR=1;
13900 HAVE_FCHOWNAT=1;
13901 HAVE_FSYNC=1;
13902 HAVE_FTRUNCATE=1;
13903 HAVE_GETDTABLESIZE=1;
13904 HAVE_GETGROUPS=1;
13905 HAVE_GETHOSTNAME=1;
13906 HAVE_GETLOGIN=1;
13907 HAVE_GETPAGESIZE=1;
13908 HAVE_LCHOWN=1;
13909 HAVE_LINK=1;
13910 HAVE_LINKAT=1;
13911 HAVE_PIPE=1;
13912 HAVE_PIPE2=1;
13913 HAVE_PREAD=1;
13914 HAVE_PWRITE=1;
13915 HAVE_READLINK=1;
13916 HAVE_READLINKAT=1;
13917 HAVE_SLEEP=1;
13918 HAVE_SYMLINK=1;
13919 HAVE_SYMLINKAT=1;
13920 HAVE_UNLINKAT=1;
13921 HAVE_USLEEP=1;
13922 HAVE_DECL_ENVIRON=1;
13923 HAVE_DECL_FCHDIR=1;
13924 HAVE_DECL_GETDOMAINNAME=1;
13925 HAVE_DECL_GETLOGIN_R=1;
13926 HAVE_DECL_GETPAGESIZE=1;
13927 HAVE_DECL_GETUSERSHELL=1;
13928 HAVE_DECL_TTYNAME_R=1;
13929 HAVE_OS_H=0;
13930 HAVE_SYS_PARAM_H=0;
13931 REPLACE_CHOWN=0;
13932 REPLACE_CLOSE=0;
13933 REPLACE_DUP=0;
13934 REPLACE_DUP2=0;
13935 REPLACE_FCHOWNAT=0;
13936 REPLACE_GETCWD=0;
13937 REPLACE_GETDOMAINNAME=0;
13938 REPLACE_GETLOGIN_R=0;
13939 REPLACE_GETGROUPS=0;
13940 REPLACE_GETPAGESIZE=0;
13941 REPLACE_LCHOWN=0;
13942 REPLACE_LINK=0;
13943 REPLACE_LINKAT=0;
13944 REPLACE_LSEEK=0;
13945 REPLACE_PREAD=0;
13946 REPLACE_PWRITE=0;
13947 REPLACE_READLINK=0;
13948 REPLACE_RMDIR=0;
13949 REPLACE_SLEEP=0;
13950 REPLACE_SYMLINK=0;
13951 REPLACE_TTYNAME_R=0;
13952 REPLACE_UNLINK=0;
13953 REPLACE_UNLINKAT=0;
13954 REPLACE_USLEEP=0;
13955 REPLACE_WRITE=0;
13956 UNISTD_H_HAVE_WINSOCK2_H=0;
13957 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
067d23c9 13958
067d23c9 13959
1f5d53eb
PE
13960
13961
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13963$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13964if ${gl_cv_have_include_next+:} false; then :
067d23c9
KY
13965 $as_echo_n "(cached) " >&6
13966else
1f5d53eb
PE
13967 rm -rf conftestd1a conftestd1b conftestd2
13968 mkdir conftestd1a conftestd1b conftestd2
13969 cat <<EOF > conftestd1a/conftest.h
13970#define DEFINED_IN_CONFTESTD1
13971#include_next <conftest.h>
13972#ifdef DEFINED_IN_CONFTESTD2
13973int foo;
13974#else
13975#error "include_next doesn't work"
067d23c9 13976#endif
1f5d53eb
PE
13977EOF
13978 cat <<EOF > conftestd1b/conftest.h
13979#define DEFINED_IN_CONFTESTD1
13980#include <stdio.h>
13981#include_next <conftest.h>
13982#ifdef DEFINED_IN_CONFTESTD2
13983int foo;
13984#else
13985#error "include_next doesn't work"
13986#endif
13987EOF
13988 cat <<EOF > conftestd2/conftest.h
13989#ifndef DEFINED_IN_CONFTESTD1
13990#error "include_next test doesn't work"
13991#endif
13992#define DEFINED_IN_CONFTESTD2
13993EOF
13994 gl_save_CPPFLAGS="$CPPFLAGS"
13995 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997/* end confdefs.h. */
13998#include <conftest.h>
067d23c9 13999_ACEOF
1f5d53eb
PE
14000if ac_fn_c_try_compile "$LINENO"; then :
14001 gl_cv_have_include_next=yes
067d23c9 14002else
1f5d53eb
PE
14003 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005/* end confdefs.h. */
14006#include <conftest.h>
067d23c9 14007_ACEOF
1f5d53eb
PE
14008if ac_fn_c_try_compile "$LINENO"; then :
14009 gl_cv_have_include_next=buggy
14010else
14011 gl_cv_have_include_next=no
067d23c9 14012fi
1f5d53eb 14013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9
KY
14014
14015fi
1f5d53eb
PE
14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 CPPFLAGS="$gl_save_CPPFLAGS"
14018 rm -rf conftestd1a conftestd1b conftestd2
067d23c9 14019
1f5d53eb
PE
14020fi
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14022$as_echo "$gl_cv_have_include_next" >&6; }
14023 PRAGMA_SYSTEM_HEADER=
14024 if test $gl_cv_have_include_next = yes; then
14025 INCLUDE_NEXT=include_next
14026 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14027 if test -n "$GCC"; then
14028 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14029 fi
14030 else
14031 if test $gl_cv_have_include_next = buggy; then
14032 INCLUDE_NEXT=include
14033 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14034 else
14035 INCLUDE_NEXT=include
14036 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14037 fi
14038 fi
067d23c9
KY
14039
14040
067d23c9 14041
1f5d53eb
PE
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14043$as_echo_n "checking whether system header files limit the line length... " >&6; }
14044if ${gl_cv_pragma_columns+:} false; then :
14045 $as_echo_n "(cached) " >&6
14046else
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048/* end confdefs.h. */
067d23c9 14049
1f5d53eb
PE
14050#ifdef __TANDEM
14051choke me
14052#endif
067d23c9 14053
067d23c9 14054_ACEOF
1f5d53eb
PE
14055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14056 $EGREP "choke me" >/dev/null 2>&1; then :
14057 gl_cv_pragma_columns=yes
14058else
14059 gl_cv_pragma_columns=no
067d23c9 14060fi
1f5d53eb 14061rm -f conftest*
067d23c9 14062
067d23c9
KY
14063
14064fi
1f5d53eb
PE
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14066$as_echo "$gl_cv_pragma_columns" >&6; }
14067 if test $gl_cv_pragma_columns = yes; then
14068 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14069 else
14070 PRAGMA_COLUMNS=
14071 fi
067d23c9 14072
067d23c9 14073
067d23c9
KY
14074
14075
067d23c9 14076
067d23c9
KY
14077
14078
067d23c9 14079
067d23c9 14080
067d23c9
KY
14081
14082
067d23c9 14083
067d23c9 14084
067d23c9 14085
067d23c9 14086
067d23c9 14087
067d23c9 14088
1f5d53eb
PE
14089 if test $gl_cv_have_include_next = yes; then
14090 gl_cv_next_getopt_h='<'getopt.h'>'
14091 else
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14093$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14094if ${gl_cv_next_getopt_h+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096else
067d23c9 14097
1f5d53eb 14098 if test $ac_cv_header_getopt_h = yes; then
067d23c9 14099
067d23c9 14100
1f5d53eb
PE
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102/* end confdefs.h. */
14103#include <getopt.h>
14104
14105_ACEOF
14106 case "$host_os" in
14107 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14108 *) gl_absname_cpp="$ac_cpp" ;;
14109 esac
14110 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14111 sed -n '\#/getopt.h#{
14112 s#.*"\(.*/getopt.h\)".*#\1#
14113 s#^/[^/]#//&#
14114 p
14115 q
14116 }'`'"'
14117 else
14118 gl_cv_next_getopt_h='<'getopt.h'>'
14119 fi
067d23c9
KY
14120
14121
14122fi
1f5d53eb
PE
14123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14124$as_echo "$gl_cv_next_getopt_h" >&6; }
14125 fi
14126 NEXT_GETOPT_H=$gl_cv_next_getopt_h
067d23c9 14127
1f5d53eb
PE
14128 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14129 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14130 gl_next_as_first_directive='<'getopt.h'>'
14131 else
14132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14133 gl_next_as_first_directive=$gl_cv_next_getopt_h
14134 fi
14135 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
067d23c9 14136
067d23c9
KY
14137
14138
067d23c9 14139
1f5d53eb
PE
14140 if test $ac_cv_header_getopt_h = yes; then
14141 HAVE_GETOPT_H=1
14142 else
14143 HAVE_GETOPT_H=0
14144 fi
067d23c9 14145
1f5d53eb
PE
14146
14147 gl_replace_getopt=
14148
14149 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14150 for ac_header in getopt.h
14151do :
14152 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14153if test "x$ac_cv_header_getopt_h" = xyes; then :
14154 cat >>confdefs.h <<_ACEOF
14155#define HAVE_GETOPT_H 1
14156_ACEOF
067d23c9
KY
14157
14158else
1f5d53eb 14159 gl_replace_getopt=yes
067d23c9
KY
14160fi
14161
1f5d53eb
PE
14162done
14163
14164 fi
14165
14166 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14167 for ac_func in getopt_long_only
14168do :
14169 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14170if test "x$ac_cv_func_getopt_long_only" = xyes; then :
14171 cat >>confdefs.h <<_ACEOF
14172#define HAVE_GETOPT_LONG_ONLY 1
14173_ACEOF
067d23c9 14174
067d23c9 14175else
1f5d53eb 14176 gl_replace_getopt=yes
067d23c9 14177fi
1f5d53eb 14178done
067d23c9 14179
1f5d53eb 14180 fi
067d23c9 14181
1f5d53eb
PE
14182 if test -z "$gl_replace_getopt"; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14184$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14185if ${gl_cv_func_getopt_posix+:} false; then :
067d23c9
KY
14186 $as_echo_n "(cached) " >&6
14187else
1f5d53eb
PE
14188
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 14190/* end confdefs.h. */
1f5d53eb 14191#include <unistd.h>
067d23c9
KY
14192int
14193main ()
14194{
1f5d53eb 14195int *p = &optreset; return optreset;
067d23c9
KY
14196 ;
14197 return 0;
14198}
14199_ACEOF
1f5d53eb
PE
14200if ac_fn_c_try_compile "$LINENO"; then :
14201 gl_optind_min=1
1fd182f0 14202else
1f5d53eb 14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14204/* end confdefs.h. */
1f5d53eb 14205#include <getopt.h>
1fd182f0
PE
14206int
14207main ()
14208{
1f5d53eb 14209return !getopt_clip;
1fd182f0
PE
14210 ;
14211 return 0;
14212}
14213_ACEOF
14214if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 14215 gl_optind_min=1
1fd182f0 14216else
1f5d53eb 14217 gl_optind_min=0
1fd182f0
PE
14218fi
14219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14220fi
1f5d53eb 14221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14222
1f5d53eb
PE
14223 gl_save_CPPFLAGS=$CPPFLAGS
14224 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14225 if test "$cross_compiling" = yes; then :
14226 case "$host_os" in
14227 mingw*) gl_cv_func_getopt_posix="guessing no";;
14228 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14229 *) gl_cv_func_getopt_posix="guessing yes";;
14230 esac
1fd182f0 14231
1f5d53eb
PE
14232else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234/* end confdefs.h. */
1fd182f0 14235
1f5d53eb
PE
14236#include <unistd.h>
14237#include <stdlib.h>
14238#include <string.h>
1fd182f0 14239
1f5d53eb
PE
14240int
14241main ()
14242{
14243 {
14244 int argc = 0;
14245 char *argv[10];
14246 int c;
1fd182f0 14247
1f5d53eb
PE
14248 argv[argc++] = "program";
14249 argv[argc++] = "-a";
14250 argv[argc++] = "foo";
14251 argv[argc++] = "bar";
14252 argv[argc] = NULL;
14253 optind = OPTIND_MIN;
14254 opterr = 0;
b06b1098 14255
1f5d53eb
PE
14256 c = getopt (argc, argv, "ab");
14257 if (!(c == 'a'))
14258 return 1;
14259 c = getopt (argc, argv, "ab");
14260 if (!(c == -1))
14261 return 2;
14262 if (!(optind == 2))
14263 return 3;
14264 }
14265 /* Some internal state exists at this point. */
14266 {
14267 int argc = 0;
14268 char *argv[10];
14269 int c;
b06b1098 14270
1f5d53eb
PE
14271 argv[argc++] = "program";
14272 argv[argc++] = "donald";
14273 argv[argc++] = "-p";
14274 argv[argc++] = "billy";
14275 argv[argc++] = "duck";
14276 argv[argc++] = "-a";
14277 argv[argc++] = "bar";
14278 argv[argc] = NULL;
14279 optind = OPTIND_MIN;
14280 opterr = 0;
b06b1098 14281
1f5d53eb
PE
14282 c = getopt (argc, argv, "+abp:q:");
14283 if (!(c == -1))
14284 return 4;
14285 if (!(strcmp (argv[0], "program") == 0))
14286 return 5;
14287 if (!(strcmp (argv[1], "donald") == 0))
14288 return 6;
14289 if (!(strcmp (argv[2], "-p") == 0))
14290 return 7;
14291 if (!(strcmp (argv[3], "billy") == 0))
14292 return 8;
14293 if (!(strcmp (argv[4], "duck") == 0))
14294 return 9;
14295 if (!(strcmp (argv[5], "-a") == 0))
14296 return 10;
14297 if (!(strcmp (argv[6], "bar") == 0))
14298 return 11;
14299 if (!(optind == 1))
14300 return 12;
14301 }
14302 /* Detect MacOS 10.5, AIX 7.1 bug. */
14303 {
14304 char *argv[3] = { "program", "-ab", NULL };
14305 optind = OPTIND_MIN;
14306 opterr = 0;
14307 if (getopt (2, argv, "ab:") != 'a')
14308 return 13;
14309 if (getopt (2, argv, "ab:") != '?')
14310 return 14;
14311 if (optopt != 'b')
14312 return 15;
14313 if (optind != 2)
14314 return 16;
14315 }
d6974efa 14316
1f5d53eb
PE
14317 return 0;
14318}
d6974efa 14319
1f5d53eb
PE
14320_ACEOF
14321if ac_fn_c_try_run "$LINENO"; then :
14322 gl_cv_func_getopt_posix=yes
14323else
14324 gl_cv_func_getopt_posix=no
14325fi
14326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14327 conftest.$ac_objext conftest.beam conftest.$ac_ext
14328fi
d6974efa 14329
1f5d53eb 14330 CPPFLAGS=$gl_save_CPPFLAGS
1fd182f0 14331
1f5d53eb
PE
14332fi
14333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14334$as_echo "$gl_cv_func_getopt_posix" >&6; }
14335 case "$gl_cv_func_getopt_posix" in
14336 *no) gl_replace_getopt=yes ;;
14337 esac
14338 fi
1fd182f0 14339
1f5d53eb
PE
14340 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14342$as_echo_n "checking for working GNU getopt function... " >&6; }
14343if ${gl_cv_func_getopt_gnu+:} false; then :
1fd182f0 14344 $as_echo_n "(cached) " >&6
1f5d53eb
PE
14345else
14346 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14347 # optstring is necessary for programs like m4 that have POSIX-mandated
14348 # semantics for supporting options interspersed with files.
14349 # Also, since getopt_long is a GNU extension, we require optind=0.
14350 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14351 # so take care to revert to the correct (non-)export state.
14352 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14353 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14354 xx) gl_had_POSIXLY_CORRECT=exported ;;
14355 x) gl_had_POSIXLY_CORRECT=yes ;;
14356 *) gl_had_POSIXLY_CORRECT= ;;
14357 esac
14358 POSIXLY_CORRECT=1
14359 export POSIXLY_CORRECT
14360 if test "$cross_compiling" = yes; then :
14361 case $host_os:$ac_cv_have_decl_optreset in
14362 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14363 *:yes) gl_cv_func_getopt_gnu=no;;
14364 *) gl_cv_func_getopt_gnu=yes;;
14365 esac
14366
1fd182f0
PE
14367else
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369/* end confdefs.h. */
1f5d53eb
PE
14370#include <getopt.h>
14371 #include <stddef.h>
14372 #include <string.h>
14373
1fd182f0
PE
14374int
14375main ()
14376{
1f5d53eb
PE
14377
14378 int result = 0;
14379 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14380 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14381 OSF/1 5.1, Solaris 10. */
14382 {
14383 char *myargv[3];
14384 myargv[0] = "conftest";
14385 myargv[1] = "-+";
14386 myargv[2] = 0;
14387 opterr = 0;
14388 if (getopt (2, myargv, "+a") != '?')
14389 result |= 1;
14390 }
14391 /* This code succeeds on glibc 2.8, mingw,
14392 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14393 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14394 {
14395 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14396
14397 optind = 1;
14398 if (getopt (4, argv, "p::") != 'p')
14399 result |= 2;
14400 else if (optarg != NULL)
14401 result |= 4;
14402 else if (getopt (4, argv, "p::") != -1)
14403 result |= 6;
14404 else if (optind != 2)
14405 result |= 8;
14406 }
14407 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14408 {
14409 char *argv[] = { "program", "foo", "-p", NULL };
14410 optind = 0;
14411 if (getopt (3, argv, "-p") != 1)
14412 result |= 16;
14413 else if (getopt (3, argv, "-p") != 'p')
14414 result |= 32;
14415 }
14416 /* This code fails on glibc 2.11. */
14417 {
14418 char *argv[] = { "program", "-b", "-a", NULL };
14419 optind = opterr = 0;
14420 if (getopt (3, argv, "+:a:b") != 'b')
14421 result |= 64;
14422 else if (getopt (3, argv, "+:a:b") != ':')
14423 result |= 64;
14424 }
14425 return result;
14426
1fd182f0
PE
14427 ;
14428 return 0;
14429}
14430_ACEOF
1f5d53eb
PE
14431if ac_fn_c_try_run "$LINENO"; then :
14432 gl_cv_func_getopt_gnu=yes
1fd182f0 14433else
1f5d53eb 14434 gl_cv_func_getopt_gnu=no
1fd182f0 14435fi
1f5d53eb
PE
14436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14437 conftest.$ac_objext conftest.beam conftest.$ac_ext
1fd182f0 14438fi
1fd182f0 14439
1f5d53eb
PE
14440 case $gl_had_POSIXLY_CORRECT in
14441 exported) ;;
14442 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14443 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14444 esac
1fd182f0 14445
1f5d53eb
PE
14446fi
14447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14448$as_echo "$gl_cv_func_getopt_gnu" >&6; }
14449 if test "$gl_cv_func_getopt_gnu" = "no"; then
14450 gl_replace_getopt=yes
14451 fi
1fd182f0
PE
14452 fi
14453
1f5d53eb
PE
14454ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14455if test "x$ac_cv_have_decl_getenv" = xyes; then :
14456 ac_have_decl=1
14457else
14458 ac_have_decl=0
14459fi
1fd182f0 14460
1f5d53eb
PE
14461cat >>confdefs.h <<_ACEOF
14462#define HAVE_DECL_GETENV $ac_have_decl
14463_ACEOF
1fd182f0
PE
14464
14465
14466
14467
1f5d53eb
PE
14468
14469
14470 if test -n "$gl_replace_getopt"; then :
14471
14472
14473
14474 GETOPT_H=getopt.h
14475
14476$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14477
14478
14479
14480 GNULIB_UNISTD_H_GETOPT=1
14481
14482
14483
14484
14485
14486
14487
14488
14489 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14500
14501
14502
14503
14504
14505
14506fi
14507
14508
1f5d53eb 14509
ae0d7250
PE
14510 GNULIB_FCHMODAT=0;
14511 GNULIB_FSTATAT=0;
14512 GNULIB_FUTIMENS=0;
14513 GNULIB_LCHMOD=0;
14514 GNULIB_LSTAT=0;
14515 GNULIB_MKDIRAT=0;
14516 GNULIB_MKFIFO=0;
14517 GNULIB_MKFIFOAT=0;
14518 GNULIB_MKNOD=0;
14519 GNULIB_MKNODAT=0;
14520 GNULIB_STAT=0;
14521 GNULIB_UTIMENSAT=0;
14522 HAVE_FCHMODAT=1;
14523 HAVE_FSTATAT=1;
14524 HAVE_FUTIMENS=1;
14525 HAVE_LCHMOD=1;
14526 HAVE_LSTAT=1;
14527 HAVE_MKDIRAT=1;
14528 HAVE_MKFIFO=1;
14529 HAVE_MKFIFOAT=1;
14530 HAVE_MKNOD=1;
14531 HAVE_MKNODAT=1;
14532 HAVE_UTIMENSAT=1;
14533 REPLACE_FSTAT=0;
14534 REPLACE_FSTATAT=0;
14535 REPLACE_FUTIMENS=0;
14536 REPLACE_LSTAT=0;
14537 REPLACE_MKDIR=0;
14538 REPLACE_MKFIFO=0;
14539 REPLACE_MKNOD=0;
14540 REPLACE_STAT=0;
14541 REPLACE_UTIMENSAT=0;
1f5d53eb
PE
14542
14543
14544
14545
14546 for ac_func in $ac_func_list
14547do :
14548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14549ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14550if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14551 cat >>confdefs.h <<_ACEOF
14552#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14553_ACEOF
1fd182f0 14554
e275c824 14555fi
1f5d53eb 14556done
1fd182f0
PE
14557
14558
e275c824 14559
1fd182f0 14560
ae0d7250
PE
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14562$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14563if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565else
14566 rm -f conftest.sym conftest.file
14567 echo >conftest.file
14568 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14569 if test "$cross_compiling" = yes; then :
14570 # When cross-compiling, be pessimistic so we will end up using the
14571 # replacement version of lstat that checks for trailing slashes and
14572 # calls lstat a second time when necessary.
14573 ac_cv_func_lstat_dereferences_slashed_symlink=no
14574
14575else
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577/* end confdefs.h. */
14578$ac_includes_default
14579int
14580main ()
14581{
14582struct stat sbuf;
14583 /* Linux will dereference the symlink and fail, as required by
14584 POSIX. That is better in the sense that it means we will not
14585 have to compile and use the lstat wrapper. */
14586 return lstat ("conftest.sym/", &sbuf) == 0;
14587
14588 ;
14589 return 0;
14590}
14591_ACEOF
14592if ac_fn_c_try_run "$LINENO"; then :
14593 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14594else
14595 ac_cv_func_lstat_dereferences_slashed_symlink=no
14596fi
14597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14598 conftest.$ac_objext conftest.beam conftest.$ac_ext
14599fi
14600
14601 else
14602 # If the 'ln -s' command failed, then we probably don't even
14603 # have an lstat function.
14604 ac_cv_func_lstat_dereferences_slashed_symlink=no
14605 fi
14606 rm -f conftest.sym conftest.file
14607
14608fi
14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14610$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14611 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14612
14613cat >>confdefs.h <<_ACEOF
14614#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14615_ACEOF
14616
14617 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14618
14619
14620
14621
14622
14623
14624
14625
14626 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14627
14628 fi
14629
14630
14631 GNULIB_MKTIME=0;
14632 GNULIB_NANOSLEEP=0;
14633 GNULIB_STRPTIME=0;
14634 GNULIB_TIMEGM=0;
14635 GNULIB_TIME_R=0;
14636 HAVE_DECL_LOCALTIME_R=1;
14637 HAVE_NANOSLEEP=1;
14638 HAVE_STRPTIME=1;
14639 HAVE_TIMEGM=1;
14640 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14641 REPLACE_MKTIME=GNULIB_PORTCHECK;
14642 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14643 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14644
14645
14646
14647
1f5d53eb
PE
14648 gl_cv_c_multiarch=no
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650/* end confdefs.h. */
14651#ifndef __APPLE_CC__
14652 not a universal capable compiler
14653 #endif
14654 typedef int dummy;
e275c824
PE
14655
14656_ACEOF
1f5d53eb 14657if ac_fn_c_try_compile "$LINENO"; then :
e275c824 14658
1f5d53eb
PE
14659 arch=
14660 prev=
14661 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14662 if test -n "$prev"; then
14663 case $word in
14664 i?86 | x86_64 | ppc | ppc64)
14665 if test -z "$arch" || test "$arch" = "$word"; then
14666 arch="$word"
14667 else
14668 gl_cv_c_multiarch=yes
14669 fi
14670 ;;
14671 esac
14672 prev=
14673 else
14674 if test "x$word" = "x-arch"; then
14675 prev=arch
14676 fi
14677 fi
14678 done
e275c824
PE
14679
14680fi
1f5d53eb
PE
14681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 if test $gl_cv_c_multiarch = yes; then
14683 APPLE_UNIVERSAL_BUILD=1
e275c824 14684 else
1f5d53eb 14685 APPLE_UNIVERSAL_BUILD=0
e275c824
PE
14686 fi
14687
14688
ae0d7250
PE
14689
14690
1f5d53eb
PE
14691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14692$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14693if ${ac_cv_header_stdbool_h+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695else
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697/* end confdefs.h. */
e275c824 14698
1f5d53eb
PE
14699 #include <stdbool.h>
14700 #ifndef bool
14701 "error: bool is not defined"
14702 #endif
14703 #ifndef false
14704 "error: false is not defined"
14705 #endif
14706 #if false
14707 "error: false is not 0"
14708 #endif
14709 #ifndef true
14710 "error: true is not defined"
14711 #endif
14712 #if true != 1
14713 "error: true is not 1"
14714 #endif
14715 #ifndef __bool_true_false_are_defined
14716 "error: __bool_true_false_are_defined is not defined"
14717 #endif
e275c824 14718
1f5d53eb 14719 struct s { _Bool s: 1; _Bool t; } s;
e275c824 14720
1f5d53eb
PE
14721 char a[true == 1 ? 1 : -1];
14722 char b[false == 0 ? 1 : -1];
14723 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14724 char d[(bool) 0.5 == true ? 1 : -1];
14725 /* See body of main program for 'e'. */
14726 char f[(_Bool) 0.0 == false ? 1 : -1];
14727 char g[true];
14728 char h[sizeof (_Bool)];
14729 char i[sizeof s.t];
14730 enum { j = false, k = true, l = false * true, m = true * 256 };
14731 /* The following fails for
14732 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14733 _Bool n[m];
14734 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14735 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14736 /* Catch a bug in an HP-UX C compiler. See
14737 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14738 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14739 */
14740 _Bool q = true;
14741 _Bool *pq = &q;
e275c824 14742
1f5d53eb
PE
14743int
14744main ()
14745{
e275c824 14746
1f5d53eb
PE
14747 bool e = &s;
14748 *pq |= q;
14749 *pq |= ! q;
14750 /* Refer to every declared value, to avoid compiler optimizations. */
14751 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14752 + !m + !n + !o + !p + !q + !pq);
e275c824 14753
1f5d53eb
PE
14754 ;
14755 return 0;
14756}
14757_ACEOF
14758if ac_fn_c_try_compile "$LINENO"; then :
14759 ac_cv_header_stdbool_h=yes
14760else
14761 ac_cv_header_stdbool_h=no
14762fi
14763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764fi
14765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14766$as_echo "$ac_cv_header_stdbool_h" >&6; }
14767 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14768if test "x$ac_cv_type__Bool" = xyes; then :
e275c824 14769
1f5d53eb
PE
14770cat >>confdefs.h <<_ACEOF
14771#define HAVE__BOOL 1
14772_ACEOF
e275c824
PE
14773
14774
1f5d53eb 14775fi
e275c824
PE
14776
14777
14778
1f5d53eb
PE
14779 REPLACE_NULL=0;
14780 HAVE_WCHAR_T=1;
14781 STDDEF_H='';
b06b1098
PE
14782
14783
1f5d53eb
PE
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14785$as_echo_n "checking for wchar_t... " >&6; }
14786if ${gt_cv_c_wchar_t+:} false; then :
e275c824
PE
14787 $as_echo_n "(cached) " >&6
14788else
1f5d53eb 14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824 14790/* end confdefs.h. */
1f5d53eb
PE
14791#include <stddef.h>
14792 wchar_t foo = (wchar_t)'\0';
14793int
14794main ()
14795{
e275c824 14796
1f5d53eb
PE
14797 ;
14798 return 0;
14799}
e275c824 14800_ACEOF
1f5d53eb
PE
14801if ac_fn_c_try_compile "$LINENO"; then :
14802 gt_cv_c_wchar_t=yes
14803else
14804 gt_cv_c_wchar_t=no
e275c824 14805fi
1f5d53eb
PE
14806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807fi
14808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14809$as_echo "$gt_cv_c_wchar_t" >&6; }
14810 if test $gt_cv_c_wchar_t = yes; then
e275c824 14811
1f5d53eb 14812$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
e275c824 14813
e275c824
PE
14814 fi
14815
14816
5f90be1b
PE
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14818$as_echo_n "checking for unsigned long long int... " >&6; }
14819if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14820 $as_echo_n "(cached) " >&6
14821else
14822 ac_cv_type_unsigned_long_long_int=yes
14823 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825/* end confdefs.h. */
14826
14827 /* For now, do not test the preprocessor; as of 2007 there are too many
14828 implementations with broken preprocessors. Perhaps this can
14829 be revisited in 2012. In the meantime, code should not expect
14830 #if to work with literals wider than 32 bits. */
14831 /* Test literals. */
14832 long long int ll = 9223372036854775807ll;
14833 long long int nll = -9223372036854775807LL;
14834 unsigned long long int ull = 18446744073709551615ULL;
14835 /* Test constant expressions. */
14836 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14837 ? 1 : -1)];
14838 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14839 ? 1 : -1)];
14840 int i = 63;
14841int
14842main ()
14843{
14844/* Test availability of runtime routines for shift and division. */
14845 long long int llmax = 9223372036854775807ll;
14846 unsigned long long int ullmax = 18446744073709551615ull;
14847 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14848 | (llmax / ll) | (llmax % ll)
14849 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14850 | (ullmax / ull) | (ullmax % ull));
14851 ;
14852 return 0;
14853}
14854
14855_ACEOF
14856if ac_fn_c_try_link "$LINENO"; then :
14857
14858else
14859 ac_cv_type_unsigned_long_long_int=no
14860fi
14861rm -f core conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext conftest.$ac_ext
14863 fi
14864fi
14865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14866$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14867 if test $ac_cv_type_unsigned_long_long_int = yes; then
14868
14869$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14870
14871 fi
14872
14873
14874
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14876$as_echo_n "checking for long long int... " >&6; }
14877if ${ac_cv_type_long_long_int+:} false; then :
14878 $as_echo_n "(cached) " >&6
14879else
14880 ac_cv_type_long_long_int=yes
14881 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14882 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14883 if test $ac_cv_type_long_long_int = yes; then
14884 if test "$cross_compiling" = yes; then :
14885 :
14886else
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888/* end confdefs.h. */
14889#include <limits.h>
14890 #ifndef LLONG_MAX
14891 # define HALF \
14892 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14893 # define LLONG_MAX (HALF - 1 + HALF)
14894 #endif
14895int
14896main ()
14897{
14898long long int n = 1;
14899 int i;
14900 for (i = 0; ; i++)
14901 {
14902 long long int m = n << i;
14903 if (m >> i != n)
14904 return 1;
14905 if (LLONG_MAX / 2 < m)
14906 break;
14907 }
14908 return 0;
14909 ;
14910 return 0;
14911}
14912_ACEOF
14913if ac_fn_c_try_run "$LINENO"; then :
14914
14915else
14916 ac_cv_type_long_long_int=no
14917fi
14918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14919 conftest.$ac_objext conftest.beam conftest.$ac_ext
14920fi
14921
14922 fi
14923 fi
14924fi
14925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14926$as_echo "$ac_cv_type_long_long_int" >&6; }
14927 if test $ac_cv_type_long_long_int = yes; then
14928
14929$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14930
14931 fi
14932
14933
14934
14935
14936
14937
1f5d53eb
PE
14938 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14939"
14940if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
e275c824 14941
1f5d53eb 14942$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
e275c824 14943
e275c824
PE
14944fi
14945
e275c824 14946
e275c824 14947
e275c824 14948
5fa4ac76 14949
5fa4ac76
PE
14950
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14952$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14953if ${ac_cv_header_stat_broken+:} false; then :
14954 $as_echo_n "(cached) " >&6
14955else
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957/* end confdefs.h. */
14958#include <sys/types.h>
14959#include <sys/stat.h>
14960
14961#if defined S_ISBLK && defined S_IFDIR
14962extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14963#endif
14964
14965#if defined S_ISBLK && defined S_IFCHR
14966extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14967#endif
14968
14969#if defined S_ISLNK && defined S_IFREG
14970extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14971#endif
14972
14973#if defined S_ISSOCK && defined S_IFREG
14974extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14975#endif
14976
14977_ACEOF
14978if ac_fn_c_try_compile "$LINENO"; then :
14979 ac_cv_header_stat_broken=no
14980else
14981 ac_cv_header_stat_broken=yes
14982fi
14983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984fi
14985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14986$as_echo "$ac_cv_header_stat_broken" >&6; }
14987if test $ac_cv_header_stat_broken = yes; then
14988
14989$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14990
14991fi
14992
14993
14994
1f5d53eb
PE
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14996$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14997if ${ac_cv_c_restrict+:} false; then :
d6974efa 14998 $as_echo_n "(cached) " >&6
e275c824 14999else
1f5d53eb
PE
15000 ac_cv_c_restrict=no
15001 # The order here caters to the fact that C++ does not require restrict.
15002 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6974efa 15004/* end confdefs.h. */
1f5d53eb
PE
15005typedef int * int_ptr;
15006 int foo (int_ptr $ac_kw ip) {
15007 return ip[0];
15008 }
d6974efa
PE
15009int
15010main ()
15011{
1f5d53eb
PE
15012int s[1];
15013 int * $ac_kw t = s;
15014 t[0] = 0;
15015 return foo(t)
d6974efa
PE
15016 ;
15017 return 0;
15018}
e275c824 15019_ACEOF
1f5d53eb
PE
15020if ac_fn_c_try_compile "$LINENO"; then :
15021 ac_cv_c_restrict=$ac_kw
15022fi
15023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 test "$ac_cv_c_restrict" != no && break
15025 done
15026
15027fi
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15029$as_echo "$ac_cv_c_restrict" >&6; }
15030
15031 case $ac_cv_c_restrict in
15032 restrict) ;;
15033 no) $as_echo "#define restrict /**/" >>confdefs.h
15034 ;;
15035 *) cat >>confdefs.h <<_ACEOF
15036#define restrict $ac_cv_c_restrict
15037_ACEOF
15038 ;;
15039 esac
15040
15041
15042
15043
15044
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15046$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15047if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
15048 $as_echo_n "(cached) " >&6
e275c824 15049else
d6974efa
PE
15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051/* end confdefs.h. */
1f5d53eb
PE
15052#include <time.h>
15053
d6974efa
PE
15054int
15055main ()
15056{
1f5d53eb 15057static struct timespec x; x.tv_sec = x.tv_nsec;
d6974efa
PE
15058 ;
15059 return 0;
15060}
15061_ACEOF
15062if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 15063 gl_cv_sys_struct_timespec_in_time_h=yes
e275c824 15064else
1f5d53eb 15065 gl_cv_sys_struct_timespec_in_time_h=no
e275c824 15066fi
d6974efa 15067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15068fi
1f5d53eb
PE
15069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15070$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
e275c824 15071
1f5d53eb
PE
15072 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15073 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15074 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15075 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15076 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15077 else
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15079$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15080if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
15081 $as_echo_n "(cached) " >&6
e275c824
PE
15082else
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084/* end confdefs.h. */
1f5d53eb 15085#include <sys/time.h>
e275c824 15086
e275c824
PE
15087int
15088main ()
15089{
1f5d53eb
PE
15090static struct timespec x; x.tv_sec = x.tv_nsec;
15091 ;
e275c824
PE
15092 return 0;
15093}
e275c824 15094_ACEOF
1f5d53eb
PE
15095if ac_fn_c_try_compile "$LINENO"; then :
15096 gl_cv_sys_struct_timespec_in_sys_time_h=yes
e275c824 15097else
1f5d53eb 15098 gl_cv_sys_struct_timespec_in_sys_time_h=no
e275c824 15099fi
1f5d53eb 15100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15101fi
1f5d53eb
PE
15102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15103$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15104 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15105 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15106 else
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15108$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15109if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
e275c824 15110 $as_echo_n "(cached) " >&6
e275c824
PE
15111else
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113/* end confdefs.h. */
1f5d53eb 15114#include <pthread.h>
e275c824
PE
15115
15116int
15117main ()
15118{
1f5d53eb 15119static struct timespec x; x.tv_sec = x.tv_nsec;
e275c824
PE
15120 ;
15121 return 0;
15122}
15123_ACEOF
1f5d53eb
PE
15124if ac_fn_c_try_compile "$LINENO"; then :
15125 gl_cv_sys_struct_timespec_in_pthread_h=yes
e275c824 15126else
1f5d53eb 15127 gl_cv_sys_struct_timespec_in_pthread_h=no
e275c824 15128fi
1f5d53eb 15129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15130fi
1f5d53eb
PE
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15132$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15133 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15134 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15135 fi
e275c824
PE
15136 fi
15137 fi
15138
e275c824 15139
e275c824 15140
e275c824
PE
15141
15142
15143
e275c824
PE
15144
15145
15146
15147
15148
15149
15150
15151
e275c824 15152
1f5d53eb
PE
15153 if test $gl_cv_have_include_next = yes; then
15154 gl_cv_next_time_h='<'time.h'>'
15155 else
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15157$as_echo_n "checking absolute name of <time.h>... " >&6; }
15158if ${gl_cv_next_time_h+:} false; then :
15159 $as_echo_n "(cached) " >&6
15160else
e275c824 15161
1f5d53eb
PE
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163/* end confdefs.h. */
15164#include <time.h>
e275c824 15165
1f5d53eb
PE
15166_ACEOF
15167 case "$host_os" in
15168 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15169 *) gl_absname_cpp="$ac_cpp" ;;
15170 esac
15171 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15172 sed -n '\#/time.h#{
15173 s#.*"\(.*/time.h\)".*#\1#
15174 s#^/[^/]#//&#
15175 p
15176 q
15177 }'`'"'
e275c824
PE
15178
15179
1f5d53eb
PE
15180fi
15181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15182$as_echo "$gl_cv_next_time_h" >&6; }
15183 fi
15184 NEXT_TIME_H=$gl_cv_next_time_h
e275c824 15185
1f5d53eb
PE
15186 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15187 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15188 gl_next_as_first_directive='<'time.h'>'
15189 else
15190 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15191 gl_next_as_first_directive=$gl_cv_next_time_h
15192 fi
15193 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
e275c824
PE
15194
15195
15196
e275c824
PE
15197
15198
15199
1f5d53eb
PE
15200ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15201if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
15202 ac_have_decl=1
15203else
15204 ac_have_decl=0
15205fi
e275c824 15206
1f5d53eb
PE
15207cat >>confdefs.h <<_ACEOF
15208#define HAVE_DECL_LOCALTIME_R $ac_have_decl
15209_ACEOF
e275c824
PE
15210
15211
e275c824
PE
15212
15213
1f5d53eb
PE
15214 if false; then
15215 GL_COND_LIBTOOL_TRUE=
15216 GL_COND_LIBTOOL_FALSE='#'
67342916 15217else
1f5d53eb
PE
15218 GL_COND_LIBTOOL_TRUE='#'
15219 GL_COND_LIBTOOL_FALSE=
67342916 15220fi
67342916 15221
1f5d53eb
PE
15222 gl_cond_libtool=false
15223 gl_libdeps=
15224 gl_ltlibdeps=
15225 gl_m4_base='m4'
67342916 15226
67342916 15227
e275c824 15228
e275c824
PE
15229
15230
15231
15232
e275c824 15233
e275c824 15234
1f5d53eb
PE
15235 gl_source_base='lib'
15236 # Code from module arg-nonnull:
15237 # Code from module c++defs:
942f733f
PE
15238 # Code from module crypto/md5:
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15249
15250
15251
15252
15253 :
15254
36f13e16 15255 # Code from module dosname:
1f5d53eb 15256 # Code from module dtoastr:
e275c824 15257
1f5d53eb 15258 # Code from module extensions:
5fa4ac76
PE
15259 # Code from module filemode:
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15271
15272
15273
1f5d53eb 15274 # Code from module getloadavg:
e275c824
PE
15275
15276
1f5d53eb 15277# Persuade glibc <stdlib.h> to declare getloadavg().
e275c824 15278
e275c824 15279
1f5d53eb
PE
15280# Make sure getloadavg.c is where it belongs, at configure-time.
15281test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15282 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
e275c824 15283
1f5d53eb 15284gl_save_LIBS=$LIBS
e275c824 15285
7d315eb6
PE
15286# getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15287# NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
1f5d53eb
PE
15288ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15289if test "x$ac_cv_func_getloadavg" = xyes; then :
e275c824 15290
1f5d53eb
PE
15291else
15292 gl_have_func=no
15293
15294 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15295 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15296 # to get the right answer into the cache.
15297 # For kstat on solaris, we need to test for libelf and libkvm to force the
15298 # definition of SVR4 below.
15299 if test $gl_have_func = no; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15301$as_echo_n "checking for elf_begin in -lelf... " >&6; }
15302if ${ac_cv_lib_elf_elf_begin+:} false; then :
16c3e636
PE
15303 $as_echo_n "(cached) " >&6
15304else
1f5d53eb
PE
15305 ac_check_lib_save_LIBS=$LIBS
15306LIBS="-lelf $LIBS"
15307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16c3e636
PE
15308/* end confdefs.h. */
15309
1f5d53eb
PE
15310/* Override any GCC internal prototype to avoid an error.
15311 Use char because int might match the return type of a GCC
15312 builtin and then its argument prototype would still apply. */
15313#ifdef __cplusplus
15314extern "C"
15315#endif
15316char elf_begin ();
15317int
15318main ()
15319{
15320return elf_begin ();
15321 ;
15322 return 0;
15323}
15324_ACEOF
15325if ac_fn_c_try_link "$LINENO"; then :
15326 ac_cv_lib_elf_elf_begin=yes
15327else
15328 ac_cv_lib_elf_elf_begin=no
15329fi
15330rm -f core conftest.err conftest.$ac_objext \
15331 conftest$ac_exeext conftest.$ac_ext
15332LIBS=$ac_check_lib_save_LIBS
15333fi
15334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15335$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15336if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
15337 LIBS="-lelf $LIBS"
15338fi
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15341$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15342if ${ac_cv_lib_kvm_kvm_open+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344else
15345 ac_check_lib_save_LIBS=$LIBS
15346LIBS="-lkvm $LIBS"
15347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348/* end confdefs.h. */
16c3e636 15349
1f5d53eb
PE
15350/* Override any GCC internal prototype to avoid an error.
15351 Use char because int might match the return type of a GCC
15352 builtin and then its argument prototype would still apply. */
15353#ifdef __cplusplus
15354extern "C"
15355#endif
15356char kvm_open ();
16c3e636
PE
15357int
15358main ()
15359{
1f5d53eb 15360return kvm_open ();
16c3e636
PE
15361 ;
15362 return 0;
15363}
15364_ACEOF
1f5d53eb
PE
15365if ac_fn_c_try_link "$LINENO"; then :
15366 ac_cv_lib_kvm_kvm_open=yes
16c3e636 15367else
1f5d53eb 15368 ac_cv_lib_kvm_kvm_open=no
16c3e636 15369fi
1f5d53eb
PE
15370rm -f core conftest.err conftest.$ac_objext \
15371 conftest$ac_exeext conftest.$ac_ext
15372LIBS=$ac_check_lib_save_LIBS
16c3e636 15373fi
1f5d53eb
PE
15374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15375$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15376if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
15377 LIBS="-lkvm $LIBS"
16c3e636
PE
15378fi
15379
1f5d53eb
PE
15380 # Check for the 4.4BSD definition of getloadavg.
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15382$as_echo_n "checking for getloadavg in -lutil... " >&6; }
15383if ${ac_cv_lib_util_getloadavg+:} false; then :
1fd182f0
PE
15384 $as_echo_n "(cached) " >&6
15385else
1f5d53eb
PE
15386 ac_check_lib_save_LIBS=$LIBS
15387LIBS="-lutil $LIBS"
15388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15389/* end confdefs.h. */
1f5d53eb
PE
15390
15391/* Override any GCC internal prototype to avoid an error.
15392 Use char because int might match the return type of a GCC
15393 builtin and then its argument prototype would still apply. */
15394#ifdef __cplusplus
15395extern "C"
15396#endif
15397char getloadavg ();
1fd182f0
PE
15398int
15399main ()
15400{
1f5d53eb 15401return getloadavg ();
1fd182f0
PE
15402 ;
15403 return 0;
15404}
15405_ACEOF
1f5d53eb
PE
15406if ac_fn_c_try_link "$LINENO"; then :
15407 ac_cv_lib_util_getloadavg=yes
1fd182f0 15408else
1f5d53eb 15409 ac_cv_lib_util_getloadavg=no
1fd182f0 15410fi
1f5d53eb
PE
15411rm -f core conftest.err conftest.$ac_objext \
15412 conftest$ac_exeext conftest.$ac_ext
15413LIBS=$ac_check_lib_save_LIBS
1fd182f0 15414fi
1f5d53eb
PE
15415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15416$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15417if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
15418 LIBS="-lutil $LIBS" gl_have_func=yes
16c3e636
PE
15419fi
15420
1f5d53eb 15421 fi
16c3e636 15422
1f5d53eb
PE
15423 if test $gl_have_func = no; then
15424 # There is a commonly available library for RS/6000 AIX.
15425 # Since it is not a standard part of AIX, it might be installed locally.
15426 gl_getloadavg_LIBS=$LIBS
15427 LIBS="-L/usr/local/lib $LIBS"
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15429$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15430if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
1fd182f0
PE
15431 $as_echo_n "(cached) " >&6
15432else
1f5d53eb
PE
15433 ac_check_lib_save_LIBS=$LIBS
15434LIBS="-lgetloadavg $LIBS"
15435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15436/* end confdefs.h. */
1f5d53eb
PE
15437
15438/* Override any GCC internal prototype to avoid an error.
15439 Use char because int might match the return type of a GCC
15440 builtin and then its argument prototype would still apply. */
15441#ifdef __cplusplus
15442extern "C"
15443#endif
15444char getloadavg ();
1fd182f0
PE
15445int
15446main ()
15447{
1f5d53eb 15448return getloadavg ();
1fd182f0
PE
15449 ;
15450 return 0;
15451}
15452_ACEOF
1f5d53eb
PE
15453if ac_fn_c_try_link "$LINENO"; then :
15454 ac_cv_lib_getloadavg_getloadavg=yes
15455else
15456 ac_cv_lib_getloadavg_getloadavg=no
1fd182f0 15457fi
1f5d53eb
PE
15458rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15460LIBS=$ac_check_lib_save_LIBS
15461fi
15462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15463$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15464if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
15465 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15466else
15467 LIBS=$gl_getloadavg_LIBS
1fd182f0 15468fi
1fd182f0 15469
1f5d53eb 15470 fi
1fd182f0 15471
1f5d53eb
PE
15472 # Set up the replacement function if necessary.
15473 if test $gl_have_func = no; then
1fd182f0
PE
15474
15475
15476
15477
1f5d53eb
PE
15478
15479
15480
15481
15482 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15483
15484
15485# Figure out what our getloadavg.c needs.
15486
15487# Solaris has libkstat which does not require root.
15488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15489$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15490if ${ac_cv_lib_kstat_kstat_open+:} false; then :
1fd182f0
PE
15491 $as_echo_n "(cached) " >&6
15492else
1f5d53eb
PE
15493 ac_check_lib_save_LIBS=$LIBS
15494LIBS="-lkstat $LIBS"
15495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15496/* end confdefs.h. */
1fd182f0 15497
1f5d53eb
PE
15498/* Override any GCC internal prototype to avoid an error.
15499 Use char because int might match the return type of a GCC
15500 builtin and then its argument prototype would still apply. */
15501#ifdef __cplusplus
15502extern "C"
15503#endif
15504char kstat_open ();
1fd182f0
PE
15505int
15506main ()
15507{
1f5d53eb 15508return kstat_open ();
1fd182f0
PE
15509 ;
15510 return 0;
15511}
15512_ACEOF
1f5d53eb
PE
15513if ac_fn_c_try_link "$LINENO"; then :
15514 ac_cv_lib_kstat_kstat_open=yes
1fd182f0 15515else
1f5d53eb 15516 ac_cv_lib_kstat_kstat_open=no
1fd182f0 15517fi
1f5d53eb
PE
15518rm -f core conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
15520LIBS=$ac_check_lib_save_LIBS
1fd182f0 15521fi
1f5d53eb
PE
15522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15523$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15524if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
15525 cat >>confdefs.h <<_ACEOF
15526#define HAVE_LIBKSTAT 1
15527_ACEOF
1fd182f0 15528
1f5d53eb
PE
15529 LIBS="-lkstat $LIBS"
15530
15531fi
15532
15533test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15534
15535# On HPUX9, an unprivileged user can get load averages this way.
15536if test $gl_have_func = no; then
15537 for ac_func in pstat_getdynamic
15538do :
15539 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15540if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
15541 cat >>confdefs.h <<_ACEOF
15542#define HAVE_PSTAT_GETDYNAMIC 1
15543_ACEOF
15544 gl_have_func=yes
15545fi
15546done
15547
15548fi
15549
15550# AIX has libperfstat which does not require root
15551if test $gl_have_func = no; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15553$as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15554if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
1fd182f0
PE
15555 $as_echo_n "(cached) " >&6
15556else
1f5d53eb
PE
15557 ac_check_lib_save_LIBS=$LIBS
15558LIBS="-lperfstat $LIBS"
15559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15560/* end confdefs.h. */
1fd182f0 15561
1f5d53eb
PE
15562/* Override any GCC internal prototype to avoid an error.
15563 Use char because int might match the return type of a GCC
15564 builtin and then its argument prototype would still apply. */
15565#ifdef __cplusplus
15566extern "C"
15567#endif
15568char perfstat_cpu_total ();
1fd182f0
PE
15569int
15570main ()
15571{
1f5d53eb 15572return perfstat_cpu_total ();
1fd182f0
PE
15573 ;
15574 return 0;
15575}
15576_ACEOF
1f5d53eb
PE
15577if ac_fn_c_try_link "$LINENO"; then :
15578 ac_cv_lib_perfstat_perfstat_cpu_total=yes
1fd182f0 15579else
1f5d53eb 15580 ac_cv_lib_perfstat_perfstat_cpu_total=no
1fd182f0 15581fi
1f5d53eb
PE
15582rm -f core conftest.err conftest.$ac_objext \
15583 conftest$ac_exeext conftest.$ac_ext
15584LIBS=$ac_check_lib_save_LIBS
1fd182f0 15585fi
1f5d53eb
PE
15586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15587$as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15588if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
15589 cat >>confdefs.h <<_ACEOF
15590#define HAVE_LIBPERFSTAT 1
15591_ACEOF
15592
15593 LIBS="-lperfstat $LIBS"
15594
15595fi
15596
15597 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15598fi
15599
15600if test $gl_have_func = no; then
15601 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15602if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
15603 gl_have_func=yes
15604
15605$as_echo "#define DGUX 1" >>confdefs.h
15606
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15608$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15609if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
1fd182f0
PE
15610 $as_echo_n "(cached) " >&6
15611else
1f5d53eb
PE
15612 ac_check_lib_save_LIBS=$LIBS
15613LIBS="-ldgc $LIBS"
15614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15615/* end confdefs.h. */
1fd182f0 15616
1f5d53eb
PE
15617/* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15620#ifdef __cplusplus
15621extern "C"
15622#endif
15623char dg_sys_info ();
1fd182f0
PE
15624int
15625main ()
15626{
1f5d53eb 15627return dg_sys_info ();
1fd182f0
PE
15628 ;
15629 return 0;
15630}
15631_ACEOF
1f5d53eb
PE
15632if ac_fn_c_try_link "$LINENO"; then :
15633 ac_cv_lib_dgc_dg_sys_info=yes
1fd182f0 15634else
1f5d53eb 15635 ac_cv_lib_dgc_dg_sys_info=no
1fd182f0 15636fi
1f5d53eb
PE
15637rm -f core conftest.err conftest.$ac_objext \
15638 conftest$ac_exeext conftest.$ac_ext
15639LIBS=$ac_check_lib_save_LIBS
1fd182f0 15640fi
1f5d53eb
PE
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15642$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15643if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
15644 cat >>confdefs.h <<_ACEOF
15645#define HAVE_LIBDGC 1
15646_ACEOF
1fd182f0 15647
1f5d53eb 15648 LIBS="-ldgc $LIBS"
1fd182f0 15649
1f5d53eb 15650fi
1fd182f0 15651
1f5d53eb 15652fi
1fd182f0
PE
15653
15654
1f5d53eb 15655fi
1fd182f0 15656
1f5d53eb
PE
15657# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15658# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15659# Irix 4.0.5F has the header but not the library.
15660if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15661 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15662 gl_have_func=yes
1fd182f0 15663
1f5d53eb 15664$as_echo "#define SVR4 1" >>confdefs.h
1fd182f0 15665
1f5d53eb 15666fi
1fd182f0 15667
1f5d53eb
PE
15668if test $gl_have_func = no; then
15669 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15670if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
15671 gl_have_func=yes
1fd182f0 15672
1f5d53eb 15673$as_echo "#define UMAX 1" >>confdefs.h
1fd182f0
PE
15674
15675
1f5d53eb 15676$as_echo "#define UMAX4_3 1" >>confdefs.h
1fd182f0 15677
1f5d53eb 15678fi
b06b1098
PE
15679
15680
1f5d53eb 15681fi
1fd182f0 15682
1f5d53eb
PE
15683if test $gl_have_func = no; then
15684 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15685if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
15686 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
1fd182f0 15687
1f5d53eb 15688fi
b06b1098 15689
1fd182f0
PE
15690
15691fi
1fd182f0 15692
1f5d53eb
PE
15693if test $gl_have_func = no; then
15694 for ac_header in mach/mach.h
15695do :
15696 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15697if test "x$ac_cv_header_mach_mach_h" = xyes; then :
15698 cat >>confdefs.h <<_ACEOF
15699#define HAVE_MACH_MACH_H 1
15700_ACEOF
1fd182f0 15701
1f5d53eb 15702fi
1fd182f0 15703
1f5d53eb 15704done
1fd182f0 15705
1f5d53eb 15706fi
1fd182f0 15707
1f5d53eb
PE
15708for ac_header in nlist.h
15709do :
15710 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15711if test "x$ac_cv_header_nlist_h" = xyes; then :
15712 cat >>confdefs.h <<_ACEOF
15713#define HAVE_NLIST_H 1
15714_ACEOF
15715 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15716"
15717if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
15718
15719cat >>confdefs.h <<_ACEOF
15720#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15721_ACEOF
1fd182f0 15722
b06b1098 15723
1fd182f0
PE
15724fi
15725
1f5d53eb
PE
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727/* end confdefs.h. */
15728#include <nlist.h>
15729int
15730main ()
15731{
15732struct nlist x;
15733 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15734 x.n_un.n_name = "";
15735 #else
15736 x.n_name = "";
15737 #endif
15738 ;
15739 return 0;
15740}
1fd182f0 15741_ACEOF
1f5d53eb
PE
15742if ac_fn_c_try_link "$LINENO"; then :
15743
15744$as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15745
15746fi
15747rm -f core conftest.err conftest.$ac_objext \
15748 conftest$ac_exeext conftest.$ac_ext
1fd182f0 15749
1f5d53eb 15750fi
1fd182f0 15751
1f5d53eb 15752done
1fd182f0 15753
1f5d53eb
PE
15754 fi
15755fi
1fd182f0 15756
1f5d53eb
PE
15757
15758if test "x$gl_save_LIBS" = x; then
15759 GETLOADAVG_LIBS=$LIBS
1fd182f0 15760else
1f5d53eb 15761 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
1fd182f0 15762fi
1f5d53eb 15763LIBS=$gl_save_LIBS
1fd182f0 15764
1fd182f0 15765
1f5d53eb
PE
15766# Test whether the system declares getloadavg. Solaris has the function
15767# but declares it in <sys/loadavg.h>, not <stdlib.h>.
15768for ac_header in sys/loadavg.h
15769do :
15770 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15771if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15772 cat >>confdefs.h <<_ACEOF
15773#define HAVE_SYS_LOADAVG_H 1
15774_ACEOF
15775
15776fi
1fd182f0 15777
1f5d53eb 15778done
1fd182f0 15779
1f5d53eb
PE
15780if test $ac_cv_header_sys_loadavg_h = yes; then
15781 HAVE_SYS_LOADAVG_H=1
15782else
15783 HAVE_SYS_LOADAVG_H=0
15784fi
15785ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15786 # include <sys/loadavg.h>
15787 #endif
15788 #include <stdlib.h>
15789"
15790if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
1fd182f0 15791
1f5d53eb
PE
15792else
15793 HAVE_DECL_GETLOADAVG=0
15794fi
1fd182f0
PE
15795
15796
15797
15798
15799
1f5d53eb
PE
15800 GNULIB_GETLOADAVG=1
15801
15802
1fd182f0 15803
e275c824
PE
15804 # Code from module getopt-gnu:
15805
15806
15807
15808
15809
15810
e275c824
PE
15811 # Code from module getopt-posix:
15812
15813
15814
15815
15816
15817 if test -n "$gl_replace_getopt"; then :
15818
15819
15820
15821 GETOPT_H=getopt.h
15822
15823$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15824
15825
15826
15827 GNULIB_UNISTD_H_GETOPT=1
15828
15829
15830
15831
15832
15833
15834
15835
15836 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15847
15848
15849
15850
15851
15852
15853fi
15854
15855
15856 # Code from module gettext-h:
15857
15858
67342916
PE
15859 # Code from module ignore-value:
15860
1fd182f0
PE
15861 # Code from module include_next:
15862 # Code from module intprops:
ae0d7250
PE
15863 # Code from module lstat:
15864
15865
15866
15867 if test $ac_cv_func_lstat = yes; then
15868
15869 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15870 REPLACE_LSTAT=1
15871 fi
15872 # Prerequisites of lib/lstat.c.
15873
15874 else
15875 HAVE_LSTAT=0
15876 fi
15877
15878
15879
15880
15881 GNULIB_LSTAT=1
15882
15883
15884
1fd182f0
PE
15885 # Code from module mktime:
15886
15887
15888
15889
15890
15891if test $APPLE_UNIVERSAL_BUILD = 1; then
15892 # A universal build on Apple MacOS X platforms.
15893 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15894 # But we need a configuration result that is valid in both modes.
15895 ac_cv_func_working_mktime=no
15896fi
15897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15898$as_echo_n "checking for working mktime... " >&6; }
d6974efa 15899if ${ac_cv_func_working_mktime+:} false; then :
1fd182f0
PE
15900 $as_echo_n "(cached) " >&6
15901else
15902 if test "$cross_compiling" = yes; then :
15903 ac_cv_func_working_mktime=no
15904else
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906/* end confdefs.h. */
15907/* Test program from Paul Eggert and Tony Leneis. */
15908#include <limits.h>
15909#include <stdlib.h>
15910#include <time.h>
15911
15912#ifdef HAVE_UNISTD_H
15913# include <unistd.h>
15914#endif
15915
15916#ifndef HAVE_ALARM
15917# define alarm(X) /* empty */
15918#endif
15919
15920/* Work around redefinition to rpl_putenv by other config tests. */
15921#undef putenv
15922
15923static time_t time_t_max;
15924static time_t time_t_min;
15925
15926/* Values we'll use to set the TZ environment variable. */
15927static char *tz_strings[] = {
15928 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15929 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15930};
15931#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15932
15933/* Return 0 if mktime fails to convert a date in the spring-forward gap.
15934 Based on a problem report from Andreas Jaeger. */
15935static int
15936spring_forward_gap ()
15937{
15938 /* glibc (up to about 1998-10-07) failed this test. */
15939 struct tm tm;
15940
15941 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15942 instead of "TZ=America/Vancouver" in order to detect the bug even
15943 on systems that don't support the Olson extension, or don't have the
15944 full zoneinfo tables installed. */
15945 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15946
15947 tm.tm_year = 98;
15948 tm.tm_mon = 3;
15949 tm.tm_mday = 5;
15950 tm.tm_hour = 2;
15951 tm.tm_min = 0;
15952 tm.tm_sec = 0;
15953 tm.tm_isdst = -1;
15954 return mktime (&tm) != (time_t) -1;
15955}
15956
15957static int
15958mktime_test1 (time_t now)
15959{
15960 struct tm *lt;
15961 return ! (lt = localtime (&now)) || mktime (lt) == now;
15962}
15963
15964static int
15965mktime_test (time_t now)
15966{
15967 return (mktime_test1 (now)
15968 && mktime_test1 ((time_t) (time_t_max - now))
15969 && mktime_test1 ((time_t) (time_t_min + now)));
15970}
15971
15972static int
15973irix_6_4_bug ()
15974{
15975 /* Based on code from Ariel Faigon. */
15976 struct tm tm;
15977 tm.tm_year = 96;
15978 tm.tm_mon = 3;
15979 tm.tm_mday = 0;
15980 tm.tm_hour = 0;
15981 tm.tm_min = 0;
15982 tm.tm_sec = 0;
15983 tm.tm_isdst = -1;
15984 mktime (&tm);
15985 return tm.tm_mon == 2 && tm.tm_mday == 31;
15986}
15987
15988static int
15989bigtime_test (int j)
15990{
15991 struct tm tm;
15992 time_t now;
15993 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15994 now = mktime (&tm);
15995 if (now != (time_t) -1)
15996 {
15997 struct tm *lt = localtime (&now);
15998 if (! (lt
15999 && lt->tm_year == tm.tm_year
16000 && lt->tm_mon == tm.tm_mon
16001 && lt->tm_mday == tm.tm_mday
16002 && lt->tm_hour == tm.tm_hour
16003 && lt->tm_min == tm.tm_min
16004 && lt->tm_sec == tm.tm_sec
16005 && lt->tm_yday == tm.tm_yday
16006 && lt->tm_wday == tm.tm_wday
16007 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16008 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16009 return 0;
16010 }
16011 return 1;
16012}
16013
16014static int
16015year_2050_test ()
16016{
16017 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16018 ignoring leap seconds. */
16019 unsigned long int answer = 2527315200UL;
16020
16021 struct tm tm;
16022 time_t t;
16023 tm.tm_year = 2050 - 1900;
16024 tm.tm_mon = 2 - 1;
16025 tm.tm_mday = 1;
16026 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16027 tm.tm_isdst = -1;
16028
16029 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16030 instead of "TZ=America/Vancouver" in order to detect the bug even
16031 on systems that don't support the Olson extension, or don't have the
16032 full zoneinfo tables installed. */
16033 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16034
16035 t = mktime (&tm);
16036
16037 /* Check that the result is either a failure, or close enough
16038 to the correct answer that we can assume the discrepancy is
16039 due to leap seconds. */
16040 return (t == (time_t) -1
16041 || (0 < t && answer - 120 <= t && t <= answer + 120));
16042}
16043
16044int
16045main ()
16046{
16047 int result = 0;
16048 time_t t, delta;
16049 int i, j;
3de84ad9
PE
16050 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16051 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
1fd182f0
PE
16052
16053 /* This test makes some buggy mktime implementations loop.
16054 Give up after 60 seconds; a mktime slower than that
16055 isn't worth using anyway. */
16056 alarm (60);
16057
3de84ad9
PE
16058 time_t_max = (! time_t_signed
16059 ? (time_t) -1
16060 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16061 * 2 + 1));
16062 time_t_min = (! time_t_signed
16063 ? (time_t) 0
16064 : time_t_signed_magnitude
16065 ? ~ (time_t) 0
16066 : ~ time_t_max);
1fd182f0
PE
16067
16068 delta = time_t_max / 997; /* a suitable prime number */
16069 for (i = 0; i < N_STRINGS; i++)
16070 {
16071 if (tz_strings[i])
16072 putenv (tz_strings[i]);
16073
16074 for (t = 0; t <= time_t_max - delta; t += delta)
16075 if (! mktime_test (t))
16076 result |= 1;
16077 if (! (mktime_test ((time_t) 1)
16078 && mktime_test ((time_t) (60 * 60))
16079 && mktime_test ((time_t) (60 * 60 * 24))))
16080 result |= 2;
16081
16082 for (j = 1; ; j <<= 1)
16083 if (! bigtime_test (j))
16084 result |= 4;
16085 else if (INT_MAX / 2 < j)
16086 break;
16087 if (! bigtime_test (INT_MAX))
16088 result |= 8;
16089 }
16090 if (! irix_6_4_bug ())
16091 result |= 16;
16092 if (! spring_forward_gap ())
16093 result |= 32;
16094 if (! year_2050_test ())
16095 result |= 64;
16096 return result;
16097}
16098_ACEOF
16099if ac_fn_c_try_run "$LINENO"; then :
16100 ac_cv_func_working_mktime=yes
16101else
16102 ac_cv_func_working_mktime=no
16103fi
16104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16105 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 16106fi
067d23c9 16107
1fd182f0
PE
16108fi
16109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16110$as_echo "$ac_cv_func_working_mktime" >&6; }
16111if test $ac_cv_func_working_mktime = no; then
067d23c9 16112
067d23c9 16113
067d23c9
KY
16114
16115
067d23c9 16116
067d23c9
KY
16117
16118
16119
1fd182f0 16120 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
067d23c9 16121
1fd182f0 16122fi
067d23c9 16123
1fd182f0
PE
16124 if test $ac_cv_func_working_mktime = no; then
16125 REPLACE_MKTIME=1
067d23c9
KY
16126
16127
16128
1fd182f0
PE
16129 else
16130 REPLACE_MKTIME=0
16131 fi
067d23c9
KY
16132
16133
16134
067d23c9 16135
1fd182f0 16136 GNULIB_MKTIME=1
067d23c9
KY
16137
16138
16139
1fd182f0 16140 # Code from module multiarch:
067d23c9 16141
ae0d7250
PE
16142 # Code from module readlink:
16143
16144
16145
16146 if test $ac_cv_func_readlink = no; then
16147 HAVE_READLINK=0
16148
16149
16150
16151
16152
16153
16154
16155
16156 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16157
16158
16159 :
16160
16161 else
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16163$as_echo_n "checking whether readlink signature is correct... " >&6; }
16164if ${gl_cv_decl_readlink_works+:} false; then :
16165 $as_echo_n "(cached) " >&6
16166else
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168/* end confdefs.h. */
16169#include <unistd.h>
16170 /* Cause compilation failure if original declaration has wrong type. */
16171 ssize_t readlink (const char *, char *, size_t);
16172int
16173main ()
16174{
16175
16176 ;
16177 return 0;
16178}
16179_ACEOF
16180if ac_fn_c_try_compile "$LINENO"; then :
16181 gl_cv_decl_readlink_works=yes
16182else
16183 gl_cv_decl_readlink_works=no
16184fi
16185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16186fi
16187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16188$as_echo "$gl_cv_decl_readlink_works" >&6; }
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16190$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16191if ${gl_cv_func_readlink_works+:} false; then :
16192 $as_echo_n "(cached) " >&6
16193else
16194 # We have readlink, so assume ln -s works.
16195 ln -s conftest.no-such conftest.link
16196 ln -s conftest.link conftest.lnk2
16197 if test "$cross_compiling" = yes; then :
16198 gl_cv_func_readlink_works="guessing no"
16199else
16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201/* end confdefs.h. */
16202#include <unistd.h>
16203
16204int
16205main ()
16206{
16207char buf[20];
16208 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16209 ;
16210 return 0;
16211}
16212_ACEOF
16213if ac_fn_c_try_run "$LINENO"; then :
16214 gl_cv_func_readlink_works=yes
16215else
16216 gl_cv_func_readlink_works=no
16217fi
16218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16219 conftest.$ac_objext conftest.beam conftest.$ac_ext
16220fi
16221
16222 rm -f conftest.link conftest.lnk2
16223fi
16224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16225$as_echo "$gl_cv_func_readlink_works" >&6; }
16226 if test "$gl_cv_func_readlink_works" != yes; then
16227
16228$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16229
16230 REPLACE_READLINK=1
16231
16232
16233
16234
16235
16236
16237
16238
16239 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16240
16241 elif test "$gl_cv_decl_readlink_works" != yes; then
16242 REPLACE_READLINK=1
16243
16244
16245
16246
16247
16248
16249
16250
16251 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16252
16253 fi
16254 fi
16255
16256
16257
16258
16259 GNULIB_READLINK=1
16260
16261
16262
16263 # Code from module stat:
16264
16265
16266
ae0d7250
PE
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16268$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16269if ${gl_cv_func_stat_dir_slash+:} false; then :
16270 $as_echo_n "(cached) " >&6
16271else
16272 if test "$cross_compiling" = yes; then :
16273 case $host_os in
16274 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16275 *) gl_cv_func_stat_dir_slash="guessing yes";;
16276 esac
16277else
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279/* end confdefs.h. */
16280#include <sys/stat.h>
16281
16282int
16283main ()
16284{
16285struct stat st; return stat (".", &st) != stat ("./", &st);
16286 ;
16287 return 0;
16288}
16289_ACEOF
16290if ac_fn_c_try_run "$LINENO"; then :
16291 gl_cv_func_stat_dir_slash=yes
16292else
16293 gl_cv_func_stat_dir_slash=no
16294fi
16295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16296 conftest.$ac_objext conftest.beam conftest.$ac_ext
16297fi
16298
16299fi
16300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16301$as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16303$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16304if ${gl_cv_func_stat_file_slash+:} false; then :
16305 $as_echo_n "(cached) " >&6
16306else
16307 touch conftest.tmp
16308 # Assume that if we have lstat, we can also check symlinks.
16309 if test $ac_cv_func_lstat = yes; then
16310 ln -s conftest.tmp conftest.lnk
16311 fi
16312 if test "$cross_compiling" = yes; then :
16313 gl_cv_func_stat_file_slash="guessing no"
16314else
16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316/* end confdefs.h. */
16317#include <sys/stat.h>
16318
16319int
16320main ()
16321{
16322int result = 0;
16323 struct stat st;
16324 if (!stat ("conftest.tmp/", &st))
16325 result |= 1;
16326#if HAVE_LSTAT
16327 if (!stat ("conftest.lnk/", &st))
16328 result |= 2;
16329#endif
16330 return result;
16331
16332 ;
16333 return 0;
16334}
16335_ACEOF
16336if ac_fn_c_try_run "$LINENO"; then :
16337 gl_cv_func_stat_file_slash=yes
16338else
16339 gl_cv_func_stat_file_slash=no
16340fi
16341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16342 conftest.$ac_objext conftest.beam conftest.$ac_ext
16343fi
16344
16345 rm -f conftest.tmp conftest.lnk
16346fi
16347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16348$as_echo "$gl_cv_func_stat_file_slash" >&6; }
16349 case $gl_cv_func_stat_dir_slash in
16350 *no) REPLACE_STAT=1
16351
16352$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16353;;
16354 esac
16355 case $gl_cv_func_stat_file_slash in
16356 *no) REPLACE_STAT=1
16357
16358$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16359;;
16360 esac
16361 if test $REPLACE_STAT = 1; then
16362
16363
16364
16365
16366
16367
16368
16369
16370 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16371
16372
16373 fi
16374
16375
16376
16377
16378 GNULIB_STAT=1
16379
16380
16381
16c3e636
PE
16382 # Code from module stdbool:
16383
16384
16385
16386 # Define two additional variables used in the Makefile substitution.
16387
16388 if test "$ac_cv_header_stdbool_h" = yes; then
16389 STDBOOL_H=''
16390 else
16391 STDBOOL_H='stdbool.h'
16392 fi
16393
16394
16395 if test "$ac_cv_type__Bool" = yes; then
16396 HAVE__BOOL=1
16397 else
16398 HAVE__BOOL=0
16399 fi
16400
16401
1fd182f0 16402 # Code from module stddef:
067d23c9 16403
067d23c9 16404
067d23c9 16405
1fd182f0
PE
16406 if test $gt_cv_c_wchar_t = no; then
16407 HAVE_WCHAR_T=0
16408 STDDEF_H=stddef.h
067d23c9 16409 fi
1fd182f0
PE
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16411$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
d6974efa 16412if ${gl_cv_decl_null_works+:} false; then :
067d23c9 16413 $as_echo_n "(cached) " >&6
067d23c9
KY
16414else
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416/* end confdefs.h. */
1fd182f0
PE
16417#include <stddef.h>
16418 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16419
067d23c9
KY
16420int
16421main ()
16422{
16423
067d23c9
KY
16424 ;
16425 return 0;
16426}
16427_ACEOF
1fd182f0
PE
16428if ac_fn_c_try_compile "$LINENO"; then :
16429 gl_cv_decl_null_works=yes
067d23c9 16430else
1fd182f0 16431 gl_cv_decl_null_works=no
067d23c9 16432fi
1fd182f0 16433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 16434fi
1fd182f0
PE
16435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16436$as_echo "$gl_cv_decl_null_works" >&6; }
16437 if test $gl_cv_decl_null_works = no; then
16438 REPLACE_NULL=1
16439 STDDEF_H=stddef.h
16440 fi
16441 if test -n "$STDDEF_H"; then
16442
16443
16444
16445
16446
16447
b06b1098
PE
16448
16449
1fd182f0
PE
16450 if test $gl_cv_have_include_next = yes; then
16451 gl_cv_next_stddef_h='<'stddef.h'>'
16452 else
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16454$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
d6974efa 16455if ${gl_cv_next_stddef_h+:} false; then :
1fd182f0
PE
16456 $as_echo_n "(cached) " >&6
16457else
16458
b06b1098 16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
16460/* end confdefs.h. */
16461#include <stddef.h>
16462
16463_ACEOF
b06b1098
PE
16464 case "$host_os" in
16465 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16466 *) gl_absname_cpp="$ac_cpp" ;;
16467 esac
16468 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16469 sed -n '\#/stddef.h#{
16470 s#.*"\(.*/stddef.h\)".*#\1#
16471 s#^/[^/]#//&#
16472 p
16473 q
16474 }'`'"'
16475
067d23c9
KY
16476
16477fi
1fd182f0
PE
16478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16479$as_echo "$gl_cv_next_stddef_h" >&6; }
16480 fi
16481 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16482
16483 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16484 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16485 gl_next_as_first_directive='<'stddef.h'>'
16486 else
16487 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16488 gl_next_as_first_directive=$gl_cv_next_stddef_h
16489 fi
16490 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16491
16492
16493
b06b1098 16494
067d23c9
KY
16495 fi
16496
5f90be1b
PE
16497 # Code from module stdint:
16498
16499
16500
16501 if test $ac_cv_type_long_long_int = yes; then
16502 HAVE_LONG_LONG_INT=1
16503 else
16504 HAVE_LONG_LONG_INT=0
16505 fi
16506
16507
16508 if test $ac_cv_type_unsigned_long_long_int = yes; then
16509 HAVE_UNSIGNED_LONG_LONG_INT=1
16510 else
16511 HAVE_UNSIGNED_LONG_LONG_INT=0
16512 fi
16513
16514
16515
16516 if test $ac_cv_header_wchar_h = yes; then
16517 HAVE_WCHAR_H=1
16518 else
16519 HAVE_WCHAR_H=0
16520 fi
16521
16522
16523 if test $ac_cv_header_inttypes_h = yes; then
16524 HAVE_INTTYPES_H=1
16525 else
16526 HAVE_INTTYPES_H=0
16527 fi
16528
16529
16530 if test $ac_cv_header_sys_types_h = yes; then
16531 HAVE_SYS_TYPES_H=1
16532 else
16533 HAVE_SYS_TYPES_H=0
16534 fi
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546 if test $gl_cv_have_include_next = yes; then
16547 gl_cv_next_stdint_h='<'stdint.h'>'
16548 else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16550$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16551if ${gl_cv_next_stdint_h+:} false; then :
16552 $as_echo_n "(cached) " >&6
16553else
16554
16555 if test $ac_cv_header_stdint_h = yes; then
16556
16557
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559/* end confdefs.h. */
16560#include <stdint.h>
16561
16562_ACEOF
16563 case "$host_os" in
16564 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16565 *) gl_absname_cpp="$ac_cpp" ;;
16566 esac
16567 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16568 sed -n '\#/stdint.h#{
16569 s#.*"\(.*/stdint.h\)".*#\1#
16570 s#^/[^/]#//&#
16571 p
16572 q
16573 }'`'"'
16574 else
16575 gl_cv_next_stdint_h='<'stdint.h'>'
16576 fi
16577
16578
16579fi
16580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16581$as_echo "$gl_cv_next_stdint_h" >&6; }
16582 fi
16583 NEXT_STDINT_H=$gl_cv_next_stdint_h
16584
16585 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16587 gl_next_as_first_directive='<'stdint.h'>'
16588 else
16589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16590 gl_next_as_first_directive=$gl_cv_next_stdint_h
16591 fi
16592 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16593
16594
16595
16596
16597 if test $ac_cv_header_stdint_h = yes; then
16598 HAVE_STDINT_H=1
16599 else
16600 HAVE_STDINT_H=0
16601 fi
16602
16603
16604 if test $ac_cv_header_stdint_h = yes; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16606$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16607if ${gl_cv_header_working_stdint_h+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609else
16610 gl_cv_header_working_stdint_h=no
16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612/* end confdefs.h. */
16613
16614
16615#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16616#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16617#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16618#include <stdint.h>
16619/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16620#if !(defined WCHAR_MIN && defined WCHAR_MAX)
16621#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16622#endif
16623
16624
16625 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16626 included before <wchar.h>. */
16627 #include <stddef.h>
16628 #include <signal.h>
16629 #if HAVE_WCHAR_H
16630 # include <stdio.h>
16631 # include <time.h>
16632 # include <wchar.h>
16633 #endif
16634
16635
16636#ifdef INT8_MAX
16637int8_t a1 = INT8_MAX;
16638int8_t a1min = INT8_MIN;
16639#endif
16640#ifdef INT16_MAX
16641int16_t a2 = INT16_MAX;
16642int16_t a2min = INT16_MIN;
16643#endif
16644#ifdef INT32_MAX
16645int32_t a3 = INT32_MAX;
16646int32_t a3min = INT32_MIN;
16647#endif
16648#ifdef INT64_MAX
16649int64_t a4 = INT64_MAX;
16650int64_t a4min = INT64_MIN;
16651#endif
16652#ifdef UINT8_MAX
16653uint8_t b1 = UINT8_MAX;
16654#else
16655typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16656#endif
16657#ifdef UINT16_MAX
16658uint16_t b2 = UINT16_MAX;
16659#endif
16660#ifdef UINT32_MAX
16661uint32_t b3 = UINT32_MAX;
16662#endif
16663#ifdef UINT64_MAX
16664uint64_t b4 = UINT64_MAX;
16665#endif
16666int_least8_t c1 = INT8_C (0x7f);
16667int_least8_t c1max = INT_LEAST8_MAX;
16668int_least8_t c1min = INT_LEAST8_MIN;
16669int_least16_t c2 = INT16_C (0x7fff);
16670int_least16_t c2max = INT_LEAST16_MAX;
16671int_least16_t c2min = INT_LEAST16_MIN;
16672int_least32_t c3 = INT32_C (0x7fffffff);
16673int_least32_t c3max = INT_LEAST32_MAX;
16674int_least32_t c3min = INT_LEAST32_MIN;
16675int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16676int_least64_t c4max = INT_LEAST64_MAX;
16677int_least64_t c4min = INT_LEAST64_MIN;
16678uint_least8_t d1 = UINT8_C (0xff);
16679uint_least8_t d1max = UINT_LEAST8_MAX;
16680uint_least16_t d2 = UINT16_C (0xffff);
16681uint_least16_t d2max = UINT_LEAST16_MAX;
16682uint_least32_t d3 = UINT32_C (0xffffffff);
16683uint_least32_t d3max = UINT_LEAST32_MAX;
16684uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16685uint_least64_t d4max = UINT_LEAST64_MAX;
16686int_fast8_t e1 = INT_FAST8_MAX;
16687int_fast8_t e1min = INT_FAST8_MIN;
16688int_fast16_t e2 = INT_FAST16_MAX;
16689int_fast16_t e2min = INT_FAST16_MIN;
16690int_fast32_t e3 = INT_FAST32_MAX;
16691int_fast32_t e3min = INT_FAST32_MIN;
16692int_fast64_t e4 = INT_FAST64_MAX;
16693int_fast64_t e4min = INT_FAST64_MIN;
16694uint_fast8_t f1 = UINT_FAST8_MAX;
16695uint_fast16_t f2 = UINT_FAST16_MAX;
16696uint_fast32_t f3 = UINT_FAST32_MAX;
16697uint_fast64_t f4 = UINT_FAST64_MAX;
16698#ifdef INTPTR_MAX
16699intptr_t g = INTPTR_MAX;
16700intptr_t gmin = INTPTR_MIN;
16701#endif
16702#ifdef UINTPTR_MAX
16703uintptr_t h = UINTPTR_MAX;
16704#endif
16705intmax_t i = INTMAX_MAX;
16706uintmax_t j = UINTMAX_MAX;
16707
16708#include <limits.h> /* for CHAR_BIT */
16709#define TYPE_MINIMUM(t) \
16710 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16711#define TYPE_MAXIMUM(t) \
16712 ((t) ((t) 0 < (t) -1 \
16713 ? (t) -1 \
16714 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16715struct s {
16716 int check_PTRDIFF:
16717 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16718 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16719 ? 1 : -1;
16720 /* Detect bug in FreeBSD 6.0 / ia64. */
16721 int check_SIG_ATOMIC:
16722 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16723 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16724 ? 1 : -1;
16725 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16726 int check_WCHAR:
16727 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16728 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16729 ? 1 : -1;
16730 /* Detect bug in mingw. */
16731 int check_WINT:
16732 WINT_MIN == TYPE_MINIMUM (wint_t)
16733 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16734 ? 1 : -1;
16735
16736 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16737 int check_UINT8_C:
16738 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16739 int check_UINT16_C:
16740 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16741
16742 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16743#ifdef UINT8_MAX
16744 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16745#endif
16746#ifdef UINT16_MAX
16747 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16748#endif
16749#ifdef UINT32_MAX
16750 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16751#endif
16752#ifdef UINT64_MAX
16753 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16754#endif
16755 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16756 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16757 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16758 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16759 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16760 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16761 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16762 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16763 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16764 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16765 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16766};
16767
16768int
16769main ()
16770{
16771
16772 ;
16773 return 0;
16774}
16775_ACEOF
16776if ac_fn_c_try_compile "$LINENO"; then :
16777 if test "$cross_compiling" = yes; then :
16778 gl_cv_header_working_stdint_h=yes
16779
16780else
16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782/* end confdefs.h. */
16783
16784
16785#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16786#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16787#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16788#include <stdint.h>
16789
16790
16791 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16792 included before <wchar.h>. */
16793 #include <stddef.h>
16794 #include <signal.h>
16795 #if HAVE_WCHAR_H
16796 # include <stdio.h>
16797 # include <time.h>
16798 # include <wchar.h>
16799 #endif
16800
16801
16802#include <stdio.h>
16803#include <string.h>
16804#define MVAL(macro) MVAL1(macro)
16805#define MVAL1(expression) #expression
16806static const char *macro_values[] =
16807 {
16808#ifdef INT8_MAX
16809 MVAL (INT8_MAX),
16810#endif
16811#ifdef INT16_MAX
16812 MVAL (INT16_MAX),
16813#endif
16814#ifdef INT32_MAX
16815 MVAL (INT32_MAX),
16816#endif
16817#ifdef INT64_MAX
16818 MVAL (INT64_MAX),
16819#endif
16820#ifdef UINT8_MAX
16821 MVAL (UINT8_MAX),
16822#endif
16823#ifdef UINT16_MAX
16824 MVAL (UINT16_MAX),
16825#endif
16826#ifdef UINT32_MAX
16827 MVAL (UINT32_MAX),
16828#endif
16829#ifdef UINT64_MAX
16830 MVAL (UINT64_MAX),
16831#endif
16832 NULL
16833 };
16834
16835int
16836main ()
16837{
16838
16839 const char **mv;
16840 for (mv = macro_values; *mv != NULL; mv++)
16841 {
16842 const char *value = *mv;
16843 /* Test whether it looks like a cast expression. */
16844 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16845 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16846 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16847 || strncmp (value, "((int)"/*)*/, 6) == 0
16848 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16849 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16850 return mv - macro_values + 1;
16851 }
16852 return 0;
16853
16854 ;
16855 return 0;
16856}
16857_ACEOF
16858if ac_fn_c_try_run "$LINENO"; then :
16859 gl_cv_header_working_stdint_h=yes
16860fi
16861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16862 conftest.$ac_objext conftest.beam conftest.$ac_ext
16863fi
16864
16865
16866fi
16867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868
16869fi
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16871$as_echo "$gl_cv_header_working_stdint_h" >&6; }
16872 fi
16873 if test "$gl_cv_header_working_stdint_h" = yes; then
16874 STDINT_H=
16875 else
16876 for ac_header in sys/inttypes.h sys/bitypes.h
16877do :
16878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16879ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16881 cat >>confdefs.h <<_ACEOF
16882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16883_ACEOF
16884
16885fi
16886
16887done
16888
16889 if test $ac_cv_header_sys_inttypes_h = yes; then
16890 HAVE_SYS_INTTYPES_H=1
16891 else
16892 HAVE_SYS_INTTYPES_H=0
16893 fi
16894
16895 if test $ac_cv_header_sys_bitypes_h = yes; then
16896 HAVE_SYS_BITYPES_H=1
16897 else
16898 HAVE_SYS_BITYPES_H=0
16899 fi
16900
16901
16902
16903
16904 if test $APPLE_UNIVERSAL_BUILD = 0; then
16905
16906
16907 for gltype in ptrdiff_t size_t ; do
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16909$as_echo_n "checking for bit size of $gltype... " >&6; }
16910if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16911 $as_echo_n "(cached) " >&6
16912else
16913 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16914 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16915 included before <wchar.h>. */
16916 #include <stddef.h>
16917 #include <signal.h>
16918 #if HAVE_WCHAR_H
16919 # include <stdio.h>
16920 # include <time.h>
16921 # include <wchar.h>
16922 #endif
16923
16924#include <limits.h>"; then :
16925
16926else
16927 result=unknown
16928fi
16929
16930 eval gl_cv_bitsizeof_${gltype}=\$result
16931
16932fi
16933eval ac_res=\$gl_cv_bitsizeof_${gltype}
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16935$as_echo "$ac_res" >&6; }
16936 eval result=\$gl_cv_bitsizeof_${gltype}
16937 if test $result = unknown; then
16938 result=0
16939 fi
16940 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16941 cat >>confdefs.h <<_ACEOF
16942#define BITSIZEOF_${GLTYPE} $result
16943_ACEOF
16944
16945 eval BITSIZEOF_${GLTYPE}=\$result
16946 done
16947
16948
16949 fi
16950
16951
16952 for gltype in sig_atomic_t wchar_t wint_t ; do
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16954$as_echo_n "checking for bit size of $gltype... " >&6; }
16955if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16956 $as_echo_n "(cached) " >&6
16957else
16958 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16959 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16960 included before <wchar.h>. */
16961 #include <stddef.h>
16962 #include <signal.h>
16963 #if HAVE_WCHAR_H
16964 # include <stdio.h>
16965 # include <time.h>
16966 # include <wchar.h>
16967 #endif
16968
16969#include <limits.h>"; then :
16970
16971else
16972 result=unknown
16973fi
16974
16975 eval gl_cv_bitsizeof_${gltype}=\$result
16976
16977fi
16978eval ac_res=\$gl_cv_bitsizeof_${gltype}
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16980$as_echo "$ac_res" >&6; }
16981 eval result=\$gl_cv_bitsizeof_${gltype}
16982 if test $result = unknown; then
16983 result=0
16984 fi
16985 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16986 cat >>confdefs.h <<_ACEOF
16987#define BITSIZEOF_${GLTYPE} $result
16988_ACEOF
16989
16990 eval BITSIZEOF_${GLTYPE}=\$result
16991 done
16992
16993
16994
16995
16996 for gltype in sig_atomic_t wchar_t wint_t ; do
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16998$as_echo_n "checking whether $gltype is signed... " >&6; }
16999if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17000 $as_echo_n "(cached) " >&6
17001else
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003/* end confdefs.h. */
17004
17005 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17006 included before <wchar.h>. */
17007 #include <stddef.h>
17008 #include <signal.h>
17009 #if HAVE_WCHAR_H
17010 # include <stdio.h>
17011 # include <time.h>
17012 # include <wchar.h>
17013 #endif
17014
17015 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17016int
17017main ()
17018{
17019
17020 ;
17021 return 0;
17022}
17023_ACEOF
17024if ac_fn_c_try_compile "$LINENO"; then :
17025 result=yes
17026else
17027 result=no
17028fi
17029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 eval gl_cv_type_${gltype}_signed=\$result
17031
17032fi
17033eval ac_res=\$gl_cv_type_${gltype}_signed
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17035$as_echo "$ac_res" >&6; }
17036 eval result=\$gl_cv_type_${gltype}_signed
17037 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17038 if test "$result" = yes; then
17039 cat >>confdefs.h <<_ACEOF
17040#define HAVE_SIGNED_${GLTYPE} 1
17041_ACEOF
17042
17043 eval HAVE_SIGNED_${GLTYPE}=1
17044 else
17045 eval HAVE_SIGNED_${GLTYPE}=0
17046 fi
17047 done
17048
17049
17050 gl_cv_type_ptrdiff_t_signed=yes
17051 gl_cv_type_size_t_signed=no
17052 if test $APPLE_UNIVERSAL_BUILD = 0; then
17053
17054
17055 for gltype in ptrdiff_t size_t ; do
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17057$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17058if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17059 $as_echo_n "(cached) " >&6
17060else
17061 eval gl_cv_type_${gltype}_suffix=no
17062 eval result=\$gl_cv_type_${gltype}_signed
17063 if test "$result" = yes; then
17064 glsufu=
17065 else
17066 glsufu=u
17067 fi
17068 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17069 case $glsuf in
17070 '') gltype1='int';;
17071 l) gltype1='long int';;
17072 ll) gltype1='long long int';;
17073 i64) gltype1='__int64';;
17074 u) gltype1='unsigned int';;
17075 ul) gltype1='unsigned long int';;
17076 ull) gltype1='unsigned long long int';;
17077 ui64)gltype1='unsigned __int64';;
17078 esac
17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080/* end confdefs.h. */
17081
17082 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17083 included before <wchar.h>. */
17084 #include <stddef.h>
17085 #include <signal.h>
17086 #if HAVE_WCHAR_H
17087 # include <stdio.h>
17088 # include <time.h>
17089 # include <wchar.h>
17090 #endif
17091
17092 extern $gltype foo;
17093 extern $gltype1 foo;
17094int
17095main ()
17096{
17097
17098 ;
17099 return 0;
17100}
17101_ACEOF
17102if ac_fn_c_try_compile "$LINENO"; then :
17103 eval gl_cv_type_${gltype}_suffix=\$glsuf
17104fi
17105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17106 eval result=\$gl_cv_type_${gltype}_suffix
17107 test "$result" != no && break
17108 done
17109fi
17110eval ac_res=\$gl_cv_type_${gltype}_suffix
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17112$as_echo "$ac_res" >&6; }
17113 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17114 eval result=\$gl_cv_type_${gltype}_suffix
17115 test "$result" = no && result=
17116 eval ${GLTYPE}_SUFFIX=\$result
17117 cat >>confdefs.h <<_ACEOF
17118#define ${GLTYPE}_SUFFIX $result
17119_ACEOF
17120
17121 done
17122
17123
17124 fi
17125
17126
17127 for gltype in sig_atomic_t wchar_t wint_t ; do
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17129$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17130if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17131 $as_echo_n "(cached) " >&6
17132else
17133 eval gl_cv_type_${gltype}_suffix=no
17134 eval result=\$gl_cv_type_${gltype}_signed
17135 if test "$result" = yes; then
17136 glsufu=
17137 else
17138 glsufu=u
17139 fi
17140 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17141 case $glsuf in
17142 '') gltype1='int';;
17143 l) gltype1='long int';;
17144 ll) gltype1='long long int';;
17145 i64) gltype1='__int64';;
17146 u) gltype1='unsigned int';;
17147 ul) gltype1='unsigned long int';;
17148 ull) gltype1='unsigned long long int';;
17149 ui64)gltype1='unsigned __int64';;
17150 esac
17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152/* end confdefs.h. */
17153
17154 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17155 included before <wchar.h>. */
17156 #include <stddef.h>
17157 #include <signal.h>
17158 #if HAVE_WCHAR_H
17159 # include <stdio.h>
17160 # include <time.h>
17161 # include <wchar.h>
17162 #endif
17163
17164 extern $gltype foo;
17165 extern $gltype1 foo;
17166int
17167main ()
17168{
17169
17170 ;
17171 return 0;
17172}
17173_ACEOF
17174if ac_fn_c_try_compile "$LINENO"; then :
17175 eval gl_cv_type_${gltype}_suffix=\$glsuf
17176fi
17177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17178 eval result=\$gl_cv_type_${gltype}_suffix
17179 test "$result" != no && break
17180 done
17181fi
17182eval ac_res=\$gl_cv_type_${gltype}_suffix
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17184$as_echo "$ac_res" >&6; }
17185 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17186 eval result=\$gl_cv_type_${gltype}_suffix
17187 test "$result" = no && result=
17188 eval ${GLTYPE}_SUFFIX=\$result
17189 cat >>confdefs.h <<_ACEOF
17190#define ${GLTYPE}_SUFFIX $result
17191_ACEOF
17192
17193 done
17194
17195
17196
17197 STDINT_H=stdint.h
17198 fi
17199
17200
1f5d53eb
PE
17201 # Code from module stdlib:
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212 if test $gl_cv_have_include_next = yes; then
17213 gl_cv_next_stdlib_h='<'stdlib.h'>'
17214 else
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17216$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17217if ${gl_cv_next_stdlib_h+:} false; then :
17218 $as_echo_n "(cached) " >&6
17219else
17220
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h. */
17223#include <stdlib.h>
17224
17225_ACEOF
17226 case "$host_os" in
17227 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17228 *) gl_absname_cpp="$ac_cpp" ;;
17229 esac
17230 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17231 sed -n '\#/stdlib.h#{
17232 s#.*"\(.*/stdlib.h\)".*#\1#
17233 s#^/[^/]#//&#
17234 p
17235 q
17236 }'`'"'
17237
17238
17239fi
17240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17241$as_echo "$gl_cv_next_stdlib_h" >&6; }
17242 fi
17243 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17244
17245 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17247 gl_next_as_first_directive='<'stdlib.h'>'
17248 else
17249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17250 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17251 fi
17252 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17253
17254
17255
17256
17257
17258
17259
16c3e636
PE
17260 # Code from module strftime:
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17272
17273
17274 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17275
17276
17277
17278
17279
17280
17281
17282$as_echo "#define my_strftime nstrftime" >>confdefs.h
17283
17284
17285
ae0d7250
PE
17286 # Code from module symlink:
17287
17288
17289
17290 if test $ac_cv_func_symlink = no; then
17291 HAVE_SYMLINK=0
17292
17293
17294
17295
17296
17297
17298
17299
17300 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17301
17302 else
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17304$as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17305if ${gl_cv_func_symlink_works+:} false; then :
17306 $as_echo_n "(cached) " >&6
17307else
17308 if test "$cross_compiling" = yes; then :
17309 gl_cv_func_symlink_works="guessing no"
17310else
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312/* end confdefs.h. */
17313#include <unistd.h>
17314
17315int
17316main ()
17317{
17318int result = 0;
17319 if (!symlink ("a", "conftest.link/"))
17320 result |= 1;
17321 if (symlink ("conftest.f", "conftest.lnk2"))
17322 result |= 2;
17323 else if (!symlink ("a", "conftest.lnk2/"))
17324 result |= 4;
17325 return result;
17326
17327 ;
17328 return 0;
17329}
17330_ACEOF
17331if ac_fn_c_try_run "$LINENO"; then :
17332 gl_cv_func_symlink_works=yes
17333else
17334 gl_cv_func_symlink_works=no
17335fi
17336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17337 conftest.$ac_objext conftest.beam conftest.$ac_ext
17338fi
17339
17340 rm -f conftest.f conftest.link conftest.lnk2
17341fi
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17343$as_echo "$gl_cv_func_symlink_works" >&6; }
17344 if test "$gl_cv_func_symlink_works" != yes; then
17345 REPLACE_SYMLINK=1
17346
17347
17348
17349
17350
17351
17352
17353
17354 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17355
17356 fi
17357 fi
17358
17359
17360
17361
17362 GNULIB_SYMLINK=1
17363
17364
17365
5fa4ac76
PE
17366 # Code from module sys_stat:
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383 if test $gl_cv_have_include_next = yes; then
17384 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17385 else
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17387$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17388if ${gl_cv_next_sys_stat_h+:} false; then :
17389 $as_echo_n "(cached) " >&6
17390else
17391
17392 if test $ac_cv_header_sys_stat_h = yes; then
17393
17394
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396/* end confdefs.h. */
17397#include <sys/stat.h>
17398
17399_ACEOF
17400 case "$host_os" in
17401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17402 *) gl_absname_cpp="$ac_cpp" ;;
17403 esac
17404 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17405 sed -n '\#/sys/stat.h#{
17406 s#.*"\(.*/sys/stat.h\)".*#\1#
17407 s#^/[^/]#//&#
17408 p
17409 q
17410 }'`'"'
17411 else
17412 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17413 fi
17414
17415
17416fi
17417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17418$as_echo "$gl_cv_next_sys_stat_h" >&6; }
17419 fi
17420 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17421
17422 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17423 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17424 gl_next_as_first_directive='<'sys/stat.h'>'
17425 else
17426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17427 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17428 fi
17429 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17430
17431
17432
17433
17434
17435 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17436 #include <sys/stat.h>
17437"
17438if test "x$ac_cv_type_nlink_t" = xyes; then :
17439
17440else
17441
17442$as_echo "#define nlink_t int" >>confdefs.h
17443
17444fi
17445
17446
17447
17448
17449
1fd182f0 17450 # Code from module time:
067d23c9
KY
17451
17452
067d23c9 17453
1fd182f0 17454 # Code from module time_r:
067d23c9 17455
067d23c9 17456
067d23c9
KY
17457
17458
17459
067d23c9 17460
067d23c9 17461
1fd182f0
PE
17462 if test $ac_cv_have_decl_localtime_r = no; then
17463 HAVE_DECL_LOCALTIME_R=0
17464 fi
067d23c9
KY
17465
17466
1fd182f0
PE
17467 if test $ac_cv_func_localtime_r = yes; then
17468 HAVE_LOCALTIME_R=1
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17470$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
d6974efa 17471if ${gl_cv_time_r_posix+:} false; then :
067d23c9
KY
17472 $as_echo_n "(cached) " >&6
17473else
1fd182f0 17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 17475/* end confdefs.h. */
1fd182f0 17476#include <time.h>
067d23c9
KY
17477int
17478main ()
17479{
1fd182f0
PE
17480/* We don't need to append 'restrict's to the argument types,
17481 even though the POSIX signature has the 'restrict's,
17482 since C99 says they can't affect type compatibility. */
17483 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17484 if (ptr) return 0;
17485 /* Check the return type is a pointer.
17486 On HP-UX 10 it is 'int'. */
17487 *localtime_r (0, 0);
067d23c9
KY
17488 ;
17489 return 0;
17490}
1fd182f0 17491
067d23c9
KY
17492_ACEOF
17493if ac_fn_c_try_compile "$LINENO"; then :
1fd182f0 17494 gl_cv_time_r_posix=yes
067d23c9 17495else
1fd182f0 17496 gl_cv_time_r_posix=no
067d23c9
KY
17497fi
17498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17499
17500fi
1fd182f0
PE
17501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17502$as_echo "$gl_cv_time_r_posix" >&6; }
17503 if test $gl_cv_time_r_posix = yes; then
17504 REPLACE_LOCALTIME_R=0
17505 else
17506 REPLACE_LOCALTIME_R=1
17507 fi
17508 else
17509 HAVE_LOCALTIME_R=0
17510 fi
17511 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
067d23c9 17512
067d23c9
KY
17513
17514
743c80a7 17515
a451f14b
PE
17516
17517
17518
a451f14b 17519
1fd182f0 17520 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
a451f14b 17521
a451f14b 17522
1fd182f0 17523 :
a451f14b
PE
17524
17525 fi
17526
17527
743c80a7
PE
17528
17529
1fd182f0 17530 GNULIB_TIME_R=1
743c80a7
PE
17531
17532
17533
b06b1098 17534 # Code from module unistd:
a451f14b
PE
17535
17536
17537
e275c824
PE
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548 if test $gl_cv_have_include_next = yes; then
17549 gl_cv_next_unistd_h='<'unistd.h'>'
17550 else
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17552$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
d6974efa 17553if ${gl_cv_next_unistd_h+:} false; then :
e275c824
PE
17554 $as_echo_n "(cached) " >&6
17555else
17556
b06b1098
PE
17557 if test $ac_cv_header_unistd_h = yes; then
17558
17559
17560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
17561/* end confdefs.h. */
17562#include <unistd.h>
17563
17564_ACEOF
b06b1098
PE
17565 case "$host_os" in
17566 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17567 *) gl_absname_cpp="$ac_cpp" ;;
17568 esac
17569 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17570 sed -n '\#/unistd.h#{
17571 s#.*"\(.*/unistd.h\)".*#\1#
17572 s#^/[^/]#//&#
17573 p
17574 q
17575 }'`'"'
e275c824 17576 else
b06b1098
PE
17577 gl_cv_next_unistd_h='<'unistd.h'>'
17578 fi
17579
e275c824
PE
17580
17581fi
17582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17583$as_echo "$gl_cv_next_unistd_h" >&6; }
17584 fi
17585 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17586
17587 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17589 gl_next_as_first_directive='<'unistd.h'>'
17590 else
17591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17592 gl_next_as_first_directive=$gl_cv_next_unistd_h
17593 fi
17594 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17595
17596
17597
17598
e275c824
PE
17599 if test $ac_cv_header_unistd_h = yes; then
17600 HAVE_UNISTD_H=1
17601 else
17602 HAVE_UNISTD_H=0
17603 fi
17604
17605
17606
e275c824 17607
1fd182f0
PE
17608 # Code from module warn-on-use:
17609 # End of code from modules
a451f14b 17610
a451f14b 17611
743c80a7
PE
17612
17613
17614
17615
17616
17617
17618
17619 gltests_libdeps=
17620 gltests_ltlibdeps=
17621
17622
17623
17624
17625
a451f14b
PE
17626
17627
17628
17629
743c80a7
PE
17630 gl_source_base='tests'
17631 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
17632
17633 gl_module_indicator_condition=$gltests_WITNESS
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643 LIBGNU_LIBDEPS="$gl_libdeps"
17644
17645 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17646
17647
17648
067d23c9
KY
17649# UNIX98 PTYs.
17650for ac_func in grantpt
17651do :
17652 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
d6974efa 17653if test "x$ac_cv_func_grantpt" = xyes; then :
067d23c9
KY
17654 cat >>confdefs.h <<_ACEOF
17655#define HAVE_GRANTPT 1
17656_ACEOF
17657
17658fi
17659done
17660
17661
17662# PTY-related GNU extensions.
17663for ac_func in getpt
17664do :
17665 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
d6974efa 17666if test "x$ac_cv_func_getpt" = xyes; then :
067d23c9
KY
17667 cat >>confdefs.h <<_ACEOF
17668#define HAVE_GETPT 1
17669_ACEOF
17670
17671fi
17672done
17673
17674
17675# Check this now, so that we will NOT find the above functions in ncurses.
17676# That is because we have not set up to link ncurses in lib-src.
17677# It's better to believe a function is not available
17678# than to expect to find it in ncurses.
17679# Also we need tputs and friends to be able to build at all.
17680have_tputs_et_al=true
17681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17682$as_echo_n "checking for library containing tputs... " >&6; }
d6974efa 17683if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17684 $as_echo_n "(cached) " >&6
17685else
17686 ac_func_search_save_LIBS=$LIBS
17687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688/* end confdefs.h. */
17689
17690/* Override any GCC internal prototype to avoid an error.
17691 Use char because int might match the return type of a GCC
17692 builtin and then its argument prototype would still apply. */
17693#ifdef __cplusplus
17694extern "C"
17695#endif
17696char tputs ();
17697int
17698main ()
17699{
17700return tputs ();
17701 ;
17702 return 0;
17703}
17704_ACEOF
17705for ac_lib in '' ncurses terminfo termcap; do
17706 if test -z "$ac_lib"; then
17707 ac_res="none required"
17708 else
17709 ac_res=-l$ac_lib
17710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17711 fi
17712 if ac_fn_c_try_link "$LINENO"; then :
17713 ac_cv_search_tputs=$ac_res
17714fi
17715rm -f core conftest.err conftest.$ac_objext \
17716 conftest$ac_exeext
d6974efa 17717 if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17718 break
17719fi
17720done
d6974efa 17721if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17722
17723else
17724 ac_cv_search_tputs=no
17725fi
17726rm conftest.$ac_ext
17727LIBS=$ac_func_search_save_LIBS
17728fi
17729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17730$as_echo "$ac_cv_search_tputs" >&6; }
17731ac_res=$ac_cv_search_tputs
17732if test "$ac_res" != no; then :
17733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17734
17735else
17736 have_tputs_et_al=false
17737fi
17738
17739if test "$have_tputs_et_al" != true; then
2018939f 17740 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
067d23c9
KY
17741Maybe some development libraries/packages are missing? Try installing
17742libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17743fi
17744# Must define this when any termcap library is found.
17745
17746$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17747
17748## FIXME This was the cpp logic, but I am not sure it is right.
17749## The above test has not necessarily found libncurses.
17750HAVE_LIBNCURSES=yes
17751
17752## Use terminfo instead of termcap?
17753## Note only system files NOT using terminfo are:
17754## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17755## darwin|gnu without ncurses.
17756TERMINFO=no
17757LIBS_TERMCAP=
17758case "$opsys" in
17759 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17760 ## hpux10-20: Use the system provided termcap(3) library.
17761 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17762 ## is necessary. Otherwise Emacs dumps core when run -nw.
17763 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17764
17765 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17766 ## The ncurses library has been moved out of the System framework in
17767 ## Mac OS X 10.2. So if configure detects it, set the command-line
17768 ## option to use it.
17769 darwin|gnu*)
17770 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17771 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17772 TERMINFO=yes
17773 LIBS_TERMCAP="-lncurses"
17774 fi
17775 ;;
17776
17777 freebsd)
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17779$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
d6974efa 17780 if ${emacs_cv_freebsd_terminfo+:} false; then :
067d23c9
KY
17781 $as_echo_n "(cached) " >&6
17782else
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784/* end confdefs.h. */
17785#include <osreldate.h>
17786int
17787main ()
17788{
17789#if __FreeBSD_version < 400000
17790fail;
17791#endif
17792
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797if ac_fn_c_try_link "$LINENO"; then :
17798 emacs_cv_freebsd_terminfo=yes
17799else
17800 emacs_cv_freebsd_terminfo=no
17801fi
17802rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17804fi
17805
17806
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17808$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17809
17810 if test $emacs_cv_freebsd_terminfo = yes; then
17811 TERMINFO=yes
17812 LIBS_TERMCAP="-lncurses"
17813 else
17814 LIBS_TERMCAP="-ltermcap"
17815 fi
17816 ;;
17817
17818 netbsd)
17819 if test $ac_cv_search_tputs = -lterminfo; then
17820 TERMINFO=yes
17821 LIBS_TERMCAP="-lterminfo"
17822 else
17823 LIBS_TERMCAP="-ltermcap"
17824 fi
17825 ;;
17826
17827esac
17828
17829case "$opsys" in
17830 ## hpux: Make sure we get select from libc rather than from libcurses
17831 ## because libcurses on HPUX 10.10 has a broken version of select.
17832 ## We used to use -lc -lcurses, but this may be cleaner.
17833 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17834
17835 openbsd) LIBS_TERMCAP="-lncurses" ;;
17836
17837 ## Must use system termcap, if we use any termcap. It does special things.
17838 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17839esac
17840
17841TERMCAP_OBJ=tparam.o
17842if test $TERMINFO = yes; then
17843
17844$as_echo "#define TERMINFO 1" >>confdefs.h
17845
17846
17847 ## Default used to be -ltermcap. Add a case above if need something else.
17848 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17849
17850 TERMCAP_OBJ=terminfo.o
17851fi
17852
17853
17854
17855
17856# Do we have res_init, for detecting changes in /etc/resolv.conf?
17857resolv=no
17858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859/* end confdefs.h. */
17860#include <netinet/in.h>
17861#include <arpa/nameser.h>
17862#include <resolv.h>
17863int
17864main ()
17865{
17866return res_init();
17867 ;
17868 return 0;
17869}
17870_ACEOF
17871if ac_fn_c_try_link "$LINENO"; then :
17872 have_res_init=yes
17873else
17874 have_res_init=no
17875fi
17876rm -f core conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17878if test "$have_res_init" = no; then
17879 OLIBS="$LIBS"
17880 LIBS="$LIBS -lresolv"
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17882$as_echo_n "checking for res_init with -lresolv... " >&6; }
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884/* end confdefs.h. */
17885#include <netinet/in.h>
17886#include <arpa/nameser.h>
17887#include <resolv.h>
17888int
17889main ()
17890{
17891return res_init();
17892 ;
17893 return 0;
17894}
17895_ACEOF
17896if ac_fn_c_try_link "$LINENO"; then :
17897 have_res_init=yes
17898else
17899 have_res_init=no
17900fi
17901rm -f core conftest.err conftest.$ac_objext \
17902 conftest$ac_exeext conftest.$ac_ext
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17904$as_echo "$have_res_init" >&6; }
17905 if test "$have_res_init" = yes ; then
17906 resolv=yes
17907 fi
17908 LIBS="$OLIBS"
17909fi
17910
17911if test "$have_res_init" = yes; then
17912
17913$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17914
17915fi
17916
17917# Do we need the Hesiod library to provide the support routines?
17918LIBHESIOD=
17919if test "$with_hesiod" != no ; then
17920 # Don't set $LIBS here -- see comments above. FIXME which comments?
17921 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
d6974efa 17922if test "x$ac_cv_func_res_send" = xyes; then :
067d23c9
KY
17923
17924else
17925 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
d6974efa 17926if test "x$ac_cv_func___res_send" = xyes; then :
067d23c9
KY
17927
17928else
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17930$as_echo_n "checking for res_send in -lresolv... " >&6; }
d6974efa 17931if ${ac_cv_lib_resolv_res_send+:} false; then :
067d23c9
KY
17932 $as_echo_n "(cached) " >&6
17933else
17934 ac_check_lib_save_LIBS=$LIBS
17935LIBS="-lresolv $LIBS"
17936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937/* end confdefs.h. */
17938
17939/* Override any GCC internal prototype to avoid an error.
17940 Use char because int might match the return type of a GCC
17941 builtin and then its argument prototype would still apply. */
17942#ifdef __cplusplus
17943extern "C"
17944#endif
17945char res_send ();
17946int
17947main ()
17948{
17949return res_send ();
17950 ;
17951 return 0;
17952}
17953_ACEOF
17954if ac_fn_c_try_link "$LINENO"; then :
17955 ac_cv_lib_resolv_res_send=yes
17956else
17957 ac_cv_lib_resolv_res_send=no
17958fi
17959rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961LIBS=$ac_check_lib_save_LIBS
17962fi
17963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17964$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
d6974efa 17965if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
067d23c9
KY
17966 resolv=yes
17967else
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17969$as_echo_n "checking for __res_send in -lresolv... " >&6; }
d6974efa 17970if ${ac_cv_lib_resolv___res_send+:} false; then :
067d23c9
KY
17971 $as_echo_n "(cached) " >&6
17972else
17973 ac_check_lib_save_LIBS=$LIBS
17974LIBS="-lresolv $LIBS"
17975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976/* end confdefs.h. */
17977
17978/* Override any GCC internal prototype to avoid an error.
17979 Use char because int might match the return type of a GCC
17980 builtin and then its argument prototype would still apply. */
17981#ifdef __cplusplus
17982extern "C"
17983#endif
17984char __res_send ();
17985int
17986main ()
17987{
17988return __res_send ();
17989 ;
17990 return 0;
17991}
17992_ACEOF
17993if ac_fn_c_try_link "$LINENO"; then :
17994 ac_cv_lib_resolv___res_send=yes
17995else
17996 ac_cv_lib_resolv___res_send=no
17997fi
17998rm -f core conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18000LIBS=$ac_check_lib_save_LIBS
18001fi
18002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18003$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
d6974efa 18004if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
067d23c9
KY
18005 resolv=yes
18006fi
18007
18008fi
18009
18010fi
18011
18012fi
18013
18014 if test "$resolv" = yes ; then
18015 RESOLVLIB=-lresolv
18016 else
18017 RESOLVLIB=
18018 fi
18019 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
d6974efa 18020if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
067d23c9
KY
18021
18022else
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18024$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
d6974efa 18025if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
067d23c9
KY
18026 $as_echo_n "(cached) " >&6
18027else
18028 ac_check_lib_save_LIBS=$LIBS
18029LIBS="-lhesiod $RESOLVLIB $LIBS"
18030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031/* end confdefs.h. */
18032
18033/* Override any GCC internal prototype to avoid an error.
18034 Use char because int might match the return type of a GCC
18035 builtin and then its argument prototype would still apply. */
18036#ifdef __cplusplus
18037extern "C"
18038#endif
18039char hes_getmailhost ();
18040int
18041main ()
18042{
18043return hes_getmailhost ();
18044 ;
18045 return 0;
18046}
18047_ACEOF
18048if ac_fn_c_try_link "$LINENO"; then :
18049 ac_cv_lib_hesiod_hes_getmailhost=yes
18050else
18051 ac_cv_lib_hesiod_hes_getmailhost=no
18052fi
18053rm -f core conftest.err conftest.$ac_objext \
18054 conftest$ac_exeext conftest.$ac_ext
18055LIBS=$ac_check_lib_save_LIBS
18056fi
18057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18058$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
d6974efa 18059if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
067d23c9
KY
18060 hesiod=yes
18061else
18062 :
18063fi
18064
18065fi
18066
18067
18068 if test x"$hesiod" = xyes; then
18069
18070$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18071
18072 LIBHESIOD=-lhesiod
18073 fi
18074fi
18075
18076
18077# Do we need libresolv (due to res_init or Hesiod)?
18078if test "$resolv" = yes ; then
18079
18080$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18081
18082 LIBRESOLV=-lresolv
18083else
18084 LIBRESOLV=
18085fi
18086
18087
18088# These tell us which Kerberos-related libraries to use.
18089COM_ERRLIB=
18090CRYPTOLIB=
18091KRB5LIB=
18092DESLIB=
18093KRB4LIB=
18094
18095if test "${with_kerberos}" != no; then
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18097$as_echo_n "checking for com_err in -lcom_err... " >&6; }
d6974efa 18098if ${ac_cv_lib_com_err_com_err+:} false; then :
067d23c9
KY
18099 $as_echo_n "(cached) " >&6
18100else
18101 ac_check_lib_save_LIBS=$LIBS
18102LIBS="-lcom_err $LIBS"
18103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104/* end confdefs.h. */
18105
18106/* Override any GCC internal prototype to avoid an error.
18107 Use char because int might match the return type of a GCC
18108 builtin and then its argument prototype would still apply. */
18109#ifdef __cplusplus
18110extern "C"
18111#endif
18112char com_err ();
18113int
18114main ()
18115{
18116return com_err ();
18117 ;
18118 return 0;
18119}
18120_ACEOF
18121if ac_fn_c_try_link "$LINENO"; then :
18122 ac_cv_lib_com_err_com_err=yes
18123else
18124 ac_cv_lib_com_err_com_err=no
18125fi
18126rm -f core conftest.err conftest.$ac_objext \
18127 conftest$ac_exeext conftest.$ac_ext
18128LIBS=$ac_check_lib_save_LIBS
18129fi
18130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18131$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
d6974efa 18132if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
067d23c9
KY
18133 have_com_err=yes
18134else
18135 have_com_err=no
18136fi
18137
18138 if test $have_com_err = yes; then
18139 COM_ERRLIB=-lcom_err
18140 LIBS="$COM_ERRLIB $LIBS"
18141
18142$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18143
18144 fi
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18146$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
d6974efa 18147if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
18148 $as_echo_n "(cached) " >&6
18149else
18150 ac_check_lib_save_LIBS=$LIBS
18151LIBS="-lcrypto $LIBS"
18152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153/* end confdefs.h. */
18154
18155/* Override any GCC internal prototype to avoid an error.
18156 Use char because int might match the return type of a GCC
18157 builtin and then its argument prototype would still apply. */
18158#ifdef __cplusplus
18159extern "C"
18160#endif
18161char mit_des_cbc_encrypt ();
18162int
18163main ()
18164{
18165return mit_des_cbc_encrypt ();
18166 ;
18167 return 0;
18168}
18169_ACEOF
18170if ac_fn_c_try_link "$LINENO"; then :
18171 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18172else
18173 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18174fi
18175rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18177LIBS=$ac_check_lib_save_LIBS
18178fi
18179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18180$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 18181if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
18182 have_crypto=yes
18183else
18184 have_crypto=no
18185fi
18186
18187 if test $have_crypto = yes; then
18188 CRYPTOLIB=-lcrypto
18189 LIBS="$CRYPTOLIB $LIBS"
18190
18191$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18192
18193 fi
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18195$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
d6974efa 18196if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
18197 $as_echo_n "(cached) " >&6
18198else
18199 ac_check_lib_save_LIBS=$LIBS
18200LIBS="-lk5crypto $LIBS"
18201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202/* end confdefs.h. */
18203
18204/* Override any GCC internal prototype to avoid an error.
18205 Use char because int might match the return type of a GCC
18206 builtin and then its argument prototype would still apply. */
18207#ifdef __cplusplus
18208extern "C"
18209#endif
18210char mit_des_cbc_encrypt ();
18211int
18212main ()
18213{
18214return mit_des_cbc_encrypt ();
18215 ;
18216 return 0;
18217}
18218_ACEOF
18219if ac_fn_c_try_link "$LINENO"; then :
18220 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18221else
18222 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18223fi
18224rm -f core conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18226LIBS=$ac_check_lib_save_LIBS
18227fi
18228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18229$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 18230if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
18231 have_k5crypto=yes
18232else
18233 have_k5crypto=no
18234fi
18235
18236 if test $have_k5crypto = yes; then
18237 CRYPTOLIB=-lk5crypto
18238 LIBS="$CRYPTOLIB $LIBS"
18239
18240$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18241
18242 fi
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18244$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
d6974efa 18245if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
067d23c9
KY
18246 $as_echo_n "(cached) " >&6
18247else
18248 ac_check_lib_save_LIBS=$LIBS
18249LIBS="-lkrb5 $LIBS"
18250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251/* end confdefs.h. */
18252
18253/* Override any GCC internal prototype to avoid an error.
18254 Use char because int might match the return type of a GCC
18255 builtin and then its argument prototype would still apply. */
18256#ifdef __cplusplus
18257extern "C"
18258#endif
18259char krb5_init_context ();
18260int
18261main ()
18262{
18263return krb5_init_context ();
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268if ac_fn_c_try_link "$LINENO"; then :
18269 ac_cv_lib_krb5_krb5_init_context=yes
18270else
18271 ac_cv_lib_krb5_krb5_init_context=no
18272fi
18273rm -f core conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275LIBS=$ac_check_lib_save_LIBS
18276fi
18277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18278$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
d6974efa 18279if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
067d23c9
KY
18280 have_krb5=yes
18281else
18282 have_krb5=no
18283fi
18284
18285 if test $have_krb5=yes; then
18286 KRB5LIB=-lkrb5
18287 LIBS="$KRB5LIB $LIBS"
18288
18289$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18290
18291 fi
18292 if test "${with_kerberos5}" = no; then
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18294$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
d6974efa 18295if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
067d23c9
KY
18296 $as_echo_n "(cached) " >&6
18297else
18298 ac_check_lib_save_LIBS=$LIBS
18299LIBS="-ldes425 $LIBS"
18300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301/* end confdefs.h. */
18302
18303/* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18306#ifdef __cplusplus
18307extern "C"
18308#endif
18309char des_cbc_encrypt ();
18310int
18311main ()
18312{
18313return des_cbc_encrypt ();
18314 ;
18315 return 0;
18316}
18317_ACEOF
18318if ac_fn_c_try_link "$LINENO"; then :
18319 ac_cv_lib_des425_des_cbc_encrypt=yes
18320else
18321 ac_cv_lib_des425_des_cbc_encrypt=no
18322fi
18323rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18325LIBS=$ac_check_lib_save_LIBS
18326fi
18327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18328$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
d6974efa 18329if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
067d23c9
KY
18330 have_des425=yes
18331else
18332 have_des425=no
18333fi
18334
18335 if test $have_des425 = yes; then
18336 DESLIB=-ldes425
18337 LIBS="$DESLIB $LIBS"
18338
18339$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18340
18341 else
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18343$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
d6974efa 18344if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
067d23c9
KY
18345 $as_echo_n "(cached) " >&6
18346else
18347 ac_check_lib_save_LIBS=$LIBS
18348LIBS="-ldes $LIBS"
18349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350/* end confdefs.h. */
18351
18352/* Override any GCC internal prototype to avoid an error.
18353 Use char because int might match the return type of a GCC
18354 builtin and then its argument prototype would still apply. */
18355#ifdef __cplusplus
18356extern "C"
18357#endif
18358char des_cbc_encrypt ();
18359int
18360main ()
18361{
18362return des_cbc_encrypt ();
18363 ;
18364 return 0;
18365}
18366_ACEOF
18367if ac_fn_c_try_link "$LINENO"; then :
18368 ac_cv_lib_des_des_cbc_encrypt=yes
18369else
18370 ac_cv_lib_des_des_cbc_encrypt=no
18371fi
18372rm -f core conftest.err conftest.$ac_objext \
18373 conftest$ac_exeext conftest.$ac_ext
18374LIBS=$ac_check_lib_save_LIBS
18375fi
18376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18377$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
d6974efa 18378if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
067d23c9
KY
18379 have_des=yes
18380else
18381 have_des=no
18382fi
18383
18384 if test $have_des = yes; then
18385 DESLIB=-ldes
18386 LIBS="$DESLIB $LIBS"
18387
18388$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18389
18390 fi
18391 fi
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18393$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
d6974efa 18394if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
067d23c9
KY
18395 $as_echo_n "(cached) " >&6
18396else
18397 ac_check_lib_save_LIBS=$LIBS
18398LIBS="-lkrb4 $LIBS"
18399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400/* end confdefs.h. */
18401
18402/* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18405#ifdef __cplusplus
18406extern "C"
18407#endif
18408char krb_get_cred ();
18409int
18410main ()
18411{
18412return krb_get_cred ();
18413 ;
18414 return 0;
18415}
18416_ACEOF
18417if ac_fn_c_try_link "$LINENO"; then :
18418 ac_cv_lib_krb4_krb_get_cred=yes
18419else
18420 ac_cv_lib_krb4_krb_get_cred=no
18421fi
18422rm -f core conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
18424LIBS=$ac_check_lib_save_LIBS
18425fi
18426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18427$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
d6974efa 18428if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
067d23c9
KY
18429 have_krb4=yes
18430else
18431 have_krb4=no
18432fi
18433
18434 if test $have_krb4 = yes; then
18435 KRB4LIB=-lkrb4
18436 LIBS="$KRB4LIB $LIBS"
18437
18438$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18439
18440 else
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18442$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
d6974efa 18443if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
067d23c9
KY
18444 $as_echo_n "(cached) " >&6
18445else
18446 ac_check_lib_save_LIBS=$LIBS
18447LIBS="-lkrb $LIBS"
18448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18449/* end confdefs.h. */
18450
18451/* Override any GCC internal prototype to avoid an error.
18452 Use char because int might match the return type of a GCC
18453 builtin and then its argument prototype would still apply. */
18454#ifdef __cplusplus
18455extern "C"
18456#endif
18457char krb_get_cred ();
18458int
18459main ()
18460{
18461return krb_get_cred ();
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466if ac_fn_c_try_link "$LINENO"; then :
18467 ac_cv_lib_krb_krb_get_cred=yes
18468else
18469 ac_cv_lib_krb_krb_get_cred=no
18470fi
18471rm -f core conftest.err conftest.$ac_objext \
18472 conftest$ac_exeext conftest.$ac_ext
18473LIBS=$ac_check_lib_save_LIBS
18474fi
18475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18476$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
d6974efa 18477if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
067d23c9
KY
18478 have_krb=yes
18479else
18480 have_krb=no
18481fi
18482
18483 if test $have_krb = yes; then
18484 KRB4LIB=-lkrb
18485 LIBS="$KRB4LIB $LIBS"
18486
18487$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18488
18489 fi
18490 fi
18491 fi
18492
18493 if test "${with_kerberos5}" != no; then
18494 for ac_header in krb5.h
18495do :
18496 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
d6974efa 18497if test "x$ac_cv_header_krb5_h" = xyes; then :
067d23c9
KY
18498 cat >>confdefs.h <<_ACEOF
18499#define HAVE_KRB5_H 1
18500_ACEOF
18501 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18502"
d6974efa 18503if test "x$ac_cv_member_krb5_error_text" = xyes; then :
067d23c9
KY
18504
18505cat >>confdefs.h <<_ACEOF
18506#define HAVE_KRB5_ERROR_TEXT 1
18507_ACEOF
18508
18509
18510fi
18511ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18512"
d6974efa 18513if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
067d23c9
KY
18514
18515cat >>confdefs.h <<_ACEOF
18516#define HAVE_KRB5_ERROR_E_TEXT 1
18517_ACEOF
18518
18519
18520fi
18521
18522fi
18523
18524done
18525
18526 else
18527 for ac_header in des.h
18528do :
18529 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
d6974efa 18530if test "x$ac_cv_header_des_h" = xyes; then :
067d23c9
KY
18531 cat >>confdefs.h <<_ACEOF
18532#define HAVE_DES_H 1
18533_ACEOF
18534
18535else
18536 for ac_header in kerberosIV/des.h
18537do :
18538 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
d6974efa 18539if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
067d23c9
KY
18540 cat >>confdefs.h <<_ACEOF
18541#define HAVE_KERBEROSIV_DES_H 1
18542_ACEOF
18543
18544else
18545 for ac_header in kerberos/des.h
18546do :
18547 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
d6974efa 18548if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
067d23c9
KY
18549 cat >>confdefs.h <<_ACEOF
18550#define HAVE_KERBEROS_DES_H 1
18551_ACEOF
18552
18553fi
18554
18555done
18556
18557fi
18558
18559done
18560
18561fi
18562
18563done
18564
18565 for ac_header in krb.h
18566do :
18567 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
d6974efa 18568if test "x$ac_cv_header_krb_h" = xyes; then :
067d23c9
KY
18569 cat >>confdefs.h <<_ACEOF
18570#define HAVE_KRB_H 1
18571_ACEOF
18572
18573else
18574 for ac_header in kerberosIV/krb.h
18575do :
18576 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
d6974efa 18577if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
067d23c9
KY
18578 cat >>confdefs.h <<_ACEOF
18579#define HAVE_KERBEROSIV_KRB_H 1
18580_ACEOF
18581
18582else
18583 for ac_header in kerberos/krb.h
18584do :
18585 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
d6974efa 18586if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
067d23c9
KY
18587 cat >>confdefs.h <<_ACEOF
18588#define HAVE_KERBEROS_KRB_H 1
18589_ACEOF
18590
18591fi
18592
18593done
18594
18595fi
18596
18597done
18598
18599fi
18600
18601done
18602
18603 fi
18604 for ac_header in com_err.h
18605do :
18606 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
d6974efa 18607if test "x$ac_cv_header_com_err_h" = xyes; then :
067d23c9
KY
18608 cat >>confdefs.h <<_ACEOF
18609#define HAVE_COM_ERR_H 1
18610_ACEOF
18611
18612fi
18613
18614done
18615
18616fi
18617
18618
18619
18620
18621
18622
18623
18624# Solaris requires -lintl if you want strerror (which calls dgettext)
18625# to return localized messages.
18626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18627$as_echo_n "checking for dgettext in -lintl... " >&6; }
d6974efa 18628if ${ac_cv_lib_intl_dgettext+:} false; then :
067d23c9
KY
18629 $as_echo_n "(cached) " >&6
18630else
18631 ac_check_lib_save_LIBS=$LIBS
18632LIBS="-lintl $LIBS"
18633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634/* end confdefs.h. */
18635
18636/* Override any GCC internal prototype to avoid an error.
18637 Use char because int might match the return type of a GCC
18638 builtin and then its argument prototype would still apply. */
18639#ifdef __cplusplus
18640extern "C"
18641#endif
18642char dgettext ();
18643int
18644main ()
18645{
18646return dgettext ();
18647 ;
18648 return 0;
18649}
18650_ACEOF
18651if ac_fn_c_try_link "$LINENO"; then :
18652 ac_cv_lib_intl_dgettext=yes
18653else
18654 ac_cv_lib_intl_dgettext=no
18655fi
18656rm -f core conftest.err conftest.$ac_objext \
18657 conftest$ac_exeext conftest.$ac_ext
18658LIBS=$ac_check_lib_save_LIBS
18659fi
18660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18661$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
d6974efa 18662if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
067d23c9
KY
18663 cat >>confdefs.h <<_ACEOF
18664#define HAVE_LIBINTL 1
18665_ACEOF
18666
18667 LIBS="-lintl $LIBS"
18668
18669fi
18670
18671
18672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18673$as_echo_n "checking whether localtime caches TZ... " >&6; }
d6974efa 18674if ${emacs_cv_localtime_cache+:} false; then :
067d23c9
KY
18675 $as_echo_n "(cached) " >&6
18676else
18677 if test x$ac_cv_func_tzset = xyes; then
18678if test "$cross_compiling" = yes; then :
18679 # If we have tzset, assume the worst when cross-compiling.
18680emacs_cv_localtime_cache=yes
18681else
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683/* end confdefs.h. */
18684#include <time.h>
18685char TZ_GMT0[] = "TZ=GMT0";
18686char TZ_PST8[] = "TZ=PST8";
18687main()
18688{
18689 time_t now = time ((time_t *) 0);
18690 int hour_GMT0, hour_unset;
18691 if (putenv (TZ_GMT0) != 0)
18692 exit (1);
18693 hour_GMT0 = localtime (&now)->tm_hour;
18694 unsetenv("TZ");
18695 hour_unset = localtime (&now)->tm_hour;
18696 if (putenv (TZ_PST8) != 0)
18697 exit (1);
18698 if (localtime (&now)->tm_hour == hour_GMT0)
18699 exit (1);
18700 unsetenv("TZ");
18701 if (localtime (&now)->tm_hour != hour_unset)
18702 exit (1);
18703 exit (0);
18704}
18705_ACEOF
18706if ac_fn_c_try_run "$LINENO"; then :
18707 emacs_cv_localtime_cache=no
18708else
18709 emacs_cv_localtime_cache=yes
18710fi
18711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18712 conftest.$ac_objext conftest.beam conftest.$ac_ext
18713fi
18714
18715else
18716 # If we lack tzset, report that localtime does not cache TZ,
18717 # since we can't invalidate the cache if we don't have tzset.
18718 emacs_cv_localtime_cache=no
18719fi
18720fi
18721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18722$as_echo "$emacs_cv_localtime_cache" >&6; }
18723if test $emacs_cv_localtime_cache = yes; then
18724
18725$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18726
18727fi
18728
18729if test "x$HAVE_TIMEVAL" = xyes; then
18730 for ac_func in gettimeofday
18731do :
18732 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
d6974efa 18733if test "x$ac_cv_func_gettimeofday" = xyes; then :
067d23c9
KY
18734 cat >>confdefs.h <<_ACEOF
18735#define HAVE_GETTIMEOFDAY 1
18736_ACEOF
18737
18738fi
18739done
18740
18741 if test $ac_cv_func_gettimeofday = yes; then
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18743$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
d6974efa 18744if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
067d23c9
KY
18745 $as_echo_n "(cached) " >&6
18746else
18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748/* end confdefs.h. */
18749
18750#ifdef TIME_WITH_SYS_TIME
18751#include <sys/time.h>
18752#include <time.h>
18753#else
18754#ifdef HAVE_SYS_TIME_H
18755#include <sys/time.h>
18756#else
18757#include <time.h>
18758#endif
18759#endif
18760int
18761main ()
18762{
18763struct timeval time;
18764 gettimeofday (&time, 0);
18765 ;
18766 return 0;
18767}
18768_ACEOF
18769if ac_fn_c_try_compile "$LINENO"; then :
18770 emacs_cv_gettimeofday_two_arguments=yes
18771else
18772 emacs_cv_gettimeofday_two_arguments=no
18773fi
18774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775fi
18776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18777$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18778 if test $emacs_cv_gettimeofday_two_arguments = no; then
18779
18780$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18781
18782 fi
18783 fi
18784fi
18785
18786ok_so_far=yes
18787ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
d6974efa 18788if test "x$ac_cv_func_socket" = xyes; then :
067d23c9
KY
18789
18790else
18791 ok_so_far=no
18792fi
18793
18794if test $ok_so_far = yes; then
18795 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
d6974efa 18796if test "x$ac_cv_header_netinet_in_h" = xyes; then :
067d23c9
KY
18797
18798else
18799 ok_so_far=no
18800fi
18801
18802
18803fi
18804if test $ok_so_far = yes; then
18805 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
d6974efa 18806if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
067d23c9
KY
18807
18808else
18809 ok_so_far=no
18810fi
18811
18812
18813fi
18814if test $ok_so_far = yes; then
18815
18816$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18817
18818fi
18819
18820if test -f /usr/lpp/X11/bin/smt.exp; then
18821
18822$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18823
18824fi
18825
18826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18827$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18828if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18830$as_echo "yes" >&6; }
18831
18832$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18833
18834else
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18836$as_echo "no" >&6; }
18837fi
18838
18839ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
d6974efa 18840if test "x$ac_cv_type_pid_t" = xyes; then :
067d23c9
KY
18841
18842else
18843
18844cat >>confdefs.h <<_ACEOF
18845#define pid_t int
18846_ACEOF
18847
18848fi
18849
18850for ac_header in vfork.h
18851do :
18852 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
d6974efa 18853if test "x$ac_cv_header_vfork_h" = xyes; then :
067d23c9
KY
18854 cat >>confdefs.h <<_ACEOF
18855#define HAVE_VFORK_H 1
18856_ACEOF
18857
18858fi
18859
18860done
18861
18862for ac_func in fork vfork
18863do :
18864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18865ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 18866if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
18867 cat >>confdefs.h <<_ACEOF
18868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18869_ACEOF
18870
18871fi
18872done
18873
18874if test "x$ac_cv_func_fork" = xyes; then
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18876$as_echo_n "checking for working fork... " >&6; }
d6974efa 18877if ${ac_cv_func_fork_works+:} false; then :
067d23c9
KY
18878 $as_echo_n "(cached) " >&6
18879else
18880 if test "$cross_compiling" = yes; then :
18881 ac_cv_func_fork_works=cross
18882else
18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884/* end confdefs.h. */
18885$ac_includes_default
18886int
18887main ()
18888{
18889
18890 /* By Ruediger Kuhlmann. */
18891 return fork () < 0;
18892
18893 ;
18894 return 0;
18895}
18896_ACEOF
18897if ac_fn_c_try_run "$LINENO"; then :
18898 ac_cv_func_fork_works=yes
18899else
18900 ac_cv_func_fork_works=no
18901fi
18902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18903 conftest.$ac_objext conftest.beam conftest.$ac_ext
18904fi
18905
18906fi
18907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18908$as_echo "$ac_cv_func_fork_works" >&6; }
18909
18910else
18911 ac_cv_func_fork_works=$ac_cv_func_fork
18912fi
18913if test "x$ac_cv_func_fork_works" = xcross; then
18914 case $host in
18915 *-*-amigaos* | *-*-msdosdjgpp*)
18916 # Override, as these systems have only a dummy fork() stub
18917 ac_cv_func_fork_works=no
18918 ;;
18919 *)
18920 ac_cv_func_fork_works=yes
18921 ;;
18922 esac
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18924$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18925fi
18926ac_cv_func_vfork_works=$ac_cv_func_vfork
18927if test "x$ac_cv_func_vfork" = xyes; then
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18929$as_echo_n "checking for working vfork... " >&6; }
d6974efa 18930if ${ac_cv_func_vfork_works+:} false; then :
067d23c9
KY
18931 $as_echo_n "(cached) " >&6
18932else
18933 if test "$cross_compiling" = yes; then :
18934 ac_cv_func_vfork_works=cross
18935else
18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937/* end confdefs.h. */
18938/* Thanks to Paul Eggert for this test. */
18939$ac_includes_default
18940#include <sys/wait.h>
18941#ifdef HAVE_VFORK_H
18942# include <vfork.h>
18943#endif
18944/* On some sparc systems, changes by the child to local and incoming
18945 argument registers are propagated back to the parent. The compiler
18946 is told about this with #include <vfork.h>, but some compilers
18947 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18948 static variable whose address is put into a register that is
18949 clobbered by the vfork. */
18950static void
18951#ifdef __cplusplus
18952sparc_address_test (int arg)
18953# else
18954sparc_address_test (arg) int arg;
18955#endif
18956{
18957 static pid_t child;
18958 if (!child) {
18959 child = vfork ();
18960 if (child < 0) {
18961 perror ("vfork");
18962 _exit(2);
18963 }
18964 if (!child) {
18965 arg = getpid();
18966 write(-1, "", 0);
18967 _exit (arg);
18968 }
18969 }
18970}
18971
18972int
18973main ()
18974{
18975 pid_t parent = getpid ();
18976 pid_t child;
18977
18978 sparc_address_test (0);
18979
18980 child = vfork ();
18981
18982 if (child == 0) {
18983 /* Here is another test for sparc vfork register problems. This
18984 test uses lots of local variables, at least as many local
18985 variables as main has allocated so far including compiler
18986 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18987 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18988 reuse the register of parent for one of the local variables,
18989 since it will think that parent can't possibly be used any more
18990 in this routine. Assigning to the local variable will thus
18991 munge parent in the parent process. */
18992 pid_t
18993 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18994 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18995 /* Convince the compiler that p..p7 are live; otherwise, it might
18996 use the same hardware register for all 8 local variables. */
18997 if (p != p1 || p != p2 || p != p3 || p != p4
18998 || p != p5 || p != p6 || p != p7)
18999 _exit(1);
19000
19001 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19002 from child file descriptors. If the child closes a descriptor
19003 before it execs or exits, this munges the parent's descriptor
19004 as well. Test for this by closing stdout in the child. */
19005 _exit(close(fileno(stdout)) != 0);
19006 } else {
19007 int status;
19008 struct stat st;
19009
19010 while (wait(&status) != child)
19011 ;
19012 return (
19013 /* Was there some problem with vforking? */
19014 child < 0
19015
19016 /* Did the child fail? (This shouldn't happen.) */
19017 || status
19018
19019 /* Did the vfork/compiler bug occur? */
19020 || parent != getpid()
19021
19022 /* Did the file descriptor bug occur? */
19023 || fstat(fileno(stdout), &st) != 0
19024 );
19025 }
19026}
19027_ACEOF
19028if ac_fn_c_try_run "$LINENO"; then :
19029 ac_cv_func_vfork_works=yes
19030else
19031 ac_cv_func_vfork_works=no
19032fi
19033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19034 conftest.$ac_objext conftest.beam conftest.$ac_ext
19035fi
19036
19037fi
19038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19039$as_echo "$ac_cv_func_vfork_works" >&6; }
19040
19041fi;
19042if test "x$ac_cv_func_fork_works" = xcross; then
19043 ac_cv_func_vfork_works=$ac_cv_func_vfork
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19045$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19046fi
19047
19048if test "x$ac_cv_func_vfork_works" = xyes; then
19049
19050$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19051
19052else
19053
19054$as_echo "#define vfork fork" >>confdefs.h
19055
19056fi
19057if test "x$ac_cv_func_fork_works" = xyes; then
19058
19059$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19060
19061fi
19062
19063
19064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19065$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6974efa 19066if ${emacs_cv_langinfo_codeset+:} false; then :
067d23c9
KY
19067 $as_echo_n "(cached) " >&6
19068else
19069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19070/* end confdefs.h. */
19071#include <langinfo.h>
19072int
19073main ()
19074{
19075char* cs = nl_langinfo(CODESET);
19076 ;
19077 return 0;
19078}
19079_ACEOF
19080if ac_fn_c_try_link "$LINENO"; then :
19081 emacs_cv_langinfo_codeset=yes
19082else
19083 emacs_cv_langinfo_codeset=no
19084fi
19085rm -f core conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19087
19088fi
19089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19090$as_echo "$emacs_cv_langinfo_codeset" >&6; }
19091if test $emacs_cv_langinfo_codeset = yes; then
19092
19093$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19094
19095fi
19096
19097ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
d6974efa 19098if test "x$ac_cv_type_size_t" = xyes; then :
067d23c9
KY
19099
19100cat >>confdefs.h <<_ACEOF
19101#define HAVE_SIZE_T 1
19102_ACEOF
19103
19104
19105fi
19106
19107
19108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19109$as_echo_n "checking for mbstate_t... " >&6; }
d6974efa 19110if ${ac_cv_type_mbstate_t+:} false; then :
067d23c9
KY
19111 $as_echo_n "(cached) " >&6
19112else
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114/* end confdefs.h. */
19115$ac_includes_default
19116# include <wchar.h>
19117int
19118main ()
19119{
19120mbstate_t x; return sizeof x;
19121 ;
19122 return 0;
19123}
19124_ACEOF
19125if ac_fn_c_try_compile "$LINENO"; then :
19126 ac_cv_type_mbstate_t=yes
19127else
19128 ac_cv_type_mbstate_t=no
19129fi
19130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131fi
19132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19133$as_echo "$ac_cv_type_mbstate_t" >&6; }
19134 if test $ac_cv_type_mbstate_t = yes; then
19135
19136$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19137
19138 else
19139
19140$as_echo "#define mbstate_t int" >>confdefs.h
19141
19142 fi
19143
067d23c9
KY
19144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19145$as_echo_n "checking for C restricted array declarations... " >&6; }
d6974efa 19146if ${emacs_cv_c_restrict_arr+:} false; then :
067d23c9
KY
19147 $as_echo_n "(cached) " >&6
19148else
19149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19150/* end confdefs.h. */
19151void fred (int x[__restrict]);
19152int
19153main ()
19154{
19155
19156 ;
19157 return 0;
19158}
19159_ACEOF
19160if ac_fn_c_try_compile "$LINENO"; then :
19161 emacs_cv_c_restrict_arr=yes
19162else
19163 emacs_cv_c_restrict_arr=no
19164fi
19165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166fi
19167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19168$as_echo "$emacs_cv_c_restrict_arr" >&6; }
19169if test "$emacs_cv_c_restrict_arr" = yes; then
19170
19171$as_echo "#define __restrict_arr __restrict" >>confdefs.h
19172
19173fi
19174
19175
19176
19177# Set up the CFLAGS for real compilation, so we can substitute it.
19178CFLAGS="$REAL_CFLAGS"
19179CPPFLAGS="$REAL_CPPFLAGS"
19180
19181## Hack to detect a buggy GCC version.
19182if test "x$GCC" = xyes \
19183 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19184 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19185 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
2018939f 19186 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
067d23c9
KY
19187fi
19188
16fab143 19189version=$PACKAGE_VERSION
067d23c9
KY
19190
19191### Specify what sort of things we'll be editing into Makefile and config.h.
19192### Use configuration here uncanonicalized to avoid exceeding size limits.
19193
19194
19195## Unused?
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19217## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19218## end of LIBX_BASE, but nothing ever set it.
19219
19220
19221
19222
19223## Used in lwlib/Makefile.in.
19224
d6a003a8
AS
19225if test -n "${machfile}"; then
19226 M_FILE="\$(srcdir)/${machfile}"
19227else
19228 M_FILE=
19229fi
19230S_FILE="\$(srcdir)/${opsysfile}"
067d23c9
KY
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
067d23c9
KY
19241cat >>confdefs.h <<_ACEOF
19242#define EMACS_CONFIGURATION "${canonical}"
19243_ACEOF
19244
19245
19246cat >>confdefs.h <<_ACEOF
19247#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19248_ACEOF
19249
d6a003a8 19250if test -n "$machfile"; then
067d23c9
KY
19251
19252cat >>confdefs.h <<_ACEOF
19253#define config_machfile "${machfile}"
19254_ACEOF
19255
d6a003a8 19256fi
067d23c9
KY
19257
19258cat >>confdefs.h <<_ACEOF
19259#define config_opsysfile "${opsysfile}"
19260_ACEOF
19261
19262
19263XMENU_OBJ=
19264XOBJ=
19265FONT_OBJ=
19266if test "${HAVE_X_WINDOWS}" = "yes" ; then
19267
19268$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19269
19270 XMENU_OBJ=xmenu.o
19271 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19272 FONT_OBJ=xfont.o
19273 if test "$HAVE_XFT" = "yes"; then
19274 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19275 elif test "$HAVE_FREETYPE" = "yes"; then
19276 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19277 fi
19278
19279fi
19280
19281
19282
19283
19284WIDGET_OBJ=
19285MOTIF_LIBW=
19286if test "${USE_X_TOOLKIT}" != "none" ; then
19287 WIDGET_OBJ=widget.o
19288
19289$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19290
19291 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19292
19293$as_echo "#define USE_LUCID 1" >>confdefs.h
19294
19295 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19296
19297$as_echo "#define USE_MOTIF 1" >>confdefs.h
19298
19299 MOTIF_LIBW=-lXm
19300 case "$opsys" in
19301 gnu-linux)
19302 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19303 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19304 ;;
19305
19306 unixware)
19307 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19308 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19309 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19310 ;;
19311
19312 aix4-2)
19313 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19314 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19315 ;;
19316 esac
19317 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19318 fi
19319fi
19320
19321
19322TOOLKIT_LIBW=
19323case "$USE_X_TOOLKIT" in
19324 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19325 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19326 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19327esac
19328
19329
19330if test "$USE_X_TOOLKIT" = "none"; then
19331 LIBXT_OTHER="\$(LIBXSM)"
19332 OLDXMENU_TARGET="really-oldXMenu"
19333else
19334 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19335 OLDXMENU_TARGET="really-lwlib"
19336fi
19337
19338
19339## The X Menu stuff is present in the X10 distribution, but missing
19340## from X11. If we have X10, just use the installed library;
19341## otherwise, use our own copy.
19342if test "${HAVE_X11}" = "yes" ; then
19343
19344$as_echo "#define HAVE_X11 1" >>confdefs.h
19345
19346
19347 if test "$USE_X_TOOLKIT" = "none"; then
19348 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19349 else
19350 OLDXMENU="\${lwlibdir}/liblw.a"
19351 fi
19352 LIBXMENU="\$(OLDXMENU)"
19353 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19354 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19355else
19356 ## For a syntactically valid Makefile; not actually used for anything.
19357 ## See comments in src/Makefile.in.
19358 OLDXMENU=nothing
19359 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19360 if test "${HAVE_X_WINDOWS}" = "yes"; then
19361 LIBXMENU="-lXMenu"
19362 else
19363 LIBXMENU=
19364 fi
19365 LIBX_OTHER=
19366 OLDXMENU_DEPS=
19367fi
19368
19369if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19370 OLDXMENU_TARGET=
19371 OLDXMENU=nothing
19372 LIBXMENU=
19373 OLDXMENU_DEPS=
19374fi
19375
19376
19377
19378
19379
19380
19381
19382if test "${HAVE_MENUS}" = "yes" ; then
19383
19384$as_echo "#define HAVE_MENUS 1" >>confdefs.h
19385
19386fi
19387
19388if test "${GNU_MALLOC}" = "yes" ; then
19389
19390$as_echo "#define GNU_MALLOC 1" >>confdefs.h
19391
19392fi
19393
19394RALLOC_OBJ=
19395if test "${REL_ALLOC}" = "yes" ; then
19396
19397$as_echo "#define REL_ALLOC 1" >>confdefs.h
19398
19399
19400 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19401fi
19402
19403
19404if test "$opsys" = "cygwin"; then
19405 CYGWIN_OBJ="sheap.o"
19406 ## Cygwin differs because of its unexec().
19407 PRE_ALLOC_OBJ=
19408 POST_ALLOC_OBJ=lastfile.o
19409else
19410 CYGWIN_OBJ=
19411 PRE_ALLOC_OBJ=lastfile.o
19412 POST_ALLOC_OBJ=
19413fi
19414
19415
19416
19417
19418
19419case "$opsys" in
19420 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19421
19422 darwin)
19423 ## The -headerpad option tells ld (see man page) to leave room at the
19424 ## end of the header for adding load commands. Needed for dumping.
19425 ## 0x690 is the total size of 30 segment load commands (at 56
19426 ## each); under Cocoa 31 commands are required.
19427 if test "$HAVE_NS" = "yes"; then
19428 libs_nsgui="-framework AppKit"
19429 headerpad_extra=6C8
19430 else
19431 libs_nsgui=
19432 headerpad_extra=690
19433 fi
19434 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19435
19436 ## This is here because src/Makefile.in did some extra fiddling around
19437 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19438 ## #ifndef LD_SWITCH_SYSTEM
19439 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19440 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19441 ## not using gcc, darwin system not on an alpha (ie darwin, since
19442 ## darwin + alpha does not occur).
19443 ## Because this was done in src/Makefile.in, the resulting part of
19444 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19445 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19446 ## rather than LD_SWITCH_SYSTEM.
19447 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19448 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19449 ;;
19450
19451 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19452 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19453 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19454 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19455 ## had different values in configure (in ac_link) and src/Makefile.in.
19456 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19457 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19458
19459 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19460esac
19461
19462if test "$NS_IMPL_GNUSTEP" = "yes"; then
19463 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19464fi
19465
19466
19467
19468
19469LD_FIRSTFLAG=
19470ORDINARY_LINK=
19471case "$opsys" in
19472 ## gnu: GNU needs its own crt0.
19473 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19474
19475 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19476 ## library search parth, i.e. it won't search /usr/lib for libc and
19477 ## friends. Using -nostartfiles instead avoids this problem, and
19478 ## will also work on earlier NetBSD releases.
19479 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19480
19481 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19482 ## MkLinux/LinuxPPC needs this.
19483 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19484 gnu-*)
19485 case "$machine" in
19486 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19487 esac
19488 ;;
19489esac
19490
19491
19492if test "x$ORDINARY_LINK" = "xyes"; then
19493
19494 LD_FIRSTFLAG=""
19495
19496$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19497
19498
19499## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19500## freebsd, gnu-* not on macppc|ibms390x.
19501elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19502
19503 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19504 ## places that are difficult to figure out at make time. Fortunately,
19505 ## these same versions allow you to pass arbitrary flags on to the
19506 ## linker, so there is no reason not to use it as a linker.
19507 ##
19508 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19509 ## searching for libraries in its internal directories, so we have to
19510 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19511 LD_FIRSTFLAG="-nostdlib"
19512fi
19513
19514## FIXME? What setting of EDIT_LDFLAGS should this have?
19515test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19516
19517
19518
19519
19520## FIXME? The logic here is not precisely the same as that above.
19521## There is no check here for a pre-defined LD_FIRSTFLAG.
19522## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19523LIB_GCC=
19524if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19525
19526 case "$opsys" in
19527 freebsd|netbsd|openbsd) LIB_GCC= ;;
19528
19529 gnu-*)
19530 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19531 ## build on ARM EABI under GNU/Linux. (Bug#5518)
d6a003a8
AS
19532 case $host_cpu in
19533 arm*)
067d23c9 19534 LIB_GCC="-lgcc_s"
d6a003a8
AS
19535 ;;
19536 *)
067d23c9
KY
19537 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19538 ## immediately undefine it again and redefine it to empty.
19539 ## Was the C_SWITCH_X_SITE part really necessary?
19540## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19541 LIB_GCC=
d6a003a8
AS
19542 ;;
19543 esac
067d23c9
KY
19544 ;;
19545
19546 ## Ask GCC where to find libgcc.a.
19547 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19548 esac
19549fi
19550
19551
19552TOOLTIP_SUPPORT=
19553WINDOW_SUPPORT=
19554## If we're using X11/GNUstep, define some consequences.
19555if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19556
19557$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19558
19559
19560$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19561
19562 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19563 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19564
19565 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19566 test "$HAVE_X_WINDOWS" = "yes" && \
19567 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19568
19569fi
19570
19571
19572
19573
19574
19575
19576
19577#### Report on what we decided to do.
19578#### Report GTK as a toolkit, even if it doesn't use Xt.
19579#### It makes printing result more understandable as using GTK sets
19580#### toolkit_scroll_bars to yes by default.
19581if test "${HAVE_GTK}" = "yes"; then
19582 USE_X_TOOLKIT=GTK
19583fi
19584
2b7f50d8
AS
19585and_machfile=
19586if test -n "$machfile"; then
19587 and_machfile=" and \`${machfile}'"
19588fi
19589
067d23c9
KY
19590echo "
19591Configured for \`${canonical}'.
19592
19593 Where should the build process find the source code? ${srcdir}
19594 What operating system and machine description files should Emacs use?
2b7f50d8 19595 \`${opsysfile}'${and_machfile}
067d23c9
KY
19596 What compiler should emacs be built with? ${CC} ${CFLAGS}
19597 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19598 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19599 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19600 What window system should Emacs use? ${window_system}
19601 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19602
19603if test -n "${x_includes}"; then
19604echo " Where do we find X Windows header files? ${x_includes}"
19605else
19606echo " Where do we find X Windows header files? Standard dirs"
19607fi
19608if test -n "${x_libraries}"; then
19609echo " Where do we find X Windows libraries? ${x_libraries}"
19610else
19611echo " Where do we find X Windows libraries? Standard dirs"
19612fi
19613
19614echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19615echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19616echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19617echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19618echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19619echo " Does Emacs use -lpng? ${HAVE_PNG}"
19620echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19621echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19622
19623echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19624echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19625echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19626echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19627echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19628echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19629
19630echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19631echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19632echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19633echo " Does Emacs use -lxft? ${HAVE_XFT}"
19634
19635echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19636echo
19637
19638if test $USE_XASSERTS = yes; then
19639 echo " Compiling with asserts turned on."
19640 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
19641fi
19642
19643echo
19644
19645if test "$HAVE_NS" = "yes"; then
19646 echo
19647 echo "You must run \"make install\" in order to test the built application.
19648The installed application will go to nextstep/Emacs.app and can be
19649run or moved from there."
19650 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19651 echo "The application will be fully self-contained."
19652 else
19653 echo "The lisp resources for the application will be installed under ${prefix}.
19654You may need to run \"make install\" with sudo. The application will fail
19655to run if these resources are not installed."
19656 fi
19657 echo
19658fi
19659
19660
19661# Remove any trailing slashes in these variables.
19662test "${prefix}" != NONE &&
19663 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19664test "${exec_prefix}" != NONE &&
19665 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19666
193770ee 19667ac_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 19668
9411886d
PE
19669
19670ac_config_commands="$ac_config_commands mkdirs"
19671
19672
19673ac_config_commands="$ac_config_commands epaths"
19674
19675
19676ac_config_commands="$ac_config_commands gdbinit"
19677
067d23c9
KY
19678
19679cat >confcache <<\_ACEOF
19680# This file is a shell script that caches the results of configure
19681# tests run on this system so they can be shared between configure
19682# scripts and configure runs, see configure's option --config-cache.
19683# It is not useful on other systems. If it contains results you don't
19684# want to keep, you may remove or edit it.
19685#
19686# config.status only pays attention to the cache file if you give it
19687# the --recheck option to rerun configure.
19688#
19689# `ac_cv_env_foo' variables (set or unset) will be overridden when
19690# loading this file, other *unset* `ac_cv_foo' will be assigned the
19691# following values.
19692
19693_ACEOF
19694
19695# The following way of writing the cache mishandles newlines in values,
19696# but we know of no workaround that is simple, portable, and efficient.
19697# So, we kill variables containing newlines.
19698# Ultrix sh set writes to stderr and can't be redirected directly,
19699# and sets the high bit in the cache file unless we assign to the vars.
19700(
19701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19702 eval ac_val=\$$ac_var
19703 case $ac_val in #(
19704 *${as_nl}*)
19705 case $ac_var in #(
19706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19707$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19708 esac
19709 case $ac_var in #(
19710 _ | IFS | as_nl) ;; #(
19711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19712 *) { eval $ac_var=; unset $ac_var;} ;;
19713 esac ;;
19714 esac
19715 done
19716
19717 (set) 2>&1 |
19718 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19719 *${as_nl}ac_space=\ *)
19720 # `set' does not quote correctly, so add quotes: double-quote
19721 # substitution turns \\\\ into \\, and sed turns \\ into \.
19722 sed -n \
19723 "s/'/'\\\\''/g;
19724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19725 ;; #(
19726 *)
19727 # `set' quotes correctly as required by POSIX, so do not add quotes.
19728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19729 ;;
19730 esac |
19731 sort
19732) |
19733 sed '
19734 /^ac_cv_env_/b end
19735 t clear
19736 :clear
19737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19738 t end
19739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19740 :end' >>confcache
19741if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19742 if test -w "$cache_file"; then
d6974efa 19743 if test "x$cache_file" != "x/dev/null"; then
067d23c9
KY
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19745$as_echo "$as_me: updating cache $cache_file" >&6;}
d6974efa
PE
19746 if test ! -f "$cache_file" || test -h "$cache_file"; then
19747 cat confcache >"$cache_file"
19748 else
19749 case $cache_file in #(
19750 */* | ?:*)
19751 mv -f confcache "$cache_file"$$ &&
19752 mv -f "$cache_file"$$ "$cache_file" ;; #(
19753 *)
19754 mv -f confcache "$cache_file" ;;
19755 esac
19756 fi
19757 fi
067d23c9
KY
19758 else
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19760$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19761 fi
19762fi
19763rm -f confcache
19764
19765test "x$prefix" = xNONE && prefix=$ac_default_prefix
19766# Let make expand exec_prefix.
19767test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19768
19769DEFS=-DHAVE_CONFIG_H
19770
19771ac_libobjs=
19772ac_ltlibobjs=
2018939f 19773U=
067d23c9
KY
19774for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19775 # 1. Remove the extension, and $U if already installed.
19776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19779 # will be set to the directory where LIBOBJS objects are built.
19780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19782done
19783LIBOBJS=$ac_libobjs
19784
19785LTLIBOBJS=$ac_ltlibobjs
19786
19787
743c80a7
PE
19788 if test -n "$EXEEXT"; then
19789 am__EXEEXT_TRUE=
19790 am__EXEEXT_FALSE='#'
19791else
19792 am__EXEEXT_TRUE='#'
19793 am__EXEEXT_FALSE=
19794fi
19795
19796if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19797 as_fn_error $? "conditional \"AMDEP\" was never defined.
19798Usually this means the macro was only invoked conditionally." "$LINENO" 5
19799fi
19800if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19801 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19802Usually this means the macro was only invoked conditionally." "$LINENO" 5
19803fi
19804
19805if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19806 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19807Usually this means the macro was only invoked conditionally." "$LINENO" 5
19808fi
19809
942f733f 19810
743c80a7
PE
19811 gl_libobjs=
19812 gl_ltlibobjs=
19813 if test -n "$gl_LIBOBJS"; then
19814 # Remove the extension.
19815 sed_drop_objext='s/\.o$//;s/\.obj$//'
19816 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19817 gl_libobjs="$gl_libobjs $i.$ac_objext"
19818 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19819 done
19820 fi
19821 gl_LIBOBJS=$gl_libobjs
19822
19823 gl_LTLIBOBJS=$gl_ltlibobjs
19824
19825
19826
19827 gltests_libobjs=
19828 gltests_ltlibobjs=
19829 if test -n "$gltests_LIBOBJS"; then
19830 # Remove the extension.
19831 sed_drop_objext='s/\.o$//;s/\.obj$//'
19832 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19833 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19834 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19835 done
19836 fi
19837 gltests_LIBOBJS=$gltests_libobjs
19838
19839 gltests_LTLIBOBJS=$gltests_ltlibobjs
19840
067d23c9
KY
19841
19842
d6974efa 19843: "${CONFIG_STATUS=./config.status}"
067d23c9
KY
19844ac_write_fail=0
19845ac_clean_files_save=$ac_clean_files
19846ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19847{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19848$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19849as_write_fail=0
19850cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19851#! $SHELL
19852# Generated by $as_me.
19853# Run this file to recreate the current configuration.
19854# Compiler output produced by configure, useful for debugging
19855# configure, is in config.log if it exists.
19856
19857debug=false
19858ac_cs_recheck=false
19859ac_cs_silent=false
19860
19861SHELL=\${CONFIG_SHELL-$SHELL}
19862export SHELL
19863_ASEOF
19864cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19865## -------------------- ##
19866## M4sh Initialization. ##
19867## -------------------- ##
19868
19869# Be more Bourne compatible
19870DUALCASE=1; export DUALCASE # for MKS sh
19871if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19872 emulate sh
19873 NULLCMD=:
19874 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19875 # is contrary to our usage. Disable this feature.
19876 alias -g '${1+"$@"}'='"$@"'
19877 setopt NO_GLOB_SUBST
19878else
19879 case `(set -o) 2>/dev/null` in #(
19880 *posix*) :
19881 set -o posix ;; #(
19882 *) :
19883 ;;
19884esac
19885fi
19886
19887
19888as_nl='
19889'
19890export as_nl
19891# Printing a long string crashes Solaris 7 /usr/bin/printf.
19892as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19893as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19894as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19895# Prefer a ksh shell builtin over an external printf program on Solaris,
19896# but without wasting forks for bash or zsh.
19897if test -z "$BASH_VERSION$ZSH_VERSION" \
19898 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19899 as_echo='print -r --'
19900 as_echo_n='print -rn --'
19901elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19902 as_echo='printf %s\n'
19903 as_echo_n='printf %s'
19904else
19905 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19906 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19907 as_echo_n='/usr/ucb/echo -n'
19908 else
19909 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19910 as_echo_n_body='eval
19911 arg=$1;
19912 case $arg in #(
19913 *"$as_nl"*)
19914 expr "X$arg" : "X\\(.*\\)$as_nl";
19915 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19916 esac;
19917 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19918 '
19919 export as_echo_n_body
19920 as_echo_n='sh -c $as_echo_n_body as_echo'
19921 fi
19922 export as_echo_body
19923 as_echo='sh -c $as_echo_body as_echo'
19924fi
19925
19926# The user is always right.
19927if test "${PATH_SEPARATOR+set}" != set; then
19928 PATH_SEPARATOR=:
19929 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19930 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19931 PATH_SEPARATOR=';'
19932 }
19933fi
19934
19935
19936# IFS
19937# We need space, tab and new line, in precisely that order. Quoting is
19938# there to prevent editors from complaining about space-tab.
19939# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19940# splitting by setting IFS to empty value.)
19941IFS=" "" $as_nl"
19942
19943# Find who we are. Look in the path if we contain no directory separator.
d6974efa 19944as_myself=
067d23c9
KY
19945case $0 in #((
19946 *[\\/]* ) as_myself=$0 ;;
19947 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19948for as_dir in $PATH
19949do
19950 IFS=$as_save_IFS
19951 test -z "$as_dir" && as_dir=.
19952 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19953 done
19954IFS=$as_save_IFS
19955
19956 ;;
19957esac
19958# We did not find ourselves, most probably we were run as `sh COMMAND'
19959# in which case we are not to be found in the path.
19960if test "x$as_myself" = x; then
19961 as_myself=$0
19962fi
19963if test ! -f "$as_myself"; then
19964 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19965 exit 1
19966fi
19967
19968# Unset variables that we do not need and which cause bugs (e.g. in
19969# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19970# suppresses any "Segmentation fault" message there. '((' could
19971# trigger a bug in pdksh 5.2.14.
19972for as_var in BASH_ENV ENV MAIL MAILPATH
19973do eval test x\${$as_var+set} = xset \
19974 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19975done
19976PS1='$ '
19977PS2='> '
19978PS4='+ '
19979
19980# NLS nuisances.
19981LC_ALL=C
19982export LC_ALL
19983LANGUAGE=C
19984export LANGUAGE
19985
19986# CDPATH.
19987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19988
19989
2018939f
AS
19990# as_fn_error STATUS ERROR [LINENO LOG_FD]
19991# ----------------------------------------
067d23c9
KY
19992# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19993# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2018939f 19994# script with STATUS, using 1 if that was 0.
067d23c9
KY
19995as_fn_error ()
19996{
2018939f
AS
19997 as_status=$1; test $as_status -eq 0 && as_status=1
19998 if test "$4"; then
19999 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20000 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 20001 fi
2018939f 20002 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
20003 as_fn_exit $as_status
20004} # as_fn_error
20005
20006
20007# as_fn_set_status STATUS
20008# -----------------------
20009# Set $? to STATUS, without forking.
20010as_fn_set_status ()
20011{
20012 return $1
20013} # as_fn_set_status
20014
20015# as_fn_exit STATUS
20016# -----------------
20017# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20018as_fn_exit ()
20019{
20020 set +e
20021 as_fn_set_status $1
20022 exit $1
20023} # as_fn_exit
20024
20025# as_fn_unset VAR
20026# ---------------
20027# Portably unset VAR.
20028as_fn_unset ()
20029{
20030 { eval $1=; unset $1;}
20031}
20032as_unset=as_fn_unset
20033# as_fn_append VAR VALUE
20034# ----------------------
20035# Append the text in VALUE to the end of the definition contained in VAR. Take
20036# advantage of any shell optimizations that allow amortized linear growth over
20037# repeated appends, instead of the typical quadratic growth present in naive
20038# implementations.
20039if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20040 eval 'as_fn_append ()
20041 {
20042 eval $1+=\$2
20043 }'
20044else
20045 as_fn_append ()
20046 {
20047 eval $1=\$$1\$2
20048 }
20049fi # as_fn_append
20050
20051# as_fn_arith ARG...
20052# ------------------
20053# Perform arithmetic evaluation on the ARGs, and store the result in the
20054# global $as_val. Take advantage of shells that can avoid forks. The arguments
20055# must be portable across $(()) and expr.
20056if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20057 eval 'as_fn_arith ()
20058 {
20059 as_val=$(( $* ))
20060 }'
20061else
20062 as_fn_arith ()
20063 {
20064 as_val=`expr "$@" || test $? -eq 1`
20065 }
20066fi # as_fn_arith
20067
20068
20069if expr a : '\(a\)' >/dev/null 2>&1 &&
20070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20071 as_expr=expr
20072else
20073 as_expr=false
20074fi
20075
20076if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20077 as_basename=basename
20078else
20079 as_basename=false
20080fi
20081
20082if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20083 as_dirname=dirname
20084else
20085 as_dirname=false
20086fi
20087
20088as_me=`$as_basename -- "$0" ||
20089$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20090 X"$0" : 'X\(//\)$' \| \
20091 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20092$as_echo X/"$0" |
20093 sed '/^.*\/\([^/][^/]*\)\/*$/{
20094 s//\1/
20095 q
20096 }
20097 /^X\/\(\/\/\)$/{
20098 s//\1/
20099 q
20100 }
20101 /^X\/\(\/\).*/{
20102 s//\1/
20103 q
20104 }
20105 s/.*/./; q'`
20106
20107# Avoid depending upon Character Ranges.
20108as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20109as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20110as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20111as_cr_digits='0123456789'
20112as_cr_alnum=$as_cr_Letters$as_cr_digits
20113
20114ECHO_C= ECHO_N= ECHO_T=
20115case `echo -n x` in #(((((
20116-n*)
20117 case `echo 'xy\c'` in
20118 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20119 xy) ECHO_C='\c';;
20120 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20121 ECHO_T=' ';;
20122 esac;;
20123*)
20124 ECHO_N='-n';;
20125esac
20126
20127rm -f conf$$ conf$$.exe conf$$.file
20128if test -d conf$$.dir; then
20129 rm -f conf$$.dir/conf$$.file
20130else
20131 rm -f conf$$.dir
20132 mkdir conf$$.dir 2>/dev/null
20133fi
20134if (echo >conf$$.file) 2>/dev/null; then
20135 if ln -s conf$$.file conf$$ 2>/dev/null; then
20136 as_ln_s='ln -s'
20137 # ... but there are two gotchas:
20138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20140 # In both cases, we have to default to `cp -p'.
20141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20142 as_ln_s='cp -p'
20143 elif ln conf$$.file conf$$ 2>/dev/null; then
20144 as_ln_s=ln
20145 else
20146 as_ln_s='cp -p'
20147 fi
20148else
20149 as_ln_s='cp -p'
20150fi
20151rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20152rmdir conf$$.dir 2>/dev/null
20153
20154
20155# as_fn_mkdir_p
20156# -------------
20157# Create "$as_dir" as a directory, including parents if necessary.
20158as_fn_mkdir_p ()
20159{
20160
20161 case $as_dir in #(
20162 -*) as_dir=./$as_dir;;
20163 esac
20164 test -d "$as_dir" || eval $as_mkdir_p || {
20165 as_dirs=
20166 while :; do
20167 case $as_dir in #(
20168 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20169 *) as_qdir=$as_dir;;
20170 esac
20171 as_dirs="'$as_qdir' $as_dirs"
20172 as_dir=`$as_dirname -- "$as_dir" ||
20173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20174 X"$as_dir" : 'X\(//\)[^/]' \| \
20175 X"$as_dir" : 'X\(//\)$' \| \
20176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20177$as_echo X"$as_dir" |
20178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20179 s//\1/
20180 q
20181 }
20182 /^X\(\/\/\)[^/].*/{
20183 s//\1/
20184 q
20185 }
20186 /^X\(\/\/\)$/{
20187 s//\1/
20188 q
20189 }
20190 /^X\(\/\).*/{
20191 s//\1/
20192 q
20193 }
20194 s/.*/./; q'`
20195 test -d "$as_dir" && break
20196 done
20197 test -z "$as_dirs" || eval "mkdir $as_dirs"
2018939f 20198 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
20199
20200
20201} # as_fn_mkdir_p
20202if mkdir -p . 2>/dev/null; then
20203 as_mkdir_p='mkdir -p "$as_dir"'
20204else
20205 test -d ./-p && rmdir ./-p
20206 as_mkdir_p=false
20207fi
20208
20209if test -x / >/dev/null 2>&1; then
20210 as_test_x='test -x'
20211else
20212 if ls -dL / >/dev/null 2>&1; then
20213 as_ls_L_option=L
20214 else
20215 as_ls_L_option=
20216 fi
20217 as_test_x='
20218 eval sh -c '\''
20219 if test -d "$1"; then
20220 test -d "$1/.";
20221 else
20222 case $1 in #(
20223 -*)set "./$1";;
20224 esac;
20225 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20226 ???[sx]*):;;*)false;;esac;fi
20227 '\'' sh
20228 '
20229fi
20230as_executable_p=$as_test_x
20231
20232# Sed expression to map a string onto a valid CPP name.
20233as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20234
20235# Sed expression to map a string onto a valid variable name.
20236as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20237
20238
20239exec 6>&1
20240## ----------------------------------- ##
20241## Main body of $CONFIG_STATUS script. ##
20242## ----------------------------------- ##
20243_ASEOF
20244test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20245
20246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20247# Save the log message, to keep $0 and so on meaningful, and to
20248# report actual input values of CONFIG_FILES etc. instead of their
20249# values after options handling.
20250ac_log="
20251This file was extended by emacs $as_me 24.0.50, which was
d6974efa 20252generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
20253
20254 CONFIG_FILES = $CONFIG_FILES
20255 CONFIG_HEADERS = $CONFIG_HEADERS
20256 CONFIG_LINKS = $CONFIG_LINKS
20257 CONFIG_COMMANDS = $CONFIG_COMMANDS
20258 $ $0 $@
20259
20260on `(hostname || uname -n) 2>/dev/null | sed 1q`
20261"
20262
20263_ACEOF
20264
20265case $ac_config_files in *"
20266"*) set x $ac_config_files; shift; ac_config_files=$*;;
20267esac
20268
20269case $ac_config_headers in *"
20270"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20271esac
20272
20273
20274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20275# Files that config.status was made for.
20276config_files="$ac_config_files"
20277config_headers="$ac_config_headers"
20278config_commands="$ac_config_commands"
20279
20280_ACEOF
20281
20282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20283ac_cs_usage="\
20284\`$as_me' instantiates files and other configuration actions
20285from templates according to the current configuration. Unless the files
20286and actions are specified as TAGs, all are instantiated by default.
20287
20288Usage: $0 [OPTION]... [TAG]...
20289
20290 -h, --help print this help, then exit
20291 -V, --version print version number and configuration settings, then exit
20292 --config print configuration, then exit
20293 -q, --quiet, --silent
20294 do not print progress messages
20295 -d, --debug don't remove temporary files
20296 --recheck update $as_me by reconfiguring in the same conditions
20297 --file=FILE[:TEMPLATE]
20298 instantiate the configuration file FILE
20299 --header=FILE[:TEMPLATE]
20300 instantiate the configuration header FILE
20301
20302Configuration files:
20303$config_files
20304
20305Configuration headers:
20306$config_headers
20307
20308Configuration commands:
20309$config_commands
20310
20311Report bugs to the package provider."
20312
20313_ACEOF
20314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20315ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20316ac_cs_version="\\
20317emacs config.status 24.0.50
d6974efa 20318configured by $0, generated by GNU Autoconf 2.68,
067d23c9
KY
20319 with options \\"\$ac_cs_config\\"
20320
2018939f 20321Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
20322This config.status script is free software; the Free Software Foundation
20323gives unlimited permission to copy, distribute and modify it."
20324
20325ac_pwd='$ac_pwd'
20326srcdir='$srcdir'
20327INSTALL='$INSTALL'
743c80a7
PE
20328MKDIR_P='$MKDIR_P'
20329AWK='$AWK'
067d23c9
KY
20330test -n "\$AWK" || AWK=awk
20331_ACEOF
20332
20333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20334# The default lists apply if the user does not specify any file.
20335ac_need_defaults=:
20336while test $# != 0
20337do
20338 case $1 in
2018939f 20339 --*=?*)
067d23c9
KY
20340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20341 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20342 ac_shift=:
20343 ;;
2018939f
AS
20344 --*=)
20345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20346 ac_optarg=
20347 ac_shift=:
20348 ;;
067d23c9
KY
20349 *)
20350 ac_option=$1
20351 ac_optarg=$2
20352 ac_shift=shift
20353 ;;
20354 esac
20355
20356 case $ac_option in
20357 # Handling of the options.
20358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20359 ac_cs_recheck=: ;;
20360 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20361 $as_echo "$ac_cs_version"; exit ;;
20362 --config | --confi | --conf | --con | --co | --c )
20363 $as_echo "$ac_cs_config"; exit ;;
20364 --debug | --debu | --deb | --de | --d | -d )
20365 debug=: ;;
20366 --file | --fil | --fi | --f )
20367 $ac_shift
20368 case $ac_optarg in
20369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018939f 20370 '') as_fn_error $? "missing file argument" ;;
067d23c9
KY
20371 esac
20372 as_fn_append CONFIG_FILES " '$ac_optarg'"
20373 ac_need_defaults=false;;
20374 --header | --heade | --head | --hea )
20375 $ac_shift
20376 case $ac_optarg in
20377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20378 esac
20379 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20380 ac_need_defaults=false;;
20381 --he | --h)
20382 # Conflict between --help and --header
2018939f 20383 as_fn_error $? "ambiguous option: \`$1'
067d23c9
KY
20384Try \`$0 --help' for more information.";;
20385 --help | --hel | -h )
20386 $as_echo "$ac_cs_usage"; exit ;;
20387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20389 ac_cs_silent=: ;;
20390
20391 # This is an error.
2018939f 20392 -*) as_fn_error $? "unrecognized option: \`$1'
067d23c9
KY
20393Try \`$0 --help' for more information." ;;
20394
20395 *) as_fn_append ac_config_targets " $1"
20396 ac_need_defaults=false ;;
20397
20398 esac
20399 shift
20400done
20401
20402ac_configure_extra_args=
20403
20404if $ac_cs_silent; then
20405 exec 6>/dev/null
20406 ac_configure_extra_args="$ac_configure_extra_args --silent"
20407fi
20408
20409_ACEOF
20410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20411if \$ac_cs_recheck; then
20412 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20413 shift
20414 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20415 CONFIG_SHELL='$SHELL'
20416 export CONFIG_SHELL
20417 exec "\$@"
20418fi
20419
20420_ACEOF
20421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20422exec 5>>config.log
20423{
20424 echo
20425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20426## Running $as_me. ##
20427_ASBOX
20428 $as_echo "$ac_log"
20429} >&5
20430
20431_ACEOF
20432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20433#
20434# INIT-COMMANDS
20435#
743c80a7 20436AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
067d23c9
KY
20437GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20438
20439_ACEOF
20440
20441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20442
20443# Handling of arguments.
20444for ac_config_target in $ac_config_targets
20445do
20446 case $ac_config_target in
20447 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
743c80a7 20448 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
067d23c9 20449 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
743c80a7 20450 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
067d23c9
KY
20451 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20452 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20453 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20454 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20455 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20456 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20457 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20458 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20459 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20460 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
ea062854 20461 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
9411886d
PE
20462 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20463 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20464 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
067d23c9 20465
d6974efa 20466 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
067d23c9
KY
20467 esac
20468done
20469
20470
20471# If the user did not use the arguments to specify the items to instantiate,
20472# then the envvar interface is used. Set only those that are not.
20473# We use the long form for the default assignment because of an extremely
20474# bizarre bug on SunOS 4.1.3.
20475if $ac_need_defaults; then
20476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20479fi
20480
20481# Have a temporary directory for convenience. Make it in the build tree
20482# simply because there is no reason against having it here, and in addition,
20483# creating and moving files from /tmp can sometimes cause problems.
20484# Hook for its removal unless debugging.
20485# Note that there is a small window in which the directory will not be cleaned:
20486# after its creation but before its name has been assigned to `$tmp'.
20487$debug ||
20488{
d6974efa 20489 tmp= ac_tmp=
067d23c9 20490 trap 'exit_status=$?
d6974efa
PE
20491 : "${ac_tmp:=$tmp}"
20492 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
067d23c9
KY
20493' 0
20494 trap 'as_fn_exit 1' 1 2 13 15
20495}
20496# Create a (secure) tmp directory for tmp files.
20497
20498{
20499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6974efa 20500 test -d "$tmp"
067d23c9
KY
20501} ||
20502{
20503 tmp=./conf$$-$RANDOM
20504 (umask 077 && mkdir "$tmp")
2018939f 20505} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
d6974efa 20506ac_tmp=$tmp
067d23c9
KY
20507
20508# Set up the scripts for CONFIG_FILES section.
20509# No need to generate them if there are no CONFIG_FILES.
20510# This happens for instance with `./config.status config.h'.
20511if test -n "$CONFIG_FILES"; then
20512
20513if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20514 ac_cs_awk_getline=:
20515 ac_cs_awk_pipe_init=
20516 ac_cs_awk_read_file='
20517 while ((getline aline < (F[key])) > 0)
20518 print(aline)
20519 close(F[key])'
20520 ac_cs_awk_pipe_fini=
20521else
20522 ac_cs_awk_getline=false
20523 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20524 ac_cs_awk_read_file='
20525 print "|#_!!_#|"
20526 print "cat " F[key] " &&"
20527 '$ac_cs_awk_pipe_init
20528 # The final `:' finishes the AND list.
20529 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20530fi
20531ac_cr=`echo X | tr X '\015'`
20532# On cygwin, bash can eat \r inside `` if the user requested igncr.
20533# But we know of no other shell where ac_cr would be empty at this
20534# point, so we can use a bashism as a fallback.
20535if test "x$ac_cr" = x; then
20536 eval ac_cr=\$\'\\r\'
20537fi
20538ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20539if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2018939f 20540 ac_cs_awk_cr='\\r'
067d23c9
KY
20541else
20542 ac_cs_awk_cr=$ac_cr
20543fi
20544
d6974efa 20545echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
067d23c9
KY
20546_ACEOF
20547
20548# Create commands to substitute file output variables.
20549{
20550 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6974efa 20551 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
067d23c9
KY
20552 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20553 echo "_ACAWK" &&
20554 echo "_ACEOF"
20555} >conf$$files.sh &&
20556. ./conf$$files.sh ||
2018939f 20557 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20558rm -f conf$$files.sh
20559
20560{
20561 echo "cat >conf$$subs.awk <<_ACEOF" &&
20562 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20563 echo "_ACEOF"
20564} >conf$$subs.sh ||
2018939f
AS
20565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20566ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
067d23c9
KY
20567ac_delim='%!_!# '
20568for ac_last_try in false false false false false :; do
20569 . ./conf$$subs.sh ||
2018939f 20570 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20571
20572 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20573 if test $ac_delim_n = $ac_delim_num; then
20574 break
20575 elif $ac_last_try; then
2018939f 20576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20577 else
20578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20579 fi
20580done
20581rm -f conf$$subs.sh
20582
20583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6974efa 20584cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
067d23c9
KY
20585_ACEOF
20586sed -n '
20587h
20588s/^/S["/; s/!.*/"]=/
20589p
20590g
20591s/^[^!]*!//
20592:repl
20593t repl
20594s/'"$ac_delim"'$//
20595t delim
20596:nl
20597h
20598s/\(.\{148\}\)..*/\1/
20599t more1
20600s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20601p
20602n
20603b repl
20604:more1
20605s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20606p
20607g
20608s/.\{148\}//
20609t nl
20610:delim
20611h
20612s/\(.\{148\}\)..*/\1/
20613t more2
20614s/["\\]/\\&/g; s/^/"/; s/$/"/
20615p
20616b
20617:more2
20618s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20619p
20620g
20621s/.\{148\}//
20622t delim
20623' <conf$$subs.awk | sed '
20624/^[^""]/{
20625 N
20626 s/\n//
20627}
20628' >>$CONFIG_STATUS || ac_write_fail=1
20629rm -f conf$$subs.awk
20630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20631_ACAWK
d6974efa 20632cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
067d23c9
KY
20633 for (key in S) S_is_set[key] = 1
20634 FS = "\a"
20635 \$ac_cs_awk_pipe_init
20636}
20637{
20638 line = $ 0
20639 nfields = split(line, field, "@")
20640 substed = 0
20641 len = length(field[1])
20642 for (i = 2; i < nfields; i++) {
20643 key = field[i]
20644 keylen = length(key)
20645 if (S_is_set[key]) {
20646 value = S[key]
20647 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20648 len += length(value) + length(field[++i])
20649 substed = 1
20650 } else
20651 len += 1 + keylen
20652 }
20653 if (nfields == 3 && !substed) {
20654 key = field[2]
20655 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20656 \$ac_cs_awk_read_file
20657 next
20658 }
20659 }
20660 print line
20661}
20662\$ac_cs_awk_pipe_fini
20663_ACAWK
20664_ACEOF
20665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20666if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20667 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20668else
20669 cat
d6974efa 20670fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
2018939f 20671 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
067d23c9
KY
20672_ACEOF
20673
2018939f
AS
20674# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20675# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
067d23c9
KY
20676# trailing colons and then remove the whole line if VPATH becomes empty
20677# (actually we leave an empty line to preserve line numbers).
20678if test "x$srcdir" = x.; then
2018939f
AS
20679 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20680h
20681s///
20682s/^/:/
20683s/[ ]*$/:/
20684s/:\$(srcdir):/:/g
20685s/:\${srcdir}:/:/g
20686s/:@srcdir@:/:/g
20687s/^:*//
067d23c9 20688s/:*$//
2018939f
AS
20689x
20690s/\(=[ ]*\).*/\1/
20691G
20692s/\n//
067d23c9
KY
20693s/^[^=]*=[ ]*$//
20694}'
20695fi
20696
20697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20698fi # test -n "$CONFIG_FILES"
20699
20700# Set up the scripts for CONFIG_HEADERS section.
20701# No need to generate them if there are no CONFIG_HEADERS.
20702# This happens for instance with `./config.status Makefile'.
20703if test -n "$CONFIG_HEADERS"; then
d6974efa 20704cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
067d23c9
KY
20705BEGIN {
20706_ACEOF
20707
20708# Transform confdefs.h into an awk script `defines.awk', embedded as
20709# here-document in config.status, that substitutes the proper values into
20710# config.h.in to produce config.h.
20711
20712# Create a delimiter string that does not exist in confdefs.h, to ease
20713# handling of long lines.
20714ac_delim='%!_!# '
20715for ac_last_try in false false :; do
d6974efa
PE
20716 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20717 if test -z "$ac_tt"; then
067d23c9
KY
20718 break
20719 elif $ac_last_try; then
2018939f 20720 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
067d23c9
KY
20721 else
20722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20723 fi
20724done
20725
20726# For the awk script, D is an array of macro values keyed by name,
20727# likewise P contains macro parameters if any. Preserve backslash
20728# newline sequences.
20729
20730ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20731sed -n '
20732s/.\{148\}/&'"$ac_delim"'/g
20733t rset
20734:rset
20735s/^[ ]*#[ ]*define[ ][ ]*/ /
20736t def
20737d
20738:def
20739s/\\$//
20740t bsnl
20741s/["\\]/\\&/g
20742s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20743D["\1"]=" \3"/p
20744s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20745d
20746:bsnl
20747s/["\\]/\\&/g
20748s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20749D["\1"]=" \3\\\\\\n"\\/p
20750t cont
20751s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20752t cont
20753d
20754:cont
20755n
20756s/.\{148\}/&'"$ac_delim"'/g
20757t clear
20758:clear
20759s/\\$//
20760t bsnlc
20761s/["\\]/\\&/g; s/^/"/; s/$/"/p
20762d
20763:bsnlc
20764s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20765b cont
20766' <confdefs.h | sed '
20767s/'"$ac_delim"'/"\\\
20768"/g' >>$CONFIG_STATUS || ac_write_fail=1
20769
20770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20771 for (key in D) D_is_set[key] = 1
20772 FS = "\a"
20773}
20774/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20775 line = \$ 0
20776 split(line, arg, " ")
20777 if (arg[1] == "#") {
20778 defundef = arg[2]
20779 mac1 = arg[3]
20780 } else {
20781 defundef = substr(arg[1], 2)
20782 mac1 = arg[2]
20783 }
20784 split(mac1, mac2, "(") #)
20785 macro = mac2[1]
20786 prefix = substr(line, 1, index(line, defundef) - 1)
20787 if (D_is_set[macro]) {
20788 # Preserve the white space surrounding the "#".
20789 print prefix "define", macro P[macro] D[macro]
20790 next
20791 } else {
20792 # Replace #undef with comments. This is necessary, for example,
20793 # in the case of _POSIX_SOURCE, which is predefined and required
20794 # on some systems where configure will not decide to define it.
20795 if (defundef == "undef") {
20796 print "/*", prefix defundef, macro, "*/"
20797 next
20798 }
20799 }
20800}
20801{ print }
20802_ACAWK
20803_ACEOF
20804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2018939f 20805 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
067d23c9
KY
20806fi # test -n "$CONFIG_HEADERS"
20807
20808
20809eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20810shift
20811for ac_tag
20812do
20813 case $ac_tag in
20814 :[FHLC]) ac_mode=$ac_tag; continue;;
20815 esac
20816 case $ac_mode$ac_tag in
20817 :[FHL]*:*);;
d6974efa 20818 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
067d23c9
KY
20819 :[FH]-) ac_tag=-:-;;
20820 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20821 esac
20822 ac_save_IFS=$IFS
20823 IFS=:
20824 set x $ac_tag
20825 IFS=$ac_save_IFS
20826 shift
20827 ac_file=$1
20828 shift
20829
20830 case $ac_mode in
20831 :L) ac_source=$1;;
20832 :[FH])
20833 ac_file_inputs=
20834 for ac_f
20835 do
20836 case $ac_f in
d6974efa 20837 -) ac_f="$ac_tmp/stdin";;
067d23c9
KY
20838 *) # Look for the file first in the build tree, then in the source tree
20839 # (if the path is not absolute). The absolute path cannot be DOS-style,
20840 # because $ac_f cannot contain `:'.
20841 test -f "$ac_f" ||
20842 case $ac_f in
20843 [\\/$]*) false;;
20844 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20845 esac ||
d6974efa 20846 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
067d23c9
KY
20847 esac
20848 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20849 as_fn_append ac_file_inputs " '$ac_f'"
20850 done
20851
20852 # Let's still pretend it is `configure' which instantiates (i.e., don't
20853 # use $as_me), people would be surprised to read:
20854 # /* config.h. Generated by config.status. */
20855 configure_input='Generated from '`
20856 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20857 `' by configure.'
20858 if test x"$ac_file" != x-; then
20859 configure_input="$ac_file. $configure_input"
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20861$as_echo "$as_me: creating $ac_file" >&6;}
20862 fi
20863 # Neutralize special characters interpreted by sed in replacement strings.
20864 case $configure_input in #(
20865 *\&* | *\|* | *\\* )
20866 ac_sed_conf_input=`$as_echo "$configure_input" |
20867 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20868 *) ac_sed_conf_input=$configure_input;;
20869 esac
20870
20871 case $ac_tag in
d6974efa
PE
20872 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
067d23c9
KY
20874 esac
20875 ;;
20876 esac
20877
20878 ac_dir=`$as_dirname -- "$ac_file" ||
20879$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20880 X"$ac_file" : 'X\(//\)[^/]' \| \
20881 X"$ac_file" : 'X\(//\)$' \| \
20882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20883$as_echo X"$ac_file" |
20884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20885 s//\1/
20886 q
20887 }
20888 /^X\(\/\/\)[^/].*/{
20889 s//\1/
20890 q
20891 }
20892 /^X\(\/\/\)$/{
20893 s//\1/
20894 q
20895 }
20896 /^X\(\/\).*/{
20897 s//\1/
20898 q
20899 }
20900 s/.*/./; q'`
20901 as_dir="$ac_dir"; as_fn_mkdir_p
20902 ac_builddir=.
20903
20904case "$ac_dir" in
20905.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20906*)
20907 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20908 # A ".." for each directory in $ac_dir_suffix.
20909 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20910 case $ac_top_builddir_sub in
20911 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20912 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20913 esac ;;
20914esac
20915ac_abs_top_builddir=$ac_pwd
20916ac_abs_builddir=$ac_pwd$ac_dir_suffix
20917# for backward compatibility:
20918ac_top_builddir=$ac_top_build_prefix
20919
20920case $srcdir in
20921 .) # We are building in place.
20922 ac_srcdir=.
20923 ac_top_srcdir=$ac_top_builddir_sub
20924 ac_abs_top_srcdir=$ac_pwd ;;
20925 [\\/]* | ?:[\\/]* ) # Absolute name.
20926 ac_srcdir=$srcdir$ac_dir_suffix;
20927 ac_top_srcdir=$srcdir
20928 ac_abs_top_srcdir=$srcdir ;;
20929 *) # Relative name.
20930 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20931 ac_top_srcdir=$ac_top_build_prefix$srcdir
20932 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20933esac
20934ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20935
20936
20937 case $ac_mode in
20938 :F)
20939 #
20940 # CONFIG_FILE
20941 #
20942
20943 case $INSTALL in
20944 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20945 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20946 esac
743c80a7
PE
20947 ac_MKDIR_P=$MKDIR_P
20948 case $MKDIR_P in
20949 [\\/$]* | ?:[\\/]* ) ;;
20950 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20951 esac
067d23c9
KY
20952_ACEOF
20953
20954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20955# If the template does not know about datarootdir, expand it.
20956# FIXME: This hack should be removed a few years after 2.60.
20957ac_datarootdir_hack=; ac_datarootdir_seen=
20958ac_sed_dataroot='
20959/datarootdir/ {
20960 p
20961 q
20962}
20963/@datadir@/p
20964/@docdir@/p
20965/@infodir@/p
20966/@localedir@/p
20967/@mandir@/p'
20968case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20969*datarootdir*) ac_datarootdir_seen=yes;;
20970*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20972$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20973_ACEOF
20974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20975 ac_datarootdir_hack='
20976 s&@datadir@&$datadir&g
20977 s&@docdir@&$docdir&g
20978 s&@infodir@&$infodir&g
20979 s&@localedir@&$localedir&g
20980 s&@mandir@&$mandir&g
20981 s&\\\${datarootdir}&$datarootdir&g' ;;
20982esac
20983_ACEOF
20984
20985# Neutralize VPATH when `$srcdir' = `.'.
20986# Shell code in configure.ac might set extrasub.
20987# FIXME: do we really want to maintain this feature?
20988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20989ac_sed_extra="$ac_vpsub
20990$extrasub
20991_ACEOF
20992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20993:t
20994/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20995s|@configure_input@|$ac_sed_conf_input|;t t
20996s&@top_builddir@&$ac_top_builddir_sub&;t t
20997s&@top_build_prefix@&$ac_top_build_prefix&;t t
20998s&@srcdir@&$ac_srcdir&;t t
20999s&@abs_srcdir@&$ac_abs_srcdir&;t t
21000s&@top_srcdir@&$ac_top_srcdir&;t t
21001s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21002s&@builddir@&$ac_builddir&;t t
21003s&@abs_builddir@&$ac_abs_builddir&;t t
21004s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21005s&@INSTALL@&$ac_INSTALL&;t t
743c80a7 21006s&@MKDIR_P@&$ac_MKDIR_P&;t t
067d23c9
KY
21007$ac_datarootdir_hack
21008"
21009eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21010if $ac_cs_awk_getline; then
d6974efa 21011 $AWK -f "$ac_tmp/subs.awk"
067d23c9 21012else
d6974efa
PE
21013 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21014fi \
21015 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
21016
21017test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6974efa
PE
21018 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21020 "$ac_tmp/out"`; test -z "$ac_out"; } &&
067d23c9 21021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 21022which seems to be undefined. Please make sure it is defined" >&5
067d23c9 21023$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 21024which seems to be undefined. Please make sure it is defined" >&2;}
067d23c9 21025
d6974efa 21026 rm -f "$ac_tmp/stdin"
067d23c9 21027 case $ac_file in
d6974efa
PE
21028 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21029 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
067d23c9 21030 esac \
2018939f 21031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
21032 ;;
21033 :H)
21034 #
21035 # CONFIG_HEADER
21036 #
21037 if test x"$ac_file" != x-; then
21038 {
21039 $as_echo "/* $configure_input */" \
d6974efa
PE
21040 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21041 } >"$ac_tmp/config.h" \
2018939f 21042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d6974efa 21043 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
067d23c9
KY
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21045$as_echo "$as_me: $ac_file is unchanged" >&6;}
21046 else
21047 rm -f "$ac_file"
d6974efa 21048 mv "$ac_tmp/config.h" "$ac_file" \
2018939f 21049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
21050 fi
21051 else
21052 $as_echo "/* $configure_input */" \
d6974efa 21053 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
2018939f 21054 || as_fn_error $? "could not create -" "$LINENO" 5
067d23c9 21055 fi
743c80a7
PE
21056# Compute "$ac_file"'s index in $config_headers.
21057_am_arg="$ac_file"
21058_am_stamp_count=1
21059for _am_header in $config_headers :; do
21060 case $_am_header in
21061 $_am_arg | $_am_arg:* )
21062 break ;;
21063 * )
21064 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21065 esac
21066done
21067echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21068$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21069 X"$_am_arg" : 'X\(//\)[^/]' \| \
21070 X"$_am_arg" : 'X\(//\)$' \| \
21071 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21072$as_echo X"$_am_arg" |
21073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21074 s//\1/
21075 q
21076 }
21077 /^X\(\/\/\)[^/].*/{
21078 s//\1/
21079 q
21080 }
21081 /^X\(\/\/\)$/{
21082 s//\1/
21083 q
21084 }
21085 /^X\(\/\).*/{
21086 s//\1/
21087 q
21088 }
21089 s/.*/./; q'`/stamp-h$_am_stamp_count
067d23c9
KY
21090 ;;
21091
21092 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21093$as_echo "$as_me: executing $ac_file commands" >&6;}
21094 ;;
21095 esac
21096
21097
21098 case $ac_file$ac_mode in
743c80a7
PE
21099 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21100 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21101 # are listed without --file. Let's play safe and only enable the eval
21102 # if we detect the quoting.
21103 case $CONFIG_FILES in
21104 *\'*) eval set x "$CONFIG_FILES" ;;
21105 *) set x $CONFIG_FILES ;;
21106 esac
21107 shift
21108 for mf
21109 do
21110 # Strip MF so we end up with the name of the file.
21111 mf=`echo "$mf" | sed -e 's/:.*$//'`
21112 # Check whether this is an Automake generated Makefile or not.
21113 # We used to match only the files named `Makefile.in', but
21114 # some people rename them; so instead we look at the file content.
21115 # Grep'ing the first line is not enough: some people post-process
21116 # each Makefile.in and add a new line on top of each file to say so.
21117 # Grep'ing the whole file is not good either: AIX grep has a line
21118 # limit of 2048, but all sed's we know have understand at least 4000.
21119 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21120 dirpart=`$as_dirname -- "$mf" ||
21121$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21122 X"$mf" : 'X\(//\)[^/]' \| \
21123 X"$mf" : 'X\(//\)$' \| \
21124 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21125$as_echo X"$mf" |
21126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21127 s//\1/
21128 q
21129 }
21130 /^X\(\/\/\)[^/].*/{
21131 s//\1/
21132 q
21133 }
21134 /^X\(\/\/\)$/{
21135 s//\1/
21136 q
21137 }
21138 /^X\(\/\).*/{
21139 s//\1/
21140 q
21141 }
21142 s/.*/./; q'`
21143 else
21144 continue
21145 fi
21146 # Extract the definition of DEPDIR, am__include, and am__quote
21147 # from the Makefile without running `make'.
21148 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21149 test -z "$DEPDIR" && continue
21150 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21151 test -z "am__include" && continue
21152 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21153 # When using ansi2knr, U may be empty or an underscore; expand it
21154 U=`sed -n 's/^U = //p' < "$mf"`
21155 # Find all dependency output files, they are included files with
21156 # $(DEPDIR) in their names. We invoke sed twice because it is the
21157 # simplest approach to changing $(DEPDIR) to its actual value in the
21158 # expansion.
21159 for file in `sed -n "
21160 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21161 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21162 # Make sure the directory exists.
21163 test -f "$dirpart/$file" && continue
21164 fdir=`$as_dirname -- "$file" ||
21165$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21166 X"$file" : 'X\(//\)[^/]' \| \
21167 X"$file" : 'X\(//\)$' \| \
21168 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21169$as_echo X"$file" |
21170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21171 s//\1/
21172 q
21173 }
21174 /^X\(\/\/\)[^/].*/{
21175 s//\1/
21176 q
21177 }
21178 /^X\(\/\/\)$/{
21179 s//\1/
21180 q
21181 }
21182 /^X\(\/\).*/{
21183 s//\1/
21184 q
21185 }
21186 s/.*/./; q'`
21187 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21188 # echo "creating $dirpart/$file"
21189 echo '# dummy' > "$dirpart/$file"
21190 done
21191 done
21192}
21193 ;;
9411886d 21194 "mkdirs":C)
067d23c9
KY
21195for dir in etc lisp ; do
21196 test -d ${dir} || mkdir ${dir}
21197done
9411886d
PE
21198 ;;
21199 "epaths":C)
067d23c9
KY
21200echo creating src/epaths.h
21201${MAKE-make} epaths-force
9411886d
PE
21202 ;;
21203 "gdbinit":C)
067d23c9
KY
21204if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21205 echo creating src/.gdbinit
21206 echo source $srcdir/src/.gdbinit > src/.gdbinit
21207fi
067d23c9
KY
21208 ;;
21209
21210 esac
21211done # for ac_tag
21212
21213
21214as_fn_exit 0
21215_ACEOF
21216ac_clean_files=$ac_clean_files_save
21217
21218test $ac_write_fail = 0 ||
2018939f 21219 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
21220
21221
21222# configure is writing to config.log, and then calls config.status.
21223# config.status does its own redirection, appending to config.log.
21224# Unfortunately, on DOS this fails, as config.log is still kept open
21225# by configure, so config.status won't be able to write to it; its
21226# output is simply discarded. So we exec the FD to /dev/null,
21227# effectively closing config.log, so it can be properly (re)opened and
21228# appended to by config.status. When coming back to configure, we
21229# need to make the FD available again.
21230if test "$no_create" != yes; then
21231 ac_cs_success=:
21232 ac_config_status_args=
21233 test "$silent" = yes &&
21234 ac_config_status_args="$ac_config_status_args --quiet"
21235 exec 5>/dev/null
21236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21237 exec 5>>config.log
21238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21239 # would make configure fail if this is the last instruction.
2018939f 21240 $ac_cs_success || as_fn_exit 1
067d23c9
KY
21241fi
21242if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21244$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21245fi
21246
9411886d 21247