Merge from proposed getloadavg simplifications in gnulib.
[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
79ab4b7f 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
79ab4b7f
PE
680NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
681NEXT_STDLIB_H
1fd182f0
PE
682NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
683NEXT_STDDEF_H
1fd182f0
PE
684STDDEF_H
685HAVE_WCHAR_T
686REPLACE_NULL
16c3e636
PE
687HAVE__BOOL
688STDBOOL_H
1fd182f0
PE
689APPLE_UNIVERSAL_BUILD
690REPLACE_TIMEGM
691REPLACE_NANOSLEEP
692REPLACE_MKTIME
693REPLACE_LOCALTIME_R
694HAVE_TIMEGM
695HAVE_STRPTIME
696HAVE_NANOSLEEP
697HAVE_DECL_LOCALTIME_R
698GNULIB_TIME_R
699GNULIB_TIMEGM
700GNULIB_STRPTIME
701GNULIB_NANOSLEEP
702GNULIB_MKTIME
e275c824
PE
703LTLIBINTL
704LIBINTL
705GETOPT_H
706HAVE_GETOPT_H
707NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
708NEXT_GETOPT_H
709PRAGMA_COLUMNS
710PRAGMA_SYSTEM_HEADER
711INCLUDE_NEXT_AS_FIRST_DIRECTIVE
712INCLUDE_NEXT
713UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
714UNISTD_H_HAVE_WINSOCK2_H
715REPLACE_WRITE
716REPLACE_USLEEP
717REPLACE_UNLINKAT
718REPLACE_UNLINK
719REPLACE_TTYNAME_R
720REPLACE_SYMLINK
721REPLACE_SLEEP
722REPLACE_RMDIR
723REPLACE_READLINK
724REPLACE_PWRITE
725REPLACE_PREAD
726REPLACE_LSEEK
727REPLACE_LINKAT
728REPLACE_LINK
729REPLACE_LCHOWN
730REPLACE_GETPAGESIZE
731REPLACE_GETGROUPS
732REPLACE_GETLOGIN_R
733REPLACE_GETDOMAINNAME
734REPLACE_GETCWD
735REPLACE_FCHOWNAT
736REPLACE_DUP2
737REPLACE_DUP
738REPLACE_CLOSE
739REPLACE_CHOWN
740HAVE_SYS_PARAM_H
741HAVE_OS_H
742HAVE_DECL_TTYNAME_R
743HAVE_DECL_GETUSERSHELL
744HAVE_DECL_GETPAGESIZE
745HAVE_DECL_GETLOGIN_R
746HAVE_DECL_GETDOMAINNAME
747HAVE_DECL_FCHDIR
748HAVE_DECL_ENVIRON
749HAVE_USLEEP
750HAVE_UNLINKAT
751HAVE_SYMLINKAT
752HAVE_SYMLINK
753HAVE_SLEEP
754HAVE_READLINKAT
755HAVE_READLINK
756HAVE_PWRITE
757HAVE_PREAD
758HAVE_PIPE2
759HAVE_PIPE
760HAVE_LINKAT
761HAVE_LINK
762HAVE_LCHOWN
763HAVE_GETPAGESIZE
764HAVE_GETLOGIN
765HAVE_GETHOSTNAME
766HAVE_GETGROUPS
767HAVE_GETDTABLESIZE
768HAVE_FTRUNCATE
769HAVE_FSYNC
770HAVE_FCHOWNAT
771HAVE_FCHDIR
772HAVE_FACCESSAT
773HAVE_EUIDACCESS
774HAVE_DUP3
775HAVE_DUP2
776HAVE_CHOWN
777GNULIB_WRITE
778GNULIB_USLEEP
779GNULIB_UNLINKAT
780GNULIB_UNLINK
781GNULIB_UNISTD_H_SIGPIPE
782GNULIB_UNISTD_H_GETOPT
783GNULIB_TTYNAME_R
784GNULIB_SYMLINKAT
785GNULIB_SYMLINK
786GNULIB_SLEEP
787GNULIB_RMDIR
788GNULIB_READLINKAT
789GNULIB_READLINK
790GNULIB_PWRITE
791GNULIB_PREAD
792GNULIB_PIPE2
793GNULIB_PIPE
794GNULIB_LSEEK
795GNULIB_LINKAT
796GNULIB_LINK
797GNULIB_LCHOWN
798GNULIB_GETUSERSHELL
799GNULIB_GETPAGESIZE
800GNULIB_GETLOGIN_R
801GNULIB_GETLOGIN
802GNULIB_GETHOSTNAME
803GNULIB_GETGROUPS
804GNULIB_GETDTABLESIZE
805GNULIB_GETDOMAINNAME
806GNULIB_GETCWD
807GNULIB_FTRUNCATE
808GNULIB_FSYNC
809GNULIB_FCHOWNAT
810GNULIB_FCHDIR
811GNULIB_FACCESSAT
812GNULIB_EUIDACCESS
813GNULIB_ENVIRON
814GNULIB_DUP3
815GNULIB_DUP2
816GNULIB_CLOSE
817GNULIB_CHOWN
067d23c9 818GETLOADAVG_LIBS
79ab4b7f
PE
819REPLACE_UNSETENV
820REPLACE_STRTOD
821REPLACE_SETENV
822REPLACE_REALPATH
823REPLACE_REALLOC
824REPLACE_PUTENV
825REPLACE_MKSTEMP
826REPLACE_MALLOC
827REPLACE_CANONICALIZE_FILE_NAME
828REPLACE_CALLOC
829HAVE_DECL_UNSETENV
830HAVE_UNLOCKPT
831HAVE_SYS_LOADAVG_H
832HAVE_STRUCT_RANDOM_DATA
833HAVE_STRTOULL
834HAVE_STRTOLL
835HAVE_STRTOD
836HAVE_DECL_SETENV
837HAVE_SETENV
838HAVE_RPMATCH
839HAVE_REALPATH
840HAVE_RANDOM_R
dd463884 841HAVE_RANDOM_H
79ab4b7f
PE
842HAVE_PTSNAME
843HAVE_MKSTEMPS
844HAVE_MKSTEMP
845HAVE_MKOSTEMPS
846HAVE_MKOSTEMP
847HAVE_MKDTEMP
848HAVE_GRANTPT
849HAVE_GETSUBOPT
850HAVE_DECL_GETLOADAVG
851HAVE_CANONICALIZE_FILE_NAME
852HAVE_ATOLL
853HAVE__EXIT
854GNULIB_UNSETENV
855GNULIB_UNLOCKPT
856GNULIB_SYSTEM_POSIX
857GNULIB_STRTOULL
858GNULIB_STRTOLL
859GNULIB_STRTOD
860GNULIB_SETENV
861GNULIB_RPMATCH
862GNULIB_REALPATH
863GNULIB_REALLOC_POSIX
864GNULIB_RANDOM_R
865GNULIB_PUTENV
866GNULIB_PTSNAME
867GNULIB_MKSTEMPS
868GNULIB_MKSTEMP
869GNULIB_MKOSTEMPS
870GNULIB_MKOSTEMP
871GNULIB_MKDTEMP
872GNULIB_MALLOC_POSIX
873GNULIB_GRANTPT
874GNULIB_GETSUBOPT
875GNULIB_GETLOADAVG
876GNULIB_CANONICALIZE_FILE_NAME
877GNULIB_CALLOC_POSIX
878GNULIB_ATOLL
879GNULIB__EXIT
880GL_COND_LIBTOOL_FALSE
881GL_COND_LIBTOOL_TRUE
067d23c9
KY
882BLESSMAIL_TARGET
883LIBS_MAIL
884liblockfile
885ALLOCA
886LIBXML2_LIBS
887LIBXML2_CFLAGS
888LIBXSM
889LIBGPM
890LIBGIF
891LIBTIFF
892LIBPNG
893LIBJPEG
894LIBXPM
895FREETYPE_LIBS
896FREETYPE_CFLAGS
897M17N_FLT_LIBS
898M17N_FLT_CFLAGS
899LIBOTF_LIBS
900LIBOTF_CFLAGS
901XFT_LIBS
902XFT_CFLAGS
903FONTCONFIG_LIBS
904FONTCONFIG_CFLAGS
905LIBXMU
906LIBXTR6
907LIBGNUTLS_LIBS
908LIBGNUTLS_CFLAGS
909LIBSELINUX_LIBS
910GCONF_LIBS
911GCONF_CFLAGS
912DBUS_OBJ
913DBUS_LIBS
914DBUS_CFLAGS
915GTK_OBJ
916GTK_LIBS
917GTK_CFLAGS
918IMAGEMAGICK_LIBS
919IMAGEMAGICK_CFLAGS
920RSVG_LIBS
921RSVG_CFLAGS
922VMLIMIT_OBJ
923GMALLOC_OBJ
924HAVE_XSERVER
925LIB_STANDARD
926NS_SUPPORT
00b3c7ac 927NS_OBJC_OBJ
067d23c9
KY
928NS_OBJ
929TEMACS_LDFLAGS2
930LD_SWITCH_X_SITE_AUX_RPATH
931LD_SWITCH_X_SITE_AUX
932XMKMF
933DEPFLAGS
934MKDEPDIR
067d23c9
KY
935CFLAGS_SOUND
936ALSA_LIBS
937ALSA_CFLAGS
938PKG_CONFIG
939LIBSOUND
940START_FILES
941LIB_MATH
942CRT_DIR
943LIBS_SYSTEM
944C_SWITCH_SYSTEM
945UNEXEC_OBJ
946C_SWITCH_MACHINE
947LD_SWITCH_SYSTEM
948CANNOT_DUMP
96f129d5 949HAVE_MAKEINFO
067d23c9
KY
950GZIP_PROG
951INSTALL_INFO
067d23c9
KY
952C_WARNINGS_SWITCH
953EGREP
954GREP
955CPP
743c80a7
PE
956RANLIB
957am__fastdepCC_FALSE
958am__fastdepCC_TRUE
959CCDEPMODE
960AMDEPBACKSLASH
961AMDEP_FALSE
962AMDEP_TRUE
963am__quote
964am__include
965DEPDIR
067d23c9
KY
966OBJEXT
967EXEEXT
968ac_ct_CC
969CPPFLAGS
970LDFLAGS
971CFLAGS
972CC
973host_os
974host_vendor
975host_cpu
976host
977build_os
978build_vendor
979build_cpu
980build
981PROFILING_CFLAGS
982MAINT
983GZIP_INFO
743c80a7
PE
984am__untar
985am__tar
986AMTAR
987am__leading_dot
988SET_MAKE
989AWK
990mkdir_p
991MKDIR_P
992INSTALL_STRIP_PROGRAM
993STRIP
994install_sh
995MAKEINFO
996AUTOHEADER
997AUTOMAKE
998AUTOCONF
999ACLOCAL
1000VERSION
1001PACKAGE
1002CYGPATH_W
1003am__isrc
1004INSTALL_DATA
1005INSTALL_SCRIPT
1006INSTALL_PROGRAM
067d23c9
KY
1007target_alias
1008host_alias
1009build_alias
1010LIBS
1011ECHO_T
1012ECHO_N
1013ECHO_C
1014DEFS
1015mandir
1016localedir
1017libdir
1018psdir
1019pdfdir
1020dvidir
1021htmldir
1022infodir
1023docdir
1024oldincludedir
1025includedir
1026localstatedir
1027sharedstatedir
1028sysconfdir
1029datadir
1030datarootdir
1031libexecdir
1032sbindir
1033bindir
1034program_transform_name
1035prefix
1036exec_prefix
1037PACKAGE_URL
1038PACKAGE_BUGREPORT
1039PACKAGE_STRING
1040PACKAGE_VERSION
1041PACKAGE_TARNAME
1042PACKAGE_NAME
1043PATH_SEPARATOR
1044SHELL'
1045ac_subst_files='deps_frag
1046ns_frag'
1047ac_user_opts='
1048enable_option_checking
1049with_pop
1050with_kerberos
1051with_kerberos5
1052with_hesiod
1053with_mmdf
1054with_mail_unlink
1055with_mailhost
1056with_sound
1057with_sync_input
1058with_x_toolkit
1059with_xpm
1060with_jpeg
1061with_tiff
1062with_gif
1063with_png
1064with_rsvg
1065with_xml2
1066with_imagemagick
1067with_xft
1068with_libotf
1069with_m17n_flt
1070with_toolkit_scroll_bars
1071with_xaw3d
1072with_xim
1073with_ns
1074with_gpm
1075with_dbus
1076with_gconf
1077with_selinux
1078with_gnutls
1079with_makeinfo
1080with_compress_info
1081with_pkg_config_prog
1082with_crt_dir
4fc5868a 1083with_gameuser
067d23c9
KY
1084with_gnustep_conf
1085enable_ns_self_contained
1086enable_asserts
1087enable_maintainer_mode
1088enable_locallisppath
1089enable_checking
1090enable_use_lisp_union_type
1091enable_profiling
1092enable_autodepend
743c80a7 1093enable_dependency_tracking
067d23c9
KY
1094enable_largefile
1095with_x
1096'
1097 ac_precious_vars='build_alias
1098host_alias
1099target_alias
1100CC
1101CFLAGS
1102LDFLAGS
1103LIBS
1104CPPFLAGS
1105CPP
9502925a
PE
1106CPPFLAGS
1107CPP
1108CPPFLAGS
067d23c9
KY
1109XMKMF'
1110
1111
1112# Initialize some variables set by options.
1113ac_init_help=
1114ac_init_version=false
1115ac_unrecognized_opts=
1116ac_unrecognized_sep=
1117# The variables have the same names as the options, with
1118# dashes changed to underlines.
1119cache_file=/dev/null
1120exec_prefix=NONE
1121no_create=
1122no_recursion=
1123prefix=NONE
1124program_prefix=NONE
1125program_suffix=NONE
1126program_transform_name=s,x,x,
1127silent=
1128site=
1129srcdir=
1130verbose=
1131x_includes=NONE
1132x_libraries=NONE
1133
1134# Installation directory options.
1135# These are left unexpanded so users can "make install exec_prefix=/foo"
1136# and all the variables that are supposed to be based on exec_prefix
1137# by default will actually change.
1138# Use braces instead of parens because sh, perl, etc. also accept them.
1139# (The list follows the same order as the GNU Coding Standards.)
1140bindir='${exec_prefix}/bin'
1141sbindir='${exec_prefix}/sbin'
1142libexecdir='${exec_prefix}/libexec'
1143datarootdir='${prefix}/share'
1144datadir='${datarootdir}'
1145sysconfdir='${prefix}/etc'
1146sharedstatedir='${prefix}/com'
1147localstatedir='${prefix}/var'
1148includedir='${prefix}/include'
1149oldincludedir='/usr/include'
1150docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1151infodir='${datarootdir}/info'
1152htmldir='${docdir}'
1153dvidir='${docdir}'
1154pdfdir='${docdir}'
1155psdir='${docdir}'
1156libdir='${exec_prefix}/lib'
1157localedir='${datarootdir}/locale'
1158mandir='${datarootdir}/man'
1159
1160ac_prev=
1161ac_dashdash=
1162for ac_option
1163do
1164 # If the previous option needs an argument, assign it.
1165 if test -n "$ac_prev"; then
1166 eval $ac_prev=\$ac_option
1167 ac_prev=
1168 continue
1169 fi
1170
1171 case $ac_option in
2018939f
AS
1172 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1173 *=) ac_optarg= ;;
1174 *) ac_optarg=yes ;;
067d23c9
KY
1175 esac
1176
1177 # Accept the important Cygnus configure options, so we can diagnose typos.
1178
1179 case $ac_dashdash$ac_option in
1180 --)
1181 ac_dashdash=yes ;;
1182
1183 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1184 ac_prev=bindir ;;
1185 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1186 bindir=$ac_optarg ;;
1187
1188 -build | --build | --buil | --bui | --bu)
1189 ac_prev=build_alias ;;
1190 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1191 build_alias=$ac_optarg ;;
1192
1193 -cache-file | --cache-file | --cache-fil | --cache-fi \
1194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1195 ac_prev=cache_file ;;
1196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1198 cache_file=$ac_optarg ;;
1199
1200 --config-cache | -C)
1201 cache_file=config.cache ;;
1202
1203 -datadir | --datadir | --datadi | --datad)
1204 ac_prev=datadir ;;
1205 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1206 datadir=$ac_optarg ;;
1207
1208 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1209 | --dataroo | --dataro | --datar)
1210 ac_prev=datarootdir ;;
1211 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1212 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1213 datarootdir=$ac_optarg ;;
1214
1215 -disable-* | --disable-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1219 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224"enable_$ac_useropt"
1225"*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval enable_$ac_useropt=no ;;
1230
1231 -docdir | --docdir | --docdi | --doc | --do)
1232 ac_prev=docdir ;;
1233 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1234 docdir=$ac_optarg ;;
1235
1236 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1237 ac_prev=dvidir ;;
1238 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1239 dvidir=$ac_optarg ;;
1240
1241 -enable-* | --enable-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1245 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250"enable_$ac_useropt"
1251"*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval enable_$ac_useropt=\$ac_optarg ;;
1256
1257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1259 | --exec | --exe | --ex)
1260 ac_prev=exec_prefix ;;
1261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1263 | --exec=* | --exe=* | --ex=*)
1264 exec_prefix=$ac_optarg ;;
1265
1266 -gas | --gas | --ga | --g)
1267 # Obsolete; use --with-gas.
1268 with_gas=yes ;;
1269
1270 -help | --help | --hel | --he | -h)
1271 ac_init_help=long ;;
1272 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1273 ac_init_help=recursive ;;
1274 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1275 ac_init_help=short ;;
1276
1277 -host | --host | --hos | --ho)
1278 ac_prev=host_alias ;;
1279 -host=* | --host=* | --hos=* | --ho=*)
1280 host_alias=$ac_optarg ;;
1281
1282 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1283 ac_prev=htmldir ;;
1284 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1285 | --ht=*)
1286 htmldir=$ac_optarg ;;
1287
1288 -includedir | --includedir | --includedi | --included | --include \
1289 | --includ | --inclu | --incl | --inc)
1290 ac_prev=includedir ;;
1291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1292 | --includ=* | --inclu=* | --incl=* | --inc=*)
1293 includedir=$ac_optarg ;;
1294
1295 -infodir | --infodir | --infodi | --infod | --info | --inf)
1296 ac_prev=infodir ;;
1297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1298 infodir=$ac_optarg ;;
1299
1300 -libdir | --libdir | --libdi | --libd)
1301 ac_prev=libdir ;;
1302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1303 libdir=$ac_optarg ;;
1304
1305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1306 | --libexe | --libex | --libe)
1307 ac_prev=libexecdir ;;
1308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1309 | --libexe=* | --libex=* | --libe=*)
1310 libexecdir=$ac_optarg ;;
1311
1312 -localedir | --localedir | --localedi | --localed | --locale)
1313 ac_prev=localedir ;;
1314 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1315 localedir=$ac_optarg ;;
1316
1317 -localstatedir | --localstatedir | --localstatedi | --localstated \
1318 | --localstate | --localstat | --localsta | --localst | --locals)
1319 ac_prev=localstatedir ;;
1320 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1321 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1322 localstatedir=$ac_optarg ;;
1323
1324 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1325 ac_prev=mandir ;;
1326 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1327 mandir=$ac_optarg ;;
1328
1329 -nfp | --nfp | --nf)
1330 # Obsolete; use --without-fp.
1331 with_fp=no ;;
1332
1333 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1334 | --no-cr | --no-c | -n)
1335 no_create=yes ;;
1336
1337 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1338 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1339 no_recursion=yes ;;
1340
1341 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1342 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1343 | --oldin | --oldi | --old | --ol | --o)
1344 ac_prev=oldincludedir ;;
1345 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1346 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1347 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1348 oldincludedir=$ac_optarg ;;
1349
1350 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1351 ac_prev=prefix ;;
1352 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1353 prefix=$ac_optarg ;;
1354
1355 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1356 | --program-pre | --program-pr | --program-p)
1357 ac_prev=program_prefix ;;
1358 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1359 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1360 program_prefix=$ac_optarg ;;
1361
1362 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1363 | --program-suf | --program-su | --program-s)
1364 ac_prev=program_suffix ;;
1365 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1366 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1367 program_suffix=$ac_optarg ;;
1368
1369 -program-transform-name | --program-transform-name \
1370 | --program-transform-nam | --program-transform-na \
1371 | --program-transform-n | --program-transform- \
1372 | --program-transform | --program-transfor \
1373 | --program-transfo | --program-transf \
1374 | --program-trans | --program-tran \
1375 | --progr-tra | --program-tr | --program-t)
1376 ac_prev=program_transform_name ;;
1377 -program-transform-name=* | --program-transform-name=* \
1378 | --program-transform-nam=* | --program-transform-na=* \
1379 | --program-transform-n=* | --program-transform-=* \
1380 | --program-transform=* | --program-transfor=* \
1381 | --program-transfo=* | --program-transf=* \
1382 | --program-trans=* | --program-tran=* \
1383 | --progr-tra=* | --program-tr=* | --program-t=*)
1384 program_transform_name=$ac_optarg ;;
1385
1386 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1387 ac_prev=pdfdir ;;
1388 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1389 pdfdir=$ac_optarg ;;
1390
1391 -psdir | --psdir | --psdi | --psd | --ps)
1392 ac_prev=psdir ;;
1393 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1394 psdir=$ac_optarg ;;
1395
1396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1397 | -silent | --silent | --silen | --sile | --sil)
1398 silent=yes ;;
1399
1400 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1401 ac_prev=sbindir ;;
1402 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1403 | --sbi=* | --sb=*)
1404 sbindir=$ac_optarg ;;
1405
1406 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1407 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1408 | --sharedst | --shareds | --shared | --share | --shar \
1409 | --sha | --sh)
1410 ac_prev=sharedstatedir ;;
1411 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1412 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1413 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1414 | --sha=* | --sh=*)
1415 sharedstatedir=$ac_optarg ;;
1416
1417 -site | --site | --sit)
1418 ac_prev=site ;;
1419 -site=* | --site=* | --sit=*)
1420 site=$ac_optarg ;;
1421
1422 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1423 ac_prev=srcdir ;;
1424 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1425 srcdir=$ac_optarg ;;
1426
1427 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1428 | --syscon | --sysco | --sysc | --sys | --sy)
1429 ac_prev=sysconfdir ;;
1430 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1431 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1432 sysconfdir=$ac_optarg ;;
1433
1434 -target | --target | --targe | --targ | --tar | --ta | --t)
1435 ac_prev=target_alias ;;
1436 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1437 target_alias=$ac_optarg ;;
1438
1439 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1440 verbose=yes ;;
1441
1442 -version | --version | --versio | --versi | --vers | -V)
1443 ac_init_version=: ;;
1444
1445 -with-* | --with-*)
1446 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1447 # Reject names that are not valid shell variable names.
1448 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1449 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1450 ac_useropt_orig=$ac_useropt
1451 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1452 case $ac_user_opts in
1453 *"
1454"with_$ac_useropt"
1455"*) ;;
1456 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1457 ac_unrecognized_sep=', ';;
1458 esac
1459 eval with_$ac_useropt=\$ac_optarg ;;
1460
1461 -without-* | --without-*)
1462 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1463 # Reject names that are not valid shell variable names.
1464 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1465 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1466 ac_useropt_orig=$ac_useropt
1467 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1468 case $ac_user_opts in
1469 *"
1470"with_$ac_useropt"
1471"*) ;;
1472 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1473 ac_unrecognized_sep=', ';;
1474 esac
1475 eval with_$ac_useropt=no ;;
1476
1477 --x)
1478 # Obsolete; use --with-x.
1479 with_x=yes ;;
1480
1481 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1482 | --x-incl | --x-inc | --x-in | --x-i)
1483 ac_prev=x_includes ;;
1484 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1485 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1486 x_includes=$ac_optarg ;;
1487
1488 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1489 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1490 ac_prev=x_libraries ;;
1491 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1492 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1493 x_libraries=$ac_optarg ;;
1494
2018939f
AS
1495 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1496Try \`$0 --help' for more information"
067d23c9
KY
1497 ;;
1498
1499 *=*)
1500 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1501 # Reject names that are not valid shell variable names.
1502 case $ac_envvar in #(
1503 '' | [0-9]* | *[!_$as_cr_alnum]* )
2018939f 1504 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
067d23c9
KY
1505 esac
1506 eval $ac_envvar=\$ac_optarg
1507 export $ac_envvar ;;
1508
1509 *)
1510 # FIXME: should be removed in autoconf 3.0.
1511 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1512 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1513 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6974efa 1514 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
067d23c9
KY
1515 ;;
1516
1517 esac
1518done
1519
1520if test -n "$ac_prev"; then
1521 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2018939f 1522 as_fn_error $? "missing argument to $ac_option"
067d23c9
KY
1523fi
1524
1525if test -n "$ac_unrecognized_opts"; then
1526 case $enable_option_checking in
1527 no) ;;
2018939f 1528 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
067d23c9
KY
1529 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1530 esac
1531fi
1532
1533# Check all directory arguments for consistency.
1534for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1535 datadir sysconfdir sharedstatedir localstatedir includedir \
1536 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1537 libdir localedir mandir
1538do
1539 eval ac_val=\$$ac_var
1540 # Remove trailing slashes.
1541 case $ac_val in
1542 */ )
1543 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1544 eval $ac_var=\$ac_val;;
1545 esac
1546 # Be sure to have absolute directory names.
1547 case $ac_val in
1548 [\\/$]* | ?:[\\/]* ) continue;;
1549 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1550 esac
2018939f 1551 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
067d23c9
KY
1552done
1553
1554# There might be people who depend on the old broken behavior: `$host'
1555# used to hold the argument of --host etc.
1556# FIXME: To remove some day.
1557build=$build_alias
1558host=$host_alias
1559target=$target_alias
1560
1561# FIXME: To remove some day.
1562if test "x$host_alias" != x; then
1563 if test "x$build_alias" = x; then
1564 cross_compiling=maybe
2018939f
AS
1565 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1566 If a cross compiler is detected then cross compile mode will be used" >&2
067d23c9
KY
1567 elif test "x$build_alias" != "x$host_alias"; then
1568 cross_compiling=yes
1569 fi
1570fi
1571
1572ac_tool_prefix=
1573test -n "$host_alias" && ac_tool_prefix=$host_alias-
1574
1575test "$silent" = yes && exec 6>/dev/null
1576
1577
1578ac_pwd=`pwd` && test -n "$ac_pwd" &&
1579ac_ls_di=`ls -di .` &&
1580ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2018939f 1581 as_fn_error $? "working directory cannot be determined"
067d23c9 1582test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2018939f 1583 as_fn_error $? "pwd does not report name of working directory"
067d23c9
KY
1584
1585
1586# Find the source files, if location was not specified.
1587if test -z "$srcdir"; then
1588 ac_srcdir_defaulted=yes
1589 # Try the directory containing this script, then the parent directory.
1590 ac_confdir=`$as_dirname -- "$as_myself" ||
1591$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1592 X"$as_myself" : 'X\(//\)[^/]' \| \
1593 X"$as_myself" : 'X\(//\)$' \| \
1594 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1595$as_echo X"$as_myself" |
1596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1597 s//\1/
1598 q
1599 }
1600 /^X\(\/\/\)[^/].*/{
1601 s//\1/
1602 q
1603 }
1604 /^X\(\/\/\)$/{
1605 s//\1/
1606 q
1607 }
1608 /^X\(\/\).*/{
1609 s//\1/
1610 q
1611 }
1612 s/.*/./; q'`
1613 srcdir=$ac_confdir
1614 if test ! -r "$srcdir/$ac_unique_file"; then
1615 srcdir=..
1616 fi
1617else
1618 ac_srcdir_defaulted=no
1619fi
1620if test ! -r "$srcdir/$ac_unique_file"; then
1621 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2018939f 1622 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
067d23c9
KY
1623fi
1624ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1625ac_abs_confdir=`(
2018939f 1626 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
067d23c9
KY
1627 pwd)`
1628# When building in place, set srcdir=.
1629if test "$ac_abs_confdir" = "$ac_pwd"; then
1630 srcdir=.
1631fi
1632# Remove unnecessary trailing slashes from srcdir.
1633# Double slashes in file names in object file debugging info
1634# mess up M-x gdb in Emacs.
1635case $srcdir in
1636*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1637esac
1638for ac_var in $ac_precious_vars; do
1639 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1640 eval ac_env_${ac_var}_value=\$${ac_var}
1641 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1642 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1643done
1644
1645#
1646# Report the --help message.
1647#
1648if test "$ac_init_help" = "long"; then
1649 # Omit some internal or obsolete options to make the list less imposing.
1650 # This message is too long to be a string in the A/UX 3.1 sh.
1651 cat <<_ACEOF
1652\`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1653
1654Usage: $0 [OPTION]... [VAR=VALUE]...
1655
1656To assign environment variables (e.g., CC, CFLAGS...), specify them as
1657VAR=VALUE. See below for descriptions of some of the useful variables.
1658
1659Defaults for the options are specified in brackets.
1660
1661Configuration:
1662 -h, --help display this help and exit
1663 --help=short display options specific to this package
1664 --help=recursive display the short help of all the included packages
1665 -V, --version display version information and exit
2018939f 1666 -q, --quiet, --silent do not print \`checking ...' messages
067d23c9
KY
1667 --cache-file=FILE cache test results in FILE [disabled]
1668 -C, --config-cache alias for \`--cache-file=config.cache'
1669 -n, --no-create do not create output files
1670 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1671
1672Installation directories:
1673 --prefix=PREFIX install architecture-independent files in PREFIX
1674 [$ac_default_prefix]
1675 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1676 [PREFIX]
1677
1678By default, \`make install' will install all the files in
1679\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1680an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1681for instance \`--prefix=\$HOME'.
1682
1683For better control, use the options below.
1684
1685Fine tuning of the installation directories:
1686 --bindir=DIR user executables [EPREFIX/bin]
1687 --sbindir=DIR system admin executables [EPREFIX/sbin]
1688 --libexecdir=DIR program executables [EPREFIX/libexec]
1689 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1690 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1691 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1692 --libdir=DIR object code libraries [EPREFIX/lib]
1693 --includedir=DIR C header files [PREFIX/include]
1694 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1695 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1696 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1697 --infodir=DIR info documentation [DATAROOTDIR/info]
1698 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1699 --mandir=DIR man documentation [DATAROOTDIR/man]
1700 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1701 --htmldir=DIR html documentation [DOCDIR]
1702 --dvidir=DIR dvi documentation [DOCDIR]
1703 --pdfdir=DIR pdf documentation [DOCDIR]
1704 --psdir=DIR ps documentation [DOCDIR]
1705_ACEOF
1706
1707 cat <<\_ACEOF
1708
1709Program names:
1710 --program-prefix=PREFIX prepend PREFIX to installed program names
1711 --program-suffix=SUFFIX append SUFFIX to installed program names
1712 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1713
1714X features:
1715 --x-includes=DIR X include files are in DIR
1716 --x-libraries=DIR X library files are in DIR
1717
1718System types:
1719 --build=BUILD configure for building on BUILD [guessed]
1720 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1721_ACEOF
1722fi
1723
1724if test -n "$ac_init_help"; then
1725 case $ac_init_help in
1726 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1727 esac
1728 cat <<\_ACEOF
1729
1730Optional Features:
1731 --disable-option-checking ignore unrecognized --enable/--with options
1732 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1733 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1734 --disable-ns-self-contained
1735 disable self contained build under NeXTstep
1736 --enable-asserts compile code with asserts enabled
1737 --enable-maintainer-mode
1738 enable make rules and dependencies not useful (and
1739 sometimes confusing) to the casual installer
1740 --enable-locallisppath=PATH
1741 directories Emacs should search for lisp files
1742 specific to this site
1743 --enable-checking[=LIST]
1744 enable expensive run-time checks. With LIST, enable
1745 only specific categories of checks. Categories are:
1746 all,yes,no. Flags are: stringbytes, stringoverrun,
1747 stringfreelist, xmallocoverrun, conslist
1748 --enable-use-lisp-union-type
1749 use a union for the Lisp_Object data type. This is
1750 only useful for development for catching certain
1751 types of bugs.
1752 --enable-profiling build emacs with profiling support. This might not
1753 work on all platforms
1754 --enable-autodepend automatically generate dependencies to .h-files.
1755 Requires GNU Make and Gcc. Enabled if GNU Make and
1756 Gcc is found
743c80a7
PE
1757 --disable-dependency-tracking speeds up one-time build
1758 --enable-dependency-tracking do not reject slow dependency extractors
067d23c9
KY
1759 --disable-largefile omit support for large files
1760
1761Optional Packages:
1762 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1763 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1764 --without-pop don't support POP mail retrieval with movemail
1765 --with-kerberos support Kerberos-authenticated POP
1766 --with-kerberos5 support Kerberos version 5 authenticated POP
1767 --with-hesiod support Hesiod to get the POP server host
1768 --with-mmdf support MMDF mailboxes
1769 --with-mail-unlink unlink, rather than empty, mail spool after reading
1770 --with-mailhost=HOSTNAME
1771 string giving default POP mail host
1772 --without-sound don't compile with sound support
1773 --without-sync-input process async input synchronously
1774 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1775 lucid or athena, motif, no)
1776 --without-xpm don't compile with XPM image support
1777 --without-jpeg don't compile with JPEG image support
1778 --without-tiff don't compile with TIFF image support
1779 --without-gif don't compile with GIF image support
1780 --without-png don't compile with PNG image support
1781 --without-rsvg don't compile with SVG image support
1782 --without-xml2 don't compile with XML parsing support
1783 --without-imagemagick don't compile with ImageMagick image support
1784 --without-xft don't use XFT for anti aliased fonts
1785 --without-libotf don't use libotf for OpenType font support
1786 --without-m17n-flt don't use m17n-flt for text shaping
1787 --without-toolkit-scroll-bars
1788 don't use Motif or Xaw3d scroll bars
1789 --without-xaw3d don't use Xaw3d
1790 --without-xim don't use X11 XIM
1791 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1792 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1793 console
1794 --without-dbus don't compile with D-Bus support
1795 --without-gconf don't compile with GConf support
1796 --without-selinux don't compile with SELinux support
1797 --without-gnutls don't use -lgnutls for SSL/TLS support
1798 --without-makeinfo don't require makeinfo for building manuals
1799 --without-compress-info don't compress the installed Info pages
1800 --with-pkg-config-prog=PATH
1801 path to pkg-config for finding GTK and librsvg
1802 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1803 /usr/lib, or /usr/lib64 on some platforms.
4fc5868a 1804 --with-gameuser=USER user for shared game score files
067d23c9
KY
1805 --with-gnustep-conf=PATH
1806 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1807 or /etc/GNUstep/GNUstep.conf
1808 --with-x use the X Window System
1809
1810Some influential environment variables:
1811 CC C compiler command
1812 CFLAGS C compiler flags
1813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1814 nonstandard directory <lib dir>
1815 LIBS libraries to pass to the linker, e.g. -l<library>
1816 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1817 you have headers in a nonstandard directory <include dir>
1818 CPP C preprocessor
1819 XMKMF Path to xmkmf, Makefile generator for X Window System
1820
1821Use these variables to override the choices made by `configure' or to help
1822it to find libraries and programs with nonstandard names/locations.
1823
1824Report bugs to the package provider.
1825_ACEOF
1826ac_status=$?
1827fi
1828
1829if test "$ac_init_help" = "recursive"; then
1830 # If there are subdirs, report their specific --help.
1831 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1832 test -d "$ac_dir" ||
1833 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1834 continue
1835 ac_builddir=.
1836
1837case "$ac_dir" in
1838.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1839*)
1840 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1841 # A ".." for each directory in $ac_dir_suffix.
1842 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1843 case $ac_top_builddir_sub in
1844 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1845 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1846 esac ;;
1847esac
1848ac_abs_top_builddir=$ac_pwd
1849ac_abs_builddir=$ac_pwd$ac_dir_suffix
1850# for backward compatibility:
1851ac_top_builddir=$ac_top_build_prefix
1852
1853case $srcdir in
1854 .) # We are building in place.
1855 ac_srcdir=.
1856 ac_top_srcdir=$ac_top_builddir_sub
1857 ac_abs_top_srcdir=$ac_pwd ;;
1858 [\\/]* | ?:[\\/]* ) # Absolute name.
1859 ac_srcdir=$srcdir$ac_dir_suffix;
1860 ac_top_srcdir=$srcdir
1861 ac_abs_top_srcdir=$srcdir ;;
1862 *) # Relative name.
1863 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1864 ac_top_srcdir=$ac_top_build_prefix$srcdir
1865 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1866esac
1867ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1868
1869 cd "$ac_dir" || { ac_status=$?; continue; }
1870 # Check for guested configure.
1871 if test -f "$ac_srcdir/configure.gnu"; then
1872 echo &&
1873 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1874 elif test -f "$ac_srcdir/configure"; then
1875 echo &&
1876 $SHELL "$ac_srcdir/configure" --help=recursive
1877 else
1878 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1879 fi || ac_status=$?
1880 cd "$ac_pwd" || { ac_status=$?; break; }
1881 done
1882fi
1883
1884test -n "$ac_init_help" && exit $ac_status
1885if $ac_init_version; then
1886 cat <<\_ACEOF
1887emacs configure 24.0.50
d6974efa 1888generated by GNU Autoconf 2.68
067d23c9 1889
2018939f 1890Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
1891This configure script is free software; the Free Software Foundation
1892gives unlimited permission to copy, distribute and modify it.
1893_ACEOF
1894 exit
1895fi
1896
1897## ------------------------ ##
1898## Autoconf initialization. ##
1899## ------------------------ ##
1900
1901# ac_fn_c_try_compile LINENO
1902# --------------------------
1903# Try to compile conftest.$ac_ext, and return whether this succeeded.
1904ac_fn_c_try_compile ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 rm -f conftest.$ac_objext
1908 if { { ac_try="$ac_compile"
1909case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_compile") 2>conftest.err
1916 ac_status=$?
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1921 fi
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_c_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest.$ac_objext; then :
1927 ac_retval=0
1928else
1929 $as_echo "$as_me: failed program was:" >&5
1930sed 's/^/| /' conftest.$ac_ext >&5
1931
1932 ac_retval=1
1933fi
d6974efa 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1935 as_fn_set_status $ac_retval
1936
1937} # ac_fn_c_try_compile
1938
067d23c9
KY
1939# ac_fn_c_try_cpp LINENO
1940# ----------------------
1941# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942ac_fn_c_try_cpp ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_cpp conftest.$ac_ext"
1946case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949esac
1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951$as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1958 fi
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018939f 1960 test $ac_status = 0; } > conftest.i && {
067d23c9
KY
1961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1962 test ! -s conftest.err
1963 }; then :
1964 ac_retval=0
1965else
1966 $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970fi
d6974efa 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1972 as_fn_set_status $ac_retval
1973
1974} # ac_fn_c_try_cpp
1975
1976# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977# -------------------------------------------------------
1978# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979# the include files in INCLUDES and setting the cache variable VAR
1980# accordingly.
1981ac_fn_c_check_header_mongrel ()
1982{
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d6974efa 1984 if eval \${$3+:} false; then :
067d23c9
KY
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
d6974efa 1987if eval \${$3+:} false; then :
067d23c9
KY
1988 $as_echo_n "(cached) " >&6
1989fi
1990eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993else
1994 # Is the header compilable?
1995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996$as_echo_n "checking $2 usability... " >&6; }
1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$4
2000#include <$2>
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004else
2005 ac_header_compiler=no
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009$as_echo "$ac_header_compiler" >&6; }
2010
2011# Is the header present?
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013$as_echo_n "checking $2 presence... " >&6; }
2014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016#include <$2>
2017_ACEOF
2018if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020else
2021 ac_header_preproc=no
2022fi
2018939f 2023rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025$as_echo "$ac_header_preproc" >&6; }
2026
2027# So? What about this header?
2028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ;;
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 ;;
2047esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049$as_echo_n "checking for $2... " >&6; }
d6974efa 2050if eval \${$3+:} false; then :
067d23c9
KY
2051 $as_echo_n "(cached) " >&6
2052else
2053 eval "$3=\$ac_header_compiler"
2054fi
2055eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058fi
d6974efa 2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2060
2061} # ac_fn_c_check_header_mongrel
2062
2063# ac_fn_c_try_run LINENO
2064# ----------------------
2065# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2066# that executables *can* be run.
2067ac_fn_c_try_run ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_link"
2071case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074esac
2075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076$as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>&5
2078 ac_status=$?
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2081 { { case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084esac
2085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086$as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_try") 2>&5
2088 ac_status=$?
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; }; }; then :
2091 ac_retval=0
2092else
2093 $as_echo "$as_me: program exited with status $ac_status" >&5
2094 $as_echo "$as_me: failed program was:" >&5
2095sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_retval=$ac_status
2098fi
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2101 as_fn_set_status $ac_retval
2102
2103} # ac_fn_c_try_run
2104
2105# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2106# -------------------------------------------------------
2107# Tests whether HEADER exists and can be compiled using the include files in
2108# INCLUDES, setting the cache variable VAR accordingly.
2109ac_fn_c_check_header_compile ()
2110{
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113$as_echo_n "checking for $2... " >&6; }
d6974efa 2114if eval \${$3+:} false; then :
067d23c9
KY
2115 $as_echo_n "(cached) " >&6
2116else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118/* end confdefs.h. */
2119$4
2120#include <$2>
2121_ACEOF
2122if ac_fn_c_try_compile "$LINENO"; then :
2123 eval "$3=yes"
2124else
2125 eval "$3=no"
2126fi
2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128fi
2129eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131$as_echo "$ac_res" >&6; }
d6974efa 2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2133
2134} # ac_fn_c_check_header_compile
2135
1fd182f0
PE
2136# ac_fn_c_try_link LINENO
2137# -----------------------
2138# Try to link conftest.$ac_ext, and return whether this succeeded.
2139ac_fn_c_try_link ()
2140{
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 rm -f conftest.$ac_objext conftest$ac_exeext
2143 if { { ac_try="$ac_link"
2144case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147esac
2148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149$as_echo "$ac_try_echo"; } >&5
2150 (eval "$ac_link") 2>conftest.err
2151 ac_status=$?
2152 if test -s conftest.err; then
2153 grep -v '^ *+' conftest.err >conftest.er1
2154 cat conftest.er1 >&5
2155 mv -f conftest.er1 conftest.err
2156 fi
2157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158 test $ac_status = 0; } && {
2159 test -z "$ac_c_werror_flag" ||
2160 test ! -s conftest.err
2161 } && test -s conftest$ac_exeext && {
2162 test "$cross_compiling" = yes ||
2163 $as_test_x conftest$ac_exeext
2164 }; then :
2165 ac_retval=0
2166else
2167 $as_echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 ac_retval=1
2171fi
2172 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2173 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2174 # interfere with the next link command; also delete a directory that is
2175 # left behind by Apple's compiler. We do this before executing the actions.
2176 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1fd182f0
PE
2178 as_fn_set_status $ac_retval
2179
2180} # ac_fn_c_try_link
2181
2018939f
AS
2182# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2183# ---------------------------------------------
2184# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2185# accordingly.
067d23c9
KY
2186ac_fn_c_check_decl ()
2187{
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018939f
AS
2189 as_decl_name=`echo $2|sed 's/ *(.*//'`
2190 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2192$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6974efa 2193if eval \${$3+:} false; then :
067d23c9
KY
2194 $as_echo_n "(cached) " >&6
2195else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198$4
2199int
2200main ()
2201{
2018939f
AS
2202#ifndef $as_decl_name
2203#ifdef __cplusplus
2204 (void) $as_decl_use;
2205#else
2206 (void) $as_decl_name;
2207#endif
067d23c9
KY
2208#endif
2209
2210 ;
2211 return 0;
2212}
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215 eval "$3=yes"
2216else
2217 eval "$3=no"
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220fi
2221eval ac_res=\$$3
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223$as_echo "$ac_res" >&6; }
d6974efa 2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2225
2226} # ac_fn_c_check_decl
2227
2228# ac_fn_c_check_header_preproc LINENO HEADER VAR
2229# ----------------------------------------------
2230# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2231ac_fn_c_check_header_preproc ()
2232{
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
d6974efa 2236if eval \${$3+:} false; then :
067d23c9
KY
2237 $as_echo_n "(cached) " >&6
2238else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241#include <$2>
2242_ACEOF
2243if ac_fn_c_try_cpp "$LINENO"; then :
2244 eval "$3=yes"
2245else
2246 eval "$3=no"
2247fi
2018939f 2248rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2249fi
2250eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
d6974efa 2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2254
2255} # ac_fn_c_check_header_preproc
2256
2257# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2258# ----------------------------------------------------
2259# Tries to find if the field MEMBER exists in type AGGR, after including
2260# INCLUDES, setting cache variable VAR accordingly.
2261ac_fn_c_check_member ()
2262{
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2265$as_echo_n "checking for $2.$3... " >&6; }
d6974efa 2266if eval \${$4+:} false; then :
067d23c9
KY
2267 $as_echo_n "(cached) " >&6
2268else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h. */
2271$5
2272int
2273main ()
2274{
2275static $2 ac_aggr;
2276if (ac_aggr.$3)
2277return 0;
2278 ;
2279 return 0;
2280}
2281_ACEOF
2282if ac_fn_c_try_compile "$LINENO"; then :
2283 eval "$4=yes"
2284else
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286/* end confdefs.h. */
2287$5
2288int
2289main ()
2290{
2291static $2 ac_aggr;
2292if (sizeof ac_aggr.$3)
2293return 0;
2294 ;
2295 return 0;
2296}
2297_ACEOF
2298if ac_fn_c_try_compile "$LINENO"; then :
2299 eval "$4=yes"
2300else
2301 eval "$4=no"
2302fi
2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304fi
2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306fi
2307eval ac_res=\$$4
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309$as_echo "$ac_res" >&6; }
d6974efa 2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2311
2312} # ac_fn_c_check_member
2313
2314# ac_fn_c_check_func LINENO FUNC VAR
2315# ----------------------------------
2316# Tests whether FUNC exists, setting the cache variable VAR accordingly
2317ac_fn_c_check_func ()
2318{
2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321$as_echo_n "checking for $2... " >&6; }
d6974efa 2322if eval \${$3+:} false; then :
067d23c9
KY
2323 $as_echo_n "(cached) " >&6
2324else
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326/* end confdefs.h. */
2327/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2329#define $2 innocuous_$2
2330
2331/* System header to define __stub macros and hopefully few prototypes,
2332 which can conflict with char $2 (); below.
2333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2334 <limits.h> exists even on freestanding compilers. */
2335
2336#ifdef __STDC__
2337# include <limits.h>
2338#else
2339# include <assert.h>
2340#endif
2341
2342#undef $2
2343
2344/* Override any GCC internal prototype to avoid an error.
2345 Use char because int might match the return type of a GCC
2346 builtin and then its argument prototype would still apply. */
2347#ifdef __cplusplus
2348extern "C"
2349#endif
2350char $2 ();
2351/* The GNU C library defines this for functions which it implements
2352 to always fail with ENOSYS. Some functions are actually named
2353 something starting with __ and the normal name is an alias. */
2354#if defined __stub_$2 || defined __stub___$2
2355choke me
2356#endif
2357
2358int
2359main ()
2360{
2361return $2 ();
2362 ;
2363 return 0;
2364}
2365_ACEOF
2366if ac_fn_c_try_link "$LINENO"; then :
2367 eval "$3=yes"
2368else
2369 eval "$3=no"
2370fi
2371rm -f core conftest.err conftest.$ac_objext \
2372 conftest$ac_exeext conftest.$ac_ext
2373fi
2374eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376$as_echo "$ac_res" >&6; }
d6974efa 2377 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2378
2379} # ac_fn_c_check_func
2380
2381# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2382# -------------------------------------------
2383# Tests whether TYPE exists after having included INCLUDES, setting cache
2384# variable VAR accordingly.
2385ac_fn_c_check_type ()
2386{
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2389$as_echo_n "checking for $2... " >&6; }
d6974efa 2390if eval \${$3+:} false; then :
067d23c9
KY
2391 $as_echo_n "(cached) " >&6
2392else
2393 eval "$3=no"
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395/* end confdefs.h. */
2396$4
2397int
2398main ()
2399{
2400if (sizeof ($2))
2401 return 0;
2402 ;
2403 return 0;
2404}
2405_ACEOF
2406if ac_fn_c_try_compile "$LINENO"; then :
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408/* end confdefs.h. */
2409$4
2410int
2411main ()
2412{
2413if (sizeof (($2)))
2414 return 0;
2415 ;
2416 return 0;
2417}
2418_ACEOF
2419if ac_fn_c_try_compile "$LINENO"; then :
2420
2421else
2422 eval "$3=yes"
2423fi
2424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425fi
2426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427fi
2428eval ac_res=\$$3
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430$as_echo "$ac_res" >&6; }
d6974efa 2431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2432
2433} # ac_fn_c_check_type
2434cat >config.log <<_ACEOF
2435This file contains any messages produced by compilers while
2436running configure, to aid debugging if configure makes a mistake.
2437
2438It was created by emacs $as_me 24.0.50, which was
d6974efa 2439generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
2440
2441 $ $0 $@
2442
2443_ACEOF
2444exec 5>>config.log
2445{
2446cat <<_ASUNAME
2447## --------- ##
2448## Platform. ##
2449## --------- ##
2450
2451hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2452uname -m = `(uname -m) 2>/dev/null || echo unknown`
2453uname -r = `(uname -r) 2>/dev/null || echo unknown`
2454uname -s = `(uname -s) 2>/dev/null || echo unknown`
2455uname -v = `(uname -v) 2>/dev/null || echo unknown`
2456
2457/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2458/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2459
2460/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2461/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2462/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2463/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2464/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2465/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2466/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2467
2468_ASUNAME
2469
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 $as_echo "PATH: $as_dir"
2476 done
2477IFS=$as_save_IFS
2478
2479} >&5
2480
2481cat >&5 <<_ACEOF
2482
2483
2484## ----------- ##
2485## Core tests. ##
2486## ----------- ##
2487
2488_ACEOF
2489
2490
2491# Keep a trace of the command line.
2492# Strip out --no-create and --no-recursion so they do not pile up.
2493# Strip out --silent because we don't want to record it for future runs.
2494# Also quote any args containing shell meta-characters.
2495# Make two passes to allow for proper duplicate-argument suppression.
2496ac_configure_args=
2497ac_configure_args0=
2498ac_configure_args1=
2499ac_must_keep_next=false
2500for ac_pass in 1 2
2501do
2502 for ac_arg
2503 do
2504 case $ac_arg in
2505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2507 | -silent | --silent | --silen | --sile | --sil)
2508 continue ;;
2509 *\'*)
2510 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2511 esac
2512 case $ac_pass in
2513 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2514 2)
2515 as_fn_append ac_configure_args1 " '$ac_arg'"
2516 if test $ac_must_keep_next = true; then
2517 ac_must_keep_next=false # Got value, back to normal.
2518 else
2519 case $ac_arg in
2520 *=* | --config-cache | -C | -disable-* | --disable-* \
2521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2523 | -with-* | --with-* | -without-* | --without-* | --x)
2524 case "$ac_configure_args0 " in
2525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2526 esac
2527 ;;
2528 -* ) ac_must_keep_next=true ;;
2529 esac
2530 fi
2531 as_fn_append ac_configure_args " '$ac_arg'"
2532 ;;
2533 esac
2534 done
2535done
2536{ ac_configure_args0=; unset ac_configure_args0;}
2537{ ac_configure_args1=; unset ac_configure_args1;}
2538
2539# When interrupted or exit'd, cleanup temporary files, and complete
2540# config.log. We remove comments because anyway the quotes in there
2541# would cause problems or look ugly.
2542# WARNING: Use '\'' to represent an apostrophe within the trap.
2543# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2544trap 'exit_status=$?
2545 # Save into config.log some information that might help in debugging.
2546 {
2547 echo
2548
2018939f 2549 $as_echo "## ---------------- ##
067d23c9 2550## Cache variables. ##
2018939f 2551## ---------------- ##"
067d23c9
KY
2552 echo
2553 # The following way of writing the cache mishandles newlines in values,
2554(
2555 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2556 eval ac_val=\$$ac_var
2557 case $ac_val in #(
2558 *${as_nl}*)
2559 case $ac_var in #(
2560 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2561$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2562 esac
2563 case $ac_var in #(
2564 _ | IFS | as_nl) ;; #(
2565 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2566 *) { eval $ac_var=; unset $ac_var;} ;;
2567 esac ;;
2568 esac
2569 done
2570 (set) 2>&1 |
2571 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2572 *${as_nl}ac_space=\ *)
2573 sed -n \
2574 "s/'\''/'\''\\\\'\'''\''/g;
2575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2576 ;; #(
2577 *)
2578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2579 ;;
2580 esac |
2581 sort
2582)
2583 echo
2584
2018939f 2585 $as_echo "## ----------------- ##
067d23c9 2586## Output variables. ##
2018939f 2587## ----------------- ##"
067d23c9
KY
2588 echo
2589 for ac_var in $ac_subst_vars
2590 do
2591 eval ac_val=\$$ac_var
2592 case $ac_val in
2593 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 esac
2595 $as_echo "$ac_var='\''$ac_val'\''"
2596 done | sort
2597 echo
2598
2599 if test -n "$ac_subst_files"; then
2018939f 2600 $as_echo "## ------------------- ##
067d23c9 2601## File substitutions. ##
2018939f 2602## ------------------- ##"
067d23c9
KY
2603 echo
2604 for ac_var in $ac_subst_files
2605 do
2606 eval ac_val=\$$ac_var
2607 case $ac_val in
2608 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2609 esac
2610 $as_echo "$ac_var='\''$ac_val'\''"
2611 done | sort
2612 echo
2613 fi
2614
2615 if test -s confdefs.h; then
2018939f 2616 $as_echo "## ----------- ##
067d23c9 2617## confdefs.h. ##
2018939f 2618## ----------- ##"
067d23c9
KY
2619 echo
2620 cat confdefs.h
2621 echo
2622 fi
2623 test "$ac_signal" != 0 &&
2624 $as_echo "$as_me: caught signal $ac_signal"
2625 $as_echo "$as_me: exit $exit_status"
2626 } >&5
2627 rm -f core *.core core.conftest.* &&
2628 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2629 exit $exit_status
2630' 0
2631for ac_signal in 1 2 13 15; do
2632 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2633done
2634ac_signal=0
2635
2636# confdefs.h avoids OS command line length limits that DEFS can exceed.
2637rm -f -r conftest* confdefs.h
2638
2639$as_echo "/* confdefs.h */" > confdefs.h
2640
2641# Predefined preprocessor variables.
2642
2643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE_NAME "$PACKAGE_NAME"
2645_ACEOF
2646
2647cat >>confdefs.h <<_ACEOF
2648#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2649_ACEOF
2650
2651cat >>confdefs.h <<_ACEOF
2652#define PACKAGE_VERSION "$PACKAGE_VERSION"
2653_ACEOF
2654
2655cat >>confdefs.h <<_ACEOF
2656#define PACKAGE_STRING "$PACKAGE_STRING"
2657_ACEOF
2658
2659cat >>confdefs.h <<_ACEOF
2660#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2661_ACEOF
2662
2663cat >>confdefs.h <<_ACEOF
2664#define PACKAGE_URL "$PACKAGE_URL"
2665_ACEOF
2666
2667
2668# Let the site file select an alternate cache file if it wants to.
2669# Prefer an explicitly selected file to automatically selected ones.
2670ac_site_file1=NONE
2671ac_site_file2=NONE
2672if test -n "$CONFIG_SITE"; then
2018939f
AS
2673 # We do not want a PATH search for config.site.
2674 case $CONFIG_SITE in #((
2675 -*) ac_site_file1=./$CONFIG_SITE;;
2676 */*) ac_site_file1=$CONFIG_SITE;;
2677 *) ac_site_file1=./$CONFIG_SITE;;
2678 esac
067d23c9
KY
2679elif test "x$prefix" != xNONE; then
2680 ac_site_file1=$prefix/share/config.site
2681 ac_site_file2=$prefix/etc/config.site
2682else
2683 ac_site_file1=$ac_default_prefix/share/config.site
2684 ac_site_file2=$ac_default_prefix/etc/config.site
2685fi
2686for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2687do
2688 test "x$ac_site_file" = xNONE && continue
2689 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2691$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2692 sed 's/^/| /' "$ac_site_file" >&5
2018939f
AS
2693 . "$ac_site_file" \
2694 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696as_fn_error $? "failed to load site script $ac_site_file
d6974efa 2697See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
2698 fi
2699done
2700
2701if test -r "$cache_file"; then
2702 # Some versions of bash will fail to source /dev/null (special files
2703 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2704 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2706$as_echo "$as_me: loading cache $cache_file" >&6;}
2707 case $cache_file in
2708 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2709 *) . "./$cache_file";;
2710 esac
2711 fi
2712else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2714$as_echo "$as_me: creating cache $cache_file" >&6;}
2715 >$cache_file
2716fi
2717
2718as_fn_append ac_header_list " stdlib.h"
2719as_fn_append ac_header_list " unistd.h"
2720as_fn_append ac_header_list " sys/param.h"
e275c824
PE
2721gl_getopt_required=GNU
2722as_fn_append ac_header_list " getopt.h"
067d23c9 2723as_fn_append ac_func_list " alarm"
16c3e636 2724as_fn_append ac_func_list " tzset"
1fd182f0
PE
2725as_fn_append ac_header_list " sys/time.h"
2726as_fn_append ac_func_list " localtime_r"
067d23c9
KY
2727# Check that the precious variables saved in the cache have kept the same
2728# value.
2729ac_cache_corrupted=false
2730for ac_var in $ac_precious_vars; do
2731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2732 eval ac_new_set=\$ac_env_${ac_var}_set
2733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2734 eval ac_new_val=\$ac_env_${ac_var}_value
2735 case $ac_old_set,$ac_new_set in
2736 set,)
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2738$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2739 ac_cache_corrupted=: ;;
2740 ,set)
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2742$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2743 ac_cache_corrupted=: ;;
2744 ,);;
2745 *)
2746 if test "x$ac_old_val" != "x$ac_new_val"; then
2747 # differences in whitespace do not lead to failure.
2748 ac_old_val_w=`echo x $ac_old_val`
2749 ac_new_val_w=`echo x $ac_new_val`
2750 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2752$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2753 ac_cache_corrupted=:
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2756$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2757 eval $ac_var=\$ac_old_val
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2760$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2762$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2763 fi;;
2764 esac
2765 # Pass precious variables to config.status.
2766 if test "$ac_new_set" = set; then
2767 case $ac_new_val in
2768 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2769 *) ac_arg=$ac_var=$ac_new_val ;;
2770 esac
2771 case " $ac_configure_args " in
2772 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2773 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2774 esac
2775 fi
2776done
2777if $ac_cache_corrupted; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2781$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018939f 2782 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
067d23c9
KY
2783fi
2784## -------------------- ##
2785## Main body of script. ##
2786## -------------------- ##
2787
2788ac_ext=c
2789ac_cpp='$CPP $CPPFLAGS'
2790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793
2794
2795ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2796
2797
743c80a7 2798am__api_version='1.11'
067d23c9 2799
743c80a7
PE
2800ac_aux_dir=
2801for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2802 if test -f "$ac_dir/install-sh"; then
2803 ac_aux_dir=$ac_dir
2804 ac_install_sh="$ac_aux_dir/install-sh -c"
2805 break
2806 elif test -f "$ac_dir/install.sh"; then
2807 ac_aux_dir=$ac_dir
2808 ac_install_sh="$ac_aux_dir/install.sh -c"
2809 break
2810 elif test -f "$ac_dir/shtool"; then
2811 ac_aux_dir=$ac_dir
2812 ac_install_sh="$ac_aux_dir/shtool install -c"
2813 break
2814 fi
2815done
2816if test -z "$ac_aux_dir"; then
2817 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2818fi
067d23c9 2819
743c80a7
PE
2820# These three variables are undocumented and unsupported,
2821# and are intended to be withdrawn in a future Autoconf release.
2822# They can cause serious problems if a builder's source tree is in a directory
2823# whose full name contains unusual characters.
2824ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2825ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2826ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
067d23c9 2827
067d23c9 2828
743c80a7
PE
2829# Find a good install program. We prefer a C program (faster),
2830# so one script is as good as another. But avoid the broken or
2831# incompatible versions:
2832# SysV /etc/install, /usr/sbin/install
2833# SunOS /usr/etc/install
2834# IRIX /sbin/install
2835# AIX /bin/install
2836# AmigaOS /C/install, which installs bootblocks on floppy discs
2837# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2838# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2839# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2840# OS/2's system install, which has a completely different semantic
2841# ./install, which can be erroneously created by make from ./install.sh.
2842# Reject install programs that cannot install multiple files.
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2844$as_echo_n "checking for a BSD-compatible install... " >&6; }
2845if test -z "$INSTALL"; then
d6974efa 2846if ${ac_cv_path_install+:} false; then :
743c80a7
PE
2847 $as_echo_n "(cached) " >&6
2848else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 # Account for people who put trailing slashes in PATH elements.
2855case $as_dir/ in #((
2856 ./ | .// | /[cC]/* | \
2857 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2858 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2859 /usr/ucb/* ) ;;
2860 *)
2861 # OSF1 and SCO ODT 3.0 have their own names for install.
2862 # Don't use installbsd from OSF since it installs stuff as root
2863 # by default.
2864 for ac_prog in ginstall scoinst install; do
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2867 if test $ac_prog = install &&
2868 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2869 # AIX install. It has an incompatible calling convention.
2870 :
2871 elif test $ac_prog = install &&
2872 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873 # program-specific install script used by HP pwplus--don't use.
2874 :
2875 else
2876 rm -rf conftest.one conftest.two conftest.dir
2877 echo one > conftest.one
2878 echo two > conftest.two
2879 mkdir conftest.dir
2880 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2881 test -s conftest.one && test -s conftest.two &&
2882 test -s conftest.dir/conftest.one &&
2883 test -s conftest.dir/conftest.two
2884 then
2885 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2886 break 3
2887 fi
2888 fi
2889 fi
2890 done
2891 done
2892 ;;
2893esac
067d23c9 2894
743c80a7
PE
2895 done
2896IFS=$as_save_IFS
067d23c9 2897
743c80a7 2898rm -rf conftest.one conftest.two conftest.dir
067d23c9 2899
067d23c9 2900fi
743c80a7
PE
2901 if test "${ac_cv_path_install+set}" = set; then
2902 INSTALL=$ac_cv_path_install
2903 else
2904 # As a last resort, use the slow shell script. Don't cache a
2905 # value for INSTALL within a source directory, because that will
2906 # break other packages using the cache if that directory is
2907 # removed, or if the value is a relative name.
2908 INSTALL=$ac_install_sh
2909 fi
067d23c9 2910fi
743c80a7
PE
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2912$as_echo "$INSTALL" >&6; }
067d23c9 2913
743c80a7
PE
2914# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2915# It thinks the first close brace ends the variable substitution.
2916test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
067d23c9 2917
743c80a7 2918test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
067d23c9 2919
743c80a7 2920test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
067d23c9 2921
743c80a7
PE
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2923$as_echo_n "checking whether build environment is sane... " >&6; }
2924# Just in case
2925sleep 1
2926echo timestamp > conftest.file
2927# Reject unsafe characters in $srcdir or the absolute working directory
2928# name. Accept space and tab only in the latter.
2929am_lf='
2930'
2931case `pwd` in
2932 *[\\\"\#\$\&\'\`$am_lf]*)
d6974efa 2933 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
743c80a7
PE
2934esac
2935case $srcdir in
2936 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d6974efa 2937 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
743c80a7 2938esac
067d23c9 2939
743c80a7
PE
2940# Do `set' in a subshell so we don't clobber the current shell's
2941# arguments. Must try -L first in case configure is actually a
2942# symlink; some systems play weird games with the mod time of symlinks
2943# (eg FreeBSD returns the mod time of the symlink's containing
2944# directory).
2945if (
2946 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2947 if test "$*" = "X"; then
2948 # -L didn't work.
2949 set X `ls -t "$srcdir/configure" conftest.file`
2950 fi
2951 rm -f conftest.file
2952 if test "$*" != "X $srcdir/configure conftest.file" \
2953 && test "$*" != "X conftest.file $srcdir/configure"; then
2954
2955 # If neither matched, then we have a broken ls. This can happen
2956 # if, for instance, CONFIG_SHELL is bash and it inherits a
2957 # broken ls alias from the environment. This has actually
2958 # happened. Such a system could not be considered "sane".
2959 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2960alias in your environment" "$LINENO" 5
2961 fi
067d23c9 2962
743c80a7
PE
2963 test "$2" = conftest.file
2964 )
2965then
2966 # Ok.
2967 :
067d23c9 2968else
743c80a7
PE
2969 as_fn_error $? "newly created file is older than distributed files!
2970Check your system clock" "$LINENO" 5
067d23c9 2971fi
743c80a7
PE
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973$as_echo "yes" >&6; }
2974test "$program_prefix" != NONE &&
2975 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2976# Use a double $ so make ignores it.
2977test "$program_suffix" != NONE &&
2978 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2979# Double any \ or $.
2980# By default was `s,x,x', remove it if useless.
2981ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2982program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
067d23c9 2983
743c80a7
PE
2984# expand $ac_aux_dir to an absolute path
2985am_aux_dir=`cd $ac_aux_dir && pwd`
067d23c9 2986
743c80a7
PE
2987if test x"${MISSING+set}" != xset; then
2988 case $am_aux_dir in
2989 *\ * | *\ *)
2990 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2991 *)
2992 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2993 esac
067d23c9 2994fi
743c80a7
PE
2995# Use eval to expand $SHELL
2996if eval "$MISSING --run true"; then
2997 am_missing_run="$MISSING --run "
067d23c9 2998else
743c80a7
PE
2999 am_missing_run=
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3001$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
067d23c9
KY
3002fi
3003
743c80a7
PE
3004if test x"${install_sh}" != xset; then
3005 case $am_aux_dir in
3006 *\ * | *\ *)
3007 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3008 *)
3009 install_sh="\${SHELL} $am_aux_dir/install-sh"
3010 esac
067d23c9
KY
3011fi
3012
743c80a7
PE
3013# Installed binaries are usually stripped using `strip' when the user
3014# run `make install-strip'. However `strip' might not be the right
3015# tool to use in cross-compilation environments, therefore Automake
3016# will honor the `STRIP' environment variable to overrule this program.
3017if test "$cross_compiling" != no; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020set dummy ${ac_tool_prefix}strip; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3023if ${ac_cv_prog_STRIP+:} false; then :
743c80a7 3024 $as_echo_n "(cached) " >&6
067d23c9 3025else
743c80a7
PE
3026 if test -n "$STRIP"; then
3027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040done
3041 done
3042IFS=$as_save_IFS
067d23c9
KY
3043
3044fi
067d23c9 3045fi
743c80a7
PE
3046STRIP=$ac_cv_prog_STRIP
3047if test -n "$STRIP"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049$as_echo "$STRIP" >&6; }
3050else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
067d23c9
KY
3053fi
3054
3055
067d23c9 3056fi
743c80a7
PE
3057if test -z "$ac_cv_prog_STRIP"; then
3058 ac_ct_STRIP=$STRIP
3059 # Extract the first word of "strip", so it can be a program name with args.
3060set dummy strip; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3063if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
743c80a7
PE
3064 $as_echo_n "(cached) " >&6
3065else
3066 if test -n "$ac_ct_STRIP"; then
3067 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_STRIP="strip"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081 done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087if test -n "$ac_ct_STRIP"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089$as_echo "$ac_ct_STRIP" >&6; }
3090else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095 if test "x$ac_ct_STRIP" = x; then
3096 STRIP=":"
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099yes:)
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102ac_tool_warned=yes ;;
3103esac
3104 STRIP=$ac_ct_STRIP
3105 fi
3106else
3107 STRIP="$ac_cv_prog_STRIP"
3108fi
3109
3110fi
3111INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3112
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3114$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3115if test -z "$MKDIR_P"; then
d6974efa 3116 if ${ac_cv_path_mkdir+:} false; then :
743c80a7
PE
3117 $as_echo_n "(cached) " >&6
3118else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_prog in mkdir gmkdir; do
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3128 'mkdir (GNU coreutils) '* | \
3129 'mkdir (coreutils) '* | \
3130 'mkdir (fileutils) '4.1*)
3131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3132 break 3;;
3133 esac
3134 done
3135 done
3136 done
3137IFS=$as_save_IFS
3138
3139fi
3140
3141 test -d ./--version && rmdir ./--version
3142 if test "${ac_cv_path_mkdir+set}" = set; then
3143 MKDIR_P="$ac_cv_path_mkdir -p"
3144 else
3145 # As a last resort, use the slow shell script. Don't cache a
3146 # value for MKDIR_P within a source directory, because that will
3147 # break other packages using the cache if that directory is
3148 # removed, or if the value is a relative name.
3149 MKDIR_P="$ac_install_sh -d"
3150 fi
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3153$as_echo "$MKDIR_P" >&6; }
3154
a451f14b 3155
743c80a7
PE
3156mkdir_p="$MKDIR_P"
3157case $mkdir_p in
3158 [\\/$]* | ?:[\\/]*) ;;
3159 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3160esac
3161
3162for ac_prog in gawk mawk nawk awk
3163do
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165set dummy $ac_prog; ac_word=$2
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3168if ${ac_cv_prog_AWK+:} false; then :
743c80a7
PE
3169 $as_echo_n "(cached) " >&6
3170else
3171 if test -n "$AWK"; then
3172 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_AWK="$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185done
3186 done
3187IFS=$as_save_IFS
3188
3189fi
3190fi
3191AWK=$ac_cv_prog_AWK
3192if test -n "$AWK"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3194$as_echo "$AWK" >&6; }
3195else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198fi
3199
3200
3201 test -n "$AWK" && break
3202done
3203
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3205$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3206set x ${MAKE-make}
3207ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 3208if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
743c80a7
PE
3209 $as_echo_n "(cached) " >&6
3210else
3211 cat >conftest.make <<\_ACEOF
3212SHELL = /bin/sh
3213all:
3214 @echo '@@@%%%=$(MAKE)=@@@%%%'
3215_ACEOF
3216# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3217case `${MAKE-make} -f conftest.make 2>/dev/null` in
3218 *@@@%%%=?*=@@@%%%*)
3219 eval ac_cv_prog_make_${ac_make}_set=yes;;
3220 *)
3221 eval ac_cv_prog_make_${ac_make}_set=no;;
3222esac
3223rm -f conftest.make
3224fi
3225if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227$as_echo "yes" >&6; }
3228 SET_MAKE=
3229else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231$as_echo "no" >&6; }
3232 SET_MAKE="MAKE=${MAKE-make}"
3233fi
3234
3235rm -rf .tst 2>/dev/null
3236mkdir .tst 2>/dev/null
3237if test -d .tst; then
3238 am__leading_dot=.
3239else
3240 am__leading_dot=_
3241fi
3242rmdir .tst 2>/dev/null
3243
3244if test "`cd $srcdir && pwd`" != "`pwd`"; then
3245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3246 # is not polluted with repeated "-I."
3247 am__isrc=' -I$(srcdir)'
3248 # test to see if srcdir already configured
3249 if test -f $srcdir/config.status; then
3250 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3251 fi
3252fi
3253
3254# test whether we have cygpath
3255if test -z "$CYGPATH_W"; then
3256 if (cygpath --version) >/dev/null 2>/dev/null; then
3257 CYGPATH_W='cygpath -w'
3258 else
3259 CYGPATH_W=echo
3260 fi
3261fi
3262
3263
3264# Define the identity of the package.
3265 PACKAGE='emacs'
3266 VERSION='24.0.50'
3267
3268
3269cat >>confdefs.h <<_ACEOF
3270#define PACKAGE "$PACKAGE"
3271_ACEOF
3272
3273
3274cat >>confdefs.h <<_ACEOF
3275#define VERSION "$VERSION"
3276_ACEOF
3277
3278# Some tools Automake needs.
3279
3280ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3281
3282
3283AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3284
3285
3286AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3287
3288
3289AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3290
3291
3292MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3293
3294# We need awk for the "check" target. The system "awk" is bad on
3295# some platforms.
3296# Always define AMTAR for backward compatibility.
3297
3298AMTAR=${AMTAR-"${am_missing_run}tar"}
3299
3300am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3301
3302
3303
3304
3305
3306
3307
3308
3309lispdir='${datadir}/emacs/${version}/lisp'
3310locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3311'${datadir}/emacs/site-lisp'
3312lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3313etcdir='${datadir}/emacs/${version}/etc'
3314archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3315docdir='${datadir}/emacs/${version}/etc'
3316gamedir='${localstatedir}/games/emacs'
3317
3318
3319
3320
3321# Check whether --with-pop was given.
3322if test "${with_pop+set}" = set; then :
3323 withval=$with_pop;
3324else
3325 with_pop=yes
3326fi
3327
3328if test "$with_pop" = yes; then
3329 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3330
3331fi
3332
3333
3334# Check whether --with-kerberos was given.
3335if test "${with_kerberos+set}" = set; then :
3336 withval=$with_kerberos;
3337else
3338 with_kerberos=no
3339fi
3340
3341if test "$with_kerberos" != no; then
3342 $as_echo "#define KERBEROS 1" >>confdefs.h
3343
3344fi
3345
3346
3347# Check whether --with-kerberos5 was given.
3348if test "${with_kerberos5+set}" = set; then :
3349 withval=$with_kerberos5;
3350else
3351 with_kerberos5=no
3352fi
3353
3354if test "${with_kerberos5}" != no; then
3355 if test "${with_kerberos}" = no; then
3356 with_kerberos=yes
3357 $as_echo "#define KERBEROS 1" >>confdefs.h
3358
3359 fi
3360
3361$as_echo "#define KERBEROS5 1" >>confdefs.h
3362
3363fi
3364
3365
3366# Check whether --with-hesiod was given.
3367if test "${with_hesiod+set}" = set; then :
3368 withval=$with_hesiod;
3369else
3370 with_hesiod=no
3371fi
3372
3373if test "$with_hesiod" != no; then
3374
3375$as_echo "#define HESIOD 1" >>confdefs.h
3376
3377fi
3378
3379
3380# Check whether --with-mmdf was given.
3381if test "${with_mmdf+set}" = set; then :
3382 withval=$with_mmdf;
3383else
3384 with_mmdf=no
3385fi
3386
3387if test "$with_mmdf" != no; then
3388
3389$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3390
3391fi
3392
3393
3394# Check whether --with-mail-unlink was given.
3395if test "${with_mail_unlink+set}" = set; then :
3396 withval=$with_mail_unlink;
3397else
3398 with_mail_unlink=no
3399fi
3400
3401if test "$with_mail_unlink" != no; then
3402
3403$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3404
3405fi
3406
3407
3408# Check whether --with-mailhost was given.
3409if test "${with_mailhost+set}" = set; then :
3410 withval=$with_mailhost;
3411cat >>confdefs.h <<_ACEOF
3412#define MAILHOST "$withval"
3413_ACEOF
3414
3415fi
3416
3417
3418
067d23c9
KY
3419# Check whether --with-sound was given.
3420if test "${with_sound+set}" = set; then :
3421 withval=$with_sound;
3422else
3423 with_sound=yes
3424fi
3425
3426
3427
3428# Check whether --with-sync-input was given.
3429if test "${with_sync_input+set}" = set; then :
3430 withval=$with_sync_input;
3431else
3432 with_sync_input=yes
3433fi
3434
3435if test "$with_sync_input" = yes; then
3436
3437$as_echo "#define SYNC_INPUT 1" >>confdefs.h
3438
3439fi
3440
3441
3442# Check whether --with-x-toolkit was given.
3443if test "${with_x_toolkit+set}" = set; then :
3444 withval=$with_x_toolkit; case "${withval}" in
3445 y | ye | yes ) val=gtk ;;
3446 n | no ) val=no ;;
3447 l | lu | luc | luci | lucid ) val=lucid ;;
3448 a | at | ath | athe | athen | athena ) val=athena ;;
3449 m | mo | mot | moti | motif ) val=motif ;;
3450 g | gt | gtk ) val=gtk ;;
3451 gtk3 ) val=gtk3 ;;
3452 * )
2018939f 3453as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
067d23c9
KY
3454this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3455\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3456 ;;
3457 esac
3458 with_x_toolkit=$val
3459
3460fi
3461
3462
3463
3464# Check whether --with-xpm was given.
3465if test "${with_xpm+set}" = set; then :
3466 withval=$with_xpm;
3467else
3468 with_xpm=yes
3469fi
3470
3471
3472# Check whether --with-jpeg was given.
3473if test "${with_jpeg+set}" = set; then :
3474 withval=$with_jpeg;
3475else
3476 with_jpeg=yes
3477fi
3478
3479
3480# Check whether --with-tiff was given.
3481if test "${with_tiff+set}" = set; then :
3482 withval=$with_tiff;
3483else
3484 with_tiff=yes
3485fi
3486
3487
3488# Check whether --with-gif was given.
3489if test "${with_gif+set}" = set; then :
3490 withval=$with_gif;
3491else
3492 with_gif=yes
3493fi
3494
3495
3496# Check whether --with-png was given.
3497if test "${with_png+set}" = set; then :
3498 withval=$with_png;
3499else
3500 with_png=yes
3501fi
3502
3503
3504# Check whether --with-rsvg was given.
3505if test "${with_rsvg+set}" = set; then :
3506 withval=$with_rsvg;
3507else
3508 with_rsvg=yes
3509fi
3510
3511
3512# Check whether --with-xml2 was given.
3513if test "${with_xml2+set}" = set; then :
3514 withval=$with_xml2;
3515else
3516 with_xml2=yes
3517fi
3518
3519
3520# Check whether --with-imagemagick was given.
3521if test "${with_imagemagick+set}" = set; then :
3522 withval=$with_imagemagick;
3523else
3524 with_imagemagick=yes
3525fi
3526
3527
3528
3529# Check whether --with-xft was given.
3530if test "${with_xft+set}" = set; then :
3531 withval=$with_xft;
3532else
3533 with_xft=yes
3534fi
3535
3536
3537# Check whether --with-libotf was given.
3538if test "${with_libotf+set}" = set; then :
3539 withval=$with_libotf;
3540else
3541 with_libotf=yes
3542fi
3543
3544
3545# Check whether --with-m17n-flt was given.
3546if test "${with_m17n_flt+set}" = set; then :
3547 withval=$with_m17n_flt;
3548else
3549 with_m17n_flt=yes
3550fi
3551
3552
3553
3554# Check whether --with-toolkit-scroll-bars was given.
3555if test "${with_toolkit_scroll_bars+set}" = set; then :
3556 withval=$with_toolkit_scroll_bars;
3557else
3558 with_toolkit_scroll_bars=yes
3559fi
3560
3561
3562# Check whether --with-xaw3d was given.
3563if test "${with_xaw3d+set}" = set; then :
3564 withval=$with_xaw3d;
3565else
3566 with_xaw3d=yes
3567fi
3568
3569
3570# Check whether --with-xim was given.
3571if test "${with_xim+set}" = set; then :
3572 withval=$with_xim;
3573else
3574 with_xim=yes
3575fi
3576
3577
3578# Check whether --with-ns was given.
3579if test "${with_ns+set}" = set; then :
3580 withval=$with_ns;
3581else
3582 with_ns=no
3583fi
3584
3585
3586
3587# Check whether --with-gpm was given.
3588if test "${with_gpm+set}" = set; then :
3589 withval=$with_gpm;
3590else
3591 with_gpm=yes
3592fi
3593
3594
3595# Check whether --with-dbus was given.
3596if test "${with_dbus+set}" = set; then :
3597 withval=$with_dbus;
3598else
3599 with_dbus=yes
3600fi
3601
3602
3603# Check whether --with-gconf was given.
3604if test "${with_gconf+set}" = set; then :
3605 withval=$with_gconf;
3606else
3607 with_gconf=yes
3608fi
3609
3610
3611# Check whether --with-selinux was given.
3612if test "${with_selinux+set}" = set; then :
3613 withval=$with_selinux;
3614else
3615 with_selinux=yes
3616fi
3617
3618
3619# Check whether --with-gnutls was given.
3620if test "${with_gnutls+set}" = set; then :
3621 withval=$with_gnutls;
3622else
3623 with_gnutls=yes
3624fi
3625
3626
3627## For the times when you want to build Emacs but don't have
3628## a suitable makeinfo, and can live without the manuals.
3629
3630# Check whether --with-makeinfo was given.
3631if test "${with_makeinfo+set}" = set; then :
3632 withval=$with_makeinfo;
3633else
3634 with_makeinfo=yes
3635fi
3636
3637
3638## This is an option because I do not know if all info/man support
3639## compressed files, nor how to test if they do so.
3640
3641# Check whether --with-compress-info was given.
3642if test "${with_compress_info+set}" = set; then :
3643 withval=$with_compress_info;
3644else
3645 with_compress_info=yes
3646fi
3647
3648if test $with_compress_info = yes; then
3649 GZIP_INFO=yes
3650else
3651 GZIP_INFO=
3652fi
3653
3654
3655
3656# Check whether --with-pkg-config-prog was given.
3657if test "${with_pkg_config_prog+set}" = set; then :
3658 withval=$with_pkg_config_prog;
3659fi
3660
3661if test "X${with_pkg_config_prog}" != X; then
3662 if test "${with_pkg_config_prog}" != yes; then
3663 PKG_CONFIG="${with_pkg_config_prog}"
3664 fi
3665fi
3666
3667CRT_DIR=
3668
3669# Check whether --with-crt-dir was given.
3670if test "${with_crt_dir+set}" = set; then :
3671 withval=$with_crt_dir;
3672fi
3673
3674CRT_DIR="${with_crt_dir}"
3675
3676
4fc5868a
UM
3677# Check whether --with-gameuser was given.
3678if test "${with_gameuser+set}" = set; then :
3679 withval=$with_gameuser;
3680fi
3681
3682test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3683 && gameuser="${with_gameuser}"
3684test "X$gameuser" = X && gameuser=games
3685
3686
067d23c9
KY
3687# Check whether --with-gnustep-conf was given.
3688if test "${with_gnustep_conf+set}" = set; then :
3689 withval=$with_gnustep_conf;
3690fi
3691
3692test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3693 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3694test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3695 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3696
3697# Check whether --enable-ns-self-contained was given.
3698if test "${enable_ns_self_contained+set}" = set; then :
3699 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3700else
3701 EN_NS_SELF_CONTAINED=yes
3702fi
3703
3704
3705# Check whether --enable-asserts was given.
3706if test "${enable_asserts+set}" = set; then :
3707 enableval=$enable_asserts; USE_XASSERTS=$enableval
3708else
3709 USE_XASSERTS=no
3710fi
3711
3712
3713# Check whether --enable-maintainer-mode was given.
3714if test "${enable_maintainer_mode+set}" = set; then :
3715 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3716else
3717 USE_MAINTAINER_MODE=no
3718fi
3719
3720if test $USE_MAINTAINER_MODE = yes; then
3721 MAINT=
3722else
3723 MAINT=#
3724fi
3725
3726
3727# Check whether --enable-locallisppath was given.
3728if test "${enable_locallisppath+set}" = set; then :
3729 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3730 locallisppath=
3731elif test "${enableval}" != "yes"; then
3732 locallisppath=${enableval}
3733fi
3734fi
3735
3736
3737# Check whether --enable-checking was given.
3738if test "${enable_checking+set}" = set; then :
3739 enableval=$enable_checking; ac_checking_flags="${enableval}"
3740fi
3741
3742IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3743for check in $ac_checking_flags
3744do
3745 case $check in
3746 # these set all the flags to specific states
3747 yes) ac_enable_checking=1 ;;
3748 no) ac_enable_checking= ;
3749 ac_gc_check_stringbytes= ;
3750 ac_gc_check_string_overrun= ;
3751 ac_gc_check_string_free_list= ;
3752 ac_xmalloc_overrun= ;
3753 ac_gc_check_cons_list= ;;
3754 all) ac_enable_checking=1 ;
3755 ac_gc_check_stringbytes=1 ;
3756 ac_gc_check_string_overrun=1 ;
3757 ac_gc_check_string_free_list=1 ;
3758 ac_xmalloc_overrun=1 ;
3759 ac_gc_check_cons_list=1 ;;
3760 # these enable particular checks
3761 stringbytes) ac_gc_check_stringbytes=1 ;;
3762 stringoverrun) ac_gc_check_string_overrun=1 ;;
3763 stringfreelist) ac_gc_check_string_free_list=1 ;;
3764 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3765 conslist) ac_gc_check_cons_list=1 ;;
d6974efa 3766 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
067d23c9
KY
3767 esac
3768done
3769IFS="$ac_save_IFS"
3770
3771if test x$ac_enable_checking != x ; then
3772
3773$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3774
3775fi
3776if test x$ac_gc_check_stringbytes != x ; then
3777
3778$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3779
3780fi
3781if test x$ac_gc_check_stringoverrun != x ; then
3782
3783$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3784
3785fi
3786if test x$ac_gc_check_string_free_list != x ; then
3787
3788$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3789
3790fi
3791if test x$ac_xmalloc_overrun != x ; then
3792
3793$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3794
3795fi
3796if test x$ac_gc_check_cons_list != x ; then
3797
3798$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3799
3800fi
3801
3802# Check whether --enable-use-lisp-union-type was given.
3803if test "${enable_use_lisp_union_type+set}" = set; then :
3804 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3805
3806$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3807
3808fi
3809fi
3810
3811
3812
3813# Check whether --enable-profiling was given.
3814if test "${enable_profiling+set}" = set; then :
3815 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3816fi
3817
3818if test x$ac_enable_profiling != x ; then
3819 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3820else
3821 PROFILING_CFLAGS=
3822fi
3823
3824
3825# Check whether --enable-autodepend was given.
3826if test "${enable_autodepend+set}" = set; then :
3827 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3828else
3829 ac_enable_autodepend=yes
3830fi
3831
3832
3833#### Make srcdir absolute, if it isn't already. It's important to
3834#### avoid running the path through pwd unnecessarily, since pwd can
3835#### give you automounter prefixes, which can go away. We do all this
3836#### so Emacs can find its files when run uninstalled.
3837## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3838unset CDPATH
3839case "${srcdir}" in
3840 /* ) ;;
3841 . )
3842 ## We may be able to use the $PWD environment variable to make this
3843 ## absolute. But sometimes PWD is inaccurate.
3844 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3845 ## but that tested only for a well-formed and valid PWD,
3846 ## it did not object when PWD was well-formed and valid but just wrong.
3847 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3848 then
3849 srcdir="$PWD"
3850 else
3851 srcdir="`(cd ${srcdir}; pwd)`"
3852 fi
3853 ;;
3854 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3855esac
3856
3857#### Check if the source directory already has a configured system in it.
3858if test `pwd` != `(cd ${srcdir} && pwd)` \
3859 && test -f "${srcdir}/src/config.h" ; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3861 as a build directory right now; it has been configured in its own
3862 right. To configure in another directory as well, you MUST
3863 use GNU make. If you do not have GNU make, then you must
3864 now do \`make distclean' in ${srcdir},
3865 and then run $0 again." >&5
3866$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3867 as a build directory right now; it has been configured in its own
3868 right. To configure in another directory as well, you MUST
3869 use GNU make. If you do not have GNU make, then you must
3870 now do \`make distclean' in ${srcdir},
3871 and then run $0 again." >&2;}
3872fi
3873
3874#### Given the configuration name, set machfile and opsysfile to the
3875#### names of the m/*.h and s/*.h files we should use.
3876
3877### Canonicalize the configuration name.
3878
067d23c9
KY
3879# Make sure we can run config.sub.
3880$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018939f 3881 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
067d23c9
KY
3882
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3884$as_echo_n "checking build system type... " >&6; }
d6974efa 3885if ${ac_cv_build+:} false; then :
067d23c9
KY
3886 $as_echo_n "(cached) " >&6
3887else
3888 ac_build_alias=$build_alias
3889test "x$ac_build_alias" = x &&
3890 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3891test "x$ac_build_alias" = x &&
2018939f 3892 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
067d23c9 3893ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018939f 3894 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
067d23c9
KY
3895
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3898$as_echo "$ac_cv_build" >&6; }
3899case $ac_cv_build in
3900*-*-*) ;;
d6974efa 3901*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
067d23c9
KY
3902esac
3903build=$ac_cv_build
3904ac_save_IFS=$IFS; IFS='-'
3905set x $ac_cv_build
3906shift
3907build_cpu=$1
3908build_vendor=$2
3909shift; shift
3910# Remember, the first character of IFS is used to create $*,
3911# except with old shells:
3912build_os=$*
3913IFS=$ac_save_IFS
3914case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3915
3916
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3918$as_echo_n "checking host system type... " >&6; }
d6974efa 3919if ${ac_cv_host+:} false; then :
067d23c9
KY
3920 $as_echo_n "(cached) " >&6
3921else
3922 if test "x$host_alias" = x; then
3923 ac_cv_host=$ac_cv_build
3924else
3925 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2018939f 3926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
067d23c9
KY
3927fi
3928
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3931$as_echo "$ac_cv_host" >&6; }
3932case $ac_cv_host in
3933*-*-*) ;;
d6974efa 3934*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
067d23c9
KY
3935esac
3936host=$ac_cv_host
3937ac_save_IFS=$IFS; IFS='-'
3938set x $ac_cv_host
3939shift
3940host_cpu=$1
3941host_vendor=$2
3942shift; shift
3943# Remember, the first character of IFS is used to create $*,
3944# except with old shells:
3945host_os=$*
3946IFS=$ac_save_IFS
3947case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3948
3949
3950canonical=$host
3951configuration=${host_alias-${build_alias-$host}}
3952
3953
3954
3955### If you add support for a new configuration, add code to this
3956### switch statement to recognize your configuration name and select
3957### the appropriate operating system and machine description files.
3958
3959### You would hope that you could choose an m/*.h file pretty much
3960### based on the machine portion of the configuration name, and an s/*.h
3961### file based on the operating system portion. However, it turns out
3962### that each m/*.h file is pretty manufacturer-specific - for
3963### example mips.h is MIPS
3964### So we basically have to have a special case for each
3965### configuration name.
3966###
3967### As far as handling version numbers on operating systems is
3968### concerned, make sure things will fail in a fixable way. If
3969### /etc/MACHINES doesn't say anything about version numbers, be
3970### prepared to handle anything reasonably. If version numbers
3971### matter, be sure /etc/MACHINES says something about it.
3972
3973machine='' opsys='' unported=no
3974case "${canonical}" in
3975
d6a003a8
AS
3976 ## GNU/Linux ports
3977 *-*-linux-gnu*)
3978 opsys=gnu-linux
3979 case ${canonical} in
3980 alpha*) machine=alpha ;;
3981 s390-*) machine=ibms390 ;;
3982 s390x-*) machine=ibms390x ;;
3983 powerpc*) machine=macppc ;;
3984 sparc*) machine=sparc ;;
3985 ia64*) machine=ia64 ;;
3986 m68k*) machine=m68k ;;
3987 x86_64*) machine=amdx86-64 ;;
3988 esac
3989 ;;
3990
067d23c9
KY
3991 ## FreeBSD ports
3992 *-*-freebsd* )
3993 opsys=freebsd
3994 case "${canonical}" in
3995 alpha*) machine=alpha ;;
3996 amd64-*|x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3997 ia64-*) machine=ia64 ;;
3998 i[3456]86-*) machine=intel386 ;;
3999 powerpc-*) machine=macppc ;;
4000 sparc-*) machine=sparc ;;
4001 sparc64-*) machine=sparc ;;
4002 esac
4003 ;;
4004
4005 ## FreeBSD kernel + glibc based userland
4006 *-*-kfreebsd*gnu* )
4007 opsys=gnu-kfreebsd
4008 case "${canonical}" in
4009 alpha*) machine=alpha ;;
4010 amd64-*|x86_64-*) machine=amdx86-64 ;;
4011 ia64-*) machine=ia64 ;;
4012 i[3456]86-*) machine=intel386 ;;
4013 powerpc-*) machine=macppc ;;
4014 sparc-*) machine=sparc ;;
4015 sparc64-*) machine=sparc ;;
4016 esac
4017 ;;
4018
4019 ## NetBSD ports
4020 *-*-netbsd* )
4021 opsys=netbsd
4022 case "${canonical}" in
4023 alpha*) machine=alpha ;;
4024 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4025 i[3456]86-*) machine=intel386 ;;
4026 m68k-*) machine=m68k ;;
4027 powerpc-*) machine=macppc ;;
067d23c9
KY
4028 sparc*-) machine=sparc ;;
4029 vax-*) machine=vax ;;
4030 esac
4031 ;;
4032
4033 ## OpenBSD ports
4034 *-*-openbsd* )
4035 opsys=openbsd
4036 case "${canonical}" in
4037 alpha*) machine=alpha ;;
4038 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4039 i386-*) machine=intel386 ;;
4040 powerpc-*) machine=macppc ;;
4041 sparc*) machine=sparc ;;
4042 vax-*) machine=vax ;;
4043 esac
4044 ;;
4045
067d23c9
KY
4046 ## Apple Darwin / Mac OS X
4047 *-apple-darwin* )
4048 case "${canonical}" in
4049 i[3456]86-* ) machine=intel386 ;;
4050 powerpc-* ) machine=macppc ;;
4051 x86_64-* ) machine=amdx86-64 ;;
4052 * ) unported=yes ;;
4053 esac
4054 opsys=darwin
4055 # Define CPP as follows to make autoconf work correctly.
4056 CPP="${CC-cc} -E -no-cpp-precomp"
4057 # Use fink packages if available.
4058 if test -d /sw/include && test -d /sw/lib; then
4059 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4060 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4061 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4062 fi
4063 ;;
4064
4065 ## HP 9000 series 700 and 800, running HP/UX
4066 hppa*-hp-hpux10.2* )
d6a003a8 4067 opsys=hpux10-20
067d23c9
KY
4068 ;;
4069 hppa*-hp-hpux1[1-9]* )
d6a003a8 4070 opsys=hpux11
067d23c9
KY
4071 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4072 ;;
4073
125c3718
PE
4074 ia64*-hp-hpux1[1-9]* )
4075 machine=hp800 opsys=hpux11
4076 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4077 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4078 CANNOT_DUMP=yes
4079 ;;
4080
4081 hppa*-*-linux-gnu* )
4082 machine=hp800 opsys=gnu-linux
4083 ;;
4084
067d23c9 4085 ## IBM machines
067d23c9
KY
4086 rs6000-ibm-aix4.[23]* )
4087 machine=ibmrs6000 opsys=aix4-2
4088 ;;
4089 powerpc-ibm-aix4.[23]* )
4090 machine=ibmrs6000 opsys=aix4-2
4091 ;;
4092 rs6000-ibm-aix[56]* )
4093 machine=ibmrs6000 opsys=aix4-2
4094 ;;
4095 powerpc-ibm-aix[56]* )
4096 machine=ibmrs6000 opsys=aix4-2
4097 ;;
4098
067d23c9
KY
4099 ## Silicon Graphics machines
4100 ## Iris 4D
4101 mips-sgi-irix6.5 )
4102 machine=iris4d opsys=irix6-5
4103 # Without defining _LANGUAGE_C, things get masked out in the headers
4104 # so that, for instance, grepping for `free' in stdlib.h fails and
4105 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4106 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4107 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4108 ;;
4109
4110 ## Suns
067d23c9
KY
4111 *-sun-solaris* \
4112 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4113 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4114 case "${canonical}" in
4115 i[3456]86-*-* ) machine=intel386 ;;
4116 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4117 sparc* ) machine=sparc ;;
4118 * ) unported=yes ;;
4119 esac
4120 case "${canonical}" in
4121 *-sunos5.6* | *-solaris2.6* )
4122 opsys=sol2-6
4123 NON_GNU_CPP=/usr/ccs/lib/cpp
4124 RANLIB="ar -ts"
4125 ;;
4126 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4127 opsys=sol2-6
4128 emacs_check_sunpro_c=yes
4129 NON_GNU_CPP=/usr/ccs/lib/cpp
4130 ;;
4131 *-sunos5* | *-solaris* )
4132 opsys=sol2-10
4133 emacs_check_sunpro_c=yes
4134 NON_GNU_CPP=/usr/ccs/lib/cpp
4135 ;;
4136 esac
4137 ## Watch out for a compiler that we know will not work.
4138 case "${canonical}" in
4139 *-solaris* | *-sunos5* )
4140 if [ "x$CC" = x/usr/ucb/cc ]; then
4141 ## /usr/ucb/cc doesn't work;
4142 ## we should find some other compiler that does work.
4143 unset CC
4144 fi
4145 ;;
4146 *) ;;
4147 esac
4148 ;;
4149
067d23c9
KY
4150 ## Intel 386 machines where we don't care about the manufacturer.
4151 i[3456]86-*-* )
4152 machine=intel386
4153 case "${canonical}" in
4154 *-cygwin ) opsys=cygwin ;;
4155 *-darwin* ) opsys=darwin
4156 CPP="${CC-cc} -E -no-cpp-precomp"
4157 ;;
067d23c9
KY
4158 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4159 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4160 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4161 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4162 esac
4163 ;;
4164
067d23c9
KY
4165 * )
4166 unported=yes
4167 ;;
4168esac
4169
4170### If the code above didn't choose an operating system, just choose
4171### an operating system based on the configuration name. You really
4172### only want to use this when you have no idea what the right
4173### operating system is; if you know what operating systems a machine
4174### runs, it's cleaner to make it explicit in the case statement
4175### above.
4176if test x"${opsys}" = x; then
4177 case "${canonical}" in
4178 *-gnu* ) opsys=gnu ;;
4179 * )
4180 unported=yes
4181 ;;
4182 esac
4183fi
4184
4185
4186
4187if test $unported = yes; then
2018939f 4188 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
067d23c9
KY
4189Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4190fi
4191
d6a003a8
AS
4192if test -n "$machine"; then
4193 machfile="m/${machine}.h"
4194else
4195 machfile=
4196fi
067d23c9
KY
4197opsysfile="s/${opsys}.h"
4198
4199
4200#### Choose a compiler.
4201test -n "$CC" && cc_specified=yes
4202
4203# Save the value of CFLAGS that the user specified.
4204SPECIFIED_CFLAGS="$CFLAGS"
4205
4206ac_ext=c
4207ac_cpp='$CPP $CPPFLAGS'
4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211if test -n "$ac_tool_prefix"; then
4212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4213set dummy ${ac_tool_prefix}gcc; ac_word=$2
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4216if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4217 $as_echo_n "(cached) " >&6
4218else
4219 if test -n "$CC"; then
4220 ac_cv_prog_CC="$CC" # Let the user override the test.
4221else
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4232 fi
4233done
4234 done
4235IFS=$as_save_IFS
4236
4237fi
4238fi
4239CC=$ac_cv_prog_CC
4240if test -n "$CC"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4242$as_echo "$CC" >&6; }
4243else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
4246fi
4247
4248
4249fi
4250if test -z "$ac_cv_prog_CC"; then
4251 ac_ct_CC=$CC
4252 # Extract the first word of "gcc", so it can be a program name with args.
4253set dummy gcc; ac_word=$2
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4256if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4257 $as_echo_n "(cached) " >&6
4258else
4259 if test -n "$ac_ct_CC"; then
4260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269 ac_cv_prog_ac_ct_CC="gcc"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273done
4274 done
4275IFS=$as_save_IFS
4276
4277fi
4278fi
4279ac_ct_CC=$ac_cv_prog_ac_ct_CC
4280if test -n "$ac_ct_CC"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4282$as_echo "$ac_ct_CC" >&6; }
4283else
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285$as_echo "no" >&6; }
4286fi
4287
4288 if test "x$ac_ct_CC" = x; then
4289 CC=""
4290 else
4291 case $cross_compiling:$ac_tool_warned in
4292yes:)
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4295ac_tool_warned=yes ;;
4296esac
4297 CC=$ac_ct_CC
4298 fi
4299else
4300 CC="$ac_cv_prog_CC"
4301fi
4302
4303if test -z "$CC"; then
4304 if test -n "$ac_tool_prefix"; then
4305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4306set dummy ${ac_tool_prefix}cc; ac_word=$2
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4309if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4310 $as_echo_n "(cached) " >&6
4311else
4312 if test -n "$CC"; then
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
4314else
4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_CC="${ac_tool_prefix}cc"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326done
4327 done
4328IFS=$as_save_IFS
4329
4330fi
4331fi
4332CC=$ac_cv_prog_CC
4333if test -n "$CC"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4335$as_echo "$CC" >&6; }
4336else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338$as_echo "no" >&6; }
4339fi
4340
4341
4342 fi
4343fi
4344if test -z "$CC"; then
4345 # Extract the first word of "cc", so it can be a program name with args.
4346set dummy cc; ac_word=$2
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4349if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4350 $as_echo_n "(cached) " >&6
4351else
4352 if test -n "$CC"; then
4353 ac_cv_prog_CC="$CC" # Let the user override the test.
4354else
4355 ac_prog_rejected=no
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4364 ac_prog_rejected=yes
4365 continue
4366 fi
4367 ac_cv_prog_CC="cc"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371done
4372 done
4373IFS=$as_save_IFS
4374
4375if test $ac_prog_rejected = yes; then
4376 # We found a bogon in the path, so make sure we never use it.
4377 set dummy $ac_cv_prog_CC
4378 shift
4379 if test $# != 0; then
4380 # We chose a different compiler from the bogus one.
4381 # However, it has the same basename, so the bogon will be chosen
4382 # first if we set CC to just the basename; use the full file name.
4383 shift
4384 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4385 fi
4386fi
4387fi
4388fi
4389CC=$ac_cv_prog_CC
4390if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392$as_echo "$CC" >&6; }
4393else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395$as_echo "no" >&6; }
4396fi
4397
4398
4399fi
4400if test -z "$CC"; then
4401 if test -n "$ac_tool_prefix"; then
4402 for ac_prog in cl.exe
4403 do
4404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4408if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4409 $as_echo_n "(cached) " >&6
4410else
4411 if test -n "$CC"; then
4412 ac_cv_prog_CC="$CC" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425done
4426 done
4427IFS=$as_save_IFS
4428
4429fi
4430fi
4431CC=$ac_cv_prog_CC
4432if test -n "$CC"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4434$as_echo "$CC" >&6; }
4435else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437$as_echo "no" >&6; }
4438fi
4439
4440
4441 test -n "$CC" && break
4442 done
4443fi
4444if test -z "$CC"; then
4445 ac_ct_CC=$CC
4446 for ac_prog in cl.exe
4447do
4448 # Extract the first word of "$ac_prog", so it can be a program name with args.
4449set dummy $ac_prog; ac_word=$2
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4452if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4453 $as_echo_n "(cached) " >&6
4454else
4455 if test -n "$ac_ct_CC"; then
4456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465 ac_cv_prog_ac_ct_CC="$ac_prog"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4468 fi
4469done
4470 done
4471IFS=$as_save_IFS
4472
4473fi
4474fi
4475ac_ct_CC=$ac_cv_prog_ac_ct_CC
4476if test -n "$ac_ct_CC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4478$as_echo "$ac_ct_CC" >&6; }
4479else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481$as_echo "no" >&6; }
4482fi
4483
4484
4485 test -n "$ac_ct_CC" && break
4486done
4487
4488 if test "x$ac_ct_CC" = x; then
4489 CC=""
4490 else
4491 case $cross_compiling:$ac_tool_warned in
4492yes:)
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495ac_tool_warned=yes ;;
4496esac
4497 CC=$ac_ct_CC
4498 fi
4499fi
4500
4501fi
4502
4503
4504test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4506as_fn_error $? "no acceptable C compiler found in \$PATH
d6974efa 4507See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4508
4509# Provide some information about the compiler.
4510$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4511set X $ac_compile
4512ac_compiler=$2
4513for ac_option in --version -v -V -qversion; do
4514 { { ac_try="$ac_compiler $ac_option >&5"
4515case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518esac
4519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520$as_echo "$ac_try_echo"; } >&5
4521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4522 ac_status=$?
4523 if test -s conftest.err; then
4524 sed '10a\
4525... rest of stderr output deleted ...
4526 10q' conftest.err >conftest.er1
4527 cat conftest.er1 >&5
4528 fi
4529 rm -f conftest.er1 conftest.err
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }
4532done
4533
4534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h. */
4536
4537int
4538main ()
4539{
4540
4541 ;
4542 return 0;
4543}
4544_ACEOF
4545ac_clean_files_save=$ac_clean_files
4546ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4547# Try to create an executable without -o first, disregard a.out.
4548# It will help us diagnose broken compilers, and finding out an intuition
4549# of exeext.
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4551$as_echo_n "checking whether the C compiler works... " >&6; }
4552ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4553
4554# The possible output files:
4555ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4556
4557ac_rmfiles=
4558for ac_file in $ac_files
4559do
4560 case $ac_file in
4561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4562 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4563 esac
4564done
4565rm -f $ac_rmfiles
4566
4567if { { ac_try="$ac_link_default"
4568case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571esac
4572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4573$as_echo "$ac_try_echo"; } >&5
4574 (eval "$ac_link_default") 2>&5
4575 ac_status=$?
4576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577 test $ac_status = 0; }; then :
4578 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4579# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4580# in a Makefile. We should not override ac_cv_exeext if it was cached,
4581# so that the user can short-circuit this test for compilers unknown to
4582# Autoconf.
4583for ac_file in $ac_files ''
4584do
4585 test -f "$ac_file" || continue
4586 case $ac_file in
4587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4588 ;;
4589 [ab].out )
4590 # We found the default executable, but exeext='' is most
4591 # certainly right.
4592 break;;
4593 *.* )
4594 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4595 then :; else
4596 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4597 fi
4598 # We set ac_cv_exeext here because the later test for it is not
4599 # safe: cross compilers may not add the suffix if given an `-o'
4600 # argument, so we may need to know it at that point already.
4601 # Even if this section looks crufty: it has the advantage of
4602 # actually working.
4603 break;;
4604 * )
4605 break;;
4606 esac
4607done
4608test "$ac_cv_exeext" = no && ac_cv_exeext=
4609
4610else
4611 ac_file=''
4612fi
4613if test -z "$ac_file"; then :
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615$as_echo "no" >&6; }
4616$as_echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4621as_fn_error 77 "C compiler cannot create executables
d6974efa 4622See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4623else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4625$as_echo "yes" >&6; }
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4628$as_echo_n "checking for C compiler default output file name... " >&6; }
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4630$as_echo "$ac_file" >&6; }
4631ac_exeext=$ac_cv_exeext
4632
4633rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4634ac_clean_files=$ac_clean_files_save
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4636$as_echo_n "checking for suffix of executables... " >&6; }
4637if { { ac_try="$ac_link"
4638case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641esac
4642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643$as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_link") 2>&5
4645 ac_status=$?
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }; then :
4648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4649# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4650# work properly (i.e., refer to `conftest.exe'), while it won't with
4651# `rm'.
4652for ac_file in conftest.exe conftest conftest.*; do
4653 test -f "$ac_file" || continue
4654 case $ac_file in
4655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4657 break;;
4658 * ) break;;
4659 esac
4660done
4661else
4662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4664as_fn_error $? "cannot compute suffix of executables: cannot compile and link
d6974efa 4665See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4666fi
4667rm -f conftest conftest$ac_cv_exeext
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4669$as_echo "$ac_cv_exeext" >&6; }
4670
4671rm -f conftest.$ac_ext
4672EXEEXT=$ac_cv_exeext
4673ac_exeext=$EXEEXT
4674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h. */
4676#include <stdio.h>
4677int
4678main ()
4679{
4680FILE *f = fopen ("conftest.out", "w");
4681 return ferror (f) || fclose (f) != 0;
4682
4683 ;
4684 return 0;
4685}
4686_ACEOF
4687ac_clean_files="$ac_clean_files conftest.out"
4688# Check that the compiler produces executables we can run. If not, either
4689# the compiler is broken, or we cross compile.
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4691$as_echo_n "checking whether we are cross compiling... " >&6; }
4692if test "$cross_compiling" != yes; then
4693 { { ac_try="$ac_link"
4694case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697esac
4698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699$as_echo "$ac_try_echo"; } >&5
4700 (eval "$ac_link") 2>&5
4701 ac_status=$?
4702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703 test $ac_status = 0; }
4704 if { ac_try='./conftest$ac_cv_exeext'
4705 { { case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708esac
4709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710$as_echo "$ac_try_echo"; } >&5
4711 (eval "$ac_try") 2>&5
4712 ac_status=$?
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }; }; then
4715 cross_compiling=no
4716 else
4717 if test "$cross_compiling" = maybe; then
4718 cross_compiling=yes
4719 else
4720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4722as_fn_error $? "cannot run C compiled programs.
067d23c9 4723If you meant to cross compile, use \`--host'.
d6974efa 4724See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4725 fi
4726 fi
4727fi
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4729$as_echo "$cross_compiling" >&6; }
4730
4731rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4732ac_clean_files=$ac_clean_files_save
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4734$as_echo_n "checking for suffix of object files... " >&6; }
d6974efa 4735if ${ac_cv_objext+:} false; then :
067d23c9
KY
4736 $as_echo_n "(cached) " >&6
4737else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h. */
4740
4741int
4742main ()
4743{
4744
4745 ;
4746 return 0;
4747}
4748_ACEOF
4749rm -f conftest.o conftest.obj
4750if { { ac_try="$ac_compile"
4751case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754esac
4755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756$as_echo "$ac_try_echo"; } >&5
4757 (eval "$ac_compile") 2>&5
4758 ac_status=$?
4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4760 test $ac_status = 0; }; then :
4761 for ac_file in conftest.o conftest.obj conftest.*; do
4762 test -f "$ac_file" || continue;
4763 case $ac_file in
4764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4766 break;;
4767 esac
4768done
4769else
4770 $as_echo "$as_me: failed program was:" >&5
4771sed 's/^/| /' conftest.$ac_ext >&5
4772
4773{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4775as_fn_error $? "cannot compute suffix of object files: cannot compile
d6974efa 4776See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4777fi
4778rm -f conftest.$ac_cv_objext conftest.$ac_ext
4779fi
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4781$as_echo "$ac_cv_objext" >&6; }
4782OBJEXT=$ac_cv_objext
4783ac_objext=$OBJEXT
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4785$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6974efa 4786if ${ac_cv_c_compiler_gnu+:} false; then :
067d23c9
KY
4787 $as_echo_n "(cached) " >&6
4788else
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h. */
4791
4792int
4793main ()
4794{
4795#ifndef __GNUC__
4796 choke me
4797#endif
4798
4799 ;
4800 return 0;
4801}
4802_ACEOF
4803if ac_fn_c_try_compile "$LINENO"; then :
4804 ac_compiler_gnu=yes
4805else
4806 ac_compiler_gnu=no
4807fi
4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809ac_cv_c_compiler_gnu=$ac_compiler_gnu
4810
4811fi
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4813$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4814if test $ac_compiler_gnu = yes; then
4815 GCC=yes
4816else
4817 GCC=
4818fi
4819ac_test_CFLAGS=${CFLAGS+set}
4820ac_save_CFLAGS=$CFLAGS
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4822$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6974efa 4823if ${ac_cv_prog_cc_g+:} false; then :
067d23c9
KY
4824 $as_echo_n "(cached) " >&6
4825else
4826 ac_save_c_werror_flag=$ac_c_werror_flag
4827 ac_c_werror_flag=yes
4828 ac_cv_prog_cc_g=no
4829 CFLAGS="-g"
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831/* end confdefs.h. */
4832
4833int
4834main ()
4835{
4836
4837 ;
4838 return 0;
4839}
4840_ACEOF
4841if ac_fn_c_try_compile "$LINENO"; then :
4842 ac_cv_prog_cc_g=yes
4843else
4844 CFLAGS=""
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h. */
4847
4848int
4849main ()
4850{
4851
4852 ;
4853 return 0;
4854}
4855_ACEOF
4856if ac_fn_c_try_compile "$LINENO"; then :
4857
4858else
4859 ac_c_werror_flag=$ac_save_c_werror_flag
4860 CFLAGS="-g"
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h. */
4863
4864int
4865main ()
4866{
4867
4868 ;
4869 return 0;
4870}
4871_ACEOF
4872if ac_fn_c_try_compile "$LINENO"; then :
4873 ac_cv_prog_cc_g=yes
4874fi
4875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876fi
4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878fi
4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 ac_c_werror_flag=$ac_save_c_werror_flag
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4883$as_echo "$ac_cv_prog_cc_g" >&6; }
4884if test "$ac_test_CFLAGS" = set; then
4885 CFLAGS=$ac_save_CFLAGS
4886elif test $ac_cv_prog_cc_g = yes; then
4887 if test "$GCC" = yes; then
4888 CFLAGS="-g -O2"
4889 else
4890 CFLAGS="-g"
4891 fi
4892else
4893 if test "$GCC" = yes; then
4894 CFLAGS="-O2"
4895 else
4896 CFLAGS=
4897 fi
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4900$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6974efa 4901if ${ac_cv_prog_cc_c89+:} false; then :
067d23c9
KY
4902 $as_echo_n "(cached) " >&6
4903else
4904 ac_cv_prog_cc_c89=no
4905ac_save_CC=$CC
4906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907/* end confdefs.h. */
4908#include <stdarg.h>
4909#include <stdio.h>
4910#include <sys/types.h>
4911#include <sys/stat.h>
4912/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4913struct buf { int x; };
4914FILE * (*rcsopen) (struct buf *, struct stat *, int);
4915static char *e (p, i)
4916 char **p;
4917 int i;
4918{
4919 return p[i];
4920}
4921static char *f (char * (*g) (char **, int), char **p, ...)
4922{
4923 char *s;
4924 va_list v;
4925 va_start (v,p);
4926 s = g (p, va_arg (v,int));
4927 va_end (v);
4928 return s;
4929}
4930
4931/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4932 function prototypes and stuff, but not '\xHH' hex character constants.
4933 These don't provoke an error unfortunately, instead are silently treated
4934 as 'x'. The following induces an error, until -std is added to get
4935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4936 array size at least. It's necessary to write '\x00'==0 to get something
4937 that's true only with -std. */
4938int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4939
4940/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4941 inside strings and character constants. */
4942#define FOO(x) 'x'
4943int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4944
4945int test (int i, double x);
4946struct s1 {int (*f) (int a);};
4947struct s2 {int (*f) (double a);};
4948int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4949int argc;
4950char **argv;
4951int
4952main ()
4953{
4954return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4955 ;
4956 return 0;
4957}
4958_ACEOF
4959for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4961do
4962 CC="$ac_save_CC $ac_arg"
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964 ac_cv_prog_cc_c89=$ac_arg
4965fi
4966rm -f core conftest.err conftest.$ac_objext
4967 test "x$ac_cv_prog_cc_c89" != "xno" && break
4968done
743c80a7
PE
4969rm -f conftest.$ac_ext
4970CC=$ac_save_CC
4971
4972fi
4973# AC_CACHE_VAL
4974case "x$ac_cv_prog_cc_c89" in
4975 x)
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4977$as_echo "none needed" >&6; } ;;
4978 xno)
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4980$as_echo "unsupported" >&6; } ;;
4981 *)
4982 CC="$CC $ac_cv_prog_cc_c89"
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4984$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4985esac
4986if test "x$ac_cv_prog_cc_c89" != xno; then :
4987
4988fi
4989
4990ac_ext=c
4991ac_cpp='$CPP $CPPFLAGS'
4992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995DEPDIR="${am__leading_dot}deps"
4996
4997ac_config_commands="$ac_config_commands depfiles"
4998
4999
5000am_make=${MAKE-make}
5001cat > confinc << 'END'
5002am__doit:
5003 @echo this is the am__doit target
5004.PHONY: am__doit
5005END
5006# If we don't find an include directive, just comment out the code.
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5008$as_echo_n "checking for style of include used by $am_make... " >&6; }
5009am__include="#"
5010am__quote=
5011_am_result=none
5012# First try GNU make style include.
5013echo "include confinc" > confmf
5014# Ignore all kinds of additional output from `make'.
5015case `$am_make -s -f confmf 2> /dev/null` in #(
5016*the\ am__doit\ target*)
5017 am__include=include
5018 am__quote=
5019 _am_result=GNU
5020 ;;
5021esac
5022# Now try BSD make style include.
5023if test "$am__include" = "#"; then
5024 echo '.include "confinc"' > confmf
5025 case `$am_make -s -f confmf 2> /dev/null` in #(
5026 *the\ am__doit\ target*)
5027 am__include=.include
5028 am__quote="\""
5029 _am_result=BSD
5030 ;;
5031 esac
5032fi
5033
5034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5036$as_echo "$_am_result" >&6; }
5037rm -f confinc confmf
5038
5039# Check whether --enable-dependency-tracking was given.
5040if test "${enable_dependency_tracking+set}" = set; then :
5041 enableval=$enable_dependency_tracking;
5042fi
5043
5044if test "x$enable_dependency_tracking" != xno; then
5045 am_depcomp="$ac_aux_dir/depcomp"
5046 AMDEPBACKSLASH='\'
5047fi
5048 if test "x$enable_dependency_tracking" != xno; then
5049 AMDEP_TRUE=
5050 AMDEP_FALSE='#'
5051else
5052 AMDEP_TRUE='#'
5053 AMDEP_FALSE=
5054fi
5055
5056
5057
5058depcc="$CC" am_compiler_list=
5059
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5061$as_echo_n "checking dependency style of $depcc... " >&6; }
d6974efa 5062if ${am_cv_CC_dependencies_compiler_type+:} false; then :
743c80a7
PE
5063 $as_echo_n "(cached) " >&6
5064else
5065 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5066 # We make a subdir and do the tests there. Otherwise we can end up
5067 # making bogus files that we don't know about and never remove. For
5068 # instance it was reported that on HP-UX the gcc test will end up
5069 # making a dummy file named `D' -- because `-MD' means `put the output
5070 # in D'.
5071 mkdir conftest.dir
5072 # Copy depcomp to subdir because otherwise we won't find it if we're
5073 # using a relative directory.
5074 cp "$am_depcomp" conftest.dir
5075 cd conftest.dir
5076 # We will build objects and dependencies in a subdirectory because
5077 # it helps to detect inapplicable dependency modes. For instance
5078 # both Tru64's cc and ICC support -MD to output dependencies as a
5079 # side effect of compilation, but ICC will put the dependencies in
5080 # the current directory while Tru64 will put them in the object
5081 # directory.
5082 mkdir sub
5083
5084 am_cv_CC_dependencies_compiler_type=none
5085 if test "$am_compiler_list" = ""; then
5086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5087 fi
5088 am__universal=false
5089 case " $depcc " in #(
5090 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5091 esac
5092
5093 for depmode in $am_compiler_list; do
5094 # Setup a source with many dependencies, because some compilers
5095 # like to wrap large dependency lists on column 80 (with \), and
5096 # we should not choose a depcomp mode which is confused by this.
5097 #
5098 # We need to recreate these files for each test, as the compiler may
5099 # overwrite some of them when testing with obscure command lines.
5100 # This happens at least with the AIX C compiler.
5101 : > sub/conftest.c
5102 for i in 1 2 3 4 5 6; do
5103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5104 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5105 # Solaris 8's {/usr,}/bin/sh.
5106 touch sub/conftst$i.h
5107 done
5108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5109
5110 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5111 # mode. It turns out that the SunPro C++ compiler does not properly
5112 # handle `-M -o', and we need to detect this. Also, some Intel
5113 # versions had trouble with output in subdirs
5114 am__obj=sub/conftest.${OBJEXT-o}
5115 am__minus_obj="-o $am__obj"
5116 case $depmode in
5117 gcc)
5118 # This depmode causes a compiler race in universal mode.
5119 test "$am__universal" = false || continue
5120 ;;
5121 nosideeffect)
5122 # after this tag, mechanisms are not by side-effect, so they'll
5123 # only be used when explicitly requested
5124 if test "x$enable_dependency_tracking" = xyes; then
5125 continue
5126 else
5127 break
5128 fi
5129 ;;
5130 msvisualcpp | msvcmsys)
5131 # This compiler won't grok `-c -o', but also, the minuso test has
5132 # not run yet. These depmodes are late enough in the game, and
5133 # so weak that their functioning should not be impacted.
5134 am__obj=conftest.${OBJEXT-o}
5135 am__minus_obj=
5136 ;;
5137 none) break ;;
5138 esac
5139 if depmode=$depmode \
5140 source=sub/conftest.c object=$am__obj \
5141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5142 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5143 >/dev/null 2>conftest.err &&
5144 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5146 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5148 # icc doesn't choke on unknown options, it will just issue warnings
5149 # or remarks (even with -Werror). So we grep stderr for any message
5150 # that says an option was ignored or not supported.
5151 # When given -MP, icc 7.0 and 7.1 complain thusly:
5152 # icc: Command line warning: ignoring option '-M'; no argument required
5153 # The diagnosis changed in icc 8.0:
5154 # icc: Command line remark: option '-MP' not supported
5155 if (grep 'ignoring option' conftest.err ||
5156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5157 am_cv_CC_dependencies_compiler_type=$depmode
5158 break
5159 fi
5160 fi
5161 done
5162
5163 cd ..
5164 rm -rf conftest.dir
5165else
5166 am_cv_CC_dependencies_compiler_type=none
5167fi
5168
5169fi
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5171$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5172CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5173
5174 if
5175 test "x$enable_dependency_tracking" != xno \
5176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5177 am__fastdepCC_TRUE=
5178 am__fastdepCC_FALSE='#'
5179else
5180 am__fastdepCC_TRUE='#'
5181 am__fastdepCC_FALSE=
5182fi
5183
5184
5185if test "x$CC" != xcc; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5187$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5188else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5190$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5191fi
5192set dummy $CC; ac_cc=`$as_echo "$2" |
5193 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
d6974efa 5194if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
743c80a7
PE
5195 $as_echo_n "(cached) " >&6
5196else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h. */
5199
5200int
5201main ()
5202{
5203
5204 ;
5205 return 0;
5206}
5207_ACEOF
5208# Make sure it works both with $CC and with simple cc.
5209# We do the test twice because some compilers refuse to overwrite an
5210# existing .o file with -o, though they will create one.
5211ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5212rm -f conftest2.*
5213if { { case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216esac
5217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5218$as_echo "$ac_try_echo"; } >&5
5219 (eval "$ac_try") 2>&5
5220 ac_status=$?
5221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5222 test $ac_status = 0; } &&
5223 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226esac
5227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5228$as_echo "$ac_try_echo"; } >&5
5229 (eval "$ac_try") 2>&5
5230 ac_status=$?
5231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5232 test $ac_status = 0; };
5233then
5234 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5235 if test "x$CC" != xcc; then
5236 # Test first that cc exists at all.
5237 if { ac_try='cc -c conftest.$ac_ext >&5'
5238 { { case "(($ac_try" in
5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240 *) ac_try_echo=$ac_try;;
5241esac
5242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5243$as_echo "$ac_try_echo"; } >&5
5244 (eval "$ac_try") 2>&5
5245 ac_status=$?
5246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5247 test $ac_status = 0; }; }; then
5248 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5249 rm -f conftest2.*
5250 if { { case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253esac
5254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5255$as_echo "$ac_try_echo"; } >&5
5256 (eval "$ac_try") 2>&5
5257 ac_status=$?
5258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; } &&
5260 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263esac
5264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5265$as_echo "$ac_try_echo"; } >&5
5266 (eval "$ac_try") 2>&5
5267 ac_status=$?
5268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269 test $ac_status = 0; };
5270 then
5271 # cc works too.
5272 :
5273 else
5274 # cc exists but doesn't like -o.
5275 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5276 fi
5277 fi
5278 fi
5279else
5280 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5281fi
5282rm -f core conftest*
5283
5284fi
5285if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5287$as_echo "yes" >&6; }
5288else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290$as_echo "no" >&6; }
5291
5292$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5293
5294fi
5295
5296# FIXME: we rely on the cache variable name because
5297# there is no other way.
5298set dummy $CC
5299am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5300eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5301if test "$am_t" != yes; then
5302 # Losing compiler, so override with the script.
5303 # FIXME: It is wrong to rewrite CC.
5304 # But if we don't then we get into trouble of one sort or another.
5305 # A longer-term fix would be to have automake use am__CC in this case,
5306 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5307 CC="$am_aux_dir/compile $CC"
5308fi
5309
5310
5311
5312# Initialize gnulib right after verifying that the C compiler works.
5313if test -n "$ac_tool_prefix"; then
5314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5318if ${ac_cv_prog_RANLIB+:} false; then :
743c80a7
PE
5319 $as_echo_n "(cached) " >&6
5320else
5321 if test -n "$RANLIB"; then
5322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5323else
5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335done
5336 done
5337IFS=$as_save_IFS
5338
5339fi
5340fi
5341RANLIB=$ac_cv_prog_RANLIB
5342if test -n "$RANLIB"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5344$as_echo "$RANLIB" >&6; }
5345else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347$as_echo "no" >&6; }
5348fi
5349
5350
5351fi
5352if test -z "$ac_cv_prog_RANLIB"; then
5353 ac_ct_RANLIB=$RANLIB
5354 # Extract the first word of "ranlib", so it can be a program name with args.
5355set dummy ranlib; ac_word=$2
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5358if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
743c80a7
PE
5359 $as_echo_n "(cached) " >&6
5360else
5361 if test -n "$ac_ct_RANLIB"; then
5362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5363else
5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_ac_ct_RANLIB="ranlib"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375done
5376 done
5377IFS=$as_save_IFS
067d23c9
KY
5378
5379fi
743c80a7
PE
5380fi
5381ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5382if test -n "$ac_ct_RANLIB"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5384$as_echo "$ac_ct_RANLIB" >&6; }
5385else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387$as_echo "no" >&6; }
5388fi
067d23c9 5389
743c80a7
PE
5390 if test "x$ac_ct_RANLIB" = x; then
5391 RANLIB=":"
5392 else
5393 case $cross_compiling:$ac_tool_warned in
5394yes:)
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5397ac_tool_warned=yes ;;
5398esac
5399 RANLIB=$ac_ct_RANLIB
5400 fi
5401else
5402 RANLIB="$ac_cv_prog_RANLIB"
067d23c9
KY
5403fi
5404
743c80a7 5405
067d23c9
KY
5406ac_ext=c
5407ac_cpp='$CPP $CPPFLAGS'
5408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5412$as_echo_n "checking how to run the C preprocessor... " >&6; }
5413# On Suns, sometimes $CPP names a directory.
5414if test -n "$CPP" && test -d "$CPP"; then
5415 CPP=
5416fi
5417if test -z "$CPP"; then
d6974efa 5418 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
5419 $as_echo_n "(cached) " >&6
5420else
5421 # Double quotes because CPP needs to be expanded
5422 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5423 do
5424 ac_preproc_ok=false
5425for ac_c_preproc_warn_flag in '' yes
5426do
5427 # Use a header file that comes with gcc, so configuring glibc
5428 # with a fresh cross-compiler works.
5429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5430 # <limits.h> exists even on freestanding compilers.
5431 # On the NeXT, cc -E runs the code through the compiler's parser,
5432 # not just through cpp. "Syntax error" is here to catch this case.
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h. */
5435#ifdef __STDC__
5436# include <limits.h>
5437#else
5438# include <assert.h>
5439#endif
5440 Syntax error
5441_ACEOF
5442if ac_fn_c_try_cpp "$LINENO"; then :
5443
5444else
5445 # Broken: fails on valid input.
5446continue
5447fi
2018939f 5448rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5449
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h. */
5454#include <ac_nonexistent.h>
5455_ACEOF
5456if ac_fn_c_try_cpp "$LINENO"; then :
5457 # Broken: success on invalid input.
5458continue
5459else
5460 # Passes both tests.
5461ac_preproc_ok=:
5462break
5463fi
2018939f 5464rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5465
5466done
5467# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5468rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5469if $ac_preproc_ok; then :
5470 break
5471fi
5472
5473 done
5474 ac_cv_prog_CPP=$CPP
5475
5476fi
5477 CPP=$ac_cv_prog_CPP
5478else
5479 ac_cv_prog_CPP=$CPP
5480fi
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5482$as_echo "$CPP" >&6; }
5483ac_preproc_ok=false
5484for ac_c_preproc_warn_flag in '' yes
5485do
5486 # Use a header file that comes with gcc, so configuring glibc
5487 # with a fresh cross-compiler works.
5488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5489 # <limits.h> exists even on freestanding compilers.
5490 # On the NeXT, cc -E runs the code through the compiler's parser,
5491 # not just through cpp. "Syntax error" is here to catch this case.
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h. */
5494#ifdef __STDC__
5495# include <limits.h>
5496#else
5497# include <assert.h>
5498#endif
5499 Syntax error
5500_ACEOF
5501if ac_fn_c_try_cpp "$LINENO"; then :
5502
5503else
5504 # Broken: fails on valid input.
5505continue
5506fi
2018939f 5507rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5508
5509 # OK, works on sane cases. Now check whether nonexistent headers
5510 # can be detected and how.
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h. */
5513#include <ac_nonexistent.h>
5514_ACEOF
5515if ac_fn_c_try_cpp "$LINENO"; then :
5516 # Broken: success on invalid input.
5517continue
5518else
5519 # Passes both tests.
5520ac_preproc_ok=:
5521break
5522fi
2018939f 5523rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5524
5525done
5526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5527rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5528if $ac_preproc_ok; then :
5529
5530else
5531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 5533as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 5534See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5535fi
5536
5537ac_ext=c
5538ac_cpp='$CPP $CPPFLAGS'
5539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541ac_compiler_gnu=$ac_cv_c_compiler_gnu
5542
5543
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5545$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d6974efa 5546if ${ac_cv_path_GREP+:} false; then :
067d23c9
KY
5547 $as_echo_n "(cached) " >&6
5548else
5549 if test -z "$GREP"; then
5550 ac_path_GREP_found=false
5551 # Loop through the user's path and test for each of PROGNAME-LIST
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_prog in grep ggrep; do
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5561# Check for GNU ac_path_GREP and select it if it is found.
5562 # Check for GNU $ac_path_GREP
5563case `"$ac_path_GREP" --version 2>&1` in
5564*GNU*)
5565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5566*)
5567 ac_count=0
5568 $as_echo_n 0123456789 >"conftest.in"
5569 while :
5570 do
5571 cat "conftest.in" "conftest.in" >"conftest.tmp"
5572 mv "conftest.tmp" "conftest.in"
5573 cp "conftest.in" "conftest.nl"
5574 $as_echo 'GREP' >> "conftest.nl"
5575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5577 as_fn_arith $ac_count + 1 && ac_count=$as_val
5578 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5579 # Best one so far, save it but keep looking for a better one
5580 ac_cv_path_GREP="$ac_path_GREP"
5581 ac_path_GREP_max=$ac_count
5582 fi
5583 # 10*(2^10) chars as input seems more than enough
5584 test $ac_count -gt 10 && break
5585 done
5586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5587esac
5588
5589 $ac_path_GREP_found && break 3
5590 done
5591 done
5592 done
5593IFS=$as_save_IFS
5594 if test -z "$ac_cv_path_GREP"; then
2018939f 5595 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5596 fi
5597else
5598 ac_cv_path_GREP=$GREP
5599fi
5600
5601fi
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5603$as_echo "$ac_cv_path_GREP" >&6; }
5604 GREP="$ac_cv_path_GREP"
5605
5606
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5608$as_echo_n "checking for egrep... " >&6; }
d6974efa 5609if ${ac_cv_path_EGREP+:} false; then :
067d23c9
KY
5610 $as_echo_n "(cached) " >&6
5611else
5612 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5613 then ac_cv_path_EGREP="$GREP -E"
5614 else
5615 if test -z "$EGREP"; then
5616 ac_path_EGREP_found=false
5617 # Loop through the user's path and test for each of PROGNAME-LIST
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5620do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_prog in egrep; do
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5626 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5627# Check for GNU ac_path_EGREP and select it if it is found.
5628 # Check for GNU $ac_path_EGREP
5629case `"$ac_path_EGREP" --version 2>&1` in
5630*GNU*)
5631 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5632*)
5633 ac_count=0
5634 $as_echo_n 0123456789 >"conftest.in"
5635 while :
5636 do
5637 cat "conftest.in" "conftest.in" >"conftest.tmp"
5638 mv "conftest.tmp" "conftest.in"
5639 cp "conftest.in" "conftest.nl"
5640 $as_echo 'EGREP' >> "conftest.nl"
5641 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5643 as_fn_arith $ac_count + 1 && ac_count=$as_val
5644 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5645 # Best one so far, save it but keep looking for a better one
5646 ac_cv_path_EGREP="$ac_path_EGREP"
5647 ac_path_EGREP_max=$ac_count
5648 fi
5649 # 10*(2^10) chars as input seems more than enough
5650 test $ac_count -gt 10 && break
5651 done
5652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5653esac
5654
5655 $ac_path_EGREP_found && break 3
5656 done
5657 done
5658 done
5659IFS=$as_save_IFS
5660 if test -z "$ac_cv_path_EGREP"; then
2018939f 5661 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5662 fi
5663else
5664 ac_cv_path_EGREP=$EGREP
5665fi
5666
5667 fi
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5670$as_echo "$ac_cv_path_EGREP" >&6; }
5671 EGREP="$ac_cv_path_EGREP"
5672
5673
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5675$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 5676if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
5677 $as_echo_n "(cached) " >&6
5678else
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681#include <stdlib.h>
5682#include <stdarg.h>
5683#include <string.h>
5684#include <float.h>
5685
5686int
5687main ()
5688{
5689
5690 ;
5691 return 0;
5692}
5693_ACEOF
5694if ac_fn_c_try_compile "$LINENO"; then :
5695 ac_cv_header_stdc=yes
5696else
5697 ac_cv_header_stdc=no
5698fi
5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700
5701if test $ac_cv_header_stdc = yes; then
5702 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h. */
5705#include <string.h>
5706
5707_ACEOF
5708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709 $EGREP "memchr" >/dev/null 2>&1; then :
5710
5711else
5712 ac_cv_header_stdc=no
5713fi
5714rm -f conftest*
5715
5716fi
5717
5718if test $ac_cv_header_stdc = yes; then
5719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h. */
5722#include <stdlib.h>
5723
5724_ACEOF
5725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5726 $EGREP "free" >/dev/null 2>&1; then :
5727
5728else
5729 ac_cv_header_stdc=no
5730fi
5731rm -f conftest*
5732
5733fi
5734
5735if test $ac_cv_header_stdc = yes; then
5736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5737 if test "$cross_compiling" = yes; then :
5738 :
5739else
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h. */
5742#include <ctype.h>
5743#include <stdlib.h>
5744#if ((' ' & 0x0FF) == 0x020)
5745# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5746# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5747#else
5748# define ISLOWER(c) \
5749 (('a' <= (c) && (c) <= 'i') \
5750 || ('j' <= (c) && (c) <= 'r') \
5751 || ('s' <= (c) && (c) <= 'z'))
5752# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5753#endif
5754
5755#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5756int
5757main ()
5758{
5759 int i;
5760 for (i = 0; i < 256; i++)
5761 if (XOR (islower (i), ISLOWER (i))
5762 || toupper (i) != TOUPPER (i))
5763 return 2;
5764 return 0;
5765}
5766_ACEOF
5767if ac_fn_c_try_run "$LINENO"; then :
5768
5769else
5770 ac_cv_header_stdc=no
5771fi
5772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5773 conftest.$ac_objext conftest.beam conftest.$ac_ext
5774fi
5775
5776fi
5777fi
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5779$as_echo "$ac_cv_header_stdc" >&6; }
5780if test $ac_cv_header_stdc = yes; then
5781
5782$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5783
5784fi
5785
5786# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5787for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5788 inttypes.h stdint.h unistd.h
5789do :
5790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5791ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5792"
2018939f 5793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
5794 cat >>confdefs.h <<_ACEOF
5795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5796_ACEOF
5797
5798fi
5799
5800done
5801
5802
5803
1fd182f0
PE
5804
5805
067d23c9 5806 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d6974efa 5807if test "x$ac_cv_header_minix_config_h" = xyes; then :
067d23c9
KY
5808 MINIX=yes
5809else
5810 MINIX=
5811fi
5812
5813
5814 if test "$MINIX" = yes; then
5815
5816$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5817
5818
5819$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5820
5821
5822$as_echo "#define _MINIX 1" >>confdefs.h
5823
5824 fi
5825
1fd182f0
PE
5826 case "$host_os" in
5827 hpux*)
5828
5829$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5830
5831 ;;
5832 esac
5833
067d23c9
KY
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5836$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d6974efa 5837if ${ac_cv_safe_to_define___extensions__+:} false; then :
067d23c9
KY
5838 $as_echo_n "(cached) " >&6
5839else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h. */
5842
1fd182f0
PE
5843# define __EXTENSIONS__ 1
5844 $ac_includes_default
067d23c9
KY
5845int
5846main ()
5847{
5848
5849 ;
5850 return 0;
5851}
5852_ACEOF
5853if ac_fn_c_try_compile "$LINENO"; then :
5854 ac_cv_safe_to_define___extensions__=yes
5855else
5856 ac_cv_safe_to_define___extensions__=no
5857fi
5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859fi
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5861$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5862 test $ac_cv_safe_to_define___extensions__ = yes &&
5863 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5864
5865 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5866
5867 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5868
5869 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5870
5871 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5872
5873
5874
1fd182f0
PE
5875
5876
5877
5878
5879
5880
5881
5882 # Code from module arg-nonnull:
5883 # Code from module c++defs:
f737437b 5884 # Code from module dtoastr:
1fd182f0
PE
5885 # Code from module extensions:
5886
79ab4b7f 5887 # Code from module getloadavg:
e275c824
PE
5888 # Code from module getopt-gnu:
5889 # Code from module getopt-posix:
5890 # Code from module gettext-h:
67342916 5891 # Code from module ignore-value:
1fd182f0
PE
5892 # Code from module include_next:
5893 # Code from module intprops:
5894 # Code from module mktime:
5895 # Code from module multiarch:
16c3e636 5896 # Code from module stdbool:
1fd182f0 5897 # Code from module stddef:
79ab4b7f 5898 # Code from module stdlib:
16c3e636 5899 # Code from module strftime:
1fd182f0
PE
5900 # Code from module time:
5901 # Code from module time_r:
e275c824 5902 # Code from module unistd:
1fd182f0
PE
5903 # Code from module warn-on-use:
5904
5905
5906# On Suns, sometimes $CPP names a directory.
5907if test -n "$CPP" && test -d "$CPP"; then
5908 CPP=
5909fi
5910
5911## If not using gcc, and on Solaris, and no CPP specified, see if
5912## using a Sun compiler, which needs -Xs to prevent whitespace.
5913if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5914 test x"$CPP" = x; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5916$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
d6974efa 5917 if ${emacs_cv_sunpro_c+:} false; then :
1fd182f0
PE
5918 $as_echo_n "(cached) " >&6
5919else
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h. */
5922
5923int
5924main ()
5925{
5926#ifndef __SUNPRO_C
5927fail;
5928#endif
5929
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934if ac_fn_c_try_link "$LINENO"; then :
5935 emacs_cv_sunpro_c=yes
5936else
5937 emacs_cv_sunpro_c=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext \
5940 conftest$ac_exeext conftest.$ac_ext
5941fi
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5944$as_echo "$emacs_cv_sunpro_c" >&6; }
5945
5946 if test x"$emacs_cv_sunpro_c" = xyes; then
5947 NON_GNU_CPP="$CC -E -Xs"
5948 fi
5949fi
5950
5951#### Some systems specify a CPP to use unless we are using GCC.
5952#### Now that we know whether we are using GCC, we can decide whether
5953#### to use that one.
5954if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5955then
5956 CPP="$NON_GNU_CPP"
5957fi
5958
5959#### Some systems specify a CC to use unless we are using GCC.
5960#### Now that we know whether we are using GCC, we can decide whether
5961#### to use that one.
5962if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5963 test x$cc_specified != xyes
5964then
5965 CC="$NON_GNU_CC"
5966fi
5967
5968if test x$GCC = xyes; then
5969 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5970else
5971 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5972fi
5973
067d23c9
KY
5974### Use -Wno-pointer-sign if the compiler supports it
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5976$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5977SAVE_CFLAGS="$CFLAGS"
5978CFLAGS="$CFLAGS -Wno-pointer-sign"
5979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h. */
5981
5982int
5983main ()
5984{
5985
5986 ;
5987 return 0;
5988}
5989_ACEOF
5990if ac_fn_c_try_compile "$LINENO"; then :
5991 has_option=yes
5992else
5993 has_option=no
5994fi
5995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996if test $has_option = yes; then
5997 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5998fi
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6000$as_echo "$has_option" >&6; }
6001CFLAGS="$SAVE_CFLAGS"
6002unset has_option
6003unset SAVE_CFLAGS
6004
6005### Use -Wdeclaration-after-statement if the compiler supports it
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6007$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6008SAVE_CFLAGS="$CFLAGS"
6009CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h. */
6012
6013int
6014main ()
6015{
6016
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021if ac_fn_c_try_compile "$LINENO"; then :
6022 has_option=yes
6023else
6024 has_option=no
6025fi
6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027if test $has_option = yes; then
6028 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6029fi
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6031$as_echo "$has_option" >&6; }
6032CFLAGS="$SAVE_CFLAGS"
6033unset has_option
6034unset SAVE_CFLAGS
6035
6036### Use -Wold-style-definition if the compiler supports it
6037# This can be removed when conversion to standard C is finished.
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6039$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6040SAVE_CFLAGS="$CFLAGS"
6041CFLAGS="$CFLAGS -Wold-style-definition"
6042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h. */
6044
6045int
6046main ()
6047{
6048
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"; then :
6054 has_option=yes
6055else
6056 has_option=no
6057fi
6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059if test $has_option = yes; then
6060 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6061fi
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6063$as_echo "$has_option" >&6; }
6064CFLAGS="$SAVE_CFLAGS"
6065unset has_option
6066unset SAVE_CFLAGS
6067
6068### Use -Wimplicit-function-declaration if the compiler supports it
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6070$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6071SAVE_CFLAGS="$CFLAGS"
6072CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h. */
6075
6076int
6077main ()
6078{
6079
6080 ;
6081 return 0;
6082}
6083_ACEOF
6084if ac_fn_c_try_compile "$LINENO"; then :
6085 has_option=yes
6086else
6087 has_option=no
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090if test $has_option = yes; then
6091 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6092fi
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6094$as_echo "$has_option" >&6; }
6095CFLAGS="$SAVE_CFLAGS"
6096unset has_option
6097unset SAVE_CFLAGS
6098
6099
6100
6101
6102#### Some other nice autoconf tests.
6103
6104ac_ext=c
6105ac_cpp='$CPP $CPPFLAGS'
6106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108ac_compiler_gnu=$ac_cv_c_compiler_gnu
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6110$as_echo_n "checking how to run the C preprocessor... " >&6; }
6111# On Suns, sometimes $CPP names a directory.
6112if test -n "$CPP" && test -d "$CPP"; then
6113 CPP=
6114fi
6115if test -z "$CPP"; then
d6974efa 6116 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
6117 $as_echo_n "(cached) " >&6
6118else
6119 # Double quotes because CPP needs to be expanded
6120 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6121 do
6122 ac_preproc_ok=false
6123for ac_c_preproc_warn_flag in '' yes
6124do
6125 # Use a header file that comes with gcc, so configuring glibc
6126 # with a fresh cross-compiler works.
6127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6128 # <limits.h> exists even on freestanding compilers.
6129 # On the NeXT, cc -E runs the code through the compiler's parser,
6130 # not just through cpp. "Syntax error" is here to catch this case.
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132/* end confdefs.h. */
6133#ifdef __STDC__
6134# include <limits.h>
6135#else
6136# include <assert.h>
6137#endif
6138 Syntax error
6139_ACEOF
6140if ac_fn_c_try_cpp "$LINENO"; then :
6141
6142else
6143 # Broken: fails on valid input.
6144continue
6145fi
2018939f 6146rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6147
6148 # OK, works on sane cases. Now check whether nonexistent headers
6149 # can be detected and how.
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151/* end confdefs.h. */
6152#include <ac_nonexistent.h>
6153_ACEOF
6154if ac_fn_c_try_cpp "$LINENO"; then :
6155 # Broken: success on invalid input.
6156continue
6157else
6158 # Passes both tests.
6159ac_preproc_ok=:
6160break
6161fi
2018939f 6162rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6163
6164done
6165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6166rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6167if $ac_preproc_ok; then :
6168 break
6169fi
6170
6171 done
6172 ac_cv_prog_CPP=$CPP
6173
6174fi
6175 CPP=$ac_cv_prog_CPP
6176else
6177 ac_cv_prog_CPP=$CPP
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6180$as_echo "$CPP" >&6; }
6181ac_preproc_ok=false
6182for ac_c_preproc_warn_flag in '' yes
6183do
6184 # Use a header file that comes with gcc, so configuring glibc
6185 # with a fresh cross-compiler works.
6186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187 # <limits.h> exists even on freestanding compilers.
6188 # On the NeXT, cc -E runs the code through the compiler's parser,
6189 # not just through cpp. "Syntax error" is here to catch this case.
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h. */
6192#ifdef __STDC__
6193# include <limits.h>
6194#else
6195# include <assert.h>
6196#endif
6197 Syntax error
6198_ACEOF
6199if ac_fn_c_try_cpp "$LINENO"; then :
6200
6201else
6202 # Broken: fails on valid input.
6203continue
6204fi
2018939f 6205rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6206
6207 # OK, works on sane cases. Now check whether nonexistent headers
6208 # can be detected and how.
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h. */
6211#include <ac_nonexistent.h>
6212_ACEOF
6213if ac_fn_c_try_cpp "$LINENO"; then :
6214 # Broken: success on invalid input.
6215continue
6216else
6217 # Passes both tests.
6218ac_preproc_ok=:
6219break
6220fi
2018939f 6221rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6222
6223done
6224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6225rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6226if $ac_preproc_ok; then :
6227
6228else
6229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 6231as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 6232See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
6233fi
6234
6235ac_ext=c
6236ac_cpp='$CPP $CPPFLAGS'
6237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6239ac_compiler_gnu=$ac_cv_c_compiler_gnu
6240
067d23c9
KY
6241
6242if test "x$RANLIB" = x; then
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6245set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6248if ${ac_cv_prog_RANLIB+:} false; then :
067d23c9
KY
6249 $as_echo_n "(cached) " >&6
6250else
6251 if test -n "$RANLIB"; then
6252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265done
6266 done
6267IFS=$as_save_IFS
6268
6269fi
6270fi
6271RANLIB=$ac_cv_prog_RANLIB
6272if test -n "$RANLIB"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6274$as_echo "$RANLIB" >&6; }
6275else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
6279
6280
6281fi
6282if test -z "$ac_cv_prog_RANLIB"; then
6283 ac_ct_RANLIB=$RANLIB
6284 # Extract the first word of "ranlib", so it can be a program name with args.
6285set dummy ranlib; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6288if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
067d23c9
KY
6289 $as_echo_n "(cached) " >&6
6290else
6291 if test -n "$ac_ct_RANLIB"; then
6292 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_ac_ct_RANLIB="ranlib"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
6304 fi
6305done
6306 done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6312if test -n "$ac_ct_RANLIB"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6314$as_echo "$ac_ct_RANLIB" >&6; }
6315else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320 if test "x$ac_ct_RANLIB" = x; then
6321 RANLIB=":"
6322 else
6323 case $cross_compiling:$ac_tool_warned in
6324yes:)
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327ac_tool_warned=yes ;;
6328esac
6329 RANLIB=$ac_ct_RANLIB
6330 fi
6331else
6332 RANLIB="$ac_cv_prog_RANLIB"
6333fi
6334
6335fi
6336
6337## Although we're running on an amd64 kernel, we're actually compiling for
6338## the x86 architecture. The user should probably have provided an
6339## explicit --build to `configure', but if everything else than the kernel
6340## is running in i386 mode, we can help them out.
6341if test "$machine" = "amdx86-64"; then
6342 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
d6974efa 6343if test "x$ac_cv_have_decl_i386" = xyes; then :
067d23c9
KY
6344
6345fi
6346
6347 if test "$ac_cv_have_decl_i386" = "yes"; then
6348 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6349 machine=intel386
6350 machfile="m/${machine}.h"
6351 fi
6352fi
6353
6354# Extract the first word of "install-info", so it can be a program name with args.
6355set dummy install-info; ac_word=$2
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6358if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6359 $as_echo_n "(cached) " >&6
6360else
6361 case $INSTALL_INFO in
6362 [\\/]* | ?:[\\/]*)
6363 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6364 ;;
6365 *)
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377done
6378 done
6379IFS=$as_save_IFS
6380
6381 ;;
6382esac
6383fi
6384INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6385if test -n "$INSTALL_INFO"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6387$as_echo "$INSTALL_INFO" >&6; }
6388else
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390$as_echo "no" >&6; }
6391fi
6392
6393
6394# Extract the first word of "install-info", so it can be a program name with args.
6395set dummy install-info; ac_word=$2
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6398if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6399 $as_echo_n "(cached) " >&6
6400else
6401 case $INSTALL_INFO in
6402 [\\/]* | ?:[\\/]*)
6403 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6404 ;;
6405 *)
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in /usr/sbin
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417done
6418 done
6419IFS=$as_save_IFS
6420
6421 ;;
6422esac
6423fi
6424INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6425if test -n "$INSTALL_INFO"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6427$as_echo "$INSTALL_INFO" >&6; }
6428else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430$as_echo "no" >&6; }
6431fi
6432
6433
6434# Extract the first word of "install-info", so it can be a program name with args.
6435set dummy install-info; ac_word=$2
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6438if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6439 $as_echo_n "(cached) " >&6
6440else
6441 case $INSTALL_INFO in
6442 [\\/]* | ?:[\\/]*)
6443 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6444 ;;
6445 *)
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in /sbin
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457done
6458 done
6459IFS=$as_save_IFS
6460
6461 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6462 ;;
6463esac
6464fi
6465INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6466if test -n "$INSTALL_INFO"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6468$as_echo "$INSTALL_INFO" >&6; }
6469else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474
6475# Extract the first word of "gzip", so it can be a program name with args.
6476set dummy gzip; ac_word=$2
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6479if ${ac_cv_path_GZIP_PROG+:} false; then :
067d23c9
KY
6480 $as_echo_n "(cached) " >&6
6481else
6482 case $GZIP_PROG in
6483 [\\/]* | ?:[\\/]*)
6484 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6485 ;;
6486 *)
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498done
6499 done
6500IFS=$as_save_IFS
6501
6502 ;;
6503esac
6504fi
6505GZIP_PROG=$ac_cv_path_GZIP_PROG
6506if test -n "$GZIP_PROG"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6508$as_echo "$GZIP_PROG" >&6; }
6509else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511$as_echo "no" >&6; }
6512fi
6513
6514
6515
6516
6517## Need makeinfo >= 4.6 (?) to build the manuals.
6518# Extract the first word of "makeinfo", so it can be a program name with args.
6519set dummy makeinfo; ac_word=$2
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6522if ${ac_cv_path_MAKEINFO+:} false; then :
067d23c9
KY
6523 $as_echo_n "(cached) " >&6
6524else
6525 case $MAKEINFO in
6526 [\\/]* | ?:[\\/]*)
6527 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6528 ;;
6529 *)
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541done
6542 done
6543IFS=$as_save_IFS
6544
6545 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6546 ;;
6547esac
6548fi
6549MAKEINFO=$ac_cv_path_MAKEINFO
6550if test -n "$MAKEINFO"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6552$as_echo "$MAKEINFO" >&6; }
6553else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556fi
6557
6558
6559if test "$MAKEINFO" != "no" && \
6560 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
6561 MAKEINFO=no
6562fi
6563
6564## Makeinfo is unusual. For a released Emacs, the manuals are
6565## pre-built, and not deleted by the normal clean rules. makeinfo is
6566## therefore in the category of "special tools" not normally required, which
6567## configure does not have to check for (eg autoconf itself).
6568## In a Bazaar checkout on the other hand, the manuals are not included.
6569## So makeinfo is a requirement to build from Bazaar, and configure
6570## should test for it as it does for any other build requirement.
6571## We use the presence of $srcdir/info/emacs to distinguish a release,
6572## with pre-built manuals, from a Bazaar checkout.
96f129d5
GM
6573HAVE_MAKEINFO=yes
6574
067d23c9 6575if test "$MAKEINFO" = "no"; then
96f129d5 6576 MAKEINFO=makeinfo
067d23c9 6577 if test "x${with_makeinfo}" = "xno"; then
96f129d5 6578 HAVE_MAKEINFO=no
067d23c9 6579 elif test ! -e $srcdir/info/emacs; then
2018939f 6580 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
067d23c9
KY
6581source tree does not seem to have pre-built manuals in the \`info' directory.
6582Either install a suitable version of makeinfo, or re-run configure
6583with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6584 fi
6585fi
6586
6587
96f129d5 6588
067d23c9
KY
6589if test x$GCC = xyes; then
6590 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6591 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6592else
6593 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6594 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6595fi
6596
6597
6598late_LDFLAGS=$LDFLAGS
6599if test x$GCC = xyes; then
6600 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6601else
6602 LDFLAGS="$LDFLAGS -znocombreloc"
6603fi
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6606$as_echo_n "checking for -znocombreloc... " >&6; }
6607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608/* end confdefs.h. */
6609
6610int
6611main ()
6612{
6613
6614 ;
6615 return 0;
6616}
6617_ACEOF
6618if ac_fn_c_try_link "$LINENO"; then :
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6620$as_echo "yes" >&6; }
6621else
6622 LDFLAGS=$late_LDFLAGS
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624$as_echo "no" >&6; }
6625fi
6626rm -f core conftest.err conftest.$ac_objext \
6627 conftest$ac_exeext conftest.$ac_ext
6628
6629
6630# The value of CPP is a quoted variable reference, so we need to do this
6631# to get its actual value...
6632CPP=`eval "echo $CPP"`
6633
6634
125c3718 6635test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
067d23c9 6636case "$opsys" in
125c3718
PE
6637 your-opsys-here) CANNOT_DUMP=yes ;;
6638esac
6639
6640test "$CANNOT_DUMP" = "yes" && \
067d23c9
KY
6641
6642$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6643
125c3718 6644
067d23c9
KY
6645
6646
6647
6648UNEXEC_OBJ=unexelf.o
6649case "$opsys" in
6650 # MSDOS uses unexcoff.o
6651 # MSWindows uses unexw32.o
6652 aix4-2)
6653 UNEXEC_OBJ=unexaix.o
6654 ;;
6655 cygwin)
6656 UNEXEC_OBJ=unexcw.o
6657 ;;
6658 darwin)
6659 UNEXEC_OBJ=unexmacosx.o
6660 ;;
6661 hpux10-20 | hpux11)
6662 UNEXEC_OBJ=unexhp9k800.o
6663 ;;
6664 sol2-10)
6665 # Use the Solaris dldump() function, called from unexsol.c, to dump
6666 # emacs, instead of the generic ELF dump code found in unexelf.c.
6667 # The resulting binary has a complete symbol table, and is better
6668 # for debugging and other observability tools (debuggers, pstack, etc).
6669 #
6670 # If you encounter a problem using dldump(), please consider sending
6671 # a message to the OpenSolaris tools-linking mailing list:
6672 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6673 #
6674 # It is likely that dldump() works with older Solaris too, but this has
6675 # not been tested, so for now this change is for Solaris 10 or newer.
6676 UNEXEC_OBJ=unexsol.o
6677 ;;
6678esac
6679
6680LD_SWITCH_SYSTEM=
6681case "$opsys" in
6682 freebsd)
6683 ## Let `ld' find image libs and similar things in /usr/local/lib.
6684 ## The system compiler, GCC, has apparently been modified to not
6685 ## look there, contrary to what a stock GCC would do.
6686 LD_SWITCH_SYSTEM=-L/usr/local/lib
6687 ;;
6688
6689 gnu-linux)
6690 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
d6a003a8 6691 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
067d23c9
KY
6692 ;;
6693
6694 netbsd)
6695 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6696 ;;
6697
6698 openbsd)
6699 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6700 ## otherwise Emacs dumps core on elf systems.
6701 LD_SWITCH_SYSTEM="-Z"
6702 ;;
6703esac
6704
6705
6706ac_link="$ac_link $LD_SWITCH_SYSTEM"
6707
6708## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6709## which has not been defined yet. When this was handled with cpp,
6710## it was expanded to null when configure sourced the s/*.h file.
6711## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6712## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6713## (or somesuch), but because it is supposed to go at the _front_
6714## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6715## Compare with the gnu-linux case below, which added to the end
6716## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6717## LD_SWITCH_SYSTEM_TEMACS.
6718case "$opsys" in
6719 netbsd|openbsd)
6720 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6721 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6722esac
6723
6724
6725C_SWITCH_MACHINE=
6726if test "$machine" = "alpha"; then
6727 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
d6974efa 6728if test "x$ac_cv_have_decl___ELF__" = xyes; then :
067d23c9
KY
6729
6730fi
6731
6732 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6733 ## With ELF, make sure that all common symbols get allocated to in the
6734 ## data section. Otherwise, the dump of temacs may miss variables in
6735 ## the shared library that have been initialized. For example, with
6736 ## GNU libc, __malloc_initialized would normally be resolved to the
6737 ## shared library's .bss section, which is fatal.
6738 if test "x$GCC" = "xyes"; then
6739 C_SWITCH_MACHINE="-fno-common"
6740 else
2018939f 6741 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
067d23c9
KY
6742 fi
6743 else
6744 UNEXEC_OBJ=unexalpha.o
6745 fi
6746fi
6747
6748
6749
6750
6751C_SWITCH_SYSTEM=
6752## Some programs in src produce warnings saying certain subprograms
6753## are too complex and need a MAXMEM value greater than 2000 for
6754## additional optimization. --nils@exp-math.uni-essen.de
6755test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6756 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6757## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6758## It is redundant in glibc2, since we define _GNU_SOURCE.
6759
6760
6761
6762LIBS_SYSTEM=
6763case "$opsys" in
6764 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6765 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6766
6767 freebsd) LIBS_SYSTEM="-lutil" ;;
6768
6769 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6770
79ab4b7f 6771 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
067d23c9
KY
6772
6773 ## Motif needs -lgen.
6774 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6775esac
6776
6777
6778
6779### Make sure subsequent tests use flags consistent with the build flags.
6780
6781if test x"${OVERRIDE_CPPFLAGS}" != x; then
6782 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6783else
6784 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6785fi
6786
067d23c9
KY
6787# Check whether --enable-largefile was given.
6788if test "${enable_largefile+set}" = set; then :
6789 enableval=$enable_largefile;
6790fi
6791
6792if test "$enable_largefile" != no; then
6793
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6795$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d6974efa 6796if ${ac_cv_sys_largefile_CC+:} false; then :
067d23c9
KY
6797 $as_echo_n "(cached) " >&6
6798else
6799 ac_cv_sys_largefile_CC=no
6800 if test "$GCC" != yes; then
6801 ac_save_CC=$CC
6802 while :; do
6803 # IRIX 6.2 and later do not support large files by default,
6804 # so use the C compiler's -n32 option if that helps.
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h. */
6807#include <sys/types.h>
6808 /* Check that off_t can represent 2**63 - 1 correctly.
6809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6810 since some C++ compilers masquerading as C compilers
6811 incorrectly reject 9223372036854775807. */
6812#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6814 && LARGE_OFF_T % 2147483647 == 1)
6815 ? 1 : -1];
6816int
6817main ()
6818{
6819
6820 ;
6821 return 0;
6822}
6823_ACEOF
6824 if ac_fn_c_try_compile "$LINENO"; then :
6825 break
6826fi
6827rm -f core conftest.err conftest.$ac_objext
6828 CC="$CC -n32"
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830 ac_cv_sys_largefile_CC=' -n32'; break
6831fi
6832rm -f core conftest.err conftest.$ac_objext
6833 break
6834 done
6835 CC=$ac_save_CC
6836 rm -f conftest.$ac_ext
6837 fi
6838fi
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6840$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6841 if test "$ac_cv_sys_largefile_CC" != no; then
6842 CC=$CC$ac_cv_sys_largefile_CC
6843 fi
6844
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6846$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d6974efa 6847if ${ac_cv_sys_file_offset_bits+:} false; then :
067d23c9
KY
6848 $as_echo_n "(cached) " >&6
6849else
6850 while :; do
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h. */
6853#include <sys/types.h>
6854 /* Check that off_t can represent 2**63 - 1 correctly.
6855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6856 since some C++ compilers masquerading as C compilers
6857 incorrectly reject 9223372036854775807. */
6858#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6860 && LARGE_OFF_T % 2147483647 == 1)
6861 ? 1 : -1];
6862int
6863main ()
6864{
6865
6866 ;
6867 return 0;
6868}
6869_ACEOF
6870if ac_fn_c_try_compile "$LINENO"; then :
6871 ac_cv_sys_file_offset_bits=no; break
6872fi
6873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h. */
6876#define _FILE_OFFSET_BITS 64
6877#include <sys/types.h>
6878 /* Check that off_t can represent 2**63 - 1 correctly.
6879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6880 since some C++ compilers masquerading as C compilers
6881 incorrectly reject 9223372036854775807. */
6882#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6884 && LARGE_OFF_T % 2147483647 == 1)
6885 ? 1 : -1];
6886int
6887main ()
6888{
6889
6890 ;
6891 return 0;
6892}
6893_ACEOF
6894if ac_fn_c_try_compile "$LINENO"; then :
6895 ac_cv_sys_file_offset_bits=64; break
6896fi
6897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898 ac_cv_sys_file_offset_bits=unknown
6899 break
6900done
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6903$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6904case $ac_cv_sys_file_offset_bits in #(
6905 no | unknown) ;;
6906 *)
6907cat >>confdefs.h <<_ACEOF
6908#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6909_ACEOF
6910;;
6911esac
6912rm -rf conftest*
6913 if test $ac_cv_sys_file_offset_bits = unknown; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6915$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d6974efa 6916if ${ac_cv_sys_large_files+:} false; then :
067d23c9
KY
6917 $as_echo_n "(cached) " >&6
6918else
6919 while :; do
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h. */
6922#include <sys/types.h>
6923 /* Check that off_t can represent 2**63 - 1 correctly.
6924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6925 since some C++ compilers masquerading as C compilers
6926 incorrectly reject 9223372036854775807. */
6927#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6929 && LARGE_OFF_T % 2147483647 == 1)
6930 ? 1 : -1];
6931int
6932main ()
6933{
6934
6935 ;
6936 return 0;
6937}
6938_ACEOF
6939if ac_fn_c_try_compile "$LINENO"; then :
6940 ac_cv_sys_large_files=no; break
6941fi
6942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h. */
6945#define _LARGE_FILES 1
6946#include <sys/types.h>
6947 /* Check that off_t can represent 2**63 - 1 correctly.
6948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6949 since some C++ compilers masquerading as C compilers
6950 incorrectly reject 9223372036854775807. */
6951#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6953 && LARGE_OFF_T % 2147483647 == 1)
6954 ? 1 : -1];
6955int
6956main ()
6957{
6958
6959 ;
6960 return 0;
6961}
6962_ACEOF
6963if ac_fn_c_try_compile "$LINENO"; then :
6964 ac_cv_sys_large_files=1; break
6965fi
6966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967 ac_cv_sys_large_files=unknown
6968 break
6969done
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6972$as_echo "$ac_cv_sys_large_files" >&6; }
6973case $ac_cv_sys_large_files in #(
6974 no | unknown) ;;
6975 *)
6976cat >>confdefs.h <<_ACEOF
6977#define _LARGE_FILES $ac_cv_sys_large_files
6978_ACEOF
6979;;
6980esac
6981rm -rf conftest*
6982 fi
6983fi
6984
6985
6986
6987## If user specified a crt-dir, use that unconditionally.
6988if test "X$CRT_DIR" = "X"; then
6989
6990 case "$canonical" in
6991 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6992 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6993 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6994 ## For anything else (eg /usr/lib32), it is up the user to specify
6995 ## the location (bug#5655).
6996 ## Test for crtn.o, not just the directory, because sometimes the
6997 ## directory exists but does not have the relevant files (bug#1287).
6998 ## FIXME better to test for binary compatibility somehow.
6999 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7000 ;;
7001
7002 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7003 esac
7004
7005 case "$opsys" in
7006 hpux10-20) CRT_DIR=/lib ;;
7007 esac
7008
7009 ## Default is /usr/lib.
7010 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7011
7012else
7013
7014 ## Some platforms don't use any of these files, so it is not
7015 ## appropriate to put this test outside the if block.
7016 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
2018939f 7017 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
067d23c9
KY
7018
7019fi
7020
7021
7022
7023LIB_MATH=-lm
7024LIB_STANDARD=
7025START_FILES=
7026
7027case $opsys in
7028 cygwin )
7029 LIB_MATH=
7030 START_FILES='pre-crt0.o'
7031 ;;
7032 darwin )
7033 ## Adding -lm confuses the dynamic linker, so omit it.
7034 LIB_MATH=
7035 START_FILES='pre-crt0.o'
7036 ;;
7037 freebsd )
7038 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7039 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7040 ;;
7041 gnu-linux | gnu-kfreebsd )
7042 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7043 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7044 ;;
7045 hpux10-20 | hpux11 )
7046 LIB_STANDARD=-lc
7047 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7048 ;;
7049 netbsd | openbsd )
7050 if test -f $CRT_DIR/crti.o; then
7051 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7052 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7053 else
7054 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7055 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7056 fi
7057 ;;
7058esac
7059
7060
7061
7062
7063
7064
7065
7066if test "${with_sound}" != "no"; then
7067 # Sound support for GNU/Linux and the free BSDs.
7068 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7069do :
7070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7071ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7072if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7073 cat >>confdefs.h <<_ACEOF
7074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7075_ACEOF
7076 have_sound_header=yes
7077fi
7078
7079done
7080
7081 # Emulation library used on NetBSD.
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7083$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
d6974efa 7084if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
067d23c9
KY
7085 $as_echo_n "(cached) " >&6
7086else
7087 ac_check_lib_save_LIBS=$LIBS
7088LIBS="-lossaudio $LIBS"
7089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090/* end confdefs.h. */
7091
7092/* Override any GCC internal prototype to avoid an error.
7093 Use char because int might match the return type of a GCC
7094 builtin and then its argument prototype would still apply. */
7095#ifdef __cplusplus
7096extern "C"
7097#endif
7098char _oss_ioctl ();
7099int
7100main ()
7101{
7102return _oss_ioctl ();
7103 ;
7104 return 0;
7105}
7106_ACEOF
7107if ac_fn_c_try_link "$LINENO"; then :
7108 ac_cv_lib_ossaudio__oss_ioctl=yes
7109else
7110 ac_cv_lib_ossaudio__oss_ioctl=no
7111fi
7112rm -f core conftest.err conftest.$ac_objext \
7113 conftest$ac_exeext conftest.$ac_ext
7114LIBS=$ac_check_lib_save_LIBS
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7117$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
d6974efa 7118if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
067d23c9
KY
7119 LIBSOUND=-lossaudio
7120else
7121 LIBSOUND=
7122fi
7123
7124
7125
7126 ALSA_REQUIRED=1.0.0
7127 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7128
7129 succeeded=no
7130
7131 # Extract the first word of "pkg-config", so it can be a program name with args.
7132set dummy pkg-config; ac_word=$2
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 7135if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
7136 $as_echo_n "(cached) " >&6
7137else
7138 case $PKG_CONFIG in
7139 [\\/]* | ?:[\\/]*)
7140 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7141 ;;
7142 *)
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154done
7155 done
7156IFS=$as_save_IFS
7157
7158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7159 ;;
7160esac
7161fi
7162PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7163if test -n "$PKG_CONFIG"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7165$as_echo "$PKG_CONFIG" >&6; }
7166else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171
7172
7173 if test "$PKG_CONFIG" = "no" ; then
7174 HAVE_ALSA=no
7175 else
7176 PKG_CONFIG_MIN_VERSION=0.9.0
7177 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7179$as_echo_n "checking for $ALSA_MODULES... " >&6; }
7180
7181 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7183$as_echo "yes" >&6; }
7184 succeeded=yes
7185
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7187$as_echo_n "checking ALSA_CFLAGS... " >&6; }
7188 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7190$as_echo "$ALSA_CFLAGS" >&6; }
7191
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7193$as_echo_n "checking ALSA_LIBS... " >&6; }
7194 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7196$as_echo "$ALSA_LIBS" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
7200 ALSA_CFLAGS=""
7201 ALSA_LIBS=""
7202 ## If we have a custom action on failure, don't print errors, but
7203 ## do set a variable so people can do so.
7204 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7205
7206 fi
7207
7208
7209
7210 else
7211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7213 fi
7214 fi
7215
7216 if test $succeeded = yes; then
7217 HAVE_ALSA=yes
7218 else
7219 HAVE_ALSA=no
7220 fi
7221
7222 if test $HAVE_ALSA = yes; then
7223 SAVE_CFLAGS="$CFLAGS"
7224 SAVE_LDFLAGS="$LDFLAGS"
7225 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7226 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228/* end confdefs.h. */
7229#include <asoundlib.h>
7230int
7231main ()
7232{
7233snd_lib_error_set_handler (0);
7234 ;
7235 return 0;
7236}
7237_ACEOF
7238if ac_fn_c_try_compile "$LINENO"; then :
7239 emacs_alsa_normal=yes
7240else
7241 emacs_alsa_normal=no
7242fi
7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 if test "$emacs_alsa_normal" != yes; then
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h. */
7247#include <alsa/asoundlib.h>
7248int
7249main ()
7250{
7251snd_lib_error_set_handler (0);
7252 ;
7253 return 0;
7254}
7255_ACEOF
7256if ac_fn_c_try_compile "$LINENO"; then :
7257 emacs_alsa_subdir=yes
7258else
7259 emacs_alsa_subdir=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262 if test "$emacs_alsa_subdir" != yes; then
2018939f 7263 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
067d23c9
KY
7264 fi
7265 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7266 fi
7267
7268 CFLAGS="$SAVE_CFLAGS"
7269 LDFLAGS="$SAVE_LDFLAGS"
7270 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7271 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7272
7273$as_echo "#define HAVE_ALSA 1" >>confdefs.h
7274
7275 fi
7276
7277 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7278 case "$opsys" in
7279 gnu-linux|freebsd|netbsd)
7280
7281$as_echo "#define HAVE_SOUND 1" >>confdefs.h
7282
7283 ;;
7284 esac
7285 fi
7286
7287
7288fi
7289
7290for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7291 linux/version.h sys/systeminfo.h limits.h \
7292 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7293 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7294 sys/utsname.h pwd.h utmp.h dirent.h util.h
7295do :
7296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7298if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7299 cat >>confdefs.h <<_ACEOF
7300#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7301_ACEOF
7302
7303fi
7304
7305done
7306
7307
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7309$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h. */
7312#include <sys/personality.h>
7313int
7314main ()
7315{
7316personality (PER_LINUX32)
7317 ;
7318 return 0;
7319}
7320_ACEOF
7321if ac_fn_c_try_compile "$LINENO"; then :
7322 emacs_cv_personality_linux32=yes
7323else
7324 emacs_cv_personality_linux32=no
7325fi
7326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7328$as_echo "$emacs_cv_personality_linux32" >&6; }
7329
7330if test $emacs_cv_personality_linux32 = yes; then
7331
7332$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7333
7334fi
7335
7336for ac_header in term.h
7337do :
7338 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
d6974efa 7339if test "x$ac_cv_header_term_h" = xyes; then :
067d23c9
KY
7340 cat >>confdefs.h <<_ACEOF
7341#define HAVE_TERM_H 1
7342_ACEOF
7343
7344fi
7345
7346done
7347
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7349$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 7350if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
7351 $as_echo_n "(cached) " >&6
7352else
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354/* end confdefs.h. */
7355#include <stdlib.h>
7356#include <stdarg.h>
7357#include <string.h>
7358#include <float.h>
7359
7360int
7361main ()
7362{
7363
7364 ;
7365 return 0;
7366}
7367_ACEOF
7368if ac_fn_c_try_compile "$LINENO"; then :
7369 ac_cv_header_stdc=yes
7370else
7371 ac_cv_header_stdc=no
7372fi
7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374
7375if test $ac_cv_header_stdc = yes; then
7376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h. */
7379#include <string.h>
7380
7381_ACEOF
7382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7383 $EGREP "memchr" >/dev/null 2>&1; then :
7384
7385else
7386 ac_cv_header_stdc=no
7387fi
7388rm -f conftest*
7389
7390fi
7391
7392if test $ac_cv_header_stdc = yes; then
7393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h. */
7396#include <stdlib.h>
7397
7398_ACEOF
7399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7400 $EGREP "free" >/dev/null 2>&1; then :
7401
7402else
7403 ac_cv_header_stdc=no
7404fi
7405rm -f conftest*
7406
7407fi
7408
7409if test $ac_cv_header_stdc = yes; then
7410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7411 if test "$cross_compiling" = yes; then :
7412 :
7413else
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h. */
7416#include <ctype.h>
7417#include <stdlib.h>
7418#if ((' ' & 0x0FF) == 0x020)
7419# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7420# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7421#else
7422# define ISLOWER(c) \
7423 (('a' <= (c) && (c) <= 'i') \
7424 || ('j' <= (c) && (c) <= 'r') \
7425 || ('s' <= (c) && (c) <= 'z'))
7426# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7427#endif
7428
7429#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7430int
7431main ()
7432{
7433 int i;
7434 for (i = 0; i < 256; i++)
7435 if (XOR (islower (i), ISLOWER (i))
7436 || toupper (i) != TOUPPER (i))
7437 return 2;
7438 return 0;
7439}
7440_ACEOF
7441if ac_fn_c_try_run "$LINENO"; then :
7442
7443else
7444 ac_cv_header_stdc=no
7445fi
7446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7447 conftest.$ac_objext conftest.beam conftest.$ac_ext
7448fi
7449
7450fi
7451fi
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7453$as_echo "$ac_cv_header_stdc" >&6; }
7454if test $ac_cv_header_stdc = yes; then
7455
7456$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7457
7458fi
7459
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7461$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
d6974efa 7462if ${ac_cv_header_time+:} false; then :
067d23c9
KY
7463 $as_echo_n "(cached) " >&6
7464else
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466/* end confdefs.h. */
7467#include <sys/types.h>
7468#include <sys/time.h>
7469#include <time.h>
7470
7471int
7472main ()
7473{
7474if ((struct tm *) 0)
7475return 0;
7476 ;
7477 return 0;
7478}
7479_ACEOF
7480if ac_fn_c_try_compile "$LINENO"; then :
7481 ac_cv_header_time=yes
7482else
7483 ac_cv_header_time=no
7484fi
7485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486fi
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7488$as_echo "$ac_cv_header_time" >&6; }
7489if test $ac_cv_header_time = yes; then
7490
7491$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7492
7493fi
7494
7495ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
d6974efa 7496if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
067d23c9
KY
7497 ac_have_decl=1
7498else
7499 ac_have_decl=0
7500fi
7501
7502cat >>confdefs.h <<_ACEOF
7503#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7504_ACEOF
7505
7506if test $ac_cv_have_decl_sys_siglist != yes; then
7507 # For Tru64, at least:
7508 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
d6974efa 7509if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
067d23c9
KY
7510 ac_have_decl=1
7511else
7512 ac_have_decl=0
7513fi
7514
7515cat >>confdefs.h <<_ACEOF
7516#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7517_ACEOF
7518
7519 if test $ac_cv_have_decl___sys_siglist = yes; then
7520
7521$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7522
7523 fi
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7526$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
d6974efa 7527if ${ac_cv_header_sys_wait_h+:} false; then :
067d23c9
KY
7528 $as_echo_n "(cached) " >&6
7529else
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531/* end confdefs.h. */
7532#include <sys/types.h>
7533#include <sys/wait.h>
7534#ifndef WEXITSTATUS
7535# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7536#endif
7537#ifndef WIFEXITED
7538# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7539#endif
7540
7541int
7542main ()
7543{
7544 int s;
7545 wait (&s);
7546 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7547 ;
7548 return 0;
7549}
7550_ACEOF
7551if ac_fn_c_try_compile "$LINENO"; then :
7552 ac_cv_header_sys_wait_h=yes
7553else
7554 ac_cv_header_sys_wait_h=no
7555fi
7556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557fi
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7559$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7560if test $ac_cv_header_sys_wait_h = yes; then
7561
7562$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7563
7564fi
7565
7566
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7568$as_echo_n "checking for struct utimbuf... " >&6; }
d6974efa 7569if ${emacs_cv_struct_utimbuf+:} false; then :
067d23c9
KY
7570 $as_echo_n "(cached) " >&6
7571else
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h. */
7574#ifdef TIME_WITH_SYS_TIME
7575#include <sys/time.h>
7576#include <time.h>
7577#else
7578#ifdef HAVE_SYS_TIME_H
7579#include <sys/time.h>
7580#else
7581#include <time.h>
7582#endif
7583#endif
7584#ifdef HAVE_UTIME_H
7585#include <utime.h>
7586#endif
7587int
7588main ()
7589{
7590static struct utimbuf x; x.actime = x.modtime;
7591 ;
7592 return 0;
7593}
7594_ACEOF
7595if ac_fn_c_try_compile "$LINENO"; then :
7596 emacs_cv_struct_utimbuf=yes
7597else
7598 emacs_cv_struct_utimbuf=no
7599fi
7600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7603$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7604if test $emacs_cv_struct_utimbuf = yes; then
7605
7606$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7607
7608fi
7609
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7611$as_echo_n "checking return type of signal handlers... " >&6; }
d6974efa 7612if ${ac_cv_type_signal+:} false; then :
067d23c9
KY
7613 $as_echo_n "(cached) " >&6
7614else
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616/* end confdefs.h. */
7617#include <sys/types.h>
7618#include <signal.h>
7619
7620int
7621main ()
7622{
7623return *(signal (0, 0)) (0) == 1;
7624 ;
7625 return 0;
7626}
7627_ACEOF
7628if ac_fn_c_try_compile "$LINENO"; then :
7629 ac_cv_type_signal=int
7630else
7631 ac_cv_type_signal=void
7632fi
7633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634fi
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7636$as_echo "$ac_cv_type_signal" >&6; }
7637
7638cat >>confdefs.h <<_ACEOF
7639#define RETSIGTYPE $ac_cv_type_signal
7640_ACEOF
7641
7642
7643
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7645$as_echo_n "checking for speed_t... " >&6; }
d6974efa 7646if ${emacs_cv_speed_t+:} false; then :
067d23c9
KY
7647 $as_echo_n "(cached) " >&6
7648else
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h. */
7651#include <termios.h>
7652int
7653main ()
7654{
7655speed_t x = 1;
7656 ;
7657 return 0;
7658}
7659_ACEOF
7660if ac_fn_c_try_compile "$LINENO"; then :
7661 emacs_cv_speed_t=yes
7662else
7663 emacs_cv_speed_t=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666fi
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7668$as_echo "$emacs_cv_speed_t" >&6; }
7669if test $emacs_cv_speed_t = yes; then
7670
7671$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7672
7673fi
7674
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7676$as_echo_n "checking for struct timeval... " >&6; }
d6974efa 7677if ${emacs_cv_struct_timeval+:} false; then :
067d23c9
KY
7678 $as_echo_n "(cached) " >&6
7679else
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h. */
7682#ifdef TIME_WITH_SYS_TIME
7683#include <sys/time.h>
7684#include <time.h>
7685#else
7686#ifdef HAVE_SYS_TIME_H
7687#include <sys/time.h>
7688#else
7689#include <time.h>
7690#endif
7691#endif
7692int
7693main ()
7694{
7695static struct timeval x; x.tv_sec = x.tv_usec;
7696 ;
7697 return 0;
7698}
7699_ACEOF
7700if ac_fn_c_try_compile "$LINENO"; then :
7701 emacs_cv_struct_timeval=yes
7702else
7703 emacs_cv_struct_timeval=no
7704fi
7705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706fi
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7708$as_echo "$emacs_cv_struct_timeval" >&6; }
7709HAVE_TIMEVAL=$emacs_cv_struct_timeval
7710if test $emacs_cv_struct_timeval = yes; then
7711
7712$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7713
7714fi
7715
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7717$as_echo_n "checking for struct exception... " >&6; }
d6974efa 7718if ${emacs_cv_struct_exception+:} false; then :
067d23c9
KY
7719 $as_echo_n "(cached) " >&6
7720else
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722/* end confdefs.h. */
7723#include <math.h>
7724int
7725main ()
7726{
7727static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7728 ;
7729 return 0;
7730}
7731_ACEOF
7732if ac_fn_c_try_compile "$LINENO"; then :
7733 emacs_cv_struct_exception=yes
7734else
7735 emacs_cv_struct_exception=no
7736fi
7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7740$as_echo "$emacs_cv_struct_exception" >&6; }
7741HAVE_EXCEPTION=$emacs_cv_struct_exception
7742if test $emacs_cv_struct_exception != yes; then
7743
7744$as_echo "#define NO_MATHERR 1" >>confdefs.h
7745
7746fi
7747
7748for ac_header in sys/socket.h
7749do :
7750 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
d6974efa 7751if test "x$ac_cv_header_sys_socket_h" = xyes; then :
067d23c9
KY
7752 cat >>confdefs.h <<_ACEOF
7753#define HAVE_SYS_SOCKET_H 1
7754_ACEOF
7755
7756fi
7757
7758done
7759
7760for ac_header in net/if.h
7761do :
7762 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7763#if HAVE_SYS_SOCKET_H
7764#include <sys/socket.h>
7765#endif
7766"
d6974efa 7767if test "x$ac_cv_header_net_if_h" = xyes; then :
067d23c9
KY
7768 cat >>confdefs.h <<_ACEOF
7769#define HAVE_NET_IF_H 1
7770_ACEOF
7771
7772fi
7773
7774done
7775
7776
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7778$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
d6974efa 7779if ${ac_cv_struct_tm+:} false; then :
067d23c9
KY
7780 $as_echo_n "(cached) " >&6
7781else
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783/* end confdefs.h. */
7784#include <sys/types.h>
7785#include <time.h>
7786
7787int
7788main ()
7789{
7790struct tm tm;
7791 int *p = &tm.tm_sec;
7792 return !p;
7793 ;
7794 return 0;
7795}
7796_ACEOF
7797if ac_fn_c_try_compile "$LINENO"; then :
7798 ac_cv_struct_tm=time.h
7799else
7800 ac_cv_struct_tm=sys/time.h
7801fi
7802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7805$as_echo "$ac_cv_struct_tm" >&6; }
7806if test $ac_cv_struct_tm = sys/time.h; then
7807
7808$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7809
7810fi
7811
7812ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7813#include <$ac_cv_struct_tm>
7814
7815"
d6974efa 7816if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
067d23c9
KY
7817
7818cat >>confdefs.h <<_ACEOF
7819#define HAVE_STRUCT_TM_TM_ZONE 1
7820_ACEOF
7821
7822
7823fi
7824
7825if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7826
7827$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7828
7829else
7830 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7831"
d6974efa 7832if test "x$ac_cv_have_decl_tzname" = xyes; then :
067d23c9
KY
7833 ac_have_decl=1
7834else
7835 ac_have_decl=0
7836fi
7837
7838cat >>confdefs.h <<_ACEOF
7839#define HAVE_DECL_TZNAME $ac_have_decl
7840_ACEOF
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7843$as_echo_n "checking for tzname... " >&6; }
d6974efa 7844if ${ac_cv_var_tzname+:} false; then :
067d23c9
KY
7845 $as_echo_n "(cached) " >&6
7846else
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h. */
7849#include <time.h>
7850#if !HAVE_DECL_TZNAME
7851extern char *tzname[];
7852#endif
7853
7854int
7855main ()
7856{
7857return tzname[0][0];
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862if ac_fn_c_try_link "$LINENO"; then :
7863 ac_cv_var_tzname=yes
7864else
7865 ac_cv_var_tzname=no
7866fi
7867rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869fi
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7871$as_echo "$ac_cv_var_tzname" >&6; }
7872 if test $ac_cv_var_tzname = yes; then
7873
7874$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7875
7876 fi
7877fi
7878
7879ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7880"
d6974efa 7881if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
067d23c9
KY
7882
7883$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7884
7885fi
7886
7887ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7888#if HAVE_SYS_SOCKET_H
7889#include <sys/socket.h>
7890#endif
7891#if HAVE_NET_IF_H
7892#include <net/if.h>
7893#endif
7894"
d6974efa 7895if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
067d23c9
KY
7896
7897cat >>confdefs.h <<_ACEOF
7898#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7899_ACEOF
7900
7901
7902fi
7903ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7904#if HAVE_SYS_SOCKET_H
7905#include <sys/socket.h>
7906#endif
7907#if HAVE_NET_IF_H
7908#include <net/if.h>
7909#endif
7910"
d6974efa 7911if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
067d23c9
KY
7912
7913cat >>confdefs.h <<_ACEOF
7914#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7915_ACEOF
7916
7917
7918fi
7919ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7920#if HAVE_SYS_SOCKET_H
7921#include <sys/socket.h>
7922#endif
7923#if HAVE_NET_IF_H
7924#include <net/if.h>
7925#endif
7926"
d6974efa 7927if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
067d23c9
KY
7928
7929cat >>confdefs.h <<_ACEOF
7930#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7931_ACEOF
7932
7933
7934fi
7935ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7936#if HAVE_SYS_SOCKET_H
7937#include <sys/socket.h>
7938#endif
7939#if HAVE_NET_IF_H
7940#include <net/if.h>
7941#endif
7942"
d6974efa 7943if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
067d23c9
KY
7944
7945cat >>confdefs.h <<_ACEOF
7946#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7947_ACEOF
7948
7949
7950fi
7951ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7952#if HAVE_SYS_SOCKET_H
7953#include <sys/socket.h>
7954#endif
7955#if HAVE_NET_IF_H
7956#include <net/if.h>
7957#endif
7958"
d6974efa 7959if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
067d23c9
KY
7960
7961cat >>confdefs.h <<_ACEOF
7962#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7963_ACEOF
7964
7965
7966fi
7967
7968
7969
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7971$as_echo_n "checking for function prototypes... " >&6; }
7972if test "$ac_cv_prog_cc_c89" != no; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7974$as_echo "yes" >&6; }
7975
7976$as_echo "#define PROTOTYPES 1" >>confdefs.h
7977
7978
7979$as_echo "#define __PROTOTYPES 1" >>confdefs.h
7980
7981else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
7984fi
7985
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7987$as_echo_n "checking for working volatile... " >&6; }
d6974efa 7988if ${ac_cv_c_volatile+:} false; then :
067d23c9
KY
7989 $as_echo_n "(cached) " >&6
7990else
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h. */
7993
7994int
7995main ()
7996{
7997
7998volatile int x;
7999int * volatile y = (int *) 0;
8000return !x && !y;
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005if ac_fn_c_try_compile "$LINENO"; then :
8006 ac_cv_c_volatile=yes
8007else
8008 ac_cv_c_volatile=no
8009fi
8010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011fi
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8013$as_echo "$ac_cv_c_volatile" >&6; }
8014if test $ac_cv_c_volatile = no; then
8015
8016$as_echo "#define volatile /**/" >>confdefs.h
8017
8018fi
8019
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8021$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
d6974efa 8022if ${ac_cv_c_const+:} false; then :
067d23c9
KY
8023 $as_echo_n "(cached) " >&6
8024else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h. */
8027
8028int
8029main ()
8030{
8031/* FIXME: Include the comments suggested by Paul. */
8032#ifndef __cplusplus
8033 /* Ultrix mips cc rejects this. */
8034 typedef int charset[2];
8035 const charset cs;
8036 /* SunOS 4.1.1 cc rejects this. */
8037 char const *const *pcpcc;
8038 char **ppc;
8039 /* NEC SVR4.0.2 mips cc rejects this. */
8040 struct point {int x, y;};
8041 static struct point const zero = {0,0};
8042 /* AIX XL C 1.02.0.0 rejects this.
8043 It does not let you subtract one const X* pointer from another in
8044 an arm of an if-expression whose if-part is not a constant
8045 expression */
8046 const char *g = "string";
8047 pcpcc = &g + (g ? g-g : 0);
8048 /* HPUX 7.0 cc rejects these. */
8049 ++pcpcc;
8050 ppc = (char**) pcpcc;
8051 pcpcc = (char const *const *) ppc;
8052 { /* SCO 3.2v4 cc rejects this. */
8053 char *t;
8054 char const *s = 0 ? (char *) 0 : (char const *) 0;
8055
8056 *t++ = 0;
8057 if (s) return 0;
8058 }
8059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8060 int x[] = {25, 17};
8061 const int *foo = &x[0];
8062 ++foo;
8063 }
8064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8065 typedef const int *iptr;
8066 iptr p = 0;
8067 ++p;
8068 }
8069 { /* AIX XL C 1.02.0.0 rejects this saying
8070 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8071 struct s { int j; const int *ap[3]; };
8072 struct s *b; b->j = 5;
8073 }
8074 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8075 const int foo = 10;
8076 if (!foo) return 0;
8077 }
8078 return !cs[0] && !zero.x;
8079#endif
8080
8081 ;
8082 return 0;
8083}
8084_ACEOF
8085if ac_fn_c_try_compile "$LINENO"; then :
8086 ac_cv_c_const=yes
8087else
8088 ac_cv_c_const=no
8089fi
8090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091fi
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8093$as_echo "$ac_cv_c_const" >&6; }
8094if test $ac_cv_c_const = no; then
8095
8096$as_echo "#define const /**/" >>confdefs.h
8097
8098fi
8099
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8101$as_echo_n "checking for void * support... " >&6; }
d6974efa 8102if ${emacs_cv_void_star+:} false; then :
067d23c9
KY
8103 $as_echo_n "(cached) " >&6
8104else
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106/* end confdefs.h. */
8107
8108int
8109main ()
8110{
8111void * foo;
8112 ;
8113 return 0;
8114}
8115_ACEOF
8116if ac_fn_c_try_compile "$LINENO"; then :
8117 emacs_cv_void_star=yes
8118else
8119 emacs_cv_void_star=no
8120fi
8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8124$as_echo "$emacs_cv_void_star" >&6; }
8125if test $emacs_cv_void_star = yes; then
8126 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8127
8128else
8129 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8130
8131fi
8132
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8134$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6974efa 8135if ${ac_cv_c_bigendian+:} false; then :
067d23c9
KY
8136 $as_echo_n "(cached) " >&6
8137else
8138 ac_cv_c_bigendian=unknown
8139 # See if we're dealing with a universal compiler.
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h. */
8142#ifndef __APPLE_CC__
8143 not a universal capable compiler
8144 #endif
8145 typedef int dummy;
8146
8147_ACEOF
8148if ac_fn_c_try_compile "$LINENO"; then :
8149
8150 # Check for potential -arch flags. It is not universal unless
8151 # there are at least two -arch flags with different values.
8152 ac_arch=
8153 ac_prev=
8154 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8155 if test -n "$ac_prev"; then
8156 case $ac_word in
8157 i?86 | x86_64 | ppc | ppc64)
8158 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8159 ac_arch=$ac_word
8160 else
8161 ac_cv_c_bigendian=universal
8162 break
8163 fi
8164 ;;
8165 esac
8166 ac_prev=
8167 elif test "x$ac_word" = "x-arch"; then
8168 ac_prev=arch
8169 fi
8170 done
8171fi
8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 if test $ac_cv_c_bigendian = unknown; then
8174 # See if sys/param.h defines the BYTE_ORDER macro.
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176/* end confdefs.h. */
8177#include <sys/types.h>
8178 #include <sys/param.h>
8179
8180int
8181main ()
8182{
8183#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8184 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8185 && LITTLE_ENDIAN)
8186 bogus endian macros
8187 #endif
8188
8189 ;
8190 return 0;
8191}
8192_ACEOF
8193if ac_fn_c_try_compile "$LINENO"; then :
8194 # It does; now see whether it defined to BIG_ENDIAN or not.
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h. */
8197#include <sys/types.h>
8198 #include <sys/param.h>
8199
8200int
8201main ()
8202{
8203#if BYTE_ORDER != BIG_ENDIAN
8204 not big endian
8205 #endif
8206
8207 ;
8208 return 0;
8209}
8210_ACEOF
8211if ac_fn_c_try_compile "$LINENO"; then :
8212 ac_cv_c_bigendian=yes
8213else
8214 ac_cv_c_bigendian=no
8215fi
8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217fi
8218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 if test $ac_cv_c_bigendian = unknown; then
8221 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223/* end confdefs.h. */
8224#include <limits.h>
8225
8226int
8227main ()
8228{
8229#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8230 bogus endian macros
8231 #endif
8232
8233 ;
8234 return 0;
8235}
8236_ACEOF
8237if ac_fn_c_try_compile "$LINENO"; then :
8238 # It does; now see whether it defined to _BIG_ENDIAN or not.
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h. */
8241#include <limits.h>
8242
8243int
8244main ()
8245{
8246#ifndef _BIG_ENDIAN
8247 not big endian
8248 #endif
8249
8250 ;
8251 return 0;
8252}
8253_ACEOF
8254if ac_fn_c_try_compile "$LINENO"; then :
8255 ac_cv_c_bigendian=yes
8256else
8257 ac_cv_c_bigendian=no
8258fi
8259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260fi
8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8262 fi
8263 if test $ac_cv_c_bigendian = unknown; then
8264 # Compile a test program.
8265 if test "$cross_compiling" = yes; then :
8266 # Try to guess by grepping values from an object file.
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268/* end confdefs.h. */
8269short int ascii_mm[] =
8270 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8271 short int ascii_ii[] =
8272 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8273 int use_ascii (int i) {
8274 return ascii_mm[i] + ascii_ii[i];
8275 }
8276 short int ebcdic_ii[] =
8277 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8278 short int ebcdic_mm[] =
8279 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8280 int use_ebcdic (int i) {
8281 return ebcdic_mm[i] + ebcdic_ii[i];
8282 }
8283 extern int foo;
8284
8285int
8286main ()
8287{
8288return use_ascii (foo) == use_ebcdic (foo);
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293if ac_fn_c_try_compile "$LINENO"; then :
8294 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8295 ac_cv_c_bigendian=yes
8296 fi
8297 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8298 if test "$ac_cv_c_bigendian" = unknown; then
8299 ac_cv_c_bigendian=no
8300 else
8301 # finding both strings is unlikely to happen, but who knows?
8302 ac_cv_c_bigendian=unknown
8303 fi
8304 fi
8305fi
8306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307else
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309/* end confdefs.h. */
8310$ac_includes_default
8311int
8312main ()
8313{
8314
8315 /* Are we little or big endian? From Harbison&Steele. */
8316 union
8317 {
8318 long int l;
8319 char c[sizeof (long int)];
8320 } u;
8321 u.l = 1;
8322 return u.c[sizeof (long int) - 1] == 1;
8323
8324 ;
8325 return 0;
8326}
8327_ACEOF
8328if ac_fn_c_try_run "$LINENO"; then :
8329 ac_cv_c_bigendian=no
8330else
8331 ac_cv_c_bigendian=yes
8332fi
8333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8334 conftest.$ac_objext conftest.beam conftest.$ac_ext
8335fi
8336
8337 fi
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8340$as_echo "$ac_cv_c_bigendian" >&6; }
8341 case $ac_cv_c_bigendian in #(
8342 yes)
8343 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8344;; #(
8345 no)
8346 ;; #(
8347 universal)
8348
8349$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8350
8351 ;; #(
8352 *)
2018939f 8353 as_fn_error $? "unknown endianness
d6974efa 8354 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
067d23c9
KY
8355 esac
8356
8357
7cae64b4
PE
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8359$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
d6974efa 8360if ${emacs_cv_attribute_aligned+:} false; then :
7cae64b4
PE
8361 $as_echo_n "(cached) " >&6
8362else
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364/* end confdefs.h. */
8365char __attribute__ ((__aligned__ (1 << 3))) c;
8366int
8367main ()
8368{
8369
8370 ;
8371 return 0;
8372}
8373_ACEOF
8374if ac_fn_c_try_compile "$LINENO"; then :
8375 emacs_cv_attribute_aligned=yes
8376else
8377 emacs_cv_attribute_aligned=no
8378fi
8379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380fi
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8382$as_echo "$emacs_cv_attribute_aligned" >&6; }
8383if test $emacs_cv_attribute_aligned = yes; then
8384
8385$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8386
8387fi
8388
067d23c9
KY
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8390$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8391set x ${MAKE-make}
8392ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 8393if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
067d23c9
KY
8394 $as_echo_n "(cached) " >&6
8395else
8396 cat >conftest.make <<\_ACEOF
8397SHELL = /bin/sh
8398all:
8399 @echo '@@@%%%=$(MAKE)=@@@%%%'
8400_ACEOF
2018939f 8401# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8402case `${MAKE-make} -f conftest.make 2>/dev/null` in
8403 *@@@%%%=?*=@@@%%%*)
8404 eval ac_cv_prog_make_${ac_make}_set=yes;;
8405 *)
8406 eval ac_cv_prog_make_${ac_make}_set=no;;
8407esac
8408rm -f conftest.make
8409fi
8410if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8412$as_echo "yes" >&6; }
8413 SET_MAKE=
8414else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
8417 SET_MAKE="MAKE=${MAKE-make}"
8418fi
8419
8420
8421DEPFLAGS=
8422MKDEPDIR=":"
8423deps_frag=deps.mk
8424if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8426$as_echo_n "checking whether we are using GNU Make... " >&6; }
8427 HAVE_GNU_MAKE=no
8428 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8429 if test "x$testval" != x; then
8430 HAVE_GNU_MAKE=yes
8431 else
8432 ac_enable_autodepend=no
8433 fi
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8435$as_echo "$HAVE_GNU_MAKE" >&6; }
8436 if test $HAVE_GNU_MAKE = yes; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8438$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8439 SAVE_CFLAGS="$CFLAGS"
8440 CFLAGS="$CFLAGS -MMD -MF deps.d"
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442/* end confdefs.h. */
8443
8444int
8445main ()
8446{
8447
8448 ;
8449 return 0;
8450}
8451_ACEOF
8452if ac_fn_c_try_compile "$LINENO"; then :
8453
8454else
8455 ac_enable_autodepend=no
8456fi
8457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458 CFLAGS="$SAVE_CFLAGS"
8459 test -f deps.d || ac_enable_autodepend=no
8460 rm -rf deps.d
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8462$as_echo "$ac_enable_autodepend" >&6; }
8463 fi
8464 if test $ac_enable_autodepend = yes; then
8465 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8466 ## In parallel builds, another make might create depdir between
8467 ## the first test and mkdir, so stick another test on the end.
8468 ## Or use mkinstalldirs? mkdir -p is not portable.
8469 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8470 deps_frag=autodeps.mk
8471 fi
8472fi
8473deps_frag=$srcdir/src/$deps_frag
8474
8475
8476
8477
8478
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8480$as_echo_n "checking for long file names... " >&6; }
d6974efa 8481if ${ac_cv_sys_long_file_names+:} false; then :
067d23c9
KY
8482 $as_echo_n "(cached) " >&6
8483else
8484 ac_cv_sys_long_file_names=yes
8485# Test for long file names in all the places we know might matter:
8486# . the current directory, where building will happen
8487# $prefix/lib where we will be installing things
8488# $exec_prefix/lib likewise
8489# $TMPDIR if set, where it might want to write temporary files
8490# /tmp where it might want to write temporary files
8491# /var/tmp likewise
8492# /usr/tmp likewise
8493for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8494 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8495 # in the usual case where exec_prefix is '${prefix}'.
8496 case $ac_dir in #(
8497 . | /* | ?:[\\/]*) ;; #(
8498 *) continue;;
8499 esac
8500 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8501 ac_xdir=$ac_dir/cf$$
8502 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8503 ac_tf1=$ac_xdir/conftest9012345
8504 ac_tf2=$ac_xdir/conftest9012346
8505 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8506 ac_cv_sys_long_file_names=no
8507 rm -f -r "$ac_xdir" 2>/dev/null
8508 test $ac_cv_sys_long_file_names = no && break
8509done
8510fi
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8512$as_echo "$ac_cv_sys_long_file_names" >&6; }
8513if test $ac_cv_sys_long_file_names = yes; then
8514
8515$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8516
8517fi
8518
8519
8520#### Choose a window system.
8521
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8523$as_echo_n "checking for X... " >&6; }
8524
8525
8526# Check whether --with-x was given.
8527if test "${with_x+set}" = set; then :
8528 withval=$with_x;
8529fi
8530
8531# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8532if test "x$with_x" = xno; then
8533 # The user explicitly disabled X.
8534 have_x=disabled
8535else
8536 case $x_includes,$x_libraries in #(
d6974efa
PE
8537 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8538 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
067d23c9
KY
8539 $as_echo_n "(cached) " >&6
8540else
8541 # One or both of the vars are not set, and there is no cached value.
8542ac_x_includes=no ac_x_libraries=no
8543rm -f -r conftest.dir
8544if mkdir conftest.dir; then
8545 cd conftest.dir
8546 cat >Imakefile <<'_ACEOF'
8547incroot:
8548 @echo incroot='${INCROOT}'
8549usrlibdir:
8550 @echo usrlibdir='${USRLIBDIR}'
8551libdir:
8552 @echo libdir='${LIBDIR}'
8553_ACEOF
8554 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2018939f 8555 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8556 for ac_var in incroot usrlibdir libdir; do
8557 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8558 done
8559 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8560 for ac_extension in a so sl dylib la dll; do
8561 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8562 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8563 ac_im_usrlibdir=$ac_im_libdir; break
8564 fi
8565 done
8566 # Screen out bogus values from the imake configuration. They are
8567 # bogus both because they are the default anyway, and because
8568 # using them would break gcc on systems where it needs fixed includes.
8569 case $ac_im_incroot in
8570 /usr/include) ac_x_includes= ;;
8571 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8572 esac
8573 case $ac_im_usrlibdir in
8574 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8575 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8576 esac
8577 fi
8578 cd ..
8579 rm -f -r conftest.dir
8580fi
8581
8582# Standard set of common directories for X headers.
8583# Check X11 before X11Rn because it is often a symlink to the current release.
8584ac_x_header_dirs='
8585/usr/X11/include
8586/usr/X11R7/include
8587/usr/X11R6/include
8588/usr/X11R5/include
8589/usr/X11R4/include
8590
8591/usr/include/X11
8592/usr/include/X11R7
8593/usr/include/X11R6
8594/usr/include/X11R5
8595/usr/include/X11R4
8596
8597/usr/local/X11/include
8598/usr/local/X11R7/include
8599/usr/local/X11R6/include
8600/usr/local/X11R5/include
8601/usr/local/X11R4/include
8602
8603/usr/local/include/X11
8604/usr/local/include/X11R7
8605/usr/local/include/X11R6
8606/usr/local/include/X11R5
8607/usr/local/include/X11R4
8608
8609/usr/X386/include
8610/usr/x386/include
8611/usr/XFree86/include/X11
8612
8613/usr/include
8614/usr/local/include
8615/usr/unsupported/include
8616/usr/athena/include
8617/usr/local/x11r5/include
8618/usr/lpp/Xamples/include
8619
8620/usr/openwin/include
8621/usr/openwin/share/include'
8622
8623if test "$ac_x_includes" = no; then
8624 # Guess where to find include files, by looking for Xlib.h.
8625 # First, try using that file with no special directory specified.
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627/* end confdefs.h. */
8628#include <X11/Xlib.h>
8629_ACEOF
8630if ac_fn_c_try_cpp "$LINENO"; then :
8631 # We can compile using X headers with no special include directory.
8632ac_x_includes=
8633else
8634 for ac_dir in $ac_x_header_dirs; do
8635 if test -r "$ac_dir/X11/Xlib.h"; then
8636 ac_x_includes=$ac_dir
8637 break
8638 fi
8639done
8640fi
2018939f 8641rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
8642fi # $ac_x_includes = no
8643
8644if test "$ac_x_libraries" = no; then
8645 # Check for the libraries.
8646 # See if we find them without any special options.
8647 # Don't add to $LIBS permanently.
8648 ac_save_LIBS=$LIBS
8649 LIBS="-lX11 $LIBS"
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651/* end confdefs.h. */
8652#include <X11/Xlib.h>
8653int
8654main ()
8655{
8656XrmInitialize ()
8657 ;
8658 return 0;
8659}
8660_ACEOF
8661if ac_fn_c_try_link "$LINENO"; then :
8662 LIBS=$ac_save_LIBS
8663# We can link X programs with no special library path.
8664ac_x_libraries=
8665else
8666 LIBS=$ac_save_LIBS
8667for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8668do
8669 # Don't even attempt the hair of trying to link an X program!
8670 for ac_extension in a so sl dylib la dll; do
8671 if test -r "$ac_dir/libX11.$ac_extension"; then
8672 ac_x_libraries=$ac_dir
8673 break 2
8674 fi
8675 done
8676done
8677fi
8678rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8680fi # $ac_x_libraries = no
8681
8682case $ac_x_includes,$ac_x_libraries in #(
8683 no,* | *,no | *\'*)
8684 # Didn't find X, or a directory has "'" in its name.
8685 ac_cv_have_x="have_x=no";; #(
8686 *)
8687 # Record where we found X for the cache.
8688 ac_cv_have_x="have_x=yes\
8689 ac_x_includes='$ac_x_includes'\
8690 ac_x_libraries='$ac_x_libraries'"
8691esac
8692fi
8693;; #(
8694 *) have_x=yes;;
8695 esac
8696 eval "$ac_cv_have_x"
8697fi # $with_x != no
8698
8699if test "$have_x" != yes; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8701$as_echo "$have_x" >&6; }
8702 no_x=yes
8703else
8704 # If each of the values was on the command line, it overrides each guess.
8705 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8706 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8707 # Update the cache value to reflect the command line values.
8708 ac_cv_have_x="have_x=yes\
8709 ac_x_includes='$x_includes'\
8710 ac_x_libraries='$x_libraries'"
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8712$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8713fi
8714
8715if test "$no_x" = yes; then
8716 window_system=none
8717else
8718 window_system=x11
8719fi
8720
8721## Workaround for bug in autoconf <= 2.62.
8722## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8723## No need to do anything special for these standard directories.
8724if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8725
8726 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8727
8728fi
8729
8730LD_SWITCH_X_SITE_AUX=
8731LD_SWITCH_X_SITE_AUX_RPATH=
8732if test "${x_libraries}" != NONE; then
8733 if test -n "${x_libraries}"; then
8734 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8735 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8736 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8737 fi
8738 x_default_search_path=""
8739 x_search_path=${x_libraries}
8740 if test -z "${x_search_path}"; then
8741 x_search_path=/usr/lib
8742 fi
8743 for x_library in `echo ${x_search_path}: | \
8744 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8745 x_search_path="\
8746${x_library}/X11/%L/%T/%N%C%S:\
8747${x_library}/X11/%l/%T/%N%C%S:\
8748${x_library}/X11/%T/%N%C%S:\
8749${x_library}/X11/%L/%T/%N%S:\
8750${x_library}/X11/%l/%T/%N%S:\
8751${x_library}/X11/%T/%N%S"
8752 if test x"${x_default_search_path}" = x; then
8753 x_default_search_path=${x_search_path}
8754 else
8755 x_default_search_path="${x_search_path}:${x_default_search_path}"
8756 fi
8757 done
8758fi
8759
8760
8761
8762if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8763 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8764fi
8765
8766if test x"${x_includes}" = x; then
8767 bitmapdir=/usr/include/X11/bitmaps
8768else
8769 # accumulate include directories that have X11 bitmap subdirectories
8770 bmd_acc="dummyval"
8771 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8772 if test -d "${bmd}/X11/bitmaps"; then
8773 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8774 fi
8775 if test -d "${bmd}/bitmaps"; then
8776 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8777 fi
8778 done
8779 if test ${bmd_acc} != "dummyval"; then
8780 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8781 fi
8782fi
8783
8784HAVE_NS=no
8785NS_IMPL_COCOA=no
8786NS_IMPL_GNUSTEP=no
8787tmp_CPPFLAGS="$CPPFLAGS"
8788tmp_CFLAGS="$CFLAGS"
8789CPPFLAGS="$CPPFLAGS -x objective-c"
8790CFLAGS="$CFLAGS -x objective-c"
8791TEMACS_LDFLAGS2="\${LDFLAGS}"
8792if test "${with_ns}" != no; then
8793 if test "${opsys}" = darwin; then
8794 NS_IMPL_COCOA=yes
8795 ns_appdir=`pwd`/nextstep/Emacs.app
8796 ns_appbindir=${ns_appdir}/Contents/MacOS/
8797 ns_appresdir=${ns_appdir}/Contents/Resources
8798 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8799 elif test -f $GNUSTEP_CONFIG_FILE; then
8800 NS_IMPL_GNUSTEP=yes
8801 ns_appdir=`pwd`/nextstep/Emacs.app
8802 ns_appbindir=${ns_appdir}/
8803 ns_appresdir=${ns_appdir}/Resources
8804 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8805 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8806 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8807 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8808 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8809 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8810 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8811 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8812 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8813 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8814 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8815 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8816 LIB_STANDARD=
8817 START_FILES=
8818 TEMACS_LDFLAGS2=
8819 fi
8820 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
d6974efa 8821if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
067d23c9
KY
8822 HAVE_NS=yes
8823else
2018939f 8824 as_fn_error $? "\`--with-ns' was specified, but the include
067d23c9
KY
8825 files are missing or cannot be compiled." "$LINENO" 5
8826fi
8827
8828
8829 NS_HAVE_NSINTEGER=yes
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831/* end confdefs.h. */
8832#include <Foundation/NSObjCRuntime.h>
8833int
8834main ()
8835{
8836NSInteger i;
8837 ;
8838 return 0;
8839}
8840_ACEOF
8841if ac_fn_c_try_compile "$LINENO"; then :
8842 ns_have_nsinteger=yes
8843else
8844 ns_have_nsinteger=no
8845fi
8846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 if test $ns_have_nsinteger = no; then
8848 NS_HAVE_NSINTEGER=no
8849 fi
8850fi
8851
8852
8853ns_frag=/dev/null
8854NS_OBJ=
00b3c7ac 8855NS_OBJC_OBJ=
067d23c9
KY
8856NS_SUPPORT=
8857if test "${HAVE_NS}" = yes; then
8858 window_system=nextstep
8859 with_xft=no
8860 # set up packaging dirs
8861 exec_prefix=${ns_appbindir}
8862 libexecdir=${ns_appbindir}/libexec
8863 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8864 prefix=${ns_appresdir}
8865 fi
8866 ns_frag=$srcdir/src/ns.mk
00b3c7ac
TT
8867 NS_OBJ="fontset.o fringe.o image.o"
8868 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
067d23c9
KY
8869 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8870fi
8871CFLAGS="$tmp_CFLAGS"
8872CPPFLAGS="$tmp_CPPFLAGS"
8873
8874
8875
8876
8877
00b3c7ac 8878
067d23c9
KY
8879case "${window_system}" in
8880 x11 )
8881 HAVE_X_WINDOWS=yes
8882 HAVE_X11=yes
8883 case "${with_x_toolkit}" in
8884 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8885 motif ) USE_X_TOOLKIT=MOTIF ;;
8886 gtk ) with_gtk=yes
8887 USE_X_TOOLKIT=none ;;
8888 gtk3 ) with_gtk3=yes
8889 USE_X_TOOLKIT=none ;;
8890 no ) USE_X_TOOLKIT=none ;;
8891 * ) USE_X_TOOLKIT=maybe ;;
8892 esac
8893 ;;
8894 nextstep | none )
8895 HAVE_X_WINDOWS=no
8896 HAVE_X11=no
8897 USE_X_TOOLKIT=none
8898 ;;
8899esac
8900
8901if test "$window_system" = none && test "X$with_x" != "Xno"; then
8902 # Extract the first word of "X", so it can be a program name with args.
8903set dummy X; ac_word=$2
8904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 8906if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
067d23c9
KY
8907 $as_echo_n "(cached) " >&6
8908else
8909 if test -n "$HAVE_XSERVER"; then
8910 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8911else
8912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919 ac_cv_prog_HAVE_XSERVER="true"
8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8922 fi
8923done
8924 done
8925IFS=$as_save_IFS
8926
8927 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8928fi
8929fi
8930HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8931if test -n "$HAVE_XSERVER"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8933$as_echo "$HAVE_XSERVER" >&6; }
8934else
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936$as_echo "no" >&6; }
8937fi
8938
8939
8940 if test "$HAVE_XSERVER" = true ||
8941 test -n "$DISPLAY" ||
8942 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
2018939f 8943 as_fn_error $? "You seem to be running X, but no X development libraries
067d23c9
KY
8944were found. You should install the relevant development files for X
8945and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8946sure you have development files for image handling, i.e.
8947tiff, gif, jpeg, png and xpm.
8948If you are sure you want Emacs compiled without X window support, pass
8949 --without-x
8950to configure." "$LINENO" 5
8951 fi
8952fi
8953
8954### If we're using X11, we should use the X menu package.
8955HAVE_MENUS=no
8956case ${HAVE_X11} in
8957 yes ) HAVE_MENUS=yes ;;
8958esac
8959
8960# Do the opsystem or machine files prohibit the use of the GNU malloc?
8961# Assume not, until told otherwise.
8962GNU_MALLOC=yes
8963doug_lea_malloc=yes
8964ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
d6974efa 8965if test "x$ac_cv_func_malloc_get_state" = xyes; then :
067d23c9
KY
8966
8967else
8968 doug_lea_malloc=no
8969fi
8970
8971ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
d6974efa 8972if test "x$ac_cv_func_malloc_set_state" = xyes; then :
067d23c9
KY
8973
8974else
8975 doug_lea_malloc=no
8976fi
8977
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8979$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
d6974efa 8980if ${emacs_cv_var___after_morecore_hook+:} false; then :
067d23c9
KY
8981 $as_echo_n "(cached) " >&6
8982else
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h. */
8985extern void (* __after_morecore_hook)();
8986int
8987main ()
8988{
8989__after_morecore_hook = 0
8990 ;
8991 return 0;
8992}
8993_ACEOF
8994if ac_fn_c_try_link "$LINENO"; then :
8995 emacs_cv_var___after_morecore_hook=yes
8996else
8997 emacs_cv_var___after_morecore_hook=no
8998fi
8999rm -f core conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
9001fi
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9003$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9004if test $emacs_cv_var___after_morecore_hook = no; then
9005 doug_lea_malloc=no
9006fi
9007
9008
9009system_malloc=no
9010case "$opsys" in
9011 ## darwin ld insists on the use of malloc routines in the System framework.
9012 darwin|sol2-10) system_malloc=yes ;;
9013esac
9014
9015if test "${system_malloc}" = "yes"; then
9016
9017$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9018
9019 GNU_MALLOC=no
9020 GNU_MALLOC_reason="
9021 (The GNU allocators don't work with this system configuration.)"
9022 GMALLOC_OBJ=
9023 VMLIMIT_OBJ=
9024else
9025 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9026 VMLIMIT_OBJ=vm-limit.o
9027fi
9028
9029
9030
9031if test "$doug_lea_malloc" = "yes" ; then
9032 if test "$GNU_MALLOC" = yes ; then
9033 GNU_MALLOC_reason="
9034 (Using Doug Lea's new malloc from the GNU C Library.)"
9035 fi
9036
9037$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9038
9039
9040 ## Use mmap directly for allocating larger buffers.
9041 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9042 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9043 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9044 case "$opsys" in
9045 gnu*) REL_ALLOC=no ;;
9046 esac
9047fi
9048
9049if test x"${REL_ALLOC}" = x; then
9050 REL_ALLOC=${GNU_MALLOC}
9051fi
9052
9053use_mmap_for_buffers=no
9054case "$opsys" in
9055 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9056esac
9057
9058
9059
9060
9061 for ac_header in $ac_header_list
9062do :
9063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9064ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9065"
2018939f 9066if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
9067 cat >>confdefs.h <<_ACEOF
9068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9069_ACEOF
9070
9071fi
9072
9073done
9074
9075
9076
9077
9078
9079
9080
9081
9082for ac_func in getpagesize
9083do :
9084 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d6974efa 9085if test "x$ac_cv_func_getpagesize" = xyes; then :
067d23c9
KY
9086 cat >>confdefs.h <<_ACEOF
9087#define HAVE_GETPAGESIZE 1
9088_ACEOF
9089
9090fi
9091done
9092
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9094$as_echo_n "checking for working mmap... " >&6; }
d6974efa 9095if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
067d23c9
KY
9096 $as_echo_n "(cached) " >&6
9097else
9098 if test "$cross_compiling" = yes; then :
9099 ac_cv_func_mmap_fixed_mapped=no
9100else
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h. */
9103$ac_includes_default
9104/* malloc might have been renamed as rpl_malloc. */
9105#undef malloc
9106
9107/* Thanks to Mike Haertel and Jim Avera for this test.
9108 Here is a matrix of mmap possibilities:
9109 mmap private not fixed
9110 mmap private fixed at somewhere currently unmapped
9111 mmap private fixed at somewhere already mapped
9112 mmap shared not fixed
9113 mmap shared fixed at somewhere currently unmapped
9114 mmap shared fixed at somewhere already mapped
9115 For private mappings, we should verify that changes cannot be read()
9116 back from the file, nor mmap's back from the file at a different
9117 address. (There have been systems where private was not correctly
9118 implemented like the infamous i386 svr4.0, and systems where the
9119 VM page cache was not coherent with the file system buffer cache
9120 like early versions of FreeBSD and possibly contemporary NetBSD.)
9121 For shared mappings, we should conversely verify that changes get
9122 propagated back to all the places they're supposed to be.
9123
9124 Grep wants private fixed already mapped.
9125 The main things grep needs to know about mmap are:
9126 * does it exist and is it safe to write into the mmap'd area
9127 * how to use it (BSD variants) */
9128
9129#include <fcntl.h>
9130#include <sys/mman.h>
9131
9132#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9133char *malloc ();
9134#endif
9135
9136/* This mess was copied from the GNU getpagesize.h. */
9137#ifndef HAVE_GETPAGESIZE
9138# ifdef _SC_PAGESIZE
9139# define getpagesize() sysconf(_SC_PAGESIZE)
9140# else /* no _SC_PAGESIZE */
9141# ifdef HAVE_SYS_PARAM_H
9142# include <sys/param.h>
9143# ifdef EXEC_PAGESIZE
9144# define getpagesize() EXEC_PAGESIZE
9145# else /* no EXEC_PAGESIZE */
9146# ifdef NBPG
9147# define getpagesize() NBPG * CLSIZE
9148# ifndef CLSIZE
9149# define CLSIZE 1
9150# endif /* no CLSIZE */
9151# else /* no NBPG */
9152# ifdef NBPC
9153# define getpagesize() NBPC
9154# else /* no NBPC */
9155# ifdef PAGESIZE
9156# define getpagesize() PAGESIZE
9157# endif /* PAGESIZE */
9158# endif /* no NBPC */
9159# endif /* no NBPG */
9160# endif /* no EXEC_PAGESIZE */
9161# else /* no HAVE_SYS_PARAM_H */
9162# define getpagesize() 8192 /* punt totally */
9163# endif /* no HAVE_SYS_PARAM_H */
9164# endif /* no _SC_PAGESIZE */
9165
9166#endif /* no HAVE_GETPAGESIZE */
9167
9168int
9169main ()
9170{
9171 char *data, *data2, *data3;
2018939f 9172 const char *cdata2;
067d23c9
KY
9173 int i, pagesize;
9174 int fd, fd2;
9175
9176 pagesize = getpagesize ();
9177
9178 /* First, make a file with some known garbage in it. */
9179 data = (char *) malloc (pagesize);
9180 if (!data)
9181 return 1;
9182 for (i = 0; i < pagesize; ++i)
9183 *(data + i) = rand ();
9184 umask (0);
9185 fd = creat ("conftest.mmap", 0600);
9186 if (fd < 0)
9187 return 2;
9188 if (write (fd, data, pagesize) != pagesize)
9189 return 3;
9190 close (fd);
9191
9192 /* Next, check that the tail of a page is zero-filled. File must have
9193 non-zero length, otherwise we risk SIGBUS for entire page. */
9194 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9195 if (fd2 < 0)
9196 return 4;
2018939f
AS
9197 cdata2 = "";
9198 if (write (fd2, cdata2, 1) != 1)
067d23c9 9199 return 5;
2018939f 9200 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
067d23c9
KY
9201 if (data2 == MAP_FAILED)
9202 return 6;
9203 for (i = 0; i < pagesize; ++i)
9204 if (*(data2 + i))
9205 return 7;
9206 close (fd2);
9207 if (munmap (data2, pagesize))
9208 return 8;
9209
9210 /* Next, try to mmap the file at a fixed address which already has
9211 something else allocated at it. If we can, also make sure that
9212 we see the same garbage. */
9213 fd = open ("conftest.mmap", O_RDWR);
9214 if (fd < 0)
9215 return 9;
9216 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9217 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9218 return 10;
9219 for (i = 0; i < pagesize; ++i)
9220 if (*(data + i) != *(data2 + i))
9221 return 11;
9222
9223 /* Finally, make sure that changes to the mapped area do not
9224 percolate back to the file as seen by read(). (This is a bug on
9225 some variants of i386 svr4.0.) */
9226 for (i = 0; i < pagesize; ++i)
9227 *(data2 + i) = *(data2 + i) + 1;
9228 data3 = (char *) malloc (pagesize);
9229 if (!data3)
9230 return 12;
9231 if (read (fd, data3, pagesize) != pagesize)
9232 return 13;
9233 for (i = 0; i < pagesize; ++i)
9234 if (*(data + i) != *(data3 + i))
9235 return 14;
9236 close (fd);
9237 return 0;
9238}
9239_ACEOF
9240if ac_fn_c_try_run "$LINENO"; then :
9241 ac_cv_func_mmap_fixed_mapped=yes
9242else
9243 ac_cv_func_mmap_fixed_mapped=no
9244fi
9245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9246 conftest.$ac_objext conftest.beam conftest.$ac_ext
9247fi
9248
9249fi
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9251$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9252if test $ac_cv_func_mmap_fixed_mapped = yes; then
9253
9254$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9255
9256fi
9257rm -f conftest.mmap conftest.txt
9258
9259if test $use_mmap_for_buffers = yes; then
9260
9261$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9262
9263 REL_ALLOC=no
9264fi
9265
9266LIBS="$LIBS_SYSTEM $LIBS"
9267
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9269$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
d6974efa 9270if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
067d23c9
KY
9271 $as_echo_n "(cached) " >&6
9272else
9273 ac_check_lib_save_LIBS=$LIBS
9274LIBS="-ldnet $LIBS"
9275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h. */
9277
9278/* Override any GCC internal prototype to avoid an error.
9279 Use char because int might match the return type of a GCC
9280 builtin and then its argument prototype would still apply. */
9281#ifdef __cplusplus
9282extern "C"
9283#endif
9284char dnet_ntoa ();
9285int
9286main ()
9287{
9288return dnet_ntoa ();
9289 ;
9290 return 0;
9291}
9292_ACEOF
9293if ac_fn_c_try_link "$LINENO"; then :
9294 ac_cv_lib_dnet_dnet_ntoa=yes
9295else
9296 ac_cv_lib_dnet_dnet_ntoa=no
9297fi
9298rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9300LIBS=$ac_check_lib_save_LIBS
9301fi
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9303$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
d6974efa 9304if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
067d23c9
KY
9305 cat >>confdefs.h <<_ACEOF
9306#define HAVE_LIBDNET 1
9307_ACEOF
9308
9309 LIBS="-ldnet $LIBS"
9310
9311fi
9312
9313
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9315$as_echo_n "checking for main in -lXbsd... " >&6; }
d6974efa 9316if ${ac_cv_lib_Xbsd_main+:} false; then :
067d23c9
KY
9317 $as_echo_n "(cached) " >&6
9318else
9319 ac_check_lib_save_LIBS=$LIBS
9320LIBS="-lXbsd $LIBS"
9321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h. */
9323
9324
9325int
9326main ()
9327{
9328return main ();
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333if ac_fn_c_try_link "$LINENO"; then :
9334 ac_cv_lib_Xbsd_main=yes
9335else
9336 ac_cv_lib_Xbsd_main=no
9337fi
9338rm -f core conftest.err conftest.$ac_objext \
9339 conftest$ac_exeext conftest.$ac_ext
9340LIBS=$ac_check_lib_save_LIBS
9341fi
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9343$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
d6974efa 9344if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
067d23c9
KY
9345 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9346fi
9347
9348
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9350$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
d6974efa 9351if ${ac_cv_lib_pthreads_cma_open+:} false; then :
067d23c9
KY
9352 $as_echo_n "(cached) " >&6
9353else
9354 ac_check_lib_save_LIBS=$LIBS
9355LIBS="-lpthreads $LIBS"
9356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357/* end confdefs.h. */
9358
9359/* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
9362#ifdef __cplusplus
9363extern "C"
9364#endif
9365char cma_open ();
9366int
9367main ()
9368{
9369return cma_open ();
9370 ;
9371 return 0;
9372}
9373_ACEOF
9374if ac_fn_c_try_link "$LINENO"; then :
9375 ac_cv_lib_pthreads_cma_open=yes
9376else
9377 ac_cv_lib_pthreads_cma_open=no
9378fi
9379rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381LIBS=$ac_check_lib_save_LIBS
9382fi
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9384$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
d6974efa 9385if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
067d23c9
KY
9386 cat >>confdefs.h <<_ACEOF
9387#define HAVE_LIBPTHREADS 1
9388_ACEOF
9389
9390 LIBS="-lpthreads $LIBS"
9391
9392fi
9393
9394
9395## Note: when using cpp in s/aix4.2.h, this definition depended on
9396## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9397## the system file was sourced. Hence the value of LIBS_SYSTEM
9398## added to LIBS in configure would never contain the pthreads part,
9399## but the value used in Makefiles might. FIXME?
9400##
9401## -lpthreads seems to be necessary for Xlib in X11R6, and should
9402## be harmless on older versions of X where it happens to exist.
9403test "$opsys" = "aix4-2" && \
9404 test $ac_cv_lib_pthreads_cma_open = yes && \
9405 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9406
9407
9408case ${host_os} in
9409aix*)
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9411$as_echo_n "checking for -bbigtoc option... " >&6; }
d6974efa 9412if ${gdb_cv_bigtoc+:} false; then :
067d23c9
KY
9413 $as_echo_n "(cached) " >&6
9414else
9415
9416 case $GCC in
9417 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9418 *) gdb_cv_bigtoc=-bbigtoc ;;
9419 esac
9420
9421 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423/* end confdefs.h. */
9424
9425int
9426main ()
9427{
9428int i;
9429 ;
9430 return 0;
9431}
9432_ACEOF
9433if ac_fn_c_try_link "$LINENO"; then :
9434
9435else
9436 gdb_cv_bigtoc=
9437fi
9438rm -f core conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440
9441fi
9442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9443$as_echo "$gdb_cv_bigtoc" >&6; }
9444 ;;
9445esac
9446
9447# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9448# used for the tests that follow. We set them back to REAL_CFLAGS and
9449# REAL_CPPFLAGS later on.
9450
9451REAL_CFLAGS="$CFLAGS"
9452REAL_CPPFLAGS="$CPPFLAGS"
9453
9454if test "${HAVE_X11}" = "yes"; then
9455 DEFS="$C_SWITCH_X_SITE $DEFS"
9456 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9457 LIBS="-lX11 $LIBS"
9458 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9459 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9460
9461 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9462 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9463 # but it's more convenient here to set LD_RUN_PATH
9464 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9465 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9466 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9467 export LD_RUN_PATH
9468 fi
9469
9470 if test "${opsys}" = "gnu-linux"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9472$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474/* end confdefs.h. */
9475
9476int
9477main ()
9478{
9479XOpenDisplay ("foo");
9480 ;
9481 return 0;
9482}
9483_ACEOF
9484if ac_fn_c_try_link "$LINENO"; then :
9485 xlinux_first_failure=no
9486else
9487 xlinux_first_failure=yes
9488fi
9489rm -f core conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9491 if test "${xlinux_first_failure}" = "yes"; then
9492 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9493 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9494 OLD_CPPFLAGS="$CPPFLAGS"
9495 OLD_LIBS="$LIBS"
9496 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9497 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9498 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9499 LIBS="$LIBS -b i486-linuxaout"
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h. */
9502
9503int
9504main ()
9505{
9506XOpenDisplay ("foo");
9507 ;
9508 return 0;
9509}
9510_ACEOF
9511if ac_fn_c_try_link "$LINENO"; then :
9512 xlinux_second_failure=no
9513else
9514 xlinux_second_failure=yes
9515fi
9516rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 if test "${xlinux_second_failure}" = "yes"; then
9519 # If we get the same failure with -b, there is no use adding -b.
9520 # So take it out. This plays safe.
9521 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9522 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9523 CPPFLAGS="$OLD_CPPFLAGS"
9524 LIBS="$OLD_LIBS"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526$as_echo "no" >&6; }
9527 else
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9529$as_echo "yes" >&6; }
9530 fi
9531 else
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533$as_echo "no" >&6; }
9534 fi
9535 fi
9536
9537 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9538 # header files included from there.
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9540$as_echo_n "checking for Xkb... " >&6; }
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h. */
9543#include <X11/Xlib.h>
9544#include <X11/XKBlib.h>
9545int
9546main ()
9547{
9548XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9549 ;
9550 return 0;
9551}
9552_ACEOF
9553if ac_fn_c_try_link "$LINENO"; then :
9554 emacs_xkb=yes
9555else
9556 emacs_xkb=no
9557fi
9558rm -f core conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9561$as_echo "$emacs_xkb" >&6; }
9562 if test $emacs_xkb = yes; then
9563
9564$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9565
9566 fi
9567
9568 for ac_func in XrmSetDatabase XScreenResourceString \
9569XScreenNumberOfScreen XSetWMProtocols
9570do :
9571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9572ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 9573if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
9574 cat >>confdefs.h <<_ACEOF
9575#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9576_ACEOF
9577
9578fi
9579done
9580
9581fi
9582
9583if test "${window_system}" = "x11"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9585$as_echo_n "checking X11 version 6... " >&6; }
d6974efa 9586 if ${emacs_cv_x11_version_6+:} false; then :
067d23c9
KY
9587 $as_echo_n "(cached) " >&6
9588else
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h. */
9591#include <X11/Xlib.h>
9592int
9593main ()
9594{
9595#if XlibSpecificationRelease < 6
9596fail;
9597#endif
9598
9599 ;
9600 return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604 emacs_cv_x11_version_6=yes
9605else
9606 emacs_cv_x11_version_6=no
9607fi
9608rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610fi
9611
9612 if test $emacs_cv_x11_version_6 = yes; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9614$as_echo "6 or newer" >&6; }
9615
9616$as_echo "#define HAVE_X11R6 1" >>confdefs.h
9617
9618
9619$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9620
9621 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9622 ## XIM support.
9623 case "$opsys" in
9624 sol2-*) : ;;
9625 *)
9626$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9627
9628 ;;
9629 esac
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9632$as_echo "before 6" >&6; }
9633 fi
9634fi
9635
9636
9637### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9638HAVE_RSVG=no
9639if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9640 if test "${with_rsvg}" != "no"; then
9641 RSVG_REQUIRED=2.11.0
9642 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9643
9644
9645 succeeded=no
9646
9647 # Extract the first word of "pkg-config", so it can be a program name with args.
9648set dummy pkg-config; ac_word=$2
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9651if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9652 $as_echo_n "(cached) " >&6
9653else
9654 case $PKG_CONFIG in
9655 [\\/]* | ?:[\\/]*)
9656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9657 ;;
9658 *)
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 break 2
9669 fi
9670done
9671 done
9672IFS=$as_save_IFS
9673
9674 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9675 ;;
9676esac
9677fi
9678PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9679if test -n "$PKG_CONFIG"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9681$as_echo "$PKG_CONFIG" >&6; }
9682else
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684$as_echo "no" >&6; }
9685fi
9686
9687
9688
9689 if test "$PKG_CONFIG" = "no" ; then
9690 :
9691 else
9692 PKG_CONFIG_MIN_VERSION=0.9.0
9693 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9695$as_echo_n "checking for $RSVG_MODULE... " >&6; }
9696
9697 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9699$as_echo "yes" >&6; }
9700 succeeded=yes
9701
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9703$as_echo_n "checking RSVG_CFLAGS... " >&6; }
9704 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9706$as_echo "$RSVG_CFLAGS" >&6; }
9707
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9709$as_echo_n "checking RSVG_LIBS... " >&6; }
9710 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9712$as_echo "$RSVG_LIBS" >&6; }
9713 else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715$as_echo "no" >&6; }
9716 RSVG_CFLAGS=""
9717 RSVG_LIBS=""
9718 ## If we have a custom action on failure, don't print errors, but
9719 ## do set a variable so people can do so.
9720 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9721
9722 fi
9723
9724
9725
9726 else
9727 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9728 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9729 fi
9730 fi
9731
9732 if test $succeeded = yes; then
9733 HAVE_RSVG=yes
9734 else
9735 :
9736 fi
9737
9738
9739
9740
9741 if test $HAVE_RSVG = yes; then
9742
9743$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9744
9745 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9746 LIBS="$RSVG_LIBS $LIBS"
9747 fi
9748 fi
9749fi
9750
9751HAVE_IMAGEMAGICK=no
9752if test "${HAVE_X11}" = "yes"; then
9753 if test "${with_imagemagick}" != "no"; then
9754 IMAGEMAGICK_MODULE="Wand"
9755
9756 succeeded=no
9757
9758 # Extract the first word of "pkg-config", so it can be a program name with args.
9759set dummy pkg-config; ac_word=$2
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9762if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9763 $as_echo_n "(cached) " >&6
9764else
9765 case $PKG_CONFIG in
9766 [\\/]* | ?:[\\/]*)
9767 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9768 ;;
9769 *)
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771for as_dir in $PATH
9772do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
9776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9777 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9780 fi
9781done
9782 done
9783IFS=$as_save_IFS
9784
9785 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9786 ;;
9787esac
9788fi
9789PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9790if test -n "$PKG_CONFIG"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9792$as_echo "$PKG_CONFIG" >&6; }
9793else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795$as_echo "no" >&6; }
9796fi
9797
9798
9799
9800 if test "$PKG_CONFIG" = "no" ; then
9801 :
9802 else
9803 PKG_CONFIG_MIN_VERSION=0.9.0
9804 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9806$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9807
9808 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9810$as_echo "yes" >&6; }
9811 succeeded=yes
9812
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9814$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9815 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9817$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9820$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9821 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9823$as_echo "$IMAGEMAGICK_LIBS" >&6; }
9824 else
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826$as_echo "no" >&6; }
9827 IMAGEMAGICK_CFLAGS=""
9828 IMAGEMAGICK_LIBS=""
9829 ## If we have a custom action on failure, don't print errors, but
9830 ## do set a variable so people can do so.
9831 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9832
9833 fi
9834
9835
9836
9837 else
9838 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9839 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9840 fi
9841 fi
9842
9843 if test $succeeded = yes; then
9844 HAVE_IMAGEMAGICK=yes
9845 else
9846 :
9847 fi
9848
9849
9850
9851
9852 if test $HAVE_IMAGEMAGICK = yes; then
9853
9854$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9855
9856 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9857 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9858 for ac_func in MagickExportImagePixels
9859do :
9860 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
d6974efa 9861if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
067d23c9
KY
9862 cat >>confdefs.h <<_ACEOF
9863#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9864_ACEOF
9865
9866fi
9867done
9868
9869 fi
9870 fi
9871fi
9872
9873
9874HAVE_GTK=no
9875if test "${with_gtk3}" = "yes"; then
9876 GLIB_REQUIRED=2.6
9877 GTK_REQUIRED=2.90
9878 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9879
9880
9881 succeeded=no
9882
9883 # Extract the first word of "pkg-config", so it can be a program name with args.
9884set dummy pkg-config; ac_word=$2
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9887if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9888 $as_echo_n "(cached) " >&6
9889else
9890 case $PKG_CONFIG in
9891 [\\/]* | ?:[\\/]*)
9892 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9893 ;;
9894 *)
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896for as_dir in $PATH
9897do
9898 IFS=$as_save_IFS
9899 test -z "$as_dir" && as_dir=.
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 break 2
9905 fi
9906done
9907 done
9908IFS=$as_save_IFS
9909
9910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9911 ;;
9912esac
9913fi
9914PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9915if test -n "$PKG_CONFIG"; then
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9917$as_echo "$PKG_CONFIG" >&6; }
9918else
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920$as_echo "no" >&6; }
9921fi
9922
9923
9924
9925 if test "$PKG_CONFIG" = "no" ; then
9926 pkg_check_gtk=no
9927 else
9928 PKG_CONFIG_MIN_VERSION=0.9.0
9929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9931$as_echo_n "checking for $GTK_MODULES... " >&6; }
9932
9933 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9935$as_echo "yes" >&6; }
9936 succeeded=yes
9937
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9939$as_echo_n "checking GTK_CFLAGS... " >&6; }
9940 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9942$as_echo "$GTK_CFLAGS" >&6; }
9943
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9945$as_echo_n "checking GTK_LIBS... " >&6; }
9946 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9948$as_echo "$GTK_LIBS" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951$as_echo "no" >&6; }
9952 GTK_CFLAGS=""
9953 GTK_LIBS=""
9954 ## If we have a custom action on failure, don't print errors, but
9955 ## do set a variable so people can do so.
9956 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9957
9958 fi
9959
9960
9961
9962 else
9963 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9964 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9965 fi
9966 fi
9967
9968 if test $succeeded = yes; then
9969 pkg_check_gtk=yes
9970 else
9971 pkg_check_gtk=no
9972 fi
9973
9974 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 9975 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
9976 fi
9977fi
9978
9979if test "$pkg_check_gtk" != "yes"; then
9980 HAVE_GTK=no
9981if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9982 GLIB_REQUIRED=2.6
9983 GTK_REQUIRED=2.6
9984 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9985
9986
9987 succeeded=no
9988
9989 # Extract the first word of "pkg-config", so it can be a program name with args.
9990set dummy pkg-config; ac_word=$2
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9993if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9994 $as_echo_n "(cached) " >&6
9995else
9996 case $PKG_CONFIG in
9997 [\\/]* | ?:[\\/]*)
9998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9999 ;;
10000 *)
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002for as_dir in $PATH
10003do
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10011 fi
10012done
10013 done
10014IFS=$as_save_IFS
10015
10016 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10017 ;;
10018esac
10019fi
10020PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10021if test -n "$PKG_CONFIG"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10023$as_echo "$PKG_CONFIG" >&6; }
10024else
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026$as_echo "no" >&6; }
10027fi
10028
10029
10030
10031 if test "$PKG_CONFIG" = "no" ; then
10032 pkg_check_gtk=no
10033 else
10034 PKG_CONFIG_MIN_VERSION=0.9.0
10035 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10037$as_echo_n "checking for $GTK_MODULES... " >&6; }
10038
10039 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10041$as_echo "yes" >&6; }
10042 succeeded=yes
10043
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10045$as_echo_n "checking GTK_CFLAGS... " >&6; }
10046 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10048$as_echo "$GTK_CFLAGS" >&6; }
10049
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10051$as_echo_n "checking GTK_LIBS... " >&6; }
10052 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10054$as_echo "$GTK_LIBS" >&6; }
10055 else
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057$as_echo "no" >&6; }
10058 GTK_CFLAGS=""
10059 GTK_LIBS=""
10060 ## If we have a custom action on failure, don't print errors, but
10061 ## do set a variable so people can do so.
10062 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10063
10064 fi
10065
10066
10067
10068 else
10069 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10070 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10071 fi
10072 fi
10073
10074 if test $succeeded = yes; then
10075 pkg_check_gtk=yes
10076 else
10077 pkg_check_gtk=no
10078 fi
10079
10080 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10081 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10082 fi
10083fi
10084fi
10085
10086GTK_OBJ=
10087if test x"$pkg_check_gtk" = xyes; then
10088
10089
10090
10091 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10092 CFLAGS="$CFLAGS $GTK_CFLAGS"
10093 LIBS="$GTK_LIBS $LIBS"
10094 GTK_COMPILES=no
10095 for ac_func in gtk_main
10096do :
10097 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
d6974efa 10098if test "x$ac_cv_func_gtk_main" = xyes; then :
067d23c9
KY
10099 cat >>confdefs.h <<_ACEOF
10100#define HAVE_GTK_MAIN 1
10101_ACEOF
10102 GTK_COMPILES=yes
10103fi
10104done
10105
10106 if test "${GTK_COMPILES}" != "yes"; then
10107 if test "$USE_X_TOOLKIT" != "maybe"; then
d6974efa 10108 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
067d23c9
KY
10109 fi
10110 else
10111 HAVE_GTK=yes
10112
10113$as_echo "#define USE_GTK 1" >>confdefs.h
10114
10115 GTK_OBJ=gtkutil.o
10116 USE_X_TOOLKIT=none
10117 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10118 :
10119 else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10121 closing open displays. This is no problem if you just use
10122 one display, but if you use more than one and close one of them
10123 Emacs may crash." >&5
10124$as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10125 closing open displays. This is no problem if you just use
10126 one display, but if you use more than one and close one of them
10127 Emacs may crash." >&2;}
10128 sleep 3
10129 fi
10130 fi
10131
10132fi
10133
10134
10135
10136if test "${HAVE_GTK}" = "yes"; then
10137
10138 if test "$with_toolkit_scroll_bars" != no; then
10139 with_toolkit_scroll_bars=yes
10140 fi
10141
10142 HAVE_GTK_FILE_SELECTION=no
10143 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10144#include <gtk/gtk.h>
10145"
d6974efa 10146if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
067d23c9
KY
10147 HAVE_GTK_FILE_SELECTION=yes
10148else
10149 HAVE_GTK_FILE_SELECTION=no
10150fi
10151
10152 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10153 for ac_func in gtk_file_selection_new
10154do :
10155 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
d6974efa 10156if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
067d23c9
KY
10157 cat >>confdefs.h <<_ACEOF
10158#define HAVE_GTK_FILE_SELECTION_NEW 1
10159_ACEOF
10160
10161fi
10162done
10163
10164 fi
10165
10166 HAVE_GTK_AND_PTHREAD=no
10167 for ac_header in pthread.h
10168do :
10169 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
d6974efa 10170if test "x$ac_cv_header_pthread_h" = xyes; then :
067d23c9
KY
10171 cat >>confdefs.h <<_ACEOF
10172#define HAVE_PTHREAD_H 1
10173_ACEOF
10174
10175fi
10176
10177done
10178
10179 if test "$ac_cv_header_pthread_h"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10181$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
d6974efa 10182if ${ac_cv_lib_pthread_pthread_self+:} false; then :
067d23c9
KY
10183 $as_echo_n "(cached) " >&6
10184else
10185 ac_check_lib_save_LIBS=$LIBS
10186LIBS="-lpthread $LIBS"
10187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h. */
10189
10190/* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10193#ifdef __cplusplus
10194extern "C"
10195#endif
10196char pthread_self ();
10197int
10198main ()
10199{
10200return pthread_self ();
10201 ;
10202 return 0;
10203}
10204_ACEOF
10205if ac_fn_c_try_link "$LINENO"; then :
10206 ac_cv_lib_pthread_pthread_self=yes
10207else
10208 ac_cv_lib_pthread_pthread_self=no
10209fi
10210rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
10212LIBS=$ac_check_lib_save_LIBS
10213fi
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10215$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
d6974efa 10216if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
067d23c9
KY
10217 HAVE_GTK_AND_PTHREAD=yes
10218fi
10219
10220 fi
10221 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10222 case "${canonical}" in
10223 *-hpux*) ;;
10224 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10225 esac
10226
10227$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10228
10229 fi
10230
10231 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10232 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10233 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10234 gtk_orientable_set_orientation
10235do :
10236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10237ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 10238if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
10239 cat >>confdefs.h <<_ACEOF
10240#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10241_ACEOF
10242
10243fi
10244done
10245
10246
10247fi
10248
10249HAVE_DBUS=no
10250DBUS_OBJ=
10251if test "${with_dbus}" = "yes"; then
10252
10253 succeeded=no
10254
10255 # Extract the first word of "pkg-config", so it can be a program name with args.
10256set dummy pkg-config; ac_word=$2
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10259if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10260 $as_echo_n "(cached) " >&6
10261else
10262 case $PKG_CONFIG in
10263 [\\/]* | ?:[\\/]*)
10264 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10265 ;;
10266 *)
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268for as_dir in $PATH
10269do
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10277 fi
10278done
10279 done
10280IFS=$as_save_IFS
10281
10282 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10283 ;;
10284esac
10285fi
10286PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10287if test -n "$PKG_CONFIG"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10289$as_echo "$PKG_CONFIG" >&6; }
10290else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292$as_echo "no" >&6; }
10293fi
10294
10295
10296
10297 if test "$PKG_CONFIG" = "no" ; then
10298 HAVE_DBUS=no
10299 else
10300 PKG_CONFIG_MIN_VERSION=0.9.0
10301 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10303$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10304
10305 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10307$as_echo "yes" >&6; }
10308 succeeded=yes
10309
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10311$as_echo_n "checking DBUS_CFLAGS... " >&6; }
10312 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10314$as_echo "$DBUS_CFLAGS" >&6; }
10315
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10317$as_echo_n "checking DBUS_LIBS... " >&6; }
10318 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10320$as_echo "$DBUS_LIBS" >&6; }
10321 else
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323$as_echo "no" >&6; }
10324 DBUS_CFLAGS=""
10325 DBUS_LIBS=""
10326 ## If we have a custom action on failure, don't print errors, but
10327 ## do set a variable so people can do so.
10328 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10329
10330 fi
10331
10332
10333
10334 else
10335 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10336 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10337 fi
10338 fi
10339
10340 if test $succeeded = yes; then
10341 HAVE_DBUS=yes
10342 else
10343 HAVE_DBUS=no
10344 fi
10345
10346 if test "$HAVE_DBUS" = yes; then
10347 LIBS="$LIBS $DBUS_LIBS"
10348
10349$as_echo "#define HAVE_DBUS 1" >>confdefs.h
10350
10351 for ac_func in dbus_watch_get_unix_fd
10352do :
10353 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
d6974efa 10354if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
067d23c9
KY
10355 cat >>confdefs.h <<_ACEOF
10356#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10357_ACEOF
10358
10359fi
10360done
10361
10362 DBUS_OBJ=dbusbind.o
10363 fi
10364fi
10365
10366
10367HAVE_GCONF=no
10368if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10369
10370 succeeded=no
10371
10372 # Extract the first word of "pkg-config", so it can be a program name with args.
10373set dummy pkg-config; ac_word=$2
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10376if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10377 $as_echo_n "(cached) " >&6
10378else
10379 case $PKG_CONFIG in
10380 [\\/]* | ?:[\\/]*)
10381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10382 ;;
10383 *)
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385for as_dir in $PATH
10386do
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10391 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 break 2
10394 fi
10395done
10396 done
10397IFS=$as_save_IFS
10398
10399 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10400 ;;
10401esac
10402fi
10403PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10404if test -n "$PKG_CONFIG"; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10406$as_echo "$PKG_CONFIG" >&6; }
10407else
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409$as_echo "no" >&6; }
10410fi
10411
10412
10413
10414 if test "$PKG_CONFIG" = "no" ; then
10415 HAVE_GCONF=no
10416 else
10417 PKG_CONFIG_MIN_VERSION=0.9.0
10418 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10420$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10421
10422 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10424$as_echo "yes" >&6; }
10425 succeeded=yes
10426
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10428$as_echo_n "checking GCONF_CFLAGS... " >&6; }
10429 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10431$as_echo "$GCONF_CFLAGS" >&6; }
10432
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10434$as_echo_n "checking GCONF_LIBS... " >&6; }
10435 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10437$as_echo "$GCONF_LIBS" >&6; }
10438 else
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440$as_echo "no" >&6; }
10441 GCONF_CFLAGS=""
10442 GCONF_LIBS=""
10443 ## If we have a custom action on failure, don't print errors, but
10444 ## do set a variable so people can do so.
10445 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10446
10447 fi
10448
10449
10450
10451 else
10452 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10453 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10454 fi
10455 fi
10456
10457 if test $succeeded = yes; then
10458 HAVE_GCONF=yes
10459 else
10460 HAVE_GCONF=no
10461 fi
10462
10463 if test "$HAVE_GCONF" = yes; then
10464
10465$as_echo "#define HAVE_GCONF 1" >>confdefs.h
10466
10467 for ac_func in g_type_init
10468do :
10469 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
d6974efa 10470if test "x$ac_cv_func_g_type_init" = xyes; then :
067d23c9
KY
10471 cat >>confdefs.h <<_ACEOF
10472#define HAVE_G_TYPE_INIT 1
10473_ACEOF
10474
10475fi
10476done
10477
10478 fi
10479fi
10480
10481HAVE_LIBSELINUX=no
10482LIBSELINUX_LIBS=
10483if test "${with_selinux}" = "yes"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10485$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
d6974efa 10486if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
067d23c9
KY
10487 $as_echo_n "(cached) " >&6
10488else
10489 ac_check_lib_save_LIBS=$LIBS
10490LIBS="-lselinux $LIBS"
10491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492/* end confdefs.h. */
10493
10494/* Override any GCC internal prototype to avoid an error.
10495 Use char because int might match the return type of a GCC
10496 builtin and then its argument prototype would still apply. */
10497#ifdef __cplusplus
10498extern "C"
10499#endif
10500char lgetfilecon ();
10501int
10502main ()
10503{
10504return lgetfilecon ();
10505 ;
10506 return 0;
10507}
10508_ACEOF
10509if ac_fn_c_try_link "$LINENO"; then :
10510 ac_cv_lib_selinux_lgetfilecon=yes
10511else
10512 ac_cv_lib_selinux_lgetfilecon=no
10513fi
10514rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516LIBS=$ac_check_lib_save_LIBS
10517fi
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10519$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
d6974efa 10520if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
067d23c9
KY
10521 HAVE_LIBSELINUX=yes
10522else
10523 HAVE_LIBSELINUX=no
10524fi
10525
10526 if test "$HAVE_LIBSELINUX" = yes; then
10527
10528$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10529
10530 LIBSELINUX_LIBS=-lselinux
10531 fi
10532fi
10533
10534
10535HAVE_GNUTLS=no
10536if test "${with_gnutls}" = "yes" ; then
10537
10538 succeeded=no
10539
10540 # Extract the first word of "pkg-config", so it can be a program name with args.
10541set dummy pkg-config; ac_word=$2
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10544if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10545 $as_echo_n "(cached) " >&6
10546else
10547 case $PKG_CONFIG in
10548 [\\/]* | ?:[\\/]*)
10549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10550 ;;
10551 *)
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553for as_dir in $PATH
10554do
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10562 fi
10563done
10564 done
10565IFS=$as_save_IFS
10566
10567 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10568 ;;
10569esac
10570fi
10571PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10572if test -n "$PKG_CONFIG"; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10574$as_echo "$PKG_CONFIG" >&6; }
10575else
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577$as_echo "no" >&6; }
10578fi
10579
10580
10581
10582 if test "$PKG_CONFIG" = "no" ; then
10583 HAVE_GNUTLS=no
10584 else
10585 PKG_CONFIG_MIN_VERSION=0.9.0
10586 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10588$as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10589
10590 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10592$as_echo "yes" >&6; }
10593 succeeded=yes
10594
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10596$as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10597 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10599$as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10600
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10602$as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10603 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10605$as_echo "$LIBGNUTLS_LIBS" >&6; }
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608$as_echo "no" >&6; }
10609 LIBGNUTLS_CFLAGS=""
10610 LIBGNUTLS_LIBS=""
10611 ## If we have a custom action on failure, don't print errors, but
10612 ## do set a variable so people can do so.
10613 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10614
10615 fi
10616
10617
10618
10619 else
10620 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10621 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10622 fi
10623 fi
10624
10625 if test $succeeded = yes; then
10626 HAVE_GNUTLS=yes
10627 else
10628 HAVE_GNUTLS=no
10629 fi
10630
10631 if test "${HAVE_GNUTLS}" = "yes"; then
10632
10633$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10634
10635 fi
10636fi
10637
10638
10639
10640HAVE_XAW3D=no
10641LUCID_LIBW=
10642if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10643 if test "$with_xaw3d" != no; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10645$as_echo_n "checking for xaw3d... " >&6; }
d6974efa 10646 if ${emacs_cv_xaw3d+:} false; then :
067d23c9
KY
10647 $as_echo_n "(cached) " >&6
10648else
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650/* end confdefs.h. */
10651
10652#include <X11/Intrinsic.h>
10653#include <X11/Xaw3d/Simple.h>
10654int
10655main ()
10656{
10657
10658 ;
10659 return 0;
10660}
10661_ACEOF
10662if ac_fn_c_try_link "$LINENO"; then :
14beddf4
CY
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10664$as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
67342916 10665if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
ae1362a3
AS
10666 $as_echo_n "(cached) " >&6
10667else
10668 ac_check_lib_save_LIBS=$LIBS
14beddf4 10669LIBS="-lXaw3d $LIBS"
ae1362a3
AS
10670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671/* end confdefs.h. */
bf89cb4d 10672
ae1362a3
AS
10673/* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676#ifdef __cplusplus
10677extern "C"
10678#endif
14beddf4 10679char XawScrollbarSetThumb ();
ae1362a3
AS
10680int
10681main ()
10682{
14beddf4 10683return XawScrollbarSetThumb ();
ae1362a3
AS
10684 ;
10685 return 0;
10686}
10687_ACEOF
10688if ac_fn_c_try_link "$LINENO"; then :
14beddf4 10689 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
ae1362a3 10690else
14beddf4 10691 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
ae1362a3
AS
10692fi
10693rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695LIBS=$ac_check_lib_save_LIBS
10696fi
14beddf4
CY
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10698$as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
67342916 10699if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
067d23c9
KY
10700 emacs_cv_xaw3d=yes
10701else
10702 emacs_cv_xaw3d=no
10703fi
14beddf4
CY
10704
10705else
10706 emacs_cv_xaw3d=no
10707fi
067d23c9
KY
10708rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710fi
10711
10712 else
10713 emacs_cv_xaw3d=no
10714 fi
10715 if test $emacs_cv_xaw3d = yes; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10717$as_echo "yes; using Lucid toolkit" >&6; }
10718 USE_X_TOOLKIT=LUCID
10719 HAVE_XAW3D=yes
10720 LUCID_LIBW=-lXaw3d
10721
10722$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10723
10724 else
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726$as_echo "no" >&6; }
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10728$as_echo_n "checking for libXaw... " >&6; }
d6974efa 10729 if ${emacs_cv_xaw+:} false; then :
067d23c9
KY
10730 $as_echo_n "(cached) " >&6
10731else
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733/* end confdefs.h. */
10734
10735#include <X11/Intrinsic.h>
10736#include <X11/Xaw/Simple.h>
10737int
10738main ()
10739{
10740
10741 ;
10742 return 0;
10743}
10744_ACEOF
10745if ac_fn_c_try_link "$LINENO"; then :
10746 emacs_cv_xaw=yes
10747else
10748 emacs_cv_xaw=no
10749fi
10750rm -f core conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752fi
10753
10754 if test $emacs_cv_xaw = yes; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10756$as_echo "yes; using Lucid toolkit" >&6; }
10757 USE_X_TOOLKIT=LUCID
10758 LUCID_LIBW=-lXaw
10759 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
2018939f 10760 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
067d23c9
KY
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10763$as_echo "no; do not use toolkit by default" >&6; }
10764 USE_X_TOOLKIT=none
10765 fi
10766 fi
10767fi
10768
10769X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10770
10771LIBXTR6=
10772if test "${USE_X_TOOLKIT}" != "none"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10774$as_echo_n "checking X11 toolkit version... " >&6; }
d6974efa 10775 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
067d23c9
KY
10776 $as_echo_n "(cached) " >&6
10777else
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779/* end confdefs.h. */
10780#include <X11/Intrinsic.h>
10781int
10782main ()
10783{
10784#if XtSpecificationRelease < 6
10785fail;
10786#endif
10787
10788 ;
10789 return 0;
10790}
10791_ACEOF
10792if ac_fn_c_try_link "$LINENO"; then :
10793 emacs_cv_x11_toolkit_version_6=yes
10794else
10795 emacs_cv_x11_toolkit_version_6=no
10796fi
10797rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799fi
10800
10801 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10802 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10804$as_echo "6 or newer" >&6; }
10805
10806$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10807
10808 LIBXTR6="-lSM -lICE"
10809 case "$opsys" in
10810 ## Use libw.a along with X11R6 Xt.
10811 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10812 esac
10813 else
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10815$as_echo "before 6" >&6; }
10816 fi
10817
10818 OLDLIBS="$LIBS"
10819 if test x$HAVE_X11XTR6 = xyes; then
10820 LIBS="-lXt -lSM -lICE $LIBS"
10821 else
10822 LIBS="-lXt $LIBS"
10823 fi
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10825$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
d6974efa 10826if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
067d23c9
KY
10827 $as_echo_n "(cached) " >&6
10828else
10829 ac_check_lib_save_LIBS=$LIBS
10830LIBS="-lXmu $LIBS"
10831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832/* end confdefs.h. */
10833
10834/* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
10837#ifdef __cplusplus
10838extern "C"
10839#endif
10840char XmuConvertStandardSelection ();
10841int
10842main ()
10843{
10844return XmuConvertStandardSelection ();
10845 ;
10846 return 0;
10847}
10848_ACEOF
10849if ac_fn_c_try_link "$LINENO"; then :
10850 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10851else
10852 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10853fi
10854rm -f core conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
10856LIBS=$ac_check_lib_save_LIBS
10857fi
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10859$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
d6974efa 10860if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
067d23c9
KY
10861 cat >>confdefs.h <<_ACEOF
10862#define HAVE_LIBXMU 1
10863_ACEOF
10864
10865 LIBS="-lXmu $LIBS"
10866
10867fi
10868
10869 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10870fi
10871
10872
10873LIBXMU=-lXmu
d6a003a8
AS
10874case $opsys in
10875 ## These systems don't supply Xmu.
067d23c9
KY
10876 hpux* | aix4-2 )
10877 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10878 ;;
10879esac
10880
10881
10882# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10883if test "${HAVE_X11}" = "yes"; then
10884 if test "${USE_X_TOOLKIT}" != "none"; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10886$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
d6974efa 10887if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
067d23c9
KY
10888 $as_echo_n "(cached) " >&6
10889else
10890 ac_check_lib_save_LIBS=$LIBS
10891LIBS="-lXext $LIBS"
10892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893/* end confdefs.h. */
10894
10895/* Override any GCC internal prototype to avoid an error.
10896 Use char because int might match the return type of a GCC
10897 builtin and then its argument prototype would still apply. */
10898#ifdef __cplusplus
10899extern "C"
10900#endif
10901char XShapeQueryExtension ();
10902int
10903main ()
10904{
10905return XShapeQueryExtension ();
10906 ;
10907 return 0;
10908}
10909_ACEOF
10910if ac_fn_c_try_link "$LINENO"; then :
10911 ac_cv_lib_Xext_XShapeQueryExtension=yes
10912else
10913 ac_cv_lib_Xext_XShapeQueryExtension=no
10914fi
10915rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917LIBS=$ac_check_lib_save_LIBS
10918fi
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10920$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
d6974efa 10921if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
067d23c9
KY
10922 cat >>confdefs.h <<_ACEOF
10923#define HAVE_LIBXEXT 1
10924_ACEOF
10925
10926 LIBS="-lXext $LIBS"
10927
10928fi
10929
10930 fi
10931fi
10932
10933LIBXP=
10934if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10936$as_echo_n "checking for Motif version 2.1... " >&6; }
d6974efa 10937if ${emacs_cv_motif_version_2_1+:} false; then :
067d23c9
KY
10938 $as_echo_n "(cached) " >&6
10939else
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941/* end confdefs.h. */
10942#include <Xm/Xm.h>
10943int
10944main ()
10945{
10946#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10947int x = 5;
10948#else
10949Motif version prior to 2.1.
10950#endif
10951 ;
10952 return 0;
10953}
10954_ACEOF
10955if ac_fn_c_try_compile "$LINENO"; then :
10956 emacs_cv_motif_version_2_1=yes
10957else
10958 emacs_cv_motif_version_2_1=no
10959fi
10960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961fi
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10963$as_echo "$emacs_cv_motif_version_2_1" >&6; }
10964 if test $emacs_cv_motif_version_2_1 = yes; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10966$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
d6974efa 10967if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
067d23c9
KY
10968 $as_echo_n "(cached) " >&6
10969else
10970 ac_check_lib_save_LIBS=$LIBS
10971LIBS="-lXp $LIBS"
10972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973/* end confdefs.h. */
10974
10975/* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10978#ifdef __cplusplus
10979extern "C"
10980#endif
10981char XpCreateContext ();
10982int
10983main ()
10984{
10985return XpCreateContext ();
10986 ;
10987 return 0;
10988}
10989_ACEOF
10990if ac_fn_c_try_link "$LINENO"; then :
10991 ac_cv_lib_Xp_XpCreateContext=yes
10992else
10993 ac_cv_lib_Xp_XpCreateContext=no
10994fi
10995rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997LIBS=$ac_check_lib_save_LIBS
10998fi
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11000$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
d6974efa 11001if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
067d23c9
KY
11002 LIBXP=-lXp
11003fi
11004
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11007$as_echo_n "checking for LessTif where some systems put it... " >&6; }
d6974efa 11008if ${emacs_cv_lesstif+:} false; then :
067d23c9
KY
11009 $as_echo_n "(cached) " >&6
11010else
11011 # We put this in CFLAGS temporarily to precede other -I options
11012 # that might be in CFLAGS temporarily.
11013 # We put this in CPPFLAGS where it precedes the other -I options.
11014 OLD_CPPFLAGS=$CPPFLAGS
11015 OLD_CFLAGS=$CFLAGS
11016 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11017 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h. */
11020#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11021int
11022main ()
11023{
11024int x = 5;
11025 ;
11026 return 0;
11027}
11028_ACEOF
11029if ac_fn_c_try_compile "$LINENO"; then :
11030 emacs_cv_lesstif=yes
11031else
11032 emacs_cv_lesstif=no
11033fi
11034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035fi
11036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11037$as_echo "$emacs_cv_lesstif" >&6; }
11038 if test $emacs_cv_lesstif = yes; then
11039 # Make sure this -I option remains in CPPFLAGS after it is set
11040 # back to REAL_CPPFLAGS.
11041 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11042 # have those other -I options anyway. Ultimately, having this
11043 # directory ultimately in CPPFLAGS will be enough.
11044 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11045 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11046 else
11047 CFLAGS=$OLD_CFLAGS
11048 CPPFLAGS=$OLD_CPPFLAGS
11049 fi
11050 fi
11051fi
11052
11053
11054USE_TOOLKIT_SCROLL_BARS=no
11055if test "${with_toolkit_scroll_bars}" != "no"; then
11056 if test "${USE_X_TOOLKIT}" != "none"; then
11057 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11058 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11059
11060 HAVE_XAW3D=no
11061 USE_TOOLKIT_SCROLL_BARS=yes
11062 elif test "${HAVE_XAW3D}" = "yes"; then
11063 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11064
11065 USE_TOOLKIT_SCROLL_BARS=yes
11066 fi
11067 elif test "${HAVE_GTK}" = "yes"; then
11068 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11069
11070 USE_TOOLKIT_SCROLL_BARS=yes
11071 elif test "${HAVE_NS}" = "yes"; then
11072 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11073
11074 USE_TOOLKIT_SCROLL_BARS=yes
11075 fi
11076fi
11077
11078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079/* end confdefs.h. */
11080
11081 #include <X11/Xlib.h>
11082 #include <X11/Xresource.h>
11083int
11084main ()
11085{
11086XIMProc callback;
11087 ;
11088 return 0;
11089}
11090_ACEOF
11091if ac_fn_c_try_compile "$LINENO"; then :
11092 HAVE_XIM=yes
11093
11094$as_echo "#define HAVE_XIM 1" >>confdefs.h
11095
11096else
11097 HAVE_XIM=no
11098fi
11099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100
11101
11102if test "${with_xim}" != "no"; then
11103
11104$as_echo "#define USE_XIM 1" >>confdefs.h
11105
11106fi
11107
11108
11109if test "${HAVE_XIM}" != "no"; then
11110 late_CFLAGS=$CFLAGS
11111 if test "$GCC" = yes; then
11112 CFLAGS="$CFLAGS --pedantic-errors"
11113 fi
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115/* end confdefs.h. */
11116
11117#include <X11/Xlib.h>
11118#include <X11/Xresource.h>
11119int
11120main ()
11121{
11122Display *display;
11123XrmDatabase db;
11124char *res_name;
11125char *res_class;
11126XIMProc callback;
11127XPointer *client_data;
11128#ifndef __GNUC__
11129/* If we're not using GCC, it's probably not XFree86, and this is
11130 probably right, but we can't use something like --pedantic-errors. */
11131extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11132 char*, XIMProc, XPointer*);
11133#endif
11134(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11135 client_data);
11136 ;
11137 return 0;
11138}
11139_ACEOF
11140if ac_fn_c_try_compile "$LINENO"; then :
11141 emacs_cv_arg6_star=yes
11142fi
11143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 if test "$emacs_cv_arg6_star" = yes; then
11145 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11146
11147 else
11148 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11149
11150 fi
11151 CFLAGS=$late_CFLAGS
11152fi
11153
11154### Start of font-backend (under any platform) section.
11155# (nothing here yet -- this is a placeholder)
11156### End of font-backend (under any platform) section.
11157
11158### Start of font-backend (under X11) section.
11159if test "${HAVE_X11}" = "yes"; then
11160
11161 succeeded=no
11162
11163 # Extract the first word of "pkg-config", so it can be a program name with args.
11164set dummy pkg-config; ac_word=$2
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11167if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11168 $as_echo_n "(cached) " >&6
11169else
11170 case $PKG_CONFIG in
11171 [\\/]* | ?:[\\/]*)
11172 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11173 ;;
11174 *)
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176for as_dir in $PATH
11177do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186done
11187 done
11188IFS=$as_save_IFS
11189
11190 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11191 ;;
11192esac
11193fi
11194PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11195if test -n "$PKG_CONFIG"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11197$as_echo "$PKG_CONFIG" >&6; }
11198else
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200$as_echo "no" >&6; }
11201fi
11202
11203
11204
11205 if test "$PKG_CONFIG" = "no" ; then
11206 HAVE_FC=no
11207 else
11208 PKG_CONFIG_MIN_VERSION=0.9.0
11209 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11211$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11212
11213 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215$as_echo "yes" >&6; }
11216 succeeded=yes
11217
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11219$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11220 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11222$as_echo "$FONTCONFIG_CFLAGS" >&6; }
11223
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11225$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11226 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11228$as_echo "$FONTCONFIG_LIBS" >&6; }
11229 else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231$as_echo "no" >&6; }
11232 FONTCONFIG_CFLAGS=""
11233 FONTCONFIG_LIBS=""
11234 ## If we have a custom action on failure, don't print errors, but
11235 ## do set a variable so people can do so.
11236 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11237
11238 fi
11239
11240
11241
11242 else
11243 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11244 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11245 fi
11246 fi
11247
11248 if test $succeeded = yes; then
11249 HAVE_FC=yes
11250 else
11251 HAVE_FC=no
11252 fi
11253
11254
11255 ## Use -lXft if available, unless `--with-xft=no'.
11256 HAVE_XFT=maybe
11257 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11258 with_xft="no";
11259 fi
11260 if test "x${with_xft}" != "xno"; then
11261
11262
11263 succeeded=no
11264
11265 # Extract the first word of "pkg-config", so it can be a program name with args.
11266set dummy pkg-config; ac_word=$2
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11269if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11270 $as_echo_n "(cached) " >&6
11271else
11272 case $PKG_CONFIG in
11273 [\\/]* | ?:[\\/]*)
11274 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11275 ;;
11276 *)
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278for as_dir in $PATH
11279do
11280 IFS=$as_save_IFS
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11284 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 break 2
11287 fi
11288done
11289 done
11290IFS=$as_save_IFS
11291
11292 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11293 ;;
11294esac
11295fi
11296PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11297if test -n "$PKG_CONFIG"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11299$as_echo "$PKG_CONFIG" >&6; }
11300else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302$as_echo "no" >&6; }
11303fi
11304
11305
11306
11307 if test "$PKG_CONFIG" = "no" ; then
11308 HAVE_XFT=no
11309 else
11310 PKG_CONFIG_MIN_VERSION=0.9.0
11311 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11313$as_echo_n "checking for xft >= 0.13.0... " >&6; }
11314
11315 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11317$as_echo "yes" >&6; }
11318 succeeded=yes
11319
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11321$as_echo_n "checking XFT_CFLAGS... " >&6; }
11322 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11324$as_echo "$XFT_CFLAGS" >&6; }
11325
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11327$as_echo_n "checking XFT_LIBS... " >&6; }
11328 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11330$as_echo "$XFT_LIBS" >&6; }
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333$as_echo "no" >&6; }
11334 XFT_CFLAGS=""
11335 XFT_LIBS=""
11336 ## If we have a custom action on failure, don't print errors, but
11337 ## do set a variable so people can do so.
11338 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11339
11340 fi
11341
11342
11343
11344 else
11345 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11346 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11347 fi
11348 fi
11349
11350 if test $succeeded = yes; then
11351 :
11352 else
11353 HAVE_XFT=no
11354 fi
11355
11356 ## Because xftfont.c uses XRenderQueryExtension, we also
11357 ## need to link to -lXrender.
11358 HAVE_XRENDER=no
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11360$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
d6974efa 11361if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
067d23c9
KY
11362 $as_echo_n "(cached) " >&6
11363else
11364 ac_check_lib_save_LIBS=$LIBS
11365LIBS="-lXrender $LIBS"
11366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367/* end confdefs.h. */
11368
11369/* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372#ifdef __cplusplus
11373extern "C"
11374#endif
11375char XRenderQueryExtension ();
11376int
11377main ()
11378{
11379return XRenderQueryExtension ();
11380 ;
11381 return 0;
11382}
11383_ACEOF
11384if ac_fn_c_try_link "$LINENO"; then :
11385 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11386else
11387 ac_cv_lib_Xrender_XRenderQueryExtension=no
11388fi
11389rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391LIBS=$ac_check_lib_save_LIBS
11392fi
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11394$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
d6974efa 11395if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
067d23c9
KY
11396 HAVE_XRENDER=yes
11397fi
11398
11399 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11400 OLD_CPPFLAGS="$CPPFLAGS"
11401 OLD_CFLAGS="$CFLAGS"
11402 OLD_LIBS="$LIBS"
11403 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11404 CFLAGS="$CFLAGS $XFT_CFLAGS"
11405 XFT_LIBS="-lXrender $XFT_LIBS"
11406 LIBS="$XFT_LIBS $LIBS"
11407 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
d6974efa 11408if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
067d23c9
KY
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11410$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
d6974efa 11411if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
067d23c9
KY
11412 $as_echo_n "(cached) " >&6
11413else
11414 ac_check_lib_save_LIBS=$LIBS
11415LIBS="-lXft $XFT_LIBS $LIBS"
11416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417/* end confdefs.h. */
11418
11419/* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422#ifdef __cplusplus
11423extern "C"
11424#endif
11425char XftFontOpen ();
11426int
11427main ()
11428{
11429return XftFontOpen ();
11430 ;
11431 return 0;
11432}
11433_ACEOF
11434if ac_fn_c_try_link "$LINENO"; then :
11435 ac_cv_lib_Xft_XftFontOpen=yes
11436else
11437 ac_cv_lib_Xft_XftFontOpen=no
11438fi
11439rm -f core conftest.err conftest.$ac_objext \
11440 conftest$ac_exeext conftest.$ac_ext
11441LIBS=$ac_check_lib_save_LIBS
11442fi
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11444$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
d6974efa 11445if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
067d23c9
KY
11446 HAVE_XFT=yes
11447fi
11448
11449fi
11450
11451
11452
11453 if test "${HAVE_XFT}" = "yes"; then
11454
11455$as_echo "#define HAVE_XFT 1" >>confdefs.h
11456
11457
11458 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11459 else
11460 CPPFLAGS="$OLD_CPPFLAGS"
11461 CFLAGS="$OLD_CFLAGS"
11462 LIBS="$OLD_LIBS"
11463 fi # "${HAVE_XFT}" = "yes"
11464 fi # "$HAVE_XFT" != no
11465 fi # "x${with_xft}" != "xno"
11466
11467 if test "$HAVE_XFT" != "yes"; then
11468 HAVE_XFT=no
11469 fi
11470
067d23c9
KY
11471 ## We used to allow building with FreeType and without Xft.
11472 ## However, the ftx font backend driver is not in good shape.
9ba41eb9 11473 HAVE_FREETYPE=$HAVE_XFT
067d23c9
KY
11474
11475 HAVE_LIBOTF=no
11476 if test "${HAVE_FREETYPE}" = "yes"; then
11477
11478$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11479
11480 if test "${with_libotf}" != "no"; then
11481
11482 succeeded=no
11483
11484 # Extract the first word of "pkg-config", so it can be a program name with args.
11485set dummy pkg-config; ac_word=$2
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11488if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11489 $as_echo_n "(cached) " >&6
11490else
11491 case $PKG_CONFIG in
11492 [\\/]* | ?:[\\/]*)
11493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11494 ;;
11495 *)
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497for as_dir in $PATH
11498do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11503 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11506 fi
11507done
11508 done
11509IFS=$as_save_IFS
11510
11511 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11512 ;;
11513esac
11514fi
11515PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11516if test -n "$PKG_CONFIG"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11518$as_echo "$PKG_CONFIG" >&6; }
11519else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521$as_echo "no" >&6; }
11522fi
11523
11524
11525
11526 if test "$PKG_CONFIG" = "no" ; then
11527 HAVE_LIBOTF=no
11528 else
11529 PKG_CONFIG_MIN_VERSION=0.9.0
11530 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11532$as_echo_n "checking for libotf... " >&6; }
11533
11534 if $PKG_CONFIG --exists "libotf" 2>&5; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11536$as_echo "yes" >&6; }
11537 succeeded=yes
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11540$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11541 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11543$as_echo "$LIBOTF_CFLAGS" >&6; }
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11546$as_echo_n "checking LIBOTF_LIBS... " >&6; }
11547 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11549$as_echo "$LIBOTF_LIBS" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552$as_echo "no" >&6; }
11553 LIBOTF_CFLAGS=""
11554 LIBOTF_LIBS=""
11555 ## If we have a custom action on failure, don't print errors, but
11556 ## do set a variable so people can do so.
11557 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11558
11559 fi
11560
11561
11562
11563 else
11564 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11565 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11566 fi
11567 fi
11568
11569 if test $succeeded = yes; then
11570 HAVE_LIBOTF=yes
11571 else
11572 HAVE_LIBOTF=no
11573 fi
11574
11575 if test "$HAVE_LIBOTF" = "yes"; then
11576
11577$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11578
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11580$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
d6974efa 11581if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
067d23c9
KY
11582 $as_echo_n "(cached) " >&6
11583else
11584 ac_check_lib_save_LIBS=$LIBS
11585LIBS="-lotf $LIBS"
11586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587/* end confdefs.h. */
11588
11589/* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11592#ifdef __cplusplus
11593extern "C"
11594#endif
11595char OTF_get_variation_glyphs ();
11596int
11597main ()
11598{
11599return OTF_get_variation_glyphs ();
11600 ;
11601 return 0;
11602}
11603_ACEOF
11604if ac_fn_c_try_link "$LINENO"; then :
11605 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11606else
11607 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11608fi
11609rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611LIBS=$ac_check_lib_save_LIBS
11612fi
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11614$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
d6974efa 11615if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
067d23c9
KY
11616 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11617else
11618 HAVE_OTF_GET_VARIATION_GLYPHS=no
11619fi
11620
11621 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11622
11623$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11624
11625 fi
11626 fi
11627 fi
11628 fi
11629
11630 HAVE_M17N_FLT=no
11631 if test "${HAVE_LIBOTF}" = yes; then
11632 if test "${with_m17n_flt}" != "no"; then
11633
11634 succeeded=no
11635
11636 # Extract the first word of "pkg-config", so it can be a program name with args.
11637set dummy pkg-config; ac_word=$2
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11640if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11641 $as_echo_n "(cached) " >&6
11642else
11643 case $PKG_CONFIG in
11644 [\\/]* | ?:[\\/]*)
11645 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11646 ;;
11647 *)
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11655 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657 break 2
11658 fi
11659done
11660 done
11661IFS=$as_save_IFS
11662
11663 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11664 ;;
11665esac
11666fi
11667PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11668if test -n "$PKG_CONFIG"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11670$as_echo "$PKG_CONFIG" >&6; }
11671else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673$as_echo "no" >&6; }
11674fi
11675
11676
11677
11678 if test "$PKG_CONFIG" = "no" ; then
11679 HAVE_M17N_FLT=no
11680 else
11681 PKG_CONFIG_MIN_VERSION=0.9.0
11682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11684$as_echo_n "checking for m17n-flt... " >&6; }
11685
11686 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11688$as_echo "yes" >&6; }
11689 succeeded=yes
11690
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11692$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11693 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11695$as_echo "$M17N_FLT_CFLAGS" >&6; }
11696
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11698$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11699 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11701$as_echo "$M17N_FLT_LIBS" >&6; }
11702 else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
11705 M17N_FLT_CFLAGS=""
11706 M17N_FLT_LIBS=""
11707 ## If we have a custom action on failure, don't print errors, but
11708 ## do set a variable so people can do so.
11709 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11710
11711 fi
11712
11713
11714
11715 else
11716 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11717 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11718 fi
11719 fi
11720
11721 if test $succeeded = yes; then
11722 HAVE_M17N_FLT=yes
11723 else
11724 HAVE_M17N_FLT=no
11725 fi
11726
11727 if test "$HAVE_M17N_FLT" = "yes"; then
11728
11729$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11730
11731 fi
11732 fi
11733 fi
11734else
11735 HAVE_XFT=no
11736 HAVE_FREETYPE=no
11737 HAVE_LIBOTF=no
11738 HAVE_M17N_FLT=no
11739fi
11740
11741### End of font-backend (under X11) section.
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752### Use -lXpm if available, unless `--with-xpm=no'.
11753HAVE_XPM=no
11754LIBXPM=
11755if test "${HAVE_X11}" = "yes"; then
11756 if test "${with_xpm}" != "no"; then
11757 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
d6974efa 11758if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
067d23c9
KY
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11760$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
d6974efa 11761if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
067d23c9
KY
11762 $as_echo_n "(cached) " >&6
11763else
11764 ac_check_lib_save_LIBS=$LIBS
11765LIBS="-lXpm -lX11 $LIBS"
11766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767/* end confdefs.h. */
11768
11769/* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11772#ifdef __cplusplus
11773extern "C"
11774#endif
11775char XpmReadFileToPixmap ();
11776int
11777main ()
11778{
11779return XpmReadFileToPixmap ();
11780 ;
11781 return 0;
11782}
11783_ACEOF
11784if ac_fn_c_try_link "$LINENO"; then :
11785 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11786else
11787 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11788fi
11789rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791LIBS=$ac_check_lib_save_LIBS
11792fi
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11794$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
d6974efa 11795if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
067d23c9
KY
11796 HAVE_XPM=yes
11797fi
11798
11799fi
11800
11801
11802 if test "${HAVE_XPM}" = "yes"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11804$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806/* end confdefs.h. */
11807#include "X11/xpm.h"
11808#ifndef XpmReturnAllocPixels
11809no_return_alloc_pixels
11810#endif
11811
11812_ACEOF
11813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11814 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11815 HAVE_XPM=no
11816else
11817 HAVE_XPM=yes
11818fi
11819rm -f conftest*
11820
11821
11822 if test "${HAVE_XPM}" = "yes"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11824$as_echo "yes" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827$as_echo "no" >&6; }
11828 fi
11829 fi
11830 fi
11831
11832 if test "${HAVE_XPM}" = "yes"; then
11833
11834$as_echo "#define HAVE_XPM 1" >>confdefs.h
11835
11836 LIBXPM=-lXpm
11837 fi
11838fi
11839
11840
11841### Use -ljpeg if available, unless `--with-jpeg=no'.
11842HAVE_JPEG=no
11843LIBJPEG=
11844if test "${HAVE_X11}" = "yes"; then
11845 if test "${with_jpeg}" != "no"; then
11846 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
d6974efa 11847if test "x$ac_cv_header_jerror_h" = xyes; then :
067d23c9
KY
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11849$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
d6974efa 11850if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
067d23c9
KY
11851 $as_echo_n "(cached) " >&6
11852else
11853 ac_check_lib_save_LIBS=$LIBS
11854LIBS="-ljpeg $LIBS"
11855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856/* end confdefs.h. */
11857
11858/* Override any GCC internal prototype to avoid an error.
11859 Use char because int might match the return type of a GCC
11860 builtin and then its argument prototype would still apply. */
11861#ifdef __cplusplus
11862extern "C"
11863#endif
11864char jpeg_destroy_compress ();
11865int
11866main ()
11867{
11868return jpeg_destroy_compress ();
11869 ;
11870 return 0;
11871}
11872_ACEOF
11873if ac_fn_c_try_link "$LINENO"; then :
11874 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11875else
11876 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11877fi
11878rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880LIBS=$ac_check_lib_save_LIBS
11881fi
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11883$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
d6974efa 11884if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
067d23c9
KY
11885 HAVE_JPEG=yes
11886fi
11887
11888fi
11889
11890
11891 fi
11892
11893 if test "${HAVE_JPEG}" = "yes"; then
11894 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11895
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897/* end confdefs.h. */
11898#include <jpeglib.h>
11899 version=JPEG_LIB_VERSION
11900
11901_ACEOF
11902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11903 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11904 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11905
11906else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11908$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11909 HAVE_JPEG=no
11910fi
11911rm -f conftest*
11912
11913 fi
11914 if test "${HAVE_JPEG}" = "yes"; then
11915 LIBJPEG=-ljpeg
11916 fi
11917fi
11918
11919
11920### Use -lpng if available, unless `--with-png=no'.
11921HAVE_PNG=no
11922LIBPNG=
11923if test "${HAVE_X11}" = "yes"; then
11924 if test "${with_png}" != "no"; then
11925 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11926 # in /usr/include/libpng.
11927 for ac_header in png.h libpng/png.h
11928do :
11929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11930ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 11931if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
11932 cat >>confdefs.h <<_ACEOF
11933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11934_ACEOF
11935
11936fi
11937
11938done
11939
11940 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11942$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
d6974efa 11943if ${ac_cv_lib_png_png_get_channels+:} false; then :
067d23c9
KY
11944 $as_echo_n "(cached) " >&6
11945else
11946 ac_check_lib_save_LIBS=$LIBS
11947LIBS="-lpng -lz -lm $LIBS"
11948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949/* end confdefs.h. */
11950
11951/* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11954#ifdef __cplusplus
11955extern "C"
11956#endif
11957char png_get_channels ();
11958int
11959main ()
11960{
11961return png_get_channels ();
11962 ;
11963 return 0;
11964}
11965_ACEOF
11966if ac_fn_c_try_link "$LINENO"; then :
11967 ac_cv_lib_png_png_get_channels=yes
11968else
11969 ac_cv_lib_png_png_get_channels=no
11970fi
11971rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973LIBS=$ac_check_lib_save_LIBS
11974fi
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11976$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
d6974efa 11977if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
067d23c9
KY
11978 HAVE_PNG=yes
11979fi
11980
11981 fi
11982 fi
11983
11984 if test "${HAVE_PNG}" = "yes"; then
11985
11986$as_echo "#define HAVE_PNG 1" >>confdefs.h
11987
11988 LIBPNG="-lpng -lz -lm"
11989 fi
11990fi
11991
11992
11993### Use -ltiff if available, unless `--with-tiff=no'.
11994HAVE_TIFF=no
11995LIBTIFF=
11996if test "${HAVE_X11}" = "yes"; then
11997 if test "${with_tiff}" != "no"; then
11998 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
d6974efa 11999if test "x$ac_cv_header_tiffio_h" = xyes; then :
067d23c9
KY
12000 tifflibs="-lz -lm"
12001 # At least one tiff package requires the jpeg library.
12002 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12004$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
d6974efa 12005if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
067d23c9
KY
12006 $as_echo_n "(cached) " >&6
12007else
12008 ac_check_lib_save_LIBS=$LIBS
12009LIBS="-ltiff $tifflibs $LIBS"
12010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011/* end confdefs.h. */
12012
12013/* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
12016#ifdef __cplusplus
12017extern "C"
12018#endif
12019char TIFFGetVersion ();
12020int
12021main ()
12022{
12023return TIFFGetVersion ();
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028if ac_fn_c_try_link "$LINENO"; then :
12029 ac_cv_lib_tiff_TIFFGetVersion=yes
12030else
12031 ac_cv_lib_tiff_TIFFGetVersion=no
12032fi
12033rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035LIBS=$ac_check_lib_save_LIBS
12036fi
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12038$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
d6974efa 12039if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
067d23c9
KY
12040 HAVE_TIFF=yes
12041fi
12042
12043fi
12044
12045
12046 fi
12047
12048 if test "${HAVE_TIFF}" = "yes"; then
12049
12050$as_echo "#define HAVE_TIFF 1" >>confdefs.h
12051
12052 LIBTIFF=-ltiff
12053 fi
12054fi
12055
12056
12057### Use -lgif or -lungif if available, unless `--with-gif=no'.
12058HAVE_GIF=no
12059LIBGIF=
12060if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12061 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
d6974efa 12062if test "x$ac_cv_header_gif_lib_h" = xyes; then :
067d23c9
KY
12063 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12064# Earlier versions can crash Emacs.
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12066$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
d6974efa 12067if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12068 $as_echo_n "(cached) " >&6
12069else
12070 ac_check_lib_save_LIBS=$LIBS
12071LIBS="-lgif $LIBS"
12072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073/* end confdefs.h. */
12074
12075/* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078#ifdef __cplusplus
12079extern "C"
12080#endif
12081char EGifPutExtensionLast ();
12082int
12083main ()
12084{
12085return EGifPutExtensionLast ();
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090if ac_fn_c_try_link "$LINENO"; then :
12091 ac_cv_lib_gif_EGifPutExtensionLast=yes
12092else
12093 ac_cv_lib_gif_EGifPutExtensionLast=no
12094fi
12095rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097LIBS=$ac_check_lib_save_LIBS
12098fi
12099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12100$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
d6974efa 12101if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12102 HAVE_GIF=yes
12103else
12104 HAVE_GIF=maybe
12105fi
12106
12107fi
12108
12109
12110
12111 if test "$HAVE_GIF" = yes; then
12112 LIBGIF=-lgif
12113 elif test "$HAVE_GIF" = maybe; then
12114# If gif_lib.h but no libgif, try libungif.
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12116$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
d6974efa 12117if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12118 $as_echo_n "(cached) " >&6
12119else
12120 ac_check_lib_save_LIBS=$LIBS
12121LIBS="-lungif $LIBS"
12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h. */
12124
12125/* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128#ifdef __cplusplus
12129extern "C"
12130#endif
12131char EGifPutExtensionLast ();
12132int
12133main ()
12134{
12135return EGifPutExtensionLast ();
12136 ;
12137 return 0;
12138}
12139_ACEOF
12140if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12142else
12143 ac_cv_lib_ungif_EGifPutExtensionLast=no
12144fi
12145rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147LIBS=$ac_check_lib_save_LIBS
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12150$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
d6974efa 12151if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12152 HAVE_GIF=yes
12153else
12154 HAVE_GIF=no
12155fi
12156
12157 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12158 fi
12159
12160 if test "${HAVE_GIF}" = "yes"; then
12161
12162$as_echo "#define HAVE_GIF 1" >>confdefs.h
12163
12164 fi
12165fi
12166
12167
12168if test "${HAVE_X11}" = "yes"; then
12169 MISSING=""
12170 WITH_NO=""
12171 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12172 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12173 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12174 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12175 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12176 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12177 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12178 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12179 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12180 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12181
12182 if test "X${MISSING}" != X; then
2018939f 12183 as_fn_error $? "The following required libraries were not found:
067d23c9
KY
12184 $MISSING
12185Maybe some development libraries/packages are missing?
12186If you don't want to link with them give
12187 $WITH_NO
12188as options to configure" "$LINENO" 5
12189 fi
12190fi
12191
12192### Use -lgpm if available, unless `--with-gpm=no'.
12193HAVE_GPM=no
12194LIBGPM=
12195MOUSE_SUPPORT=
12196if test "${with_gpm}" != "no"; then
12197 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
d6974efa 12198if test "x$ac_cv_header_gpm_h" = xyes; then :
067d23c9
KY
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12200$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
d6974efa 12201if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
067d23c9
KY
12202 $as_echo_n "(cached) " >&6
12203else
12204 ac_check_lib_save_LIBS=$LIBS
12205LIBS="-lgpm $LIBS"
12206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207/* end confdefs.h. */
12208
12209/* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12212#ifdef __cplusplus
12213extern "C"
12214#endif
12215char Gpm_Open ();
12216int
12217main ()
12218{
12219return Gpm_Open ();
12220 ;
12221 return 0;
12222}
12223_ACEOF
12224if ac_fn_c_try_link "$LINENO"; then :
12225 ac_cv_lib_gpm_Gpm_Open=yes
12226else
12227 ac_cv_lib_gpm_Gpm_Open=no
12228fi
12229rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231LIBS=$ac_check_lib_save_LIBS
12232fi
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12234$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
d6974efa 12235if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
067d23c9
KY
12236 HAVE_GPM=yes
12237fi
12238
12239fi
12240
12241
12242
12243 if test "${HAVE_GPM}" = "yes"; then
12244
12245$as_echo "#define HAVE_GPM 1" >>confdefs.h
12246
12247 LIBGPM=-lgpm
12248 ## May be reset below.
12249 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12250 fi
12251fi
12252
12253
12254ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
d6974efa 12255if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
067d23c9
KY
12256
12257$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12258
12259fi
12260
12261
12262
12263C_SWITCH_X_SYSTEM=
12264### Use NeXTstep API to implement GUI.
12265if test "${HAVE_NS}" = "yes"; then
12266
12267$as_echo "#define HAVE_NS 1" >>confdefs.h
12268
12269 if test "${NS_IMPL_COCOA}" = "yes"; then
12270
12271$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12272
12273 GNU_OBJC_CFLAGS=
12274 fi
12275 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12276
12277$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12278
12279 # See also .m.o rule in Makefile.in */
12280 # FIXME: are all these flags really needed? Document here why. */
12281 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12282 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12283 fi
12284 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12285
12286$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12287
12288 fi
12289 # We also have mouse menus.
12290 HAVE_MENUS=yes
12291 OTHER_FILES=ns-app
12292fi
12293
12294
12295### Use session management (-lSM -lICE) if available
12296HAVE_X_SM=no
12297LIBXSM=
12298if test "${HAVE_X11}" = "yes"; then
12299 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
d6974efa 12300if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
067d23c9
KY
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12302$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
d6974efa 12303if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
067d23c9
KY
12304 $as_echo_n "(cached) " >&6
12305else
12306 ac_check_lib_save_LIBS=$LIBS
12307LIBS="-lSM -lICE $LIBS"
12308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309/* end confdefs.h. */
12310
12311/* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12314#ifdef __cplusplus
12315extern "C"
12316#endif
12317char SmcOpenConnection ();
12318int
12319main ()
12320{
12321return SmcOpenConnection ();
12322 ;
12323 return 0;
12324}
12325_ACEOF
12326if ac_fn_c_try_link "$LINENO"; then :
12327 ac_cv_lib_SM_SmcOpenConnection=yes
12328else
12329 ac_cv_lib_SM_SmcOpenConnection=no
12330fi
12331rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333LIBS=$ac_check_lib_save_LIBS
12334fi
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12336$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
d6974efa 12337if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
067d23c9
KY
12338 HAVE_X_SM=yes
12339fi
12340
12341fi
12342
12343
12344
12345 if test "${HAVE_X_SM}" = "yes"; then
12346
12347$as_echo "#define HAVE_X_SM 1" >>confdefs.h
12348
12349 LIBXSM="-lSM -lICE"
12350 case "$LIBS" in
12351 *-lSM*) ;;
12352 *) LIBS="$LIBXSM $LIBS" ;;
12353 esac
12354 fi
12355fi
12356
12357
12358### Use libxml (-lxml2) if available
12359if test "${with_xml2}" != "no"; then
12360 ### I'm not sure what the version number should be, so I just guessed.
12361
12362 succeeded=no
12363
12364 # Extract the first word of "pkg-config", so it can be a program name with args.
12365set dummy pkg-config; ac_word=$2
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 12368if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
12369 $as_echo_n "(cached) " >&6
12370else
12371 case $PKG_CONFIG in
12372 [\\/]* | ?:[\\/]*)
12373 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12374 ;;
12375 *)
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377for as_dir in $PATH
12378do
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12383 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385 break 2
12386 fi
12387done
12388 done
12389IFS=$as_save_IFS
12390
12391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12392 ;;
12393esac
12394fi
12395PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12396if test -n "$PKG_CONFIG"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12398$as_echo "$PKG_CONFIG" >&6; }
12399else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401$as_echo "no" >&6; }
12402fi
12403
12404
12405
12406 if test "$PKG_CONFIG" = "no" ; then
12407 HAVE_LIBXML2=no
12408 else
12409 PKG_CONFIG_MIN_VERSION=0.9.0
12410 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
dab73760
CY
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12412$as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
067d23c9 12413
dab73760 12414 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
067d23c9
KY
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12416$as_echo "yes" >&6; }
12417 succeeded=yes
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12420$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
dab73760 12421 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12423$as_echo "$LIBXML2_CFLAGS" >&6; }
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12426$as_echo_n "checking LIBXML2_LIBS... " >&6; }
dab73760 12427 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12429$as_echo "$LIBXML2_LIBS" >&6; }
12430 else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432$as_echo "no" >&6; }
12433 LIBXML2_CFLAGS=""
12434 LIBXML2_LIBS=""
12435 ## If we have a custom action on failure, don't print errors, but
12436 ## do set a variable so people can do so.
dab73760 12437 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
067d23c9
KY
12438
12439 fi
12440
12441
12442
12443 else
12444 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12445 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12446 fi
12447 fi
12448
12449 if test $succeeded = yes; then
12450 HAVE_LIBXML2=yes
12451 else
12452 HAVE_LIBXML2=no
12453 fi
12454
12455 if test "${HAVE_LIBXML2}" = "yes"; then
12456 LIBS="$LIBXML2_LIBS $LIBS"
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12458$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
d6974efa 12459if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
067d23c9
KY
12460 $as_echo_n "(cached) " >&6
12461else
12462 ac_check_lib_save_LIBS=$LIBS
12463LIBS="-lxml2 $LIBS"
12464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465/* end confdefs.h. */
12466
12467/* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12470#ifdef __cplusplus
12471extern "C"
12472#endif
12473char htmlReadMemory ();
12474int
12475main ()
12476{
12477return htmlReadMemory ();
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482if ac_fn_c_try_link "$LINENO"; then :
12483 ac_cv_lib_xml2_htmlReadMemory=yes
12484else
12485 ac_cv_lib_xml2_htmlReadMemory=no
12486fi
12487rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489LIBS=$ac_check_lib_save_LIBS
12490fi
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12492$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
d6974efa 12493if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
067d23c9
KY
12494 HAVE_LIBXML2=yes
12495else
12496 HAVE_LIBXML2=no
12497fi
12498
12499 if test "${HAVE_LIBXML2}" = "yes"; then
12500
12501$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12502
12503 else
12504 LIBXML2_LIBS=""
12505 LIBXML2_CFLAGS=""
12506 fi
12507 fi
12508fi
12509
12510
12511
12512# If netdb.h doesn't declare h_errno, we must declare it by hand.
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12514$as_echo_n "checking whether netdb declares h_errno... " >&6; }
d6974efa 12515if ${emacs_cv_netdb_declares_h_errno+:} false; then :
067d23c9
KY
12516 $as_echo_n "(cached) " >&6
12517else
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519/* end confdefs.h. */
12520#include <netdb.h>
12521int
12522main ()
12523{
12524return h_errno;
12525 ;
12526 return 0;
12527}
12528_ACEOF
12529if ac_fn_c_try_link "$LINENO"; then :
12530 emacs_cv_netdb_declares_h_errno=yes
12531else
12532 emacs_cv_netdb_declares_h_errno=no
12533fi
12534rm -f core conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12536fi
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12538$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12539if test $emacs_cv_netdb_declares_h_errno = yes; then
12540
12541$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12542
12543fi
12544
d6974efa
PE
12545ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12546if test "x$ac_cv_type_size_t" = xyes; then :
12547
12548else
12549
12550cat >>confdefs.h <<_ACEOF
12551#define size_t unsigned int
12552_ACEOF
12553
12554fi
12555
067d23c9
KY
12556# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12557# for constant arguments. Useless!
12558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12559$as_echo_n "checking for working alloca.h... " >&6; }
d6974efa 12560if ${ac_cv_working_alloca_h+:} false; then :
067d23c9
KY
12561 $as_echo_n "(cached) " >&6
12562else
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564/* end confdefs.h. */
12565#include <alloca.h>
12566int
12567main ()
12568{
12569char *p = (char *) alloca (2 * sizeof (int));
12570 if (p) return 0;
12571 ;
12572 return 0;
12573}
12574_ACEOF
12575if ac_fn_c_try_link "$LINENO"; then :
12576 ac_cv_working_alloca_h=yes
12577else
12578 ac_cv_working_alloca_h=no
12579fi
12580rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582fi
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12584$as_echo "$ac_cv_working_alloca_h" >&6; }
12585if test $ac_cv_working_alloca_h = yes; then
12586
12587$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12588
12589fi
12590
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12592$as_echo_n "checking for alloca... " >&6; }
d6974efa 12593if ${ac_cv_func_alloca_works+:} false; then :
067d23c9
KY
12594 $as_echo_n "(cached) " >&6
12595else
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597/* end confdefs.h. */
12598#ifdef __GNUC__
12599# define alloca __builtin_alloca
12600#else
12601# ifdef _MSC_VER
12602# include <malloc.h>
12603# define alloca _alloca
12604# else
12605# ifdef HAVE_ALLOCA_H
12606# include <alloca.h>
12607# else
12608# ifdef _AIX
12609 #pragma alloca
12610# else
12611# ifndef alloca /* predefined by HP cc +Olibcalls */
d6974efa 12612void *alloca (size_t);
067d23c9
KY
12613# endif
12614# endif
12615# endif
12616# endif
12617#endif
12618
12619int
12620main ()
12621{
12622char *p = (char *) alloca (1);
12623 if (p) return 0;
12624 ;
12625 return 0;
12626}
12627_ACEOF
12628if ac_fn_c_try_link "$LINENO"; then :
12629 ac_cv_func_alloca_works=yes
12630else
12631 ac_cv_func_alloca_works=no
12632fi
12633rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12637$as_echo "$ac_cv_func_alloca_works" >&6; }
12638
12639if test $ac_cv_func_alloca_works = yes; then
12640
12641$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12642
12643else
12644 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12645# that cause trouble. Some versions do not even contain alloca or
12646# contain a buggy version. If you still want to use their alloca,
12647# use ar to extract alloca.o from them instead of compiling alloca.c.
12648
12649ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12650
12651$as_echo "#define C_ALLOCA 1" >>confdefs.h
12652
12653
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12655$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
d6974efa 12656if ${ac_cv_os_cray+:} false; then :
067d23c9
KY
12657 $as_echo_n "(cached) " >&6
12658else
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660/* end confdefs.h. */
12661#if defined CRAY && ! defined CRAY2
12662webecray
12663#else
12664wenotbecray
12665#endif
12666
12667_ACEOF
12668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12669 $EGREP "webecray" >/dev/null 2>&1; then :
12670 ac_cv_os_cray=yes
12671else
12672 ac_cv_os_cray=no
12673fi
12674rm -f conftest*
12675
12676fi
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12678$as_echo "$ac_cv_os_cray" >&6; }
12679if test $ac_cv_os_cray = yes; then
12680 for ac_func in _getb67 GETB67 getb67; do
12681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12682ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12683if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12684
12685cat >>confdefs.h <<_ACEOF
12686#define CRAY_STACKSEG_END $ac_func
12687_ACEOF
12688
12689 break
12690fi
12691
12692 done
12693fi
12694
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12696$as_echo_n "checking stack direction for C alloca... " >&6; }
d6974efa 12697if ${ac_cv_c_stack_direction+:} false; then :
067d23c9
KY
12698 $as_echo_n "(cached) " >&6
12699else
12700 if test "$cross_compiling" = yes; then :
12701 ac_cv_c_stack_direction=0
12702else
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704/* end confdefs.h. */
12705$ac_includes_default
12706int
12707find_stack_direction ()
12708{
12709 static char *addr = 0;
12710 auto char dummy;
12711 if (addr == 0)
12712 {
12713 addr = &dummy;
12714 return find_stack_direction ();
12715 }
12716 else
12717 return (&dummy > addr) ? 1 : -1;
12718}
12719
12720int
12721main ()
12722{
12723 return find_stack_direction () < 0;
12724}
12725_ACEOF
12726if ac_fn_c_try_run "$LINENO"; then :
12727 ac_cv_c_stack_direction=1
12728else
12729 ac_cv_c_stack_direction=-1
12730fi
12731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12732 conftest.$ac_objext conftest.beam conftest.$ac_ext
12733fi
12734
12735fi
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12737$as_echo "$ac_cv_c_stack_direction" >&6; }
12738cat >>confdefs.h <<_ACEOF
12739#define STACK_DIRECTION $ac_cv_c_stack_direction
12740_ACEOF
12741
12742
12743fi
12744
12745
12746if test x"$ac_cv_func_alloca_works" != xyes; then
2018939f 12747 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
067d23c9
KY
12748fi
12749
12750# fmod, logb, and frexp are found in -lm on most systems.
12751# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12753$as_echo_n "checking for sqrt in -lm... " >&6; }
d6974efa 12754if ${ac_cv_lib_m_sqrt+:} false; then :
067d23c9
KY
12755 $as_echo_n "(cached) " >&6
12756else
12757 ac_check_lib_save_LIBS=$LIBS
12758LIBS="-lm $LIBS"
12759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760/* end confdefs.h. */
12761
12762/* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12765#ifdef __cplusplus
12766extern "C"
12767#endif
12768char sqrt ();
12769int
12770main ()
12771{
12772return sqrt ();
12773 ;
12774 return 0;
12775}
12776_ACEOF
12777if ac_fn_c_try_link "$LINENO"; then :
12778 ac_cv_lib_m_sqrt=yes
12779else
12780 ac_cv_lib_m_sqrt=no
12781fi
12782rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784LIBS=$ac_check_lib_save_LIBS
12785fi
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12787$as_echo "$ac_cv_lib_m_sqrt" >&6; }
d6974efa 12788if test "x$ac_cv_lib_m_sqrt" = xyes; then :
067d23c9
KY
12789 cat >>confdefs.h <<_ACEOF
12790#define HAVE_LIBM 1
12791_ACEOF
12792
12793 LIBS="-lm $LIBS"
12794
12795fi
12796
12797
12798# Check for mail-locking functions in a "mail" library. Probably this should
12799# have the same check as for liblockfile below.
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12801$as_echo_n "checking for maillock in -lmail... " >&6; }
d6974efa 12802if ${ac_cv_lib_mail_maillock+:} false; then :
067d23c9
KY
12803 $as_echo_n "(cached) " >&6
12804else
12805 ac_check_lib_save_LIBS=$LIBS
12806LIBS="-lmail $LIBS"
12807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808/* end confdefs.h. */
12809
12810/* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813#ifdef __cplusplus
12814extern "C"
12815#endif
12816char maillock ();
12817int
12818main ()
12819{
12820return maillock ();
12821 ;
12822 return 0;
12823}
12824_ACEOF
12825if ac_fn_c_try_link "$LINENO"; then :
12826 ac_cv_lib_mail_maillock=yes
12827else
12828 ac_cv_lib_mail_maillock=no
12829fi
12830rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832LIBS=$ac_check_lib_save_LIBS
12833fi
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12835$as_echo "$ac_cv_lib_mail_maillock" >&6; }
d6974efa 12836if test "x$ac_cv_lib_mail_maillock" = xyes; then :
067d23c9
KY
12837 have_mail=yes
12838else
12839 have_mail=no
12840fi
12841
12842if test $have_mail = yes; then
12843 LIBS_MAIL=-lmail
12844 LIBS="$LIBS_MAIL $LIBS"
12845
12846$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12847
12848else
12849 LIBS_MAIL=
12850fi
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12852$as_echo_n "checking for maillock in -llockfile... " >&6; }
d6974efa 12853if ${ac_cv_lib_lockfile_maillock+:} false; then :
067d23c9
KY
12854 $as_echo_n "(cached) " >&6
12855else
12856 ac_check_lib_save_LIBS=$LIBS
12857LIBS="-llockfile $LIBS"
12858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h. */
12860
12861/* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864#ifdef __cplusplus
12865extern "C"
12866#endif
12867char maillock ();
12868int
12869main ()
12870{
12871return maillock ();
12872 ;
12873 return 0;
12874}
12875_ACEOF
12876if ac_fn_c_try_link "$LINENO"; then :
12877 ac_cv_lib_lockfile_maillock=yes
12878else
12879 ac_cv_lib_lockfile_maillock=no
12880fi
12881rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12883LIBS=$ac_check_lib_save_LIBS
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12886$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
d6974efa 12887if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
067d23c9
KY
12888 have_lockfile=yes
12889else
12890 have_lockfile=no
12891fi
12892
12893if test $have_lockfile = yes; then
12894 LIBS_MAIL=-llockfile
12895 LIBS="$LIBS_MAIL $LIBS"
12896
12897$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12898
12899else
12900# If we have the shared liblockfile, assume we must use it for mail
12901# locking (e.g. Debian). If we couldn't link against liblockfile
12902# (no liblockfile.a installed), ensure that we don't need to.
12903 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12904set dummy liblockfile.so; ac_word=$2
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 12907if ${ac_cv_prog_liblockfile+:} false; then :
067d23c9
KY
12908 $as_echo_n "(cached) " >&6
12909else
12910 if test -n "$liblockfile"; then
12911 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12912else
12913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12915for as_dir in $as_dummy
12916do
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921 ac_cv_prog_liblockfile="yes"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12924 fi
12925done
12926 done
12927IFS=$as_save_IFS
12928
12929 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12930fi
12931fi
12932liblockfile=$ac_cv_prog_liblockfile
12933if test -n "$liblockfile"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12935$as_echo "$liblockfile" >&6; }
12936else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938$as_echo "no" >&6; }
12939fi
12940
12941
12942 if test $ac_cv_prog_liblockfile = yes; then
2018939f 12943 as_fn_error $? "Shared liblockfile found but can't link against it.
067d23c9
KY
12944This probably means that movemail could lose mail.
12945There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12946 fi
12947fi
12948for ac_func in touchlock
12949do :
12950 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
d6974efa 12951if test "x$ac_cv_func_touchlock" = xyes; then :
067d23c9
KY
12952 cat >>confdefs.h <<_ACEOF
12953#define HAVE_TOUCHLOCK 1
12954_ACEOF
12955
12956fi
12957done
12958
12959for ac_header in maillock.h
12960do :
12961 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
d6974efa 12962if test "x$ac_cv_header_maillock_h" = xyes; then :
067d23c9
KY
12963 cat >>confdefs.h <<_ACEOF
12964#define HAVE_MAILLOCK_H 1
12965_ACEOF
12966
12967fi
12968
12969done
12970
12971
12972
12973## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12974## interlock access to the mail spool. The alternative is a lock file named
12975## /usr/spool/mail/$USER.lock.
12976mail_lock=no
12977case "$opsys" in
12978 aix4-2) mail_lock="lockf" ;;
12979
12980 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12981
12982 ## On GNU/Linux systems, both methods are used by various mail programs.
12983 ## I assume most people are using newer mailers that have heard of flock.
12984 ## Change this if you need to.
12985 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12986 ## configure gets the right answers, and that means *NOT* using flock.
12987 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12988 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12989 ## Debian maintainer hasn't provided a clean fix for Emacs.
12990 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12991 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12992 ## correct logic. -- fx
12993 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12994 ## liblockfile is a Free Software replacement for libmail, used on
12995 ## Debian systems and elsewhere. -rfr.
12996 gnu-*)
12997 mail_lock="flock"
12998 if test $have_mail = yes || test $have_lockfile = yes; then
12999 test $ac_cv_header_maillock_h = yes && mail_lock=no
13000 fi
13001 ;;
13002esac
13003
13004BLESSMAIL_TARGET=
13005case "$mail_lock" in
13006 flock)
13007$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13008 ;;
13009
13010 lockf)
13011$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13012 ;;
13013
13014 *) BLESSMAIL_TARGET="need-blessmail" ;;
13015esac
13016
13017
13018
13019for ac_func in gethostname getdomainname dup2 \
13020rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13021random lrand48 logb frexp fmod rint cbrt ftime setsid \
1fd182f0 13022strerror fpathconf select euidaccess getpagesize tzset setlocale \
067d23c9
KY
13023utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13024__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13025sendto recvfrom getsockopt setsockopt getsockname getpeername \
13026gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13027memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13028cfmakeraw cfsetspeed isnan copysign __executable_start
13029do :
13030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13031ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 13032if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
13033 cat >>confdefs.h <<_ACEOF
13034#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13035_ACEOF
13036
13037fi
13038done
13039
13040
2018939f
AS
13041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13042$as_echo_n "checking for __builtin_unwind_init... " >&6; }
d6974efa 13043if ${emacs_cv_func___builtin_unwind_init+:} false; then :
2018939f
AS
13044 $as_echo_n "(cached) " >&6
13045else
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047/* end confdefs.h. */
13048
13049int
13050main ()
13051{
13052__builtin_unwind_init ();
13053 ;
13054 return 0;
13055}
13056_ACEOF
13057if ac_fn_c_try_link "$LINENO"; then :
13058 emacs_cv_func___builtin_unwind_init=yes
13059else
13060 emacs_cv_func___builtin_unwind_init=no
13061fi
13062rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13066$as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13067if test $emacs_cv_func___builtin_unwind_init = yes; then
13068
13069$as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13070
13071fi
13072
067d23c9
KY
13073for ac_header in sys/un.h
13074do :
13075 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
d6974efa 13076if test "x$ac_cv_header_sys_un_h" = xyes; then :
067d23c9
KY
13077 cat >>confdefs.h <<_ACEOF
13078#define HAVE_SYS_UN_H 1
13079_ACEOF
13080
13081fi
13082
13083done
13084
13085
79ab4b7f
PE
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13087$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13088if ${ac_cv_sys_largefile_source+:} false; then :
067d23c9
KY
13089 $as_echo_n "(cached) " >&6
13090else
79ab4b7f
PE
13091 while :; do
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13093/* end confdefs.h. */
79ab4b7f
PE
13094#include <sys/types.h> /* for off_t */
13095 #include <stdio.h>
067d23c9
KY
13096int
13097main ()
13098{
79ab4b7f
PE
13099int (*fp) (FILE *, off_t, int) = fseeko;
13100 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13101 ;
13102 return 0;
13103}
13104_ACEOF
13105if ac_fn_c_try_link "$LINENO"; then :
79ab4b7f 13106 ac_cv_sys_largefile_source=no; break
067d23c9
KY
13107fi
13108rm -f core conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
79ab4b7f 13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13111/* end confdefs.h. */
79ab4b7f
PE
13112#define _LARGEFILE_SOURCE 1
13113#include <sys/types.h> /* for off_t */
13114 #include <stdio.h>
067d23c9
KY
13115int
13116main ()
13117{
79ab4b7f
PE
13118int (*fp) (FILE *, off_t, int) = fseeko;
13119 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13120 ;
13121 return 0;
13122}
13123_ACEOF
13124if ac_fn_c_try_link "$LINENO"; then :
79ab4b7f 13125 ac_cv_sys_largefile_source=1; break
067d23c9
KY
13126fi
13127rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
79ab4b7f
PE
13129 ac_cv_sys_largefile_source=unknown
13130 break
13131done
067d23c9 13132fi
79ab4b7f
PE
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13134$as_echo "$ac_cv_sys_largefile_source" >&6; }
13135case $ac_cv_sys_largefile_source in #(
13136 no | unknown) ;;
13137 *)
13138cat >>confdefs.h <<_ACEOF
13139#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13140_ACEOF
13141;;
13142esac
13143rm -rf conftest*
13144
13145# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13146# in glibc 2.1.3, but that breaks too many other things.
13147# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13148if test $ac_cv_sys_largefile_source != unknown; then
13149
13150$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
067d23c9
KY
13151
13152fi
79ab4b7f
PE
13153
13154
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13156$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13157if ${ac_cv_func_getpgrp_void+:} false; then :
067d23c9
KY
13158 $as_echo_n "(cached) " >&6
13159else
79ab4b7f 13160 # Use it with a single arg.
067d23c9
KY
13161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162/* end confdefs.h. */
79ab4b7f 13163$ac_includes_default
067d23c9
KY
13164int
13165main ()
13166{
79ab4b7f 13167getpgrp (0);
067d23c9
KY
13168 ;
13169 return 0;
13170}
13171_ACEOF
79ab4b7f
PE
13172if ac_fn_c_try_compile "$LINENO"; then :
13173 ac_cv_func_getpgrp_void=no
067d23c9 13174else
79ab4b7f 13175 ac_cv_func_getpgrp_void=yes
067d23c9 13176fi
79ab4b7f
PE
13177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178
067d23c9 13179fi
79ab4b7f
PE
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13181$as_echo "$ac_cv_func_getpgrp_void" >&6; }
13182if test $ac_cv_func_getpgrp_void = yes; then
13183
13184$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13185
067d23c9
KY
13186fi
13187
79ab4b7f
PE
13188
13189# Configure gnulib.
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200 LIBC_FATAL_STDERR_=1
13201 export LIBC_FATAL_STDERR_
13202
13203
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13205$as_echo_n "checking whether strtold conforms to C99... " >&6; }
13206if ${gl_cv_func_c99_strtold+:} false; then :
067d23c9
KY
13207 $as_echo_n "(cached) " >&6
13208else
79ab4b7f 13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13210/* end confdefs.h. */
79ab4b7f
PE
13211/* On HP-UX before 11.23, strtold returns a struct instead of
13212 long double. Reject implementations like that, by requiring
13213 compatibility with the C99 prototype. */
13214 #include <stdlib.h>
13215 static long double (*p) (char const *, char **) = strtold;
13216 static long double
13217 test (char const *nptr, char **endptr)
13218 {
13219 long double r;
13220 r = strtold (nptr, endptr);
13221 return r;
13222 }
067d23c9
KY
13223int
13224main ()
13225{
79ab4b7f 13226return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
067d23c9
KY
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231if ac_fn_c_try_link "$LINENO"; then :
79ab4b7f 13232 gl_cv_func_c99_strtold=yes
067d23c9 13233else
79ab4b7f 13234 gl_cv_func_c99_strtold=no
067d23c9
KY
13235fi
13236rm -f core conftest.err conftest.$ac_objext \
13237 conftest$ac_exeext conftest.$ac_ext
067d23c9 13238fi
79ab4b7f
PE
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13240$as_echo "$gl_cv_func_c99_strtold" >&6; }
13241 if test $gl_cv_func_c99_strtold = yes; then
067d23c9 13242
79ab4b7f 13243$as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
067d23c9 13244
79ab4b7f 13245 fi
067d23c9 13246
79ab4b7f
PE
13247
13248 GNULIB__EXIT=0;
13249 GNULIB_ATOLL=0;
13250 GNULIB_CALLOC_POSIX=0;
13251 GNULIB_CANONICALIZE_FILE_NAME=0;
13252 GNULIB_GETLOADAVG=0;
13253 GNULIB_GETSUBOPT=0;
13254 GNULIB_GRANTPT=0;
13255 GNULIB_MALLOC_POSIX=0;
13256 GNULIB_MKDTEMP=0;
13257 GNULIB_MKOSTEMP=0;
13258 GNULIB_MKOSTEMPS=0;
13259 GNULIB_MKSTEMP=0;
13260 GNULIB_MKSTEMPS=0;
13261 GNULIB_PTSNAME=0;
13262 GNULIB_PUTENV=0;
13263 GNULIB_RANDOM_R=0;
13264 GNULIB_REALLOC_POSIX=0;
13265 GNULIB_REALPATH=0;
13266 GNULIB_RPMATCH=0;
13267 GNULIB_SETENV=0;
13268 GNULIB_STRTOD=0;
13269 GNULIB_STRTOLL=0;
13270 GNULIB_STRTOULL=0;
13271 GNULIB_SYSTEM_POSIX=0;
13272 GNULIB_UNLOCKPT=0;
13273 GNULIB_UNSETENV=0;
13274 HAVE__EXIT=1;
13275 HAVE_ATOLL=1;
13276 HAVE_CANONICALIZE_FILE_NAME=1;
13277 HAVE_DECL_GETLOADAVG=1;
13278 HAVE_GETSUBOPT=1;
13279 HAVE_GRANTPT=1;
13280 HAVE_MKDTEMP=1;
13281 HAVE_MKOSTEMP=1;
13282 HAVE_MKOSTEMPS=1;
13283 HAVE_MKSTEMP=1;
13284 HAVE_MKSTEMPS=1;
13285 HAVE_PTSNAME=1;
dd463884 13286 HAVE_RANDOM_H=1;
79ab4b7f
PE
13287 HAVE_RANDOM_R=1;
13288 HAVE_REALPATH=1;
13289 HAVE_RPMATCH=1;
13290 HAVE_SETENV=1;
13291 HAVE_DECL_SETENV=1;
13292 HAVE_STRTOD=1;
13293 HAVE_STRTOLL=1;
13294 HAVE_STRTOULL=1;
13295 HAVE_STRUCT_RANDOM_DATA=1;
13296 HAVE_SYS_LOADAVG_H=0;
13297 HAVE_UNLOCKPT=1;
13298 HAVE_DECL_UNSETENV=1;
13299 REPLACE_CALLOC=0;
13300 REPLACE_CANONICALIZE_FILE_NAME=0;
13301 REPLACE_MALLOC=0;
13302 REPLACE_MKSTEMP=0;
13303 REPLACE_PUTENV=0;
13304 REPLACE_REALLOC=0;
13305 REPLACE_REALPATH=0;
13306 REPLACE_SETENV=0;
13307 REPLACE_STRTOD=0;
13308 REPLACE_UNSETENV=0;
13309
13310
13311 GNULIB_CHOWN=0;
13312 GNULIB_CLOSE=0;
13313 GNULIB_DUP2=0;
13314 GNULIB_DUP3=0;
13315 GNULIB_ENVIRON=0;
13316 GNULIB_EUIDACCESS=0;
13317 GNULIB_FACCESSAT=0;
13318 GNULIB_FCHDIR=0;
13319 GNULIB_FCHOWNAT=0;
13320 GNULIB_FSYNC=0;
13321 GNULIB_FTRUNCATE=0;
13322 GNULIB_GETCWD=0;
13323 GNULIB_GETDOMAINNAME=0;
13324 GNULIB_GETDTABLESIZE=0;
13325 GNULIB_GETGROUPS=0;
13326 GNULIB_GETHOSTNAME=0;
13327 GNULIB_GETLOGIN=0;
13328 GNULIB_GETLOGIN_R=0;
13329 GNULIB_GETPAGESIZE=0;
13330 GNULIB_GETUSERSHELL=0;
13331 GNULIB_LCHOWN=0;
13332 GNULIB_LINK=0;
13333 GNULIB_LINKAT=0;
13334 GNULIB_LSEEK=0;
13335 GNULIB_PIPE=0;
13336 GNULIB_PIPE2=0;
13337 GNULIB_PREAD=0;
13338 GNULIB_PWRITE=0;
13339 GNULIB_READLINK=0;
13340 GNULIB_READLINKAT=0;
13341 GNULIB_RMDIR=0;
13342 GNULIB_SLEEP=0;
13343 GNULIB_SYMLINK=0;
13344 GNULIB_SYMLINKAT=0;
13345 GNULIB_TTYNAME_R=0;
13346 GNULIB_UNISTD_H_GETOPT=0;
13347 GNULIB_UNISTD_H_SIGPIPE=0;
13348 GNULIB_UNLINK=0;
13349 GNULIB_UNLINKAT=0;
13350 GNULIB_USLEEP=0;
13351 GNULIB_WRITE=0;
13352 HAVE_CHOWN=1;
13353 HAVE_DUP2=1;
13354 HAVE_DUP3=1;
13355 HAVE_EUIDACCESS=1;
13356 HAVE_FACCESSAT=1;
13357 HAVE_FCHDIR=1;
13358 HAVE_FCHOWNAT=1;
13359 HAVE_FSYNC=1;
13360 HAVE_FTRUNCATE=1;
13361 HAVE_GETDTABLESIZE=1;
13362 HAVE_GETGROUPS=1;
13363 HAVE_GETHOSTNAME=1;
13364 HAVE_GETLOGIN=1;
13365 HAVE_GETPAGESIZE=1;
13366 HAVE_LCHOWN=1;
13367 HAVE_LINK=1;
13368 HAVE_LINKAT=1;
13369 HAVE_PIPE=1;
13370 HAVE_PIPE2=1;
13371 HAVE_PREAD=1;
13372 HAVE_PWRITE=1;
13373 HAVE_READLINK=1;
13374 HAVE_READLINKAT=1;
13375 HAVE_SLEEP=1;
13376 HAVE_SYMLINK=1;
13377 HAVE_SYMLINKAT=1;
13378 HAVE_UNLINKAT=1;
13379 HAVE_USLEEP=1;
13380 HAVE_DECL_ENVIRON=1;
13381 HAVE_DECL_FCHDIR=1;
13382 HAVE_DECL_GETDOMAINNAME=1;
13383 HAVE_DECL_GETLOGIN_R=1;
13384 HAVE_DECL_GETPAGESIZE=1;
13385 HAVE_DECL_GETUSERSHELL=1;
13386 HAVE_DECL_TTYNAME_R=1;
13387 HAVE_OS_H=0;
13388 HAVE_SYS_PARAM_H=0;
13389 REPLACE_CHOWN=0;
13390 REPLACE_CLOSE=0;
13391 REPLACE_DUP=0;
13392 REPLACE_DUP2=0;
13393 REPLACE_FCHOWNAT=0;
13394 REPLACE_GETCWD=0;
13395 REPLACE_GETDOMAINNAME=0;
13396 REPLACE_GETLOGIN_R=0;
13397 REPLACE_GETGROUPS=0;
13398 REPLACE_GETPAGESIZE=0;
13399 REPLACE_LCHOWN=0;
13400 REPLACE_LINK=0;
13401 REPLACE_LINKAT=0;
13402 REPLACE_LSEEK=0;
13403 REPLACE_PREAD=0;
13404 REPLACE_PWRITE=0;
13405 REPLACE_READLINK=0;
13406 REPLACE_RMDIR=0;
13407 REPLACE_SLEEP=0;
13408 REPLACE_SYMLINK=0;
13409 REPLACE_TTYNAME_R=0;
13410 REPLACE_UNLINK=0;
13411 REPLACE_UNLINKAT=0;
13412 REPLACE_USLEEP=0;
13413 REPLACE_WRITE=0;
13414 UNISTD_H_HAVE_WINSOCK2_H=0;
13415 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13416
13417
13418
13419
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13421$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13422if ${gl_cv_have_include_next+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424else
13425 rm -rf conftestd1a conftestd1b conftestd2
13426 mkdir conftestd1a conftestd1b conftestd2
13427 cat <<EOF > conftestd1a/conftest.h
13428#define DEFINED_IN_CONFTESTD1
13429#include_next <conftest.h>
13430#ifdef DEFINED_IN_CONFTESTD2
13431int foo;
13432#else
13433#error "include_next doesn't work"
067d23c9 13434#endif
79ab4b7f
PE
13435EOF
13436 cat <<EOF > conftestd1b/conftest.h
13437#define DEFINED_IN_CONFTESTD1
13438#include <stdio.h>
13439#include_next <conftest.h>
13440#ifdef DEFINED_IN_CONFTESTD2
13441int foo;
13442#else
13443#error "include_next doesn't work"
13444#endif
13445EOF
13446 cat <<EOF > conftestd2/conftest.h
13447#ifndef DEFINED_IN_CONFTESTD1
13448#error "include_next test doesn't work"
13449#endif
13450#define DEFINED_IN_CONFTESTD2
13451EOF
13452 gl_save_CPPFLAGS="$CPPFLAGS"
13453 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455/* end confdefs.h. */
13456#include <conftest.h>
067d23c9 13457_ACEOF
79ab4b7f
PE
13458if ac_fn_c_try_compile "$LINENO"; then :
13459 gl_cv_have_include_next=yes
067d23c9 13460else
79ab4b7f
PE
13461 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463/* end confdefs.h. */
13464#include <conftest.h>
13465_ACEOF
13466if ac_fn_c_try_compile "$LINENO"; then :
13467 gl_cv_have_include_next=buggy
067d23c9 13468else
79ab4b7f 13469 gl_cv_have_include_next=no
067d23c9 13470fi
79ab4b7f 13471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9
KY
13472
13473fi
79ab4b7f
PE
13474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 CPPFLAGS="$gl_save_CPPFLAGS"
13476 rm -rf conftestd1a conftestd1b conftestd2
067d23c9 13477
79ab4b7f
PE
13478fi
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13480$as_echo "$gl_cv_have_include_next" >&6; }
13481 PRAGMA_SYSTEM_HEADER=
13482 if test $gl_cv_have_include_next = yes; then
13483 INCLUDE_NEXT=include_next
13484 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13485 if test -n "$GCC"; then
13486 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13487 fi
13488 else
13489 if test $gl_cv_have_include_next = buggy; then
13490 INCLUDE_NEXT=include
13491 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13492 else
13493 INCLUDE_NEXT=include
13494 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13495 fi
13496 fi
067d23c9 13497
067d23c9 13498
067d23c9 13499
79ab4b7f
PE
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13501$as_echo_n "checking whether system header files limit the line length... " >&6; }
13502if ${gl_cv_pragma_columns+:} false; then :
067d23c9
KY
13503 $as_echo_n "(cached) " >&6
13504else
79ab4b7f 13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9
KY
13506/* end confdefs.h. */
13507
79ab4b7f
PE
13508#ifdef __TANDEM
13509choke me
067d23c9 13510#endif
79ab4b7f 13511
067d23c9 13512_ACEOF
79ab4b7f
PE
13513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13514 $EGREP "choke me" >/dev/null 2>&1; then :
13515 gl_cv_pragma_columns=yes
067d23c9 13516else
79ab4b7f 13517 gl_cv_pragma_columns=no
067d23c9 13518fi
79ab4b7f 13519rm -f conftest*
067d23c9 13520
067d23c9
KY
13521
13522fi
79ab4b7f
PE
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13524$as_echo "$gl_cv_pragma_columns" >&6; }
13525 if test $gl_cv_pragma_columns = yes; then
13526 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13527 else
13528 PRAGMA_COLUMNS=
13529 fi
067d23c9 13530
067d23c9
KY
13531
13532
13533
067d23c9 13534
067d23c9
KY
13535
13536
067d23c9 13537
067d23c9
KY
13538
13539
067d23c9 13540
067d23c9 13541
067d23c9 13542
067d23c9 13543
067d23c9
KY
13544
13545
067d23c9 13546
79ab4b7f
PE
13547 if test $gl_cv_have_include_next = yes; then
13548 gl_cv_next_getopt_h='<'getopt.h'>'
13549 else
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13551$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13552if ${gl_cv_next_getopt_h+:} false; then :
13553 $as_echo_n "(cached) " >&6
13554else
067d23c9 13555
79ab4b7f 13556 if test $ac_cv_header_getopt_h = yes; then
067d23c9 13557
067d23c9 13558
79ab4b7f
PE
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560/* end confdefs.h. */
13561#include <getopt.h>
067d23c9 13562
79ab4b7f
PE
13563_ACEOF
13564 case "$host_os" in
13565 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13566 *) gl_absname_cpp="$ac_cpp" ;;
13567 esac
13568 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13569 sed -n '\#/getopt.h#{
13570 s#.*"\(.*/getopt.h\)".*#\1#
13571 s#^/[^/]#//&#
13572 p
13573 q
13574 }'`'"'
13575 else
13576 gl_cv_next_getopt_h='<'getopt.h'>'
13577 fi
067d23c9
KY
13578
13579
13580fi
79ab4b7f
PE
13581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13582$as_echo "$gl_cv_next_getopt_h" >&6; }
13583 fi
13584 NEXT_GETOPT_H=$gl_cv_next_getopt_h
067d23c9 13585
79ab4b7f
PE
13586 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13587 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13588 gl_next_as_first_directive='<'getopt.h'>'
13589 else
13590 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13591 gl_next_as_first_directive=$gl_cv_next_getopt_h
13592 fi
13593 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
067d23c9 13594
067d23c9 13595
067d23c9 13596
067d23c9 13597
79ab4b7f
PE
13598 if test $ac_cv_header_getopt_h = yes; then
13599 HAVE_GETOPT_H=1
13600 else
13601 HAVE_GETOPT_H=0
13602 fi
067d23c9 13603
067d23c9 13604
79ab4b7f 13605 gl_replace_getopt=
067d23c9 13606
79ab4b7f
PE
13607 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13608 for ac_header in getopt.h
13609do :
13610 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13611if test "x$ac_cv_header_getopt_h" = xyes; then :
13612 cat >>confdefs.h <<_ACEOF
13613#define HAVE_GETOPT_H 1
13614_ACEOF
067d23c9 13615
79ab4b7f
PE
13616else
13617 gl_replace_getopt=yes
067d23c9
KY
13618fi
13619
79ab4b7f 13620done
067d23c9 13621
79ab4b7f 13622 fi
067d23c9 13623
79ab4b7f
PE
13624 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13625 for ac_func in getopt_long_only
13626do :
13627 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13628if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13629 cat >>confdefs.h <<_ACEOF
13630#define HAVE_GETOPT_LONG_ONLY 1
13631_ACEOF
067d23c9 13632
79ab4b7f
PE
13633else
13634 gl_replace_getopt=yes
067d23c9
KY
13635fi
13636done
13637
79ab4b7f 13638 fi
067d23c9 13639
79ab4b7f
PE
13640 if test -z "$gl_replace_getopt"; then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13642$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13643if ${gl_cv_func_getopt_posix+:} false; then :
067d23c9
KY
13644 $as_echo_n "(cached) " >&6
13645else
79ab4b7f
PE
13646
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648/* end confdefs.h. */
13649#include <unistd.h>
13650int
13651main ()
13652{
13653int *p = &optreset; return optreset;
13654 ;
13655 return 0;
13656}
13657_ACEOF
13658if ac_fn_c_try_compile "$LINENO"; then :
13659 gl_optind_min=1
13660else
067d23c9
KY
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662/* end confdefs.h. */
79ab4b7f
PE
13663#include <getopt.h>
13664int
13665main ()
13666{
13667return !getopt_clip;
13668 ;
13669 return 0;
13670}
067d23c9 13671_ACEOF
79ab4b7f
PE
13672if ac_fn_c_try_compile "$LINENO"; then :
13673 gl_optind_min=1
067d23c9 13674else
79ab4b7f 13675 gl_optind_min=0
067d23c9 13676fi
79ab4b7f 13677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 13678fi
79ab4b7f 13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 13680
79ab4b7f
PE
13681 gl_save_CPPFLAGS=$CPPFLAGS
13682 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
13683 if test "$cross_compiling" = yes; then :
13684 case "$host_os" in
13685 mingw*) gl_cv_func_getopt_posix="guessing no";;
13686 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
13687 *) gl_cv_func_getopt_posix="guessing yes";;
13688 esac
067d23c9
KY
13689
13690else
79ab4b7f
PE
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692/* end confdefs.h. */
067d23c9 13693
79ab4b7f
PE
13694#include <unistd.h>
13695#include <stdlib.h>
13696#include <string.h>
067d23c9 13697
79ab4b7f
PE
13698int
13699main ()
13700{
13701 {
13702 int argc = 0;
13703 char *argv[10];
13704 int c;
13705
13706 argv[argc++] = "program";
13707 argv[argc++] = "-a";
13708 argv[argc++] = "foo";
13709 argv[argc++] = "bar";
13710 argv[argc] = NULL;
13711 optind = OPTIND_MIN;
13712 opterr = 0;
13713
13714 c = getopt (argc, argv, "ab");
13715 if (!(c == 'a'))
13716 return 1;
13717 c = getopt (argc, argv, "ab");
13718 if (!(c == -1))
13719 return 2;
13720 if (!(optind == 2))
13721 return 3;
13722 }
13723 /* Some internal state exists at this point. */
13724 {
13725 int argc = 0;
13726 char *argv[10];
13727 int c;
13728
13729 argv[argc++] = "program";
13730 argv[argc++] = "donald";
13731 argv[argc++] = "-p";
13732 argv[argc++] = "billy";
13733 argv[argc++] = "duck";
13734 argv[argc++] = "-a";
13735 argv[argc++] = "bar";
13736 argv[argc] = NULL;
13737 optind = OPTIND_MIN;
13738 opterr = 0;
13739
13740 c = getopt (argc, argv, "+abp:q:");
13741 if (!(c == -1))
13742 return 4;
13743 if (!(strcmp (argv[0], "program") == 0))
13744 return 5;
13745 if (!(strcmp (argv[1], "donald") == 0))
13746 return 6;
13747 if (!(strcmp (argv[2], "-p") == 0))
13748 return 7;
13749 if (!(strcmp (argv[3], "billy") == 0))
13750 return 8;
13751 if (!(strcmp (argv[4], "duck") == 0))
13752 return 9;
13753 if (!(strcmp (argv[5], "-a") == 0))
13754 return 10;
13755 if (!(strcmp (argv[6], "bar") == 0))
13756 return 11;
13757 if (!(optind == 1))
13758 return 12;
13759 }
13760 /* Detect MacOS 10.5, AIX 7.1 bug. */
13761 {
13762 char *argv[3] = { "program", "-ab", NULL };
13763 optind = OPTIND_MIN;
13764 opterr = 0;
13765 if (getopt (2, argv, "ab:") != 'a')
13766 return 13;
13767 if (getopt (2, argv, "ab:") != '?')
13768 return 14;
13769 if (optopt != 'b')
13770 return 15;
13771 if (optind != 2)
13772 return 16;
13773 }
13774
13775 return 0;
13776}
13777
13778_ACEOF
13779if ac_fn_c_try_run "$LINENO"; then :
13780 gl_cv_func_getopt_posix=yes
067d23c9 13781else
79ab4b7f
PE
13782 gl_cv_func_getopt_posix=no
13783fi
13784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13785 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 13786fi
067d23c9 13787
79ab4b7f 13788 CPPFLAGS=$gl_save_CPPFLAGS
067d23c9 13789
79ab4b7f
PE
13790fi
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13792$as_echo "$gl_cv_func_getopt_posix" >&6; }
13793 case "$gl_cv_func_getopt_posix" in
13794 *no) gl_replace_getopt=yes ;;
13795 esac
13796 fi
067d23c9 13797
79ab4b7f
PE
13798 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13800$as_echo_n "checking for working GNU getopt function... " >&6; }
13801if ${gl_cv_func_getopt_gnu+:} false; then :
067d23c9
KY
13802 $as_echo_n "(cached) " >&6
13803else
79ab4b7f
PE
13804 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13805 # optstring is necessary for programs like m4 that have POSIX-mandated
13806 # semantics for supporting options interspersed with files.
13807 # Also, since getopt_long is a GNU extension, we require optind=0.
13808 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13809 # so take care to revert to the correct (non-)export state.
13810 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13811 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13812 xx) gl_had_POSIXLY_CORRECT=exported ;;
13813 x) gl_had_POSIXLY_CORRECT=yes ;;
13814 *) gl_had_POSIXLY_CORRECT= ;;
13815 esac
13816 POSIXLY_CORRECT=1
13817 export POSIXLY_CORRECT
13818 if test "$cross_compiling" = yes; then :
13819 case $host_os:$ac_cv_have_decl_optreset in
13820 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
13821 *:yes) gl_cv_func_getopt_gnu=no;;
13822 *) gl_cv_func_getopt_gnu=yes;;
13823 esac
13824
13825else
067d23c9
KY
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827/* end confdefs.h. */
79ab4b7f
PE
13828#include <getopt.h>
13829 #include <stddef.h>
13830 #include <string.h>
13831
067d23c9
KY
13832int
13833main ()
13834{
79ab4b7f
PE
13835
13836 int result = 0;
13837 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
13838 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
13839 OSF/1 5.1, Solaris 10. */
13840 {
13841 char *myargv[3];
13842 myargv[0] = "conftest";
13843 myargv[1] = "-+";
13844 myargv[2] = 0;
13845 opterr = 0;
13846 if (getopt (2, myargv, "+a") != '?')
13847 result |= 1;
13848 }
13849 /* This code succeeds on glibc 2.8, mingw,
13850 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
13851 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
13852 {
13853 char *argv[] = { "program", "-p", "foo", "bar", NULL };
13854
13855 optind = 1;
13856 if (getopt (4, argv, "p::") != 'p')
13857 result |= 2;
13858 else if (optarg != NULL)
13859 result |= 4;
13860 else if (getopt (4, argv, "p::") != -1)
13861 result |= 6;
13862 else if (optind != 2)
13863 result |= 8;
13864 }
13865 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
13866 {
13867 char *argv[] = { "program", "foo", "-p", NULL };
13868 optind = 0;
13869 if (getopt (3, argv, "-p") != 1)
13870 result |= 16;
13871 else if (getopt (3, argv, "-p") != 'p')
13872 result |= 32;
13873 }
13874 /* This code fails on glibc 2.11. */
13875 {
13876 char *argv[] = { "program", "-b", "-a", NULL };
13877 optind = opterr = 0;
13878 if (getopt (3, argv, "+:a:b") != 'b')
13879 result |= 64;
13880 else if (getopt (3, argv, "+:a:b") != ':')
13881 result |= 64;
13882 }
13883 return result;
13884
067d23c9
KY
13885 ;
13886 return 0;
13887}
13888_ACEOF
79ab4b7f
PE
13889if ac_fn_c_try_run "$LINENO"; then :
13890 gl_cv_func_getopt_gnu=yes
13891else
13892 gl_cv_func_getopt_gnu=no
067d23c9 13893fi
79ab4b7f
PE
13894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13895 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 13896fi
79ab4b7f
PE
13897
13898 case $gl_had_POSIXLY_CORRECT in
13899 exported) ;;
13900 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
13901 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
13902 esac
13903
1fd182f0 13904fi
79ab4b7f
PE
13905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13906$as_echo "$gl_cv_func_getopt_gnu" >&6; }
13907 if test "$gl_cv_func_getopt_gnu" = "no"; then
13908 gl_replace_getopt=yes
13909 fi
13910 fi
13911
13912ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13913if test "x$ac_cv_have_decl_getenv" = xyes; then :
13914 ac_have_decl=1
13915else
13916 ac_have_decl=0
13917fi
13918
1fd182f0 13919cat >>confdefs.h <<_ACEOF
79ab4b7f 13920#define HAVE_DECL_GETENV $ac_have_decl
1fd182f0 13921_ACEOF
1fd182f0 13922
1fd182f0 13923
1fd182f0
PE
13924
13925
1fd182f0 13926
1fd182f0 13927
79ab4b7f 13928 if test -n "$gl_replace_getopt"; then :
1fd182f0 13929
1fd182f0
PE
13930
13931
79ab4b7f 13932 GETOPT_H=getopt.h
1fd182f0 13933
79ab4b7f 13934$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
1fd182f0
PE
13935
13936
13937
79ab4b7f 13938 GNULIB_UNISTD_H_GETOPT=1
b06b1098
PE
13939
13940
13941
d6974efa
PE
13942
13943
13944
1fd182f0
PE
13945
13946
79ab4b7f 13947 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
1fd182f0 13948
1fd182f0 13949
1fd182f0
PE
13950
13951
1fd182f0
PE
13952
13953
13954
13955
79ab4b7f
PE
13956
13957 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13958
13959
13960
13961
13962
13963
13964fi
13965
13966
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13968$as_echo_n "checking for inline... " >&6; }
13969if ${ac_cv_c_inline+:} false; then :
e275c824
PE
13970 $as_echo_n "(cached) " >&6
13971else
79ab4b7f
PE
13972 ac_cv_c_inline=no
13973for ac_kw in inline __inline__ __inline; do
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 13975/* end confdefs.h. */
79ab4b7f
PE
13976#ifndef __cplusplus
13977typedef int foo_t;
13978static $ac_kw foo_t static_foo () {return 0; }
13979$ac_kw foo_t foo () {return 0; }
13980#endif
13981
1fd182f0
PE
13982_ACEOF
13983if ac_fn_c_try_compile "$LINENO"; then :
79ab4b7f 13984 ac_cv_c_inline=$ac_kw
1fd182f0
PE
13985fi
13986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79ab4b7f
PE
13987 test "$ac_cv_c_inline" != no && break
13988done
1fd182f0 13989
e275c824 13990fi
79ab4b7f
PE
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13992$as_echo "$ac_cv_c_inline" >&6; }
1fd182f0 13993
79ab4b7f
PE
13994case $ac_cv_c_inline in
13995 inline | yes) ;;
13996 *)
13997 case $ac_cv_c_inline in
13998 no) ac_val=;;
13999 *) ac_val=$ac_cv_c_inline;;
14000 esac
14001 cat >>confdefs.h <<_ACEOF
14002#ifndef __cplusplus
14003#define inline $ac_val
14004#endif
14005_ACEOF
14006 ;;
14007esac
1fd182f0
PE
14008
14009
79ab4b7f
PE
14010 GNULIB_MKTIME=0;
14011 GNULIB_NANOSLEEP=0;
14012 GNULIB_STRPTIME=0;
14013 GNULIB_TIMEGM=0;
14014 GNULIB_TIME_R=0;
14015 HAVE_DECL_LOCALTIME_R=1;
14016 HAVE_NANOSLEEP=1;
14017 HAVE_STRPTIME=1;
14018 HAVE_TIMEGM=1;
14019 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14020 REPLACE_MKTIME=GNULIB_PORTCHECK;
14021 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14022 REPLACE_TIMEGM=GNULIB_PORTCHECK;
e275c824 14023
1fd182f0 14024
e275c824 14025
79ab4b7f
PE
14026
14027 for ac_func in $ac_func_list
14028do :
14029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14031if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14032 cat >>confdefs.h <<_ACEOF
14033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
e275c824 14034_ACEOF
79ab4b7f 14035
e275c824 14036fi
79ab4b7f
PE
14037done
14038
14039
14040
14041
14042 gl_cv_c_multiarch=no
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044/* end confdefs.h. */
14045#ifndef __APPLE_CC__
14046 not a universal capable compiler
14047 #endif
14048 typedef int dummy;
14049
14050_ACEOF
14051if ac_fn_c_try_compile "$LINENO"; then :
e275c824 14052
79ab4b7f
PE
14053 arch=
14054 prev=
14055 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14056 if test -n "$prev"; then
14057 case $word in
14058 i?86 | x86_64 | ppc | ppc64)
14059 if test -z "$arch" || test "$arch" = "$word"; then
14060 arch="$word"
14061 else
14062 gl_cv_c_multiarch=yes
14063 fi
14064 ;;
14065 esac
14066 prev=
14067 else
14068 if test "x$word" = "x-arch"; then
14069 prev=arch
14070 fi
14071 fi
14072 done
e275c824
PE
14073
14074fi
79ab4b7f
PE
14075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 if test $gl_cv_c_multiarch = yes; then
14077 APPLE_UNIVERSAL_BUILD=1
e275c824 14078 else
79ab4b7f 14079 APPLE_UNIVERSAL_BUILD=0
e275c824
PE
14080 fi
14081
14082
79ab4b7f
PE
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14084$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14085if ${ac_cv_header_stdbool_h+:} false; then :
14086 $as_echo_n "(cached) " >&6
14087else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089/* end confdefs.h. */
e275c824 14090
79ab4b7f
PE
14091 #include <stdbool.h>
14092 #ifndef bool
14093 "error: bool is not defined"
14094 #endif
14095 #ifndef false
14096 "error: false is not defined"
14097 #endif
14098 #if false
14099 "error: false is not 0"
14100 #endif
14101 #ifndef true
14102 "error: true is not defined"
14103 #endif
14104 #if true != 1
14105 "error: true is not 1"
14106 #endif
14107 #ifndef __bool_true_false_are_defined
14108 "error: __bool_true_false_are_defined is not defined"
14109 #endif
e275c824 14110
79ab4b7f 14111 struct s { _Bool s: 1; _Bool t; } s;
e275c824 14112
79ab4b7f
PE
14113 char a[true == 1 ? 1 : -1];
14114 char b[false == 0 ? 1 : -1];
14115 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14116 char d[(bool) 0.5 == true ? 1 : -1];
14117 /* See body of main program for 'e'. */
14118 char f[(_Bool) 0.0 == false ? 1 : -1];
14119 char g[true];
14120 char h[sizeof (_Bool)];
14121 char i[sizeof s.t];
14122 enum { j = false, k = true, l = false * true, m = true * 256 };
14123 /* The following fails for
14124 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14125 _Bool n[m];
14126 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14127 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14128 /* Catch a bug in an HP-UX C compiler. See
14129 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14130 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14131 */
14132 _Bool q = true;
14133 _Bool *pq = &q;
e275c824 14134
79ab4b7f
PE
14135int
14136main ()
14137{
e275c824 14138
79ab4b7f
PE
14139 bool e = &s;
14140 *pq |= q;
14141 *pq |= ! q;
14142 /* Refer to every declared value, to avoid compiler optimizations. */
14143 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14144 + !m + !n + !o + !p + !q + !pq);
e275c824 14145
79ab4b7f
PE
14146 ;
14147 return 0;
14148}
14149_ACEOF
14150if ac_fn_c_try_compile "$LINENO"; then :
14151 ac_cv_header_stdbool_h=yes
14152else
14153 ac_cv_header_stdbool_h=no
14154fi
14155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14156fi
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14158$as_echo "$ac_cv_header_stdbool_h" >&6; }
14159 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14160if test "x$ac_cv_type__Bool" = xyes; then :
e275c824 14161
79ab4b7f
PE
14162cat >>confdefs.h <<_ACEOF
14163#define HAVE__BOOL 1
14164_ACEOF
e275c824
PE
14165
14166
79ab4b7f 14167fi
e275c824
PE
14168
14169
14170
79ab4b7f
PE
14171 REPLACE_NULL=0;
14172 HAVE_WCHAR_T=1;
14173 STDDEF_H='';
b06b1098
PE
14174
14175
79ab4b7f
PE
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14177$as_echo_n "checking for wchar_t... " >&6; }
14178if ${gt_cv_c_wchar_t+:} false; then :
e275c824
PE
14179 $as_echo_n "(cached) " >&6
14180else
79ab4b7f 14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824 14182/* end confdefs.h. */
79ab4b7f
PE
14183#include <stddef.h>
14184 wchar_t foo = (wchar_t)'\0';
14185int
14186main ()
14187{
e275c824 14188
79ab4b7f
PE
14189 ;
14190 return 0;
14191}
e275c824 14192_ACEOF
79ab4b7f
PE
14193if ac_fn_c_try_compile "$LINENO"; then :
14194 gt_cv_c_wchar_t=yes
14195else
14196 gt_cv_c_wchar_t=no
e275c824 14197fi
79ab4b7f
PE
14198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199fi
14200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14201$as_echo "$gt_cv_c_wchar_t" >&6; }
14202 if test $gt_cv_c_wchar_t = yes; then
e275c824 14203
79ab4b7f 14204$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
e275c824 14205
e275c824
PE
14206 fi
14207
14208
79ab4b7f
PE
14209 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14210"
14211if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
e275c824 14212
79ab4b7f 14213$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
e275c824 14214
e275c824
PE
14215fi
14216
e275c824 14217
e275c824 14218
e275c824 14219
79ab4b7f
PE
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14221$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14222if ${ac_cv_c_restrict+:} false; then :
d6974efa 14223 $as_echo_n "(cached) " >&6
e275c824 14224else
79ab4b7f
PE
14225 ac_cv_c_restrict=no
14226 # The order here caters to the fact that C++ does not require restrict.
14227 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6974efa 14229/* end confdefs.h. */
79ab4b7f
PE
14230typedef int * int_ptr;
14231 int foo (int_ptr $ac_kw ip) {
14232 return ip[0];
14233 }
d6974efa
PE
14234int
14235main ()
14236{
79ab4b7f
PE
14237int s[1];
14238 int * $ac_kw t = s;
14239 t[0] = 0;
14240 return foo(t)
d6974efa
PE
14241 ;
14242 return 0;
14243}
14244_ACEOF
14245if ac_fn_c_try_compile "$LINENO"; then :
79ab4b7f 14246 ac_cv_c_restrict=$ac_kw
e275c824 14247fi
d6974efa 14248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79ab4b7f
PE
14249 test "$ac_cv_c_restrict" != no && break
14250 done
e275c824 14251
79ab4b7f
PE
14252fi
14253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14254$as_echo "$ac_cv_c_restrict" >&6; }
14255
14256 case $ac_cv_c_restrict in
14257 restrict) ;;
14258 no) $as_echo "#define restrict /**/" >>confdefs.h
14259 ;;
14260 *) cat >>confdefs.h <<_ACEOF
14261#define restrict $ac_cv_c_restrict
14262_ACEOF
14263 ;;
14264 esac
14265
14266
14267
14268
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14271$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14272if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14273 $as_echo_n "(cached) " >&6
14274else
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276/* end confdefs.h. */
14277#include <time.h>
e275c824 14278
79ab4b7f
PE
14279int
14280main ()
14281{
14282static struct timespec x; x.tv_sec = x.tv_nsec;
14283 ;
e275c824
PE
14284 return 0;
14285}
e275c824 14286_ACEOF
79ab4b7f
PE
14287if ac_fn_c_try_compile "$LINENO"; then :
14288 gl_cv_sys_struct_timespec_in_time_h=yes
e275c824 14289else
79ab4b7f 14290 gl_cv_sys_struct_timespec_in_time_h=no
e275c824 14291fi
79ab4b7f 14292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 14293fi
79ab4b7f
PE
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14295$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
e275c824 14296
79ab4b7f
PE
14297 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14298 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14299 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14300 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14301 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14302 else
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14304$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14305if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
e275c824 14306 $as_echo_n "(cached) " >&6
e275c824
PE
14307else
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309/* end confdefs.h. */
79ab4b7f 14310#include <sys/time.h>
e275c824
PE
14311
14312int
14313main ()
14314{
79ab4b7f 14315static struct timespec x; x.tv_sec = x.tv_nsec;
e275c824
PE
14316 ;
14317 return 0;
14318}
14319_ACEOF
79ab4b7f
PE
14320if ac_fn_c_try_compile "$LINENO"; then :
14321 gl_cv_sys_struct_timespec_in_sys_time_h=yes
e275c824 14322else
79ab4b7f 14323 gl_cv_sys_struct_timespec_in_sys_time_h=no
e275c824 14324fi
79ab4b7f 14325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 14326fi
79ab4b7f
PE
14327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14328$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14329 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14330 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14331 else
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14333$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14334if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14335 $as_echo_n "(cached) " >&6
14336else
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338/* end confdefs.h. */
14339#include <pthread.h>
e275c824 14340
79ab4b7f
PE
14341int
14342main ()
14343{
14344static struct timespec x; x.tv_sec = x.tv_nsec;
14345 ;
14346 return 0;
14347}
14348_ACEOF
14349if ac_fn_c_try_compile "$LINENO"; then :
14350 gl_cv_sys_struct_timespec_in_pthread_h=yes
14351else
14352 gl_cv_sys_struct_timespec_in_pthread_h=no
e275c824 14353fi
79ab4b7f
PE
14354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14355fi
14356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14357$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14358 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14359 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14360 fi
e275c824
PE
14361 fi
14362 fi
14363
e275c824 14364
e275c824
PE
14365
14366
14367
14368
14369
14370
e275c824
PE
14371
14372
14373
e275c824 14374
e275c824
PE
14375
14376
14377
79ab4b7f
PE
14378 if test $gl_cv_have_include_next = yes; then
14379 gl_cv_next_time_h='<'time.h'>'
14380 else
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14382$as_echo_n "checking absolute name of <time.h>... " >&6; }
14383if ${gl_cv_next_time_h+:} false; then :
14384 $as_echo_n "(cached) " >&6
14385else
14386
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388/* end confdefs.h. */
14389#include <time.h>
14390
14391_ACEOF
14392 case "$host_os" in
14393 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14394 *) gl_absname_cpp="$ac_cpp" ;;
14395 esac
14396 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14397 sed -n '\#/time.h#{
14398 s#.*"\(.*/time.h\)".*#\1#
14399 s#^/[^/]#//&#
14400 p
14401 q
14402 }'`'"'
14403
14404
14405fi
14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14407$as_echo "$gl_cv_next_time_h" >&6; }
14408 fi
14409 NEXT_TIME_H=$gl_cv_next_time_h
14410
14411 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14413 gl_next_as_first_directive='<'time.h'>'
14414 else
14415 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14416 gl_next_as_first_directive=$gl_cv_next_time_h
14417 fi
14418 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14419
14420
e275c824
PE
14421
14422
14423
14424
79ab4b7f
PE
14425ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14426if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14427 ac_have_decl=1
14428else
14429 ac_have_decl=0
14430fi
14431
14432cat >>confdefs.h <<_ACEOF
14433#define HAVE_DECL_LOCALTIME_R $ac_have_decl
14434_ACEOF
14435
e275c824
PE
14436
14437
14438
79ab4b7f
PE
14439 if false; then
14440 GL_COND_LIBTOOL_TRUE=
14441 GL_COND_LIBTOOL_FALSE='#'
14442else
14443 GL_COND_LIBTOOL_TRUE='#'
14444 GL_COND_LIBTOOL_FALSE=
14445fi
e275c824 14446
79ab4b7f
PE
14447 gl_cond_libtool=false
14448 gl_libdeps=
14449 gl_ltlibdeps=
14450 gl_m4_base='m4'
e275c824
PE
14451
14452
14453
14454
14455
14456
14457
14458
14459
79ab4b7f
PE
14460 gl_source_base='lib'
14461 # Code from module arg-nonnull:
14462 # Code from module c++defs:
14463 # Code from module dtoastr:
e275c824 14464
79ab4b7f
PE
14465 # Code from module extensions:
14466 # Code from module getloadavg:
e275c824
PE
14467
14468
79ab4b7f 14469# Persuade glibc <stdlib.h> to declare getloadavg().
e275c824
PE
14470
14471
79ab4b7f
PE
14472# Make sure getloadavg.c is where it belongs, at configure-time.
14473test -f "$srcdir/$gl_source_base/getloadavg.c" ||
14474 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
e275c824 14475
79ab4b7f 14476gl_save_LIBS=$LIBS
e275c824 14477
9502925a 14478ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
79ab4b7f 14479if test "x$ac_cv_func_getloadavg" = xyes; then :
e275c824 14480
9502925a
PE
14481else
14482 gl_have_func=no
e275c824 14483
9502925a
PE
14484 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14485 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14486 # to get the right answer into the cache.
14487 # For kstat on solaris, we need to test for libelf and libkvm to force the
14488 # definition of SVR4 below.
14489 if test $gl_have_func = no; then
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
14491$as_echo_n "checking for elf_begin in -lelf... " >&6; }
14492if ${ac_cv_lib_elf_elf_begin+:} false; then :
79ab4b7f
PE
14493 $as_echo_n "(cached) " >&6
14494else
14495 ac_check_lib_save_LIBS=$LIBS
9502925a 14496LIBS="-lelf $LIBS"
79ab4b7f 14497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824 14498/* end confdefs.h. */
e275c824 14499
79ab4b7f
PE
14500/* Override any GCC internal prototype to avoid an error.
14501 Use char because int might match the return type of a GCC
14502 builtin and then its argument prototype would still apply. */
14503#ifdef __cplusplus
14504extern "C"
14505#endif
9502925a 14506char elf_begin ();
79ab4b7f
PE
14507int
14508main ()
14509{
9502925a 14510return elf_begin ();
79ab4b7f
PE
14511 ;
14512 return 0;
14513}
14514_ACEOF
14515if ac_fn_c_try_link "$LINENO"; then :
9502925a 14516 ac_cv_lib_elf_elf_begin=yes
79ab4b7f 14517else
9502925a 14518 ac_cv_lib_elf_elf_begin=no
79ab4b7f
PE
14519fi
14520rm -f core conftest.err conftest.$ac_objext \
14521 conftest$ac_exeext conftest.$ac_ext
14522LIBS=$ac_check_lib_save_LIBS
14523fi
9502925a
PE
14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
14525$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
14526if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
14527 LIBS="-lelf $LIBS"
e275c824 14528fi
e275c824 14529
9502925a
PE
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
14531$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
14532if ${ac_cv_lib_kvm_kvm_open+:} false; then :
16c3e636
PE
14533 $as_echo_n "(cached) " >&6
14534else
79ab4b7f 14535 ac_check_lib_save_LIBS=$LIBS
9502925a 14536LIBS="-lkvm $LIBS"
79ab4b7f 14537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16c3e636
PE
14538/* end confdefs.h. */
14539
79ab4b7f
PE
14540/* Override any GCC internal prototype to avoid an error.
14541 Use char because int might match the return type of a GCC
14542 builtin and then its argument prototype would still apply. */
14543#ifdef __cplusplus
14544extern "C"
14545#endif
9502925a 14546char kvm_open ();
16c3e636
PE
14547int
14548main ()
14549{
9502925a 14550return kvm_open ();
16c3e636
PE
14551 ;
14552 return 0;
14553}
14554_ACEOF
79ab4b7f 14555if ac_fn_c_try_link "$LINENO"; then :
9502925a 14556 ac_cv_lib_kvm_kvm_open=yes
16c3e636 14557else
9502925a 14558 ac_cv_lib_kvm_kvm_open=no
16c3e636 14559fi
79ab4b7f
PE
14560rm -f core conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14562LIBS=$ac_check_lib_save_LIBS
16c3e636 14563fi
9502925a
PE
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
14565$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
14566if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
14567 LIBS="-lkvm $LIBS"
79ab4b7f 14568fi
1fd182f0 14569
9502925a
PE
14570 # Check for the 4.4BSD definition of getloadavg.
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
14572$as_echo_n "checking for getloadavg in -lutil... " >&6; }
14573if ${ac_cv_lib_util_getloadavg+:} false; then :
1fd182f0
PE
14574 $as_echo_n "(cached) " >&6
14575else
79ab4b7f 14576 ac_check_lib_save_LIBS=$LIBS
9502925a 14577LIBS="-lutil $LIBS"
79ab4b7f 14578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14579/* end confdefs.h. */
79ab4b7f
PE
14580
14581/* Override any GCC internal prototype to avoid an error.
14582 Use char because int might match the return type of a GCC
14583 builtin and then its argument prototype would still apply. */
14584#ifdef __cplusplus
14585extern "C"
14586#endif
9502925a 14587char getloadavg ();
1fd182f0
PE
14588int
14589main ()
14590{
9502925a 14591return getloadavg ();
1fd182f0
PE
14592 ;
14593 return 0;
14594}
14595_ACEOF
79ab4b7f 14596if ac_fn_c_try_link "$LINENO"; then :
9502925a 14597 ac_cv_lib_util_getloadavg=yes
1fd182f0 14598else
9502925a 14599 ac_cv_lib_util_getloadavg=no
1fd182f0 14600fi
79ab4b7f
PE
14601rm -f core conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14603LIBS=$ac_check_lib_save_LIBS
1fd182f0 14604fi
9502925a
PE
14605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
14606$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
14607if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
14608 LIBS="-lutil $LIBS" gl_have_func=yes
16c3e636
PE
14609fi
14610
9502925a
PE
14611 fi
14612
14613 if test $gl_have_func = no; then
14614 # There is a commonly available library for RS/6000 AIX.
14615 # Since it is not a standard part of AIX, it might be installed locally.
14616 gl_getloadavg_LIBS=$LIBS
14617 LIBS="-L/usr/local/lib $LIBS"
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
14619$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
14620if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
1fd182f0
PE
14621 $as_echo_n "(cached) " >&6
14622else
79ab4b7f 14623 ac_check_lib_save_LIBS=$LIBS
9502925a 14624LIBS="-lgetloadavg $LIBS"
79ab4b7f 14625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14626/* end confdefs.h. */
79ab4b7f
PE
14627
14628/* Override any GCC internal prototype to avoid an error.
14629 Use char because int might match the return type of a GCC
14630 builtin and then its argument prototype would still apply. */
14631#ifdef __cplusplus
14632extern "C"
14633#endif
9502925a 14634char getloadavg ();
1fd182f0
PE
14635int
14636main ()
14637{
9502925a 14638return getloadavg ();
1fd182f0
PE
14639 ;
14640 return 0;
14641}
14642_ACEOF
79ab4b7f 14643if ac_fn_c_try_link "$LINENO"; then :
9502925a 14644 ac_cv_lib_getloadavg_getloadavg=yes
79ab4b7f 14645else
9502925a 14646 ac_cv_lib_getloadavg_getloadavg=no
1fd182f0 14647fi
79ab4b7f
PE
14648rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14650LIBS=$ac_check_lib_save_LIBS
14651fi
9502925a
PE
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14653$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
14654if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
14655 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
14656else
14657 LIBS=$gl_getloadavg_LIBS
1fd182f0 14658fi
1fd182f0 14659
9502925a
PE
14660 fi
14661
14662 # Set up the replacement function if necessary.
14663 if test $gl_have_func = no; then
14664
14665
14666
14667
14668
14669
14670
14671
14672 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
14673
14674
14675# Figure out what our getloadavg.c needs.
14676
14677# Solaris has libkstat which does not require root.
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
14679$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
14680if ${ac_cv_lib_kstat_kstat_open+:} false; then :
1fd182f0
PE
14681 $as_echo_n "(cached) " >&6
14682else
79ab4b7f 14683 ac_check_lib_save_LIBS=$LIBS
9502925a 14684LIBS="-lkstat $LIBS"
79ab4b7f 14685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14686/* end confdefs.h. */
1fd182f0 14687
79ab4b7f
PE
14688/* Override any GCC internal prototype to avoid an error.
14689 Use char because int might match the return type of a GCC
14690 builtin and then its argument prototype would still apply. */
14691#ifdef __cplusplus
14692extern "C"
14693#endif
9502925a 14694char kstat_open ();
1fd182f0
PE
14695int
14696main ()
14697{
9502925a 14698return kstat_open ();
1fd182f0
PE
14699 ;
14700 return 0;
14701}
14702_ACEOF
79ab4b7f 14703if ac_fn_c_try_link "$LINENO"; then :
9502925a 14704 ac_cv_lib_kstat_kstat_open=yes
1fd182f0 14705else
9502925a 14706 ac_cv_lib_kstat_kstat_open=no
1fd182f0 14707fi
79ab4b7f
PE
14708rm -f core conftest.err conftest.$ac_objext \
14709 conftest$ac_exeext conftest.$ac_ext
14710LIBS=$ac_check_lib_save_LIBS
14711fi
9502925a
PE
14712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
14713$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
14714if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
14715 cat >>confdefs.h <<_ACEOF
14716#define HAVE_LIBKSTAT 1
14717_ACEOF
14718
14719 LIBS="-lkstat $LIBS"
14720
1fd182f0 14721fi
1fd182f0 14722
9502925a
PE
14723test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
14724
14725# On HPUX9, an unprivileged user can get load averages this way.
14726if test $gl_have_func = no; then
14727 for ac_func in pstat_getdynamic
14728do :
14729 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
14730if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
14731 cat >>confdefs.h <<_ACEOF
14732#define HAVE_PSTAT_GETDYNAMIC 1
14733_ACEOF
14734 gl_have_func=yes
14735fi
14736done
14737
79ab4b7f
PE
14738fi
14739
9502925a 14740# AIX has libperfstat which does not require root
79ab4b7f 14741if test $gl_have_func = no; then
9502925a
PE
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
14743$as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
14744if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
1fd182f0
PE
14745 $as_echo_n "(cached) " >&6
14746else
79ab4b7f 14747 ac_check_lib_save_LIBS=$LIBS
9502925a 14748LIBS="-lperfstat $LIBS"
79ab4b7f 14749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14750/* end confdefs.h. */
1fd182f0 14751
79ab4b7f
PE
14752/* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14755#ifdef __cplusplus
14756extern "C"
14757#endif
9502925a 14758char perfstat_cpu_total ();
1fd182f0
PE
14759int
14760main ()
14761{
9502925a 14762return perfstat_cpu_total ();
1fd182f0
PE
14763 ;
14764 return 0;
14765}
14766_ACEOF
79ab4b7f 14767if ac_fn_c_try_link "$LINENO"; then :
9502925a 14768 ac_cv_lib_perfstat_perfstat_cpu_total=yes
1fd182f0 14769else
9502925a 14770 ac_cv_lib_perfstat_perfstat_cpu_total=no
1fd182f0 14771fi
79ab4b7f
PE
14772rm -f core conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14774LIBS=$ac_check_lib_save_LIBS
1fd182f0 14775fi
9502925a
PE
14776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
14777$as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
14778if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
79ab4b7f 14779 cat >>confdefs.h <<_ACEOF
9502925a 14780#define HAVE_LIBPERFSTAT 1
79ab4b7f
PE
14781_ACEOF
14782
9502925a 14783 LIBS="-lperfstat $LIBS"
79ab4b7f 14784
9502925a 14785fi
79ab4b7f 14786
9502925a
PE
14787 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
14788fi
79ab4b7f 14789
9502925a
PE
14790if test $gl_have_func = no; then
14791 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
79ab4b7f
PE
14792if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
14793 gl_have_func=yes
14794
14795$as_echo "#define DGUX 1" >>confdefs.h
14796
9502925a 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
79ab4b7f
PE
14798$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
14799if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
1fd182f0
PE
14800 $as_echo_n "(cached) " >&6
14801else
79ab4b7f
PE
14802 ac_check_lib_save_LIBS=$LIBS
14803LIBS="-ldgc $LIBS"
14804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14805/* end confdefs.h. */
1fd182f0 14806
79ab4b7f
PE
14807/* Override any GCC internal prototype to avoid an error.
14808 Use char because int might match the return type of a GCC
14809 builtin and then its argument prototype would still apply. */
14810#ifdef __cplusplus
14811extern "C"
14812#endif
14813char dg_sys_info ();
1fd182f0
PE
14814int
14815main ()
14816{
79ab4b7f 14817return dg_sys_info ();
1fd182f0
PE
14818 ;
14819 return 0;
14820}
14821_ACEOF
79ab4b7f
PE
14822if ac_fn_c_try_link "$LINENO"; then :
14823 ac_cv_lib_dgc_dg_sys_info=yes
1fd182f0 14824else
79ab4b7f 14825 ac_cv_lib_dgc_dg_sys_info=no
1fd182f0 14826fi
79ab4b7f
PE
14827rm -f core conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14829LIBS=$ac_check_lib_save_LIBS
1fd182f0 14830fi
79ab4b7f
PE
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14832$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
14833if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
14834 cat >>confdefs.h <<_ACEOF
14835#define HAVE_LIBDGC 1
14836_ACEOF
14837
14838 LIBS="-ldgc $LIBS"
1fd182f0 14839
79ab4b7f 14840fi
1fd182f0 14841
79ab4b7f 14842fi
1fd182f0
PE
14843
14844
9502925a 14845fi
1fd182f0 14846
79ab4b7f
PE
14847# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14848# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14849# Irix 4.0.5F has the header but not the library.
14850if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
14851 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
14852 gl_have_func=yes
1fd182f0 14853
79ab4b7f 14854$as_echo "#define SVR4 1" >>confdefs.h
1fd182f0 14855
79ab4b7f 14856fi
1fd182f0 14857
79ab4b7f
PE
14858if test $gl_have_func = no; then
14859 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
14860if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
14861 gl_have_func=yes
1fd182f0 14862
79ab4b7f 14863$as_echo "#define UMAX 1" >>confdefs.h
1fd182f0
PE
14864
14865
79ab4b7f 14866$as_echo "#define UMAX4_3 1" >>confdefs.h
1fd182f0 14867
79ab4b7f 14868fi
1fd182f0 14869
b06b1098 14870
79ab4b7f 14871fi
b06b1098 14872
79ab4b7f
PE
14873if test $gl_have_func = no; then
14874 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
14875if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
14876 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
1fd182f0 14877
79ab4b7f 14878fi
1fd182f0 14879
79ab4b7f
PE
14880
14881fi
14882
14883if test $gl_have_func = no; then
14884 for ac_header in mach/mach.h
14885do :
14886 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
14887if test "x$ac_cv_header_mach_mach_h" = xyes; then :
14888 cat >>confdefs.h <<_ACEOF
14889#define HAVE_MACH_MACH_H 1
1fd182f0 14890_ACEOF
b06b1098 14891
79ab4b7f
PE
14892fi
14893
14894done
1fd182f0
PE
14895
14896fi
1fd182f0 14897
79ab4b7f
PE
14898for ac_header in nlist.h
14899do :
14900 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
14901if test "x$ac_cv_header_nlist_h" = xyes; then :
14902 cat >>confdefs.h <<_ACEOF
14903#define HAVE_NLIST_H 1
14904_ACEOF
14905 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
14906"
14907if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
14908
14909cat >>confdefs.h <<_ACEOF
14910#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14911_ACEOF
1fd182f0
PE
14912
14913
79ab4b7f 14914fi
1fd182f0 14915
79ab4b7f
PE
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917/* end confdefs.h. */
14918#include <nlist.h>
14919int
14920main ()
14921{
14922struct nlist x;
14923 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
14924 x.n_un.n_name = "";
14925 #else
14926 x.n_name = "";
14927 #endif
14928 ;
14929 return 0;
14930}
14931_ACEOF
14932if ac_fn_c_try_link "$LINENO"; then :
1fd182f0 14933
79ab4b7f 14934$as_echo "#define N_NAME_POINTER 1" >>confdefs.h
b06b1098 14935
1fd182f0 14936fi
79ab4b7f
PE
14937rm -f core conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14939
14940fi
14941
14942done
14943
9502925a 14944 fi
79ab4b7f 14945fi
1fd182f0 14946
79ab4b7f 14947
79ab4b7f
PE
14948if test "x$gl_save_LIBS" = x; then
14949 GETLOADAVG_LIBS=$LIBS
14950else
14951 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
1fd182f0 14952fi
79ab4b7f 14953LIBS=$gl_save_LIBS
1fd182f0 14954
1fd182f0 14955
79ab4b7f
PE
14956# Test whether the system declares getloadavg. Solaris has the function
14957# but declares it in <sys/loadavg.h>, not <stdlib.h>.
14958for ac_header in sys/loadavg.h
14959do :
14960 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
14961if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
14962 cat >>confdefs.h <<_ACEOF
14963#define HAVE_SYS_LOADAVG_H 1
14964_ACEOF
1fd182f0 14965
79ab4b7f 14966fi
1fd182f0 14967
79ab4b7f 14968done
1fd182f0 14969
79ab4b7f
PE
14970if test $ac_cv_header_sys_loadavg_h = yes; then
14971 HAVE_SYS_LOADAVG_H=1
14972else
14973 HAVE_SYS_LOADAVG_H=0
14974fi
14975ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
14976 # include <sys/loadavg.h>
14977 #endif
14978 #include <stdlib.h>
14979"
14980if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
1fd182f0 14981
79ab4b7f
PE
14982else
14983 HAVE_DECL_GETLOADAVG=0
14984fi
1fd182f0
PE
14985
14986
14987
14988
1fd182f0 14989
79ab4b7f
PE
14990 GNULIB_GETLOADAVG=1
14991
14992
14993
e275c824
PE
14994 # Code from module getopt-gnu:
14995
14996
14997
14998
14999
15000
e275c824
PE
15001 # Code from module getopt-posix:
15002
15003
15004
15005
15006
15007 if test -n "$gl_replace_getopt"; then :
15008
15009
15010
15011 GETOPT_H=getopt.h
15012
15013$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15014
15015
15016
15017 GNULIB_UNISTD_H_GETOPT=1
15018
15019
15020
15021
15022
15023
15024
15025
15026 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15037
15038
15039
15040
15041
15042
15043fi
15044
15045
15046 # Code from module gettext-h:
15047
15048
67342916
PE
15049 # Code from module ignore-value:
15050
1fd182f0
PE
15051 # Code from module include_next:
15052 # Code from module intprops:
15053 # Code from module mktime:
15054
15055
15056
15057
15058
15059if test $APPLE_UNIVERSAL_BUILD = 1; then
15060 # A universal build on Apple MacOS X platforms.
15061 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15062 # But we need a configuration result that is valid in both modes.
15063 ac_cv_func_working_mktime=no
15064fi
15065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15066$as_echo_n "checking for working mktime... " >&6; }
d6974efa 15067if ${ac_cv_func_working_mktime+:} false; then :
1fd182f0
PE
15068 $as_echo_n "(cached) " >&6
15069else
15070 if test "$cross_compiling" = yes; then :
15071 ac_cv_func_working_mktime=no
15072else
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074/* end confdefs.h. */
15075/* Test program from Paul Eggert and Tony Leneis. */
15076#include <limits.h>
15077#include <stdlib.h>
15078#include <time.h>
15079
15080#ifdef HAVE_UNISTD_H
15081# include <unistd.h>
15082#endif
15083
15084#ifndef HAVE_ALARM
15085# define alarm(X) /* empty */
15086#endif
15087
15088/* Work around redefinition to rpl_putenv by other config tests. */
15089#undef putenv
15090
15091static time_t time_t_max;
15092static time_t time_t_min;
15093
15094/* Values we'll use to set the TZ environment variable. */
15095static char *tz_strings[] = {
15096 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15097 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15098};
15099#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15100
15101/* Return 0 if mktime fails to convert a date in the spring-forward gap.
15102 Based on a problem report from Andreas Jaeger. */
15103static int
15104spring_forward_gap ()
15105{
15106 /* glibc (up to about 1998-10-07) failed this test. */
15107 struct tm tm;
15108
15109 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15110 instead of "TZ=America/Vancouver" in order to detect the bug even
15111 on systems that don't support the Olson extension, or don't have the
15112 full zoneinfo tables installed. */
15113 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15114
15115 tm.tm_year = 98;
15116 tm.tm_mon = 3;
15117 tm.tm_mday = 5;
15118 tm.tm_hour = 2;
15119 tm.tm_min = 0;
15120 tm.tm_sec = 0;
15121 tm.tm_isdst = -1;
15122 return mktime (&tm) != (time_t) -1;
15123}
15124
15125static int
15126mktime_test1 (time_t now)
15127{
15128 struct tm *lt;
15129 return ! (lt = localtime (&now)) || mktime (lt) == now;
15130}
15131
15132static int
15133mktime_test (time_t now)
15134{
15135 return (mktime_test1 (now)
15136 && mktime_test1 ((time_t) (time_t_max - now))
15137 && mktime_test1 ((time_t) (time_t_min + now)));
15138}
15139
15140static int
15141irix_6_4_bug ()
15142{
15143 /* Based on code from Ariel Faigon. */
15144 struct tm tm;
15145 tm.tm_year = 96;
15146 tm.tm_mon = 3;
15147 tm.tm_mday = 0;
15148 tm.tm_hour = 0;
15149 tm.tm_min = 0;
15150 tm.tm_sec = 0;
15151 tm.tm_isdst = -1;
15152 mktime (&tm);
15153 return tm.tm_mon == 2 && tm.tm_mday == 31;
15154}
15155
15156static int
15157bigtime_test (int j)
15158{
15159 struct tm tm;
15160 time_t now;
15161 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15162 now = mktime (&tm);
15163 if (now != (time_t) -1)
15164 {
15165 struct tm *lt = localtime (&now);
15166 if (! (lt
15167 && lt->tm_year == tm.tm_year
15168 && lt->tm_mon == tm.tm_mon
15169 && lt->tm_mday == tm.tm_mday
15170 && lt->tm_hour == tm.tm_hour
15171 && lt->tm_min == tm.tm_min
15172 && lt->tm_sec == tm.tm_sec
15173 && lt->tm_yday == tm.tm_yday
15174 && lt->tm_wday == tm.tm_wday
15175 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15176 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15177 return 0;
15178 }
15179 return 1;
15180}
15181
15182static int
15183year_2050_test ()
15184{
15185 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15186 ignoring leap seconds. */
15187 unsigned long int answer = 2527315200UL;
15188
15189 struct tm tm;
15190 time_t t;
15191 tm.tm_year = 2050 - 1900;
15192 tm.tm_mon = 2 - 1;
15193 tm.tm_mday = 1;
15194 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15195 tm.tm_isdst = -1;
15196
15197 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15198 instead of "TZ=America/Vancouver" in order to detect the bug even
15199 on systems that don't support the Olson extension, or don't have the
15200 full zoneinfo tables installed. */
15201 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15202
15203 t = mktime (&tm);
15204
15205 /* Check that the result is either a failure, or close enough
15206 to the correct answer that we can assume the discrepancy is
15207 due to leap seconds. */
15208 return (t == (time_t) -1
15209 || (0 < t && answer - 120 <= t && t <= answer + 120));
15210}
15211
15212int
15213main ()
15214{
15215 int result = 0;
15216 time_t t, delta;
15217 int i, j;
3de84ad9
PE
15218 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15219 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
1fd182f0
PE
15220
15221 /* This test makes some buggy mktime implementations loop.
15222 Give up after 60 seconds; a mktime slower than that
15223 isn't worth using anyway. */
15224 alarm (60);
15225
3de84ad9
PE
15226 time_t_max = (! time_t_signed
15227 ? (time_t) -1
15228 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15229 * 2 + 1));
15230 time_t_min = (! time_t_signed
15231 ? (time_t) 0
15232 : time_t_signed_magnitude
15233 ? ~ (time_t) 0
15234 : ~ time_t_max);
1fd182f0
PE
15235
15236 delta = time_t_max / 997; /* a suitable prime number */
15237 for (i = 0; i < N_STRINGS; i++)
15238 {
15239 if (tz_strings[i])
15240 putenv (tz_strings[i]);
15241
15242 for (t = 0; t <= time_t_max - delta; t += delta)
15243 if (! mktime_test (t))
15244 result |= 1;
15245 if (! (mktime_test ((time_t) 1)
15246 && mktime_test ((time_t) (60 * 60))
15247 && mktime_test ((time_t) (60 * 60 * 24))))
15248 result |= 2;
15249
15250 for (j = 1; ; j <<= 1)
15251 if (! bigtime_test (j))
15252 result |= 4;
15253 else if (INT_MAX / 2 < j)
15254 break;
15255 if (! bigtime_test (INT_MAX))
15256 result |= 8;
15257 }
15258 if (! irix_6_4_bug ())
15259 result |= 16;
15260 if (! spring_forward_gap ())
15261 result |= 32;
15262 if (! year_2050_test ())
15263 result |= 64;
15264 return result;
15265}
15266_ACEOF
15267if ac_fn_c_try_run "$LINENO"; then :
15268 ac_cv_func_working_mktime=yes
15269else
15270 ac_cv_func_working_mktime=no
15271fi
15272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15273 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 15274fi
067d23c9 15275
1fd182f0
PE
15276fi
15277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15278$as_echo "$ac_cv_func_working_mktime" >&6; }
15279if test $ac_cv_func_working_mktime = no; then
067d23c9 15280
067d23c9 15281
067d23c9
KY
15282
15283
067d23c9 15284
067d23c9
KY
15285
15286
15287
1fd182f0 15288 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
067d23c9 15289
1fd182f0 15290fi
067d23c9 15291
1fd182f0
PE
15292 if test $ac_cv_func_working_mktime = no; then
15293 REPLACE_MKTIME=1
067d23c9
KY
15294
15295
15296
1fd182f0
PE
15297 else
15298 REPLACE_MKTIME=0
15299 fi
067d23c9
KY
15300
15301
15302
067d23c9 15303
1fd182f0 15304 GNULIB_MKTIME=1
067d23c9
KY
15305
15306
15307
1fd182f0 15308 # Code from module multiarch:
067d23c9 15309
16c3e636
PE
15310 # Code from module stdbool:
15311
15312
15313
15314 # Define two additional variables used in the Makefile substitution.
15315
15316 if test "$ac_cv_header_stdbool_h" = yes; then
15317 STDBOOL_H=''
15318 else
15319 STDBOOL_H='stdbool.h'
15320 fi
15321
15322
15323 if test "$ac_cv_type__Bool" = yes; then
15324 HAVE__BOOL=1
15325 else
15326 HAVE__BOOL=0
15327 fi
15328
15329
1fd182f0 15330 # Code from module stddef:
067d23c9 15331
067d23c9 15332
067d23c9 15333
1fd182f0
PE
15334 if test $gt_cv_c_wchar_t = no; then
15335 HAVE_WCHAR_T=0
15336 STDDEF_H=stddef.h
067d23c9 15337 fi
1fd182f0
PE
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15339$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
d6974efa 15340if ${gl_cv_decl_null_works+:} false; then :
067d23c9 15341 $as_echo_n "(cached) " >&6
067d23c9
KY
15342else
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344/* end confdefs.h. */
1fd182f0
PE
15345#include <stddef.h>
15346 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15347
067d23c9
KY
15348int
15349main ()
15350{
15351
067d23c9
KY
15352 ;
15353 return 0;
15354}
15355_ACEOF
1fd182f0
PE
15356if ac_fn_c_try_compile "$LINENO"; then :
15357 gl_cv_decl_null_works=yes
067d23c9 15358else
1fd182f0 15359 gl_cv_decl_null_works=no
067d23c9 15360fi
1fd182f0 15361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 15362fi
1fd182f0
PE
15363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15364$as_echo "$gl_cv_decl_null_works" >&6; }
15365 if test $gl_cv_decl_null_works = no; then
15366 REPLACE_NULL=1
15367 STDDEF_H=stddef.h
15368 fi
15369 if test -n "$STDDEF_H"; then
15370
15371
15372
15373
15374
15375
b06b1098
PE
15376
15377
1fd182f0
PE
15378 if test $gl_cv_have_include_next = yes; then
15379 gl_cv_next_stddef_h='<'stddef.h'>'
15380 else
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15382$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
d6974efa 15383if ${gl_cv_next_stddef_h+:} false; then :
1fd182f0
PE
15384 $as_echo_n "(cached) " >&6
15385else
15386
b06b1098 15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
15388/* end confdefs.h. */
15389#include <stddef.h>
15390
15391_ACEOF
b06b1098
PE
15392 case "$host_os" in
15393 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15394 *) gl_absname_cpp="$ac_cpp" ;;
15395 esac
15396 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15397 sed -n '\#/stddef.h#{
15398 s#.*"\(.*/stddef.h\)".*#\1#
15399 s#^/[^/]#//&#
15400 p
15401 q
15402 }'`'"'
15403
067d23c9
KY
15404
15405fi
1fd182f0
PE
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15407$as_echo "$gl_cv_next_stddef_h" >&6; }
15408 fi
15409 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15410
15411 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15413 gl_next_as_first_directive='<'stddef.h'>'
15414 else
15415 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15416 gl_next_as_first_directive=$gl_cv_next_stddef_h
15417 fi
15418 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15419
15420
15421
b06b1098 15422
067d23c9
KY
15423 fi
15424
79ab4b7f
PE
15425 # Code from module stdlib:
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436 if test $gl_cv_have_include_next = yes; then
15437 gl_cv_next_stdlib_h='<'stdlib.h'>'
15438 else
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15440$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15441if ${gl_cv_next_stdlib_h+:} false; then :
15442 $as_echo_n "(cached) " >&6
15443else
15444
15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446/* end confdefs.h. */
15447#include <stdlib.h>
15448
15449_ACEOF
15450 case "$host_os" in
15451 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15452 *) gl_absname_cpp="$ac_cpp" ;;
15453 esac
15454 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15455 sed -n '\#/stdlib.h#{
15456 s#.*"\(.*/stdlib.h\)".*#\1#
15457 s#^/[^/]#//&#
15458 p
15459 q
15460 }'`'"'
15461
15462
15463fi
15464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15465$as_echo "$gl_cv_next_stdlib_h" >&6; }
15466 fi
15467 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15468
15469 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15470 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15471 gl_next_as_first_directive='<'stdlib.h'>'
15472 else
15473 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15474 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15475 fi
15476 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15477
15478
15479
15480
79ab4b7f
PE
15481
15482
15483
16c3e636
PE
15484 # Code from module strftime:
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
15496
15497
15498 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15499
15500
15501
15502
15503
15504
15505
15506$as_echo "#define my_strftime nstrftime" >>confdefs.h
15507
15508
15509
1fd182f0 15510 # Code from module time:
067d23c9
KY
15511
15512
067d23c9 15513
1fd182f0 15514 # Code from module time_r:
067d23c9 15515
067d23c9 15516
067d23c9
KY
15517
15518
15519
067d23c9 15520
067d23c9 15521
1fd182f0
PE
15522 if test $ac_cv_have_decl_localtime_r = no; then
15523 HAVE_DECL_LOCALTIME_R=0
15524 fi
067d23c9
KY
15525
15526
1fd182f0
PE
15527 if test $ac_cv_func_localtime_r = yes; then
15528 HAVE_LOCALTIME_R=1
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15530$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
d6974efa 15531if ${gl_cv_time_r_posix+:} false; then :
067d23c9
KY
15532 $as_echo_n "(cached) " >&6
15533else
1fd182f0 15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 15535/* end confdefs.h. */
1fd182f0 15536#include <time.h>
067d23c9
KY
15537int
15538main ()
15539{
1fd182f0
PE
15540/* We don't need to append 'restrict's to the argument types,
15541 even though the POSIX signature has the 'restrict's,
15542 since C99 says they can't affect type compatibility. */
15543 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15544 if (ptr) return 0;
15545 /* Check the return type is a pointer.
15546 On HP-UX 10 it is 'int'. */
15547 *localtime_r (0, 0);
067d23c9
KY
15548 ;
15549 return 0;
15550}
1fd182f0 15551
067d23c9
KY
15552_ACEOF
15553if ac_fn_c_try_compile "$LINENO"; then :
1fd182f0 15554 gl_cv_time_r_posix=yes
067d23c9 15555else
1fd182f0 15556 gl_cv_time_r_posix=no
067d23c9
KY
15557fi
15558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559
15560fi
1fd182f0
PE
15561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15562$as_echo "$gl_cv_time_r_posix" >&6; }
15563 if test $gl_cv_time_r_posix = yes; then
15564 REPLACE_LOCALTIME_R=0
15565 else
15566 REPLACE_LOCALTIME_R=1
15567 fi
15568 else
15569 HAVE_LOCALTIME_R=0
15570 fi
15571 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
067d23c9 15572
067d23c9
KY
15573
15574
743c80a7 15575
a451f14b
PE
15576
15577
15578
a451f14b 15579
1fd182f0 15580 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
a451f14b 15581
a451f14b 15582
1fd182f0 15583 :
a451f14b
PE
15584
15585 fi
15586
15587
743c80a7
PE
15588
15589
1fd182f0 15590 GNULIB_TIME_R=1
743c80a7
PE
15591
15592
15593
b06b1098 15594 # Code from module unistd:
a451f14b
PE
15595
15596
15597
e275c824
PE
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608 if test $gl_cv_have_include_next = yes; then
15609 gl_cv_next_unistd_h='<'unistd.h'>'
15610 else
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15612$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
d6974efa 15613if ${gl_cv_next_unistd_h+:} false; then :
e275c824
PE
15614 $as_echo_n "(cached) " >&6
15615else
15616
b06b1098
PE
15617 if test $ac_cv_header_unistd_h = yes; then
15618
15619
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
15621/* end confdefs.h. */
15622#include <unistd.h>
15623
15624_ACEOF
b06b1098
PE
15625 case "$host_os" in
15626 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15627 *) gl_absname_cpp="$ac_cpp" ;;
15628 esac
15629 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15630 sed -n '\#/unistd.h#{
15631 s#.*"\(.*/unistd.h\)".*#\1#
15632 s#^/[^/]#//&#
15633 p
15634 q
15635 }'`'"'
e275c824 15636 else
b06b1098
PE
15637 gl_cv_next_unistd_h='<'unistd.h'>'
15638 fi
15639
e275c824
PE
15640
15641fi
15642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15643$as_echo "$gl_cv_next_unistd_h" >&6; }
15644 fi
15645 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15646
15647 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15648 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15649 gl_next_as_first_directive='<'unistd.h'>'
15650 else
15651 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15652 gl_next_as_first_directive=$gl_cv_next_unistd_h
15653 fi
15654 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15655
15656
15657
15658
e275c824
PE
15659 if test $ac_cv_header_unistd_h = yes; then
15660 HAVE_UNISTD_H=1
15661 else
15662 HAVE_UNISTD_H=0
15663 fi
15664
15665
15666
e275c824 15667
1fd182f0
PE
15668 # Code from module warn-on-use:
15669 # End of code from modules
a451f14b 15670
a451f14b 15671
743c80a7
PE
15672
15673
15674
15675
15676
15677
15678
15679 gltests_libdeps=
15680 gltests_ltlibdeps=
15681
15682
15683
15684
15685
a451f14b
PE
15686
15687
15688
15689
743c80a7
PE
15690 gl_source_base='tests'
15691 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
15692
15693 gl_module_indicator_condition=$gltests_WITNESS
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703 LIBGNU_LIBDEPS="$gl_libdeps"
15704
15705 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15706
15707
15708
067d23c9
KY
15709# UNIX98 PTYs.
15710for ac_func in grantpt
15711do :
15712 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
d6974efa 15713if test "x$ac_cv_func_grantpt" = xyes; then :
067d23c9
KY
15714 cat >>confdefs.h <<_ACEOF
15715#define HAVE_GRANTPT 1
15716_ACEOF
15717
15718fi
15719done
15720
15721
15722# PTY-related GNU extensions.
15723for ac_func in getpt
15724do :
15725 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
d6974efa 15726if test "x$ac_cv_func_getpt" = xyes; then :
067d23c9
KY
15727 cat >>confdefs.h <<_ACEOF
15728#define HAVE_GETPT 1
15729_ACEOF
15730
15731fi
15732done
15733
15734
15735# Check this now, so that we will NOT find the above functions in ncurses.
15736# That is because we have not set up to link ncurses in lib-src.
15737# It's better to believe a function is not available
15738# than to expect to find it in ncurses.
15739# Also we need tputs and friends to be able to build at all.
15740have_tputs_et_al=true
15741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15742$as_echo_n "checking for library containing tputs... " >&6; }
d6974efa 15743if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15744 $as_echo_n "(cached) " >&6
15745else
15746 ac_func_search_save_LIBS=$LIBS
15747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748/* end confdefs.h. */
15749
15750/* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
15753#ifdef __cplusplus
15754extern "C"
15755#endif
15756char tputs ();
15757int
15758main ()
15759{
15760return tputs ();
15761 ;
15762 return 0;
15763}
15764_ACEOF
15765for ac_lib in '' ncurses terminfo termcap; do
15766 if test -z "$ac_lib"; then
15767 ac_res="none required"
15768 else
15769 ac_res=-l$ac_lib
15770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15771 fi
15772 if ac_fn_c_try_link "$LINENO"; then :
15773 ac_cv_search_tputs=$ac_res
15774fi
15775rm -f core conftest.err conftest.$ac_objext \
15776 conftest$ac_exeext
d6974efa 15777 if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15778 break
15779fi
15780done
d6974efa 15781if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15782
15783else
15784 ac_cv_search_tputs=no
15785fi
15786rm conftest.$ac_ext
15787LIBS=$ac_func_search_save_LIBS
15788fi
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15790$as_echo "$ac_cv_search_tputs" >&6; }
15791ac_res=$ac_cv_search_tputs
15792if test "$ac_res" != no; then :
15793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15794
15795else
15796 have_tputs_et_al=false
15797fi
15798
15799if test "$have_tputs_et_al" != true; then
2018939f 15800 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
067d23c9
KY
15801Maybe some development libraries/packages are missing? Try installing
15802libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15803fi
15804# Must define this when any termcap library is found.
15805
15806$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15807
15808## FIXME This was the cpp logic, but I am not sure it is right.
15809## The above test has not necessarily found libncurses.
15810HAVE_LIBNCURSES=yes
15811
15812## Use terminfo instead of termcap?
15813## Note only system files NOT using terminfo are:
15814## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15815## darwin|gnu without ncurses.
15816TERMINFO=no
15817LIBS_TERMCAP=
15818case "$opsys" in
15819 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15820 ## hpux10-20: Use the system provided termcap(3) library.
15821 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15822 ## is necessary. Otherwise Emacs dumps core when run -nw.
15823 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15824
15825 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15826 ## The ncurses library has been moved out of the System framework in
15827 ## Mac OS X 10.2. So if configure detects it, set the command-line
15828 ## option to use it.
15829 darwin|gnu*)
15830 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15831 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15832 TERMINFO=yes
15833 LIBS_TERMCAP="-lncurses"
15834 fi
15835 ;;
15836
15837 freebsd)
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15839$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
d6974efa 15840 if ${emacs_cv_freebsd_terminfo+:} false; then :
067d23c9
KY
15841 $as_echo_n "(cached) " >&6
15842else
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844/* end confdefs.h. */
15845#include <osreldate.h>
15846int
15847main ()
15848{
15849#if __FreeBSD_version < 400000
15850fail;
15851#endif
15852
15853 ;
15854 return 0;
15855}
15856_ACEOF
15857if ac_fn_c_try_link "$LINENO"; then :
15858 emacs_cv_freebsd_terminfo=yes
15859else
15860 emacs_cv_freebsd_terminfo=no
15861fi
15862rm -f core conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864fi
15865
15866
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15868$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15869
15870 if test $emacs_cv_freebsd_terminfo = yes; then
15871 TERMINFO=yes
15872 LIBS_TERMCAP="-lncurses"
15873 else
15874 LIBS_TERMCAP="-ltermcap"
15875 fi
15876 ;;
15877
15878 netbsd)
15879 if test $ac_cv_search_tputs = -lterminfo; then
15880 TERMINFO=yes
15881 LIBS_TERMCAP="-lterminfo"
15882 else
15883 LIBS_TERMCAP="-ltermcap"
15884 fi
15885 ;;
15886
15887esac
15888
15889case "$opsys" in
15890 ## hpux: Make sure we get select from libc rather than from libcurses
15891 ## because libcurses on HPUX 10.10 has a broken version of select.
15892 ## We used to use -lc -lcurses, but this may be cleaner.
15893 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15894
15895 openbsd) LIBS_TERMCAP="-lncurses" ;;
15896
15897 ## Must use system termcap, if we use any termcap. It does special things.
15898 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15899esac
15900
15901TERMCAP_OBJ=tparam.o
15902if test $TERMINFO = yes; then
15903
15904$as_echo "#define TERMINFO 1" >>confdefs.h
15905
15906
15907 ## Default used to be -ltermcap. Add a case above if need something else.
15908 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15909
15910 TERMCAP_OBJ=terminfo.o
15911fi
15912
15913
15914
15915
15916# Do we have res_init, for detecting changes in /etc/resolv.conf?
15917resolv=no
15918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919/* end confdefs.h. */
15920#include <netinet/in.h>
15921#include <arpa/nameser.h>
15922#include <resolv.h>
15923int
15924main ()
15925{
15926return res_init();
15927 ;
15928 return 0;
15929}
15930_ACEOF
15931if ac_fn_c_try_link "$LINENO"; then :
15932 have_res_init=yes
15933else
15934 have_res_init=no
15935fi
15936rm -f core conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938if test "$have_res_init" = no; then
15939 OLIBS="$LIBS"
15940 LIBS="$LIBS -lresolv"
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15942$as_echo_n "checking for res_init with -lresolv... " >&6; }
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944/* end confdefs.h. */
15945#include <netinet/in.h>
15946#include <arpa/nameser.h>
15947#include <resolv.h>
15948int
15949main ()
15950{
15951return res_init();
15952 ;
15953 return 0;
15954}
15955_ACEOF
15956if ac_fn_c_try_link "$LINENO"; then :
15957 have_res_init=yes
15958else
15959 have_res_init=no
15960fi
15961rm -f core conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15964$as_echo "$have_res_init" >&6; }
15965 if test "$have_res_init" = yes ; then
15966 resolv=yes
15967 fi
15968 LIBS="$OLIBS"
15969fi
15970
15971if test "$have_res_init" = yes; then
15972
15973$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15974
15975fi
15976
15977# Do we need the Hesiod library to provide the support routines?
15978LIBHESIOD=
15979if test "$with_hesiod" != no ; then
15980 # Don't set $LIBS here -- see comments above. FIXME which comments?
15981 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
d6974efa 15982if test "x$ac_cv_func_res_send" = xyes; then :
067d23c9
KY
15983
15984else
15985 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
d6974efa 15986if test "x$ac_cv_func___res_send" = xyes; then :
067d23c9
KY
15987
15988else
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15990$as_echo_n "checking for res_send in -lresolv... " >&6; }
d6974efa 15991if ${ac_cv_lib_resolv_res_send+:} false; then :
067d23c9
KY
15992 $as_echo_n "(cached) " >&6
15993else
15994 ac_check_lib_save_LIBS=$LIBS
15995LIBS="-lresolv $LIBS"
15996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h. */
15998
15999/* Override any GCC internal prototype to avoid an error.
16000 Use char because int might match the return type of a GCC
16001 builtin and then its argument prototype would still apply. */
16002#ifdef __cplusplus
16003extern "C"
16004#endif
16005char res_send ();
16006int
16007main ()
16008{
16009return res_send ();
16010 ;
16011 return 0;
16012}
16013_ACEOF
16014if ac_fn_c_try_link "$LINENO"; then :
16015 ac_cv_lib_resolv_res_send=yes
16016else
16017 ac_cv_lib_resolv_res_send=no
16018fi
16019rm -f core conftest.err conftest.$ac_objext \
16020 conftest$ac_exeext conftest.$ac_ext
16021LIBS=$ac_check_lib_save_LIBS
16022fi
16023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
16024$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
d6974efa 16025if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
067d23c9
KY
16026 resolv=yes
16027else
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
16029$as_echo_n "checking for __res_send in -lresolv... " >&6; }
d6974efa 16030if ${ac_cv_lib_resolv___res_send+:} false; then :
067d23c9
KY
16031 $as_echo_n "(cached) " >&6
16032else
16033 ac_check_lib_save_LIBS=$LIBS
16034LIBS="-lresolv $LIBS"
16035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036/* end confdefs.h. */
16037
16038/* Override any GCC internal prototype to avoid an error.
16039 Use char because int might match the return type of a GCC
16040 builtin and then its argument prototype would still apply. */
16041#ifdef __cplusplus
16042extern "C"
16043#endif
16044char __res_send ();
16045int
16046main ()
16047{
16048return __res_send ();
16049 ;
16050 return 0;
16051}
16052_ACEOF
16053if ac_fn_c_try_link "$LINENO"; then :
16054 ac_cv_lib_resolv___res_send=yes
16055else
16056 ac_cv_lib_resolv___res_send=no
16057fi
16058rm -f core conftest.err conftest.$ac_objext \
16059 conftest$ac_exeext conftest.$ac_ext
16060LIBS=$ac_check_lib_save_LIBS
16061fi
16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
16063$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
d6974efa 16064if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
067d23c9
KY
16065 resolv=yes
16066fi
16067
16068fi
16069
16070fi
16071
16072fi
16073
16074 if test "$resolv" = yes ; then
16075 RESOLVLIB=-lresolv
16076 else
16077 RESOLVLIB=
16078 fi
16079 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
d6974efa 16080if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
067d23c9
KY
16081
16082else
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
16084$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
d6974efa 16085if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
067d23c9
KY
16086 $as_echo_n "(cached) " >&6
16087else
16088 ac_check_lib_save_LIBS=$LIBS
16089LIBS="-lhesiod $RESOLVLIB $LIBS"
16090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091/* end confdefs.h. */
16092
16093/* Override any GCC internal prototype to avoid an error.
16094 Use char because int might match the return type of a GCC
16095 builtin and then its argument prototype would still apply. */
16096#ifdef __cplusplus
16097extern "C"
16098#endif
16099char hes_getmailhost ();
16100int
16101main ()
16102{
16103return hes_getmailhost ();
16104 ;
16105 return 0;
16106}
16107_ACEOF
16108if ac_fn_c_try_link "$LINENO"; then :
16109 ac_cv_lib_hesiod_hes_getmailhost=yes
16110else
16111 ac_cv_lib_hesiod_hes_getmailhost=no
16112fi
16113rm -f core conftest.err conftest.$ac_objext \
16114 conftest$ac_exeext conftest.$ac_ext
16115LIBS=$ac_check_lib_save_LIBS
16116fi
16117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16118$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
d6974efa 16119if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
067d23c9
KY
16120 hesiod=yes
16121else
16122 :
16123fi
16124
16125fi
16126
16127
16128 if test x"$hesiod" = xyes; then
16129
16130$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
16131
16132 LIBHESIOD=-lhesiod
16133 fi
16134fi
16135
16136
16137# Do we need libresolv (due to res_init or Hesiod)?
16138if test "$resolv" = yes ; then
16139
16140$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
16141
16142 LIBRESOLV=-lresolv
16143else
16144 LIBRESOLV=
16145fi
16146
16147
16148# These tell us which Kerberos-related libraries to use.
16149COM_ERRLIB=
16150CRYPTOLIB=
16151KRB5LIB=
16152DESLIB=
16153KRB4LIB=
16154
16155if test "${with_kerberos}" != no; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
16157$as_echo_n "checking for com_err in -lcom_err... " >&6; }
d6974efa 16158if ${ac_cv_lib_com_err_com_err+:} false; then :
067d23c9
KY
16159 $as_echo_n "(cached) " >&6
16160else
16161 ac_check_lib_save_LIBS=$LIBS
16162LIBS="-lcom_err $LIBS"
16163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164/* end confdefs.h. */
16165
16166/* Override any GCC internal prototype to avoid an error.
16167 Use char because int might match the return type of a GCC
16168 builtin and then its argument prototype would still apply. */
16169#ifdef __cplusplus
16170extern "C"
16171#endif
16172char com_err ();
16173int
16174main ()
16175{
16176return com_err ();
16177 ;
16178 return 0;
16179}
16180_ACEOF
16181if ac_fn_c_try_link "$LINENO"; then :
16182 ac_cv_lib_com_err_com_err=yes
16183else
16184 ac_cv_lib_com_err_com_err=no
16185fi
16186rm -f core conftest.err conftest.$ac_objext \
16187 conftest$ac_exeext conftest.$ac_ext
16188LIBS=$ac_check_lib_save_LIBS
16189fi
16190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
16191$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
d6974efa 16192if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
067d23c9
KY
16193 have_com_err=yes
16194else
16195 have_com_err=no
16196fi
16197
16198 if test $have_com_err = yes; then
16199 COM_ERRLIB=-lcom_err
16200 LIBS="$COM_ERRLIB $LIBS"
16201
16202$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
16203
16204 fi
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
16206$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
d6974efa 16207if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
16208 $as_echo_n "(cached) " >&6
16209else
16210 ac_check_lib_save_LIBS=$LIBS
16211LIBS="-lcrypto $LIBS"
16212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213/* end confdefs.h. */
16214
16215/* Override any GCC internal prototype to avoid an error.
16216 Use char because int might match the return type of a GCC
16217 builtin and then its argument prototype would still apply. */
16218#ifdef __cplusplus
16219extern "C"
16220#endif
16221char mit_des_cbc_encrypt ();
16222int
16223main ()
16224{
16225return mit_des_cbc_encrypt ();
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230if ac_fn_c_try_link "$LINENO"; then :
16231 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
16232else
16233 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
16234fi
16235rm -f core conftest.err conftest.$ac_objext \
16236 conftest$ac_exeext conftest.$ac_ext
16237LIBS=$ac_check_lib_save_LIBS
16238fi
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16240$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 16241if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16242 have_crypto=yes
16243else
16244 have_crypto=no
16245fi
16246
16247 if test $have_crypto = yes; then
16248 CRYPTOLIB=-lcrypto
16249 LIBS="$CRYPTOLIB $LIBS"
16250
16251$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16252
16253 fi
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16255$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
d6974efa 16256if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
16257 $as_echo_n "(cached) " >&6
16258else
16259 ac_check_lib_save_LIBS=$LIBS
16260LIBS="-lk5crypto $LIBS"
16261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262/* end confdefs.h. */
16263
16264/* Override any GCC internal prototype to avoid an error.
16265 Use char because int might match the return type of a GCC
16266 builtin and then its argument prototype would still apply. */
16267#ifdef __cplusplus
16268extern "C"
16269#endif
16270char mit_des_cbc_encrypt ();
16271int
16272main ()
16273{
16274return mit_des_cbc_encrypt ();
16275 ;
16276 return 0;
16277}
16278_ACEOF
16279if ac_fn_c_try_link "$LINENO"; then :
16280 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
16281else
16282 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
16283fi
16284rm -f core conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16286LIBS=$ac_check_lib_save_LIBS
16287fi
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16289$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 16290if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16291 have_k5crypto=yes
16292else
16293 have_k5crypto=no
16294fi
16295
16296 if test $have_k5crypto = yes; then
16297 CRYPTOLIB=-lk5crypto
16298 LIBS="$CRYPTOLIB $LIBS"
16299
16300$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16301
16302 fi
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16304$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
d6974efa 16305if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
067d23c9
KY
16306 $as_echo_n "(cached) " >&6
16307else
16308 ac_check_lib_save_LIBS=$LIBS
16309LIBS="-lkrb5 $LIBS"
16310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311/* end confdefs.h. */
16312
16313/* Override any GCC internal prototype to avoid an error.
16314 Use char because int might match the return type of a GCC
16315 builtin and then its argument prototype would still apply. */
16316#ifdef __cplusplus
16317extern "C"
16318#endif
16319char krb5_init_context ();
16320int
16321main ()
16322{
16323return krb5_init_context ();
16324 ;
16325 return 0;
16326}
16327_ACEOF
16328if ac_fn_c_try_link "$LINENO"; then :
16329 ac_cv_lib_krb5_krb5_init_context=yes
16330else
16331 ac_cv_lib_krb5_krb5_init_context=no
16332fi
16333rm -f core conftest.err conftest.$ac_objext \
16334 conftest$ac_exeext conftest.$ac_ext
16335LIBS=$ac_check_lib_save_LIBS
16336fi
16337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16338$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
d6974efa 16339if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
067d23c9
KY
16340 have_krb5=yes
16341else
16342 have_krb5=no
16343fi
16344
16345 if test $have_krb5=yes; then
16346 KRB5LIB=-lkrb5
16347 LIBS="$KRB5LIB $LIBS"
16348
16349$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16350
16351 fi
16352 if test "${with_kerberos5}" = no; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16354$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
d6974efa 16355if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
067d23c9
KY
16356 $as_echo_n "(cached) " >&6
16357else
16358 ac_check_lib_save_LIBS=$LIBS
16359LIBS="-ldes425 $LIBS"
16360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361/* end confdefs.h. */
16362
16363/* Override any GCC internal prototype to avoid an error.
16364 Use char because int might match the return type of a GCC
16365 builtin and then its argument prototype would still apply. */
16366#ifdef __cplusplus
16367extern "C"
16368#endif
16369char des_cbc_encrypt ();
16370int
16371main ()
16372{
16373return des_cbc_encrypt ();
16374 ;
16375 return 0;
16376}
16377_ACEOF
16378if ac_fn_c_try_link "$LINENO"; then :
16379 ac_cv_lib_des425_des_cbc_encrypt=yes
16380else
16381 ac_cv_lib_des425_des_cbc_encrypt=no
16382fi
16383rm -f core conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16385LIBS=$ac_check_lib_save_LIBS
16386fi
16387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16388$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
d6974efa 16389if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16390 have_des425=yes
16391else
16392 have_des425=no
16393fi
16394
16395 if test $have_des425 = yes; then
16396 DESLIB=-ldes425
16397 LIBS="$DESLIB $LIBS"
16398
16399$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16400
16401 else
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16403$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
d6974efa 16404if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
067d23c9
KY
16405 $as_echo_n "(cached) " >&6
16406else
16407 ac_check_lib_save_LIBS=$LIBS
16408LIBS="-ldes $LIBS"
16409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410/* end confdefs.h. */
16411
16412/* Override any GCC internal prototype to avoid an error.
16413 Use char because int might match the return type of a GCC
16414 builtin and then its argument prototype would still apply. */
16415#ifdef __cplusplus
16416extern "C"
16417#endif
16418char des_cbc_encrypt ();
16419int
16420main ()
16421{
16422return des_cbc_encrypt ();
16423 ;
16424 return 0;
16425}
16426_ACEOF
16427if ac_fn_c_try_link "$LINENO"; then :
16428 ac_cv_lib_des_des_cbc_encrypt=yes
16429else
16430 ac_cv_lib_des_des_cbc_encrypt=no
16431fi
16432rm -f core conftest.err conftest.$ac_objext \
16433 conftest$ac_exeext conftest.$ac_ext
16434LIBS=$ac_check_lib_save_LIBS
16435fi
16436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16437$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
d6974efa 16438if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16439 have_des=yes
16440else
16441 have_des=no
16442fi
16443
16444 if test $have_des = yes; then
16445 DESLIB=-ldes
16446 LIBS="$DESLIB $LIBS"
16447
16448$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16449
16450 fi
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16453$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
d6974efa 16454if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
067d23c9
KY
16455 $as_echo_n "(cached) " >&6
16456else
16457 ac_check_lib_save_LIBS=$LIBS
16458LIBS="-lkrb4 $LIBS"
16459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460/* end confdefs.h. */
16461
16462/* Override any GCC internal prototype to avoid an error.
16463 Use char because int might match the return type of a GCC
16464 builtin and then its argument prototype would still apply. */
16465#ifdef __cplusplus
16466extern "C"
16467#endif
16468char krb_get_cred ();
16469int
16470main ()
16471{
16472return krb_get_cred ();
16473 ;
16474 return 0;
16475}
16476_ACEOF
16477if ac_fn_c_try_link "$LINENO"; then :
16478 ac_cv_lib_krb4_krb_get_cred=yes
16479else
16480 ac_cv_lib_krb4_krb_get_cred=no
16481fi
16482rm -f core conftest.err conftest.$ac_objext \
16483 conftest$ac_exeext conftest.$ac_ext
16484LIBS=$ac_check_lib_save_LIBS
16485fi
16486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16487$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
d6974efa 16488if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
067d23c9
KY
16489 have_krb4=yes
16490else
16491 have_krb4=no
16492fi
16493
16494 if test $have_krb4 = yes; then
16495 KRB4LIB=-lkrb4
16496 LIBS="$KRB4LIB $LIBS"
16497
16498$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16499
16500 else
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16502$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
d6974efa 16503if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
067d23c9
KY
16504 $as_echo_n "(cached) " >&6
16505else
16506 ac_check_lib_save_LIBS=$LIBS
16507LIBS="-lkrb $LIBS"
16508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509/* end confdefs.h. */
16510
16511/* Override any GCC internal prototype to avoid an error.
16512 Use char because int might match the return type of a GCC
16513 builtin and then its argument prototype would still apply. */
16514#ifdef __cplusplus
16515extern "C"
16516#endif
16517char krb_get_cred ();
16518int
16519main ()
16520{
16521return krb_get_cred ();
16522 ;
16523 return 0;
16524}
16525_ACEOF
16526if ac_fn_c_try_link "$LINENO"; then :
16527 ac_cv_lib_krb_krb_get_cred=yes
16528else
16529 ac_cv_lib_krb_krb_get_cred=no
16530fi
16531rm -f core conftest.err conftest.$ac_objext \
16532 conftest$ac_exeext conftest.$ac_ext
16533LIBS=$ac_check_lib_save_LIBS
16534fi
16535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16536$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
d6974efa 16537if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
067d23c9
KY
16538 have_krb=yes
16539else
16540 have_krb=no
16541fi
16542
16543 if test $have_krb = yes; then
16544 KRB4LIB=-lkrb
16545 LIBS="$KRB4LIB $LIBS"
16546
16547$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16548
16549 fi
16550 fi
16551 fi
16552
16553 if test "${with_kerberos5}" != no; then
16554 for ac_header in krb5.h
16555do :
16556 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
d6974efa 16557if test "x$ac_cv_header_krb5_h" = xyes; then :
067d23c9
KY
16558 cat >>confdefs.h <<_ACEOF
16559#define HAVE_KRB5_H 1
16560_ACEOF
16561 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16562"
d6974efa 16563if test "x$ac_cv_member_krb5_error_text" = xyes; then :
067d23c9
KY
16564
16565cat >>confdefs.h <<_ACEOF
16566#define HAVE_KRB5_ERROR_TEXT 1
16567_ACEOF
16568
16569
16570fi
16571ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16572"
d6974efa 16573if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
067d23c9
KY
16574
16575cat >>confdefs.h <<_ACEOF
16576#define HAVE_KRB5_ERROR_E_TEXT 1
16577_ACEOF
16578
16579
16580fi
16581
16582fi
16583
16584done
16585
16586 else
16587 for ac_header in des.h
16588do :
16589 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
d6974efa 16590if test "x$ac_cv_header_des_h" = xyes; then :
067d23c9
KY
16591 cat >>confdefs.h <<_ACEOF
16592#define HAVE_DES_H 1
16593_ACEOF
16594
16595else
16596 for ac_header in kerberosIV/des.h
16597do :
16598 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
d6974efa 16599if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
067d23c9
KY
16600 cat >>confdefs.h <<_ACEOF
16601#define HAVE_KERBEROSIV_DES_H 1
16602_ACEOF
16603
16604else
16605 for ac_header in kerberos/des.h
16606do :
16607 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
d6974efa 16608if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
067d23c9
KY
16609 cat >>confdefs.h <<_ACEOF
16610#define HAVE_KERBEROS_DES_H 1
16611_ACEOF
16612
16613fi
16614
16615done
16616
16617fi
16618
16619done
16620
16621fi
16622
16623done
16624
16625 for ac_header in krb.h
16626do :
16627 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
d6974efa 16628if test "x$ac_cv_header_krb_h" = xyes; then :
067d23c9
KY
16629 cat >>confdefs.h <<_ACEOF
16630#define HAVE_KRB_H 1
16631_ACEOF
16632
16633else
16634 for ac_header in kerberosIV/krb.h
16635do :
16636 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
d6974efa 16637if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
067d23c9
KY
16638 cat >>confdefs.h <<_ACEOF
16639#define HAVE_KERBEROSIV_KRB_H 1
16640_ACEOF
16641
16642else
16643 for ac_header in kerberos/krb.h
16644do :
16645 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
d6974efa 16646if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
067d23c9
KY
16647 cat >>confdefs.h <<_ACEOF
16648#define HAVE_KERBEROS_KRB_H 1
16649_ACEOF
16650
16651fi
16652
16653done
16654
16655fi
16656
16657done
16658
16659fi
16660
16661done
16662
16663 fi
16664 for ac_header in com_err.h
16665do :
16666 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
d6974efa 16667if test "x$ac_cv_header_com_err_h" = xyes; then :
067d23c9
KY
16668 cat >>confdefs.h <<_ACEOF
16669#define HAVE_COM_ERR_H 1
16670_ACEOF
16671
16672fi
16673
16674done
16675
16676fi
16677
16678
16679
16680
16681
16682
16683
16684# Solaris requires -lintl if you want strerror (which calls dgettext)
16685# to return localized messages.
16686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16687$as_echo_n "checking for dgettext in -lintl... " >&6; }
d6974efa 16688if ${ac_cv_lib_intl_dgettext+:} false; then :
067d23c9
KY
16689 $as_echo_n "(cached) " >&6
16690else
16691 ac_check_lib_save_LIBS=$LIBS
16692LIBS="-lintl $LIBS"
16693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694/* end confdefs.h. */
16695
16696/* Override any GCC internal prototype to avoid an error.
16697 Use char because int might match the return type of a GCC
16698 builtin and then its argument prototype would still apply. */
16699#ifdef __cplusplus
16700extern "C"
16701#endif
16702char dgettext ();
16703int
16704main ()
16705{
16706return dgettext ();
16707 ;
16708 return 0;
16709}
16710_ACEOF
16711if ac_fn_c_try_link "$LINENO"; then :
16712 ac_cv_lib_intl_dgettext=yes
16713else
16714 ac_cv_lib_intl_dgettext=no
16715fi
16716rm -f core conftest.err conftest.$ac_objext \
16717 conftest$ac_exeext conftest.$ac_ext
16718LIBS=$ac_check_lib_save_LIBS
16719fi
16720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16721$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
d6974efa 16722if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
067d23c9
KY
16723 cat >>confdefs.h <<_ACEOF
16724#define HAVE_LIBINTL 1
16725_ACEOF
16726
16727 LIBS="-lintl $LIBS"
16728
16729fi
16730
16731
16732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16733$as_echo_n "checking whether localtime caches TZ... " >&6; }
d6974efa 16734if ${emacs_cv_localtime_cache+:} false; then :
067d23c9
KY
16735 $as_echo_n "(cached) " >&6
16736else
16737 if test x$ac_cv_func_tzset = xyes; then
16738if test "$cross_compiling" = yes; then :
16739 # If we have tzset, assume the worst when cross-compiling.
16740emacs_cv_localtime_cache=yes
16741else
16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743/* end confdefs.h. */
16744#include <time.h>
16745char TZ_GMT0[] = "TZ=GMT0";
16746char TZ_PST8[] = "TZ=PST8";
16747main()
16748{
16749 time_t now = time ((time_t *) 0);
16750 int hour_GMT0, hour_unset;
16751 if (putenv (TZ_GMT0) != 0)
16752 exit (1);
16753 hour_GMT0 = localtime (&now)->tm_hour;
16754 unsetenv("TZ");
16755 hour_unset = localtime (&now)->tm_hour;
16756 if (putenv (TZ_PST8) != 0)
16757 exit (1);
16758 if (localtime (&now)->tm_hour == hour_GMT0)
16759 exit (1);
16760 unsetenv("TZ");
16761 if (localtime (&now)->tm_hour != hour_unset)
16762 exit (1);
16763 exit (0);
16764}
16765_ACEOF
16766if ac_fn_c_try_run "$LINENO"; then :
16767 emacs_cv_localtime_cache=no
16768else
16769 emacs_cv_localtime_cache=yes
16770fi
16771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16772 conftest.$ac_objext conftest.beam conftest.$ac_ext
16773fi
16774
16775else
16776 # If we lack tzset, report that localtime does not cache TZ,
16777 # since we can't invalidate the cache if we don't have tzset.
16778 emacs_cv_localtime_cache=no
16779fi
16780fi
16781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16782$as_echo "$emacs_cv_localtime_cache" >&6; }
16783if test $emacs_cv_localtime_cache = yes; then
16784
16785$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16786
16787fi
16788
16789if test "x$HAVE_TIMEVAL" = xyes; then
16790 for ac_func in gettimeofday
16791do :
16792 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
d6974efa 16793if test "x$ac_cv_func_gettimeofday" = xyes; then :
067d23c9
KY
16794 cat >>confdefs.h <<_ACEOF
16795#define HAVE_GETTIMEOFDAY 1
16796_ACEOF
16797
16798fi
16799done
16800
16801 if test $ac_cv_func_gettimeofday = yes; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16803$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
d6974efa 16804if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
067d23c9
KY
16805 $as_echo_n "(cached) " >&6
16806else
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808/* end confdefs.h. */
16809
16810#ifdef TIME_WITH_SYS_TIME
16811#include <sys/time.h>
16812#include <time.h>
16813#else
16814#ifdef HAVE_SYS_TIME_H
16815#include <sys/time.h>
16816#else
16817#include <time.h>
16818#endif
16819#endif
16820int
16821main ()
16822{
16823struct timeval time;
16824 gettimeofday (&time, 0);
16825 ;
16826 return 0;
16827}
16828_ACEOF
16829if ac_fn_c_try_compile "$LINENO"; then :
16830 emacs_cv_gettimeofday_two_arguments=yes
16831else
16832 emacs_cv_gettimeofday_two_arguments=no
16833fi
16834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835fi
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16837$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16838 if test $emacs_cv_gettimeofday_two_arguments = no; then
16839
16840$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16841
16842 fi
16843 fi
16844fi
16845
16846ok_so_far=yes
16847ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
d6974efa 16848if test "x$ac_cv_func_socket" = xyes; then :
067d23c9
KY
16849
16850else
16851 ok_so_far=no
16852fi
16853
16854if test $ok_so_far = yes; then
16855 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
d6974efa 16856if test "x$ac_cv_header_netinet_in_h" = xyes; then :
067d23c9
KY
16857
16858else
16859 ok_so_far=no
16860fi
16861
16862
16863fi
16864if test $ok_so_far = yes; then
16865 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
d6974efa 16866if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
067d23c9
KY
16867
16868else
16869 ok_so_far=no
16870fi
16871
16872
16873fi
16874if test $ok_so_far = yes; then
16875
16876$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16877
16878fi
16879
16880if test -f /usr/lpp/X11/bin/smt.exp; then
16881
16882$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16883
16884fi
16885
16886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16887$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16888if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16890$as_echo "yes" >&6; }
16891
16892$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16893
16894else
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896$as_echo "no" >&6; }
16897fi
16898
16899ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
d6974efa 16900if test "x$ac_cv_type_pid_t" = xyes; then :
067d23c9
KY
16901
16902else
16903
16904cat >>confdefs.h <<_ACEOF
16905#define pid_t int
16906_ACEOF
16907
16908fi
16909
16910for ac_header in vfork.h
16911do :
16912 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
d6974efa 16913if test "x$ac_cv_header_vfork_h" = xyes; then :
067d23c9
KY
16914 cat >>confdefs.h <<_ACEOF
16915#define HAVE_VFORK_H 1
16916_ACEOF
16917
16918fi
16919
16920done
16921
16922for ac_func in fork vfork
16923do :
16924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16925ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 16926if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
16927 cat >>confdefs.h <<_ACEOF
16928#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16929_ACEOF
16930
16931fi
16932done
16933
16934if test "x$ac_cv_func_fork" = xyes; then
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16936$as_echo_n "checking for working fork... " >&6; }
d6974efa 16937if ${ac_cv_func_fork_works+:} false; then :
067d23c9
KY
16938 $as_echo_n "(cached) " >&6
16939else
16940 if test "$cross_compiling" = yes; then :
16941 ac_cv_func_fork_works=cross
16942else
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944/* end confdefs.h. */
16945$ac_includes_default
16946int
16947main ()
16948{
16949
16950 /* By Ruediger Kuhlmann. */
16951 return fork () < 0;
16952
16953 ;
16954 return 0;
16955}
16956_ACEOF
16957if ac_fn_c_try_run "$LINENO"; then :
16958 ac_cv_func_fork_works=yes
16959else
16960 ac_cv_func_fork_works=no
16961fi
16962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16963 conftest.$ac_objext conftest.beam conftest.$ac_ext
16964fi
16965
16966fi
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16968$as_echo "$ac_cv_func_fork_works" >&6; }
16969
16970else
16971 ac_cv_func_fork_works=$ac_cv_func_fork
16972fi
16973if test "x$ac_cv_func_fork_works" = xcross; then
16974 case $host in
16975 *-*-amigaos* | *-*-msdosdjgpp*)
16976 # Override, as these systems have only a dummy fork() stub
16977 ac_cv_func_fork_works=no
16978 ;;
16979 *)
16980 ac_cv_func_fork_works=yes
16981 ;;
16982 esac
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16984$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16985fi
16986ac_cv_func_vfork_works=$ac_cv_func_vfork
16987if test "x$ac_cv_func_vfork" = xyes; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16989$as_echo_n "checking for working vfork... " >&6; }
d6974efa 16990if ${ac_cv_func_vfork_works+:} false; then :
067d23c9
KY
16991 $as_echo_n "(cached) " >&6
16992else
16993 if test "$cross_compiling" = yes; then :
16994 ac_cv_func_vfork_works=cross
16995else
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997/* end confdefs.h. */
16998/* Thanks to Paul Eggert for this test. */
16999$ac_includes_default
17000#include <sys/wait.h>
17001#ifdef HAVE_VFORK_H
17002# include <vfork.h>
17003#endif
17004/* On some sparc systems, changes by the child to local and incoming
17005 argument registers are propagated back to the parent. The compiler
17006 is told about this with #include <vfork.h>, but some compilers
17007 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17008 static variable whose address is put into a register that is
17009 clobbered by the vfork. */
17010static void
17011#ifdef __cplusplus
17012sparc_address_test (int arg)
17013# else
17014sparc_address_test (arg) int arg;
17015#endif
17016{
17017 static pid_t child;
17018 if (!child) {
17019 child = vfork ();
17020 if (child < 0) {
17021 perror ("vfork");
17022 _exit(2);
17023 }
17024 if (!child) {
17025 arg = getpid();
17026 write(-1, "", 0);
17027 _exit (arg);
17028 }
17029 }
17030}
17031
17032int
17033main ()
17034{
17035 pid_t parent = getpid ();
17036 pid_t child;
17037
17038 sparc_address_test (0);
17039
17040 child = vfork ();
17041
17042 if (child == 0) {
17043 /* Here is another test for sparc vfork register problems. This
17044 test uses lots of local variables, at least as many local
17045 variables as main has allocated so far including compiler
17046 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17047 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17048 reuse the register of parent for one of the local variables,
17049 since it will think that parent can't possibly be used any more
17050 in this routine. Assigning to the local variable will thus
17051 munge parent in the parent process. */
17052 pid_t
17053 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17054 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17055 /* Convince the compiler that p..p7 are live; otherwise, it might
17056 use the same hardware register for all 8 local variables. */
17057 if (p != p1 || p != p2 || p != p3 || p != p4
17058 || p != p5 || p != p6 || p != p7)
17059 _exit(1);
17060
17061 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17062 from child file descriptors. If the child closes a descriptor
17063 before it execs or exits, this munges the parent's descriptor
17064 as well. Test for this by closing stdout in the child. */
17065 _exit(close(fileno(stdout)) != 0);
17066 } else {
17067 int status;
17068 struct stat st;
17069
17070 while (wait(&status) != child)
17071 ;
17072 return (
17073 /* Was there some problem with vforking? */
17074 child < 0
17075
17076 /* Did the child fail? (This shouldn't happen.) */
17077 || status
17078
17079 /* Did the vfork/compiler bug occur? */
17080 || parent != getpid()
17081
17082 /* Did the file descriptor bug occur? */
17083 || fstat(fileno(stdout), &st) != 0
17084 );
17085 }
17086}
17087_ACEOF
17088if ac_fn_c_try_run "$LINENO"; then :
17089 ac_cv_func_vfork_works=yes
17090else
17091 ac_cv_func_vfork_works=no
17092fi
17093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17094 conftest.$ac_objext conftest.beam conftest.$ac_ext
17095fi
17096
17097fi
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17099$as_echo "$ac_cv_func_vfork_works" >&6; }
17100
17101fi;
17102if test "x$ac_cv_func_fork_works" = xcross; then
17103 ac_cv_func_vfork_works=$ac_cv_func_vfork
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17105$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17106fi
17107
17108if test "x$ac_cv_func_vfork_works" = xyes; then
17109
17110$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17111
17112else
17113
17114$as_echo "#define vfork fork" >>confdefs.h
17115
17116fi
17117if test "x$ac_cv_func_fork_works" = xyes; then
17118
17119$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17120
17121fi
17122
17123
17124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
17125$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6974efa 17126if ${emacs_cv_langinfo_codeset+:} false; then :
067d23c9
KY
17127 $as_echo_n "(cached) " >&6
17128else
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130/* end confdefs.h. */
17131#include <langinfo.h>
17132int
17133main ()
17134{
17135char* cs = nl_langinfo(CODESET);
17136 ;
17137 return 0;
17138}
17139_ACEOF
17140if ac_fn_c_try_link "$LINENO"; then :
17141 emacs_cv_langinfo_codeset=yes
17142else
17143 emacs_cv_langinfo_codeset=no
17144fi
17145rm -f core conftest.err conftest.$ac_objext \
17146 conftest$ac_exeext conftest.$ac_ext
17147
17148fi
17149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
17150$as_echo "$emacs_cv_langinfo_codeset" >&6; }
17151if test $emacs_cv_langinfo_codeset = yes; then
17152
17153$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
17154
17155fi
17156
17157ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
d6974efa 17158if test "x$ac_cv_type_size_t" = xyes; then :
067d23c9
KY
17159
17160cat >>confdefs.h <<_ACEOF
17161#define HAVE_SIZE_T 1
17162_ACEOF
17163
17164
17165fi
17166
17167
17168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17169$as_echo_n "checking for mbstate_t... " >&6; }
d6974efa 17170if ${ac_cv_type_mbstate_t+:} false; then :
067d23c9
KY
17171 $as_echo_n "(cached) " >&6
17172else
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174/* end confdefs.h. */
17175$ac_includes_default
17176# include <wchar.h>
17177int
17178main ()
17179{
17180mbstate_t x; return sizeof x;
17181 ;
17182 return 0;
17183}
17184_ACEOF
17185if ac_fn_c_try_compile "$LINENO"; then :
17186 ac_cv_type_mbstate_t=yes
17187else
17188 ac_cv_type_mbstate_t=no
17189fi
17190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191fi
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17193$as_echo "$ac_cv_type_mbstate_t" >&6; }
17194 if test $ac_cv_type_mbstate_t = yes; then
17195
17196$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17197
17198 else
17199
17200$as_echo "#define mbstate_t int" >>confdefs.h
17201
17202 fi
17203
067d23c9
KY
17204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
17205$as_echo_n "checking for C restricted array declarations... " >&6; }
d6974efa 17206if ${emacs_cv_c_restrict_arr+:} false; then :
067d23c9
KY
17207 $as_echo_n "(cached) " >&6
17208else
17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210/* end confdefs.h. */
17211void fred (int x[__restrict]);
17212int
17213main ()
17214{
17215
17216 ;
17217 return 0;
17218}
17219_ACEOF
17220if ac_fn_c_try_compile "$LINENO"; then :
17221 emacs_cv_c_restrict_arr=yes
17222else
17223 emacs_cv_c_restrict_arr=no
17224fi
17225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17226fi
17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
17228$as_echo "$emacs_cv_c_restrict_arr" >&6; }
17229if test "$emacs_cv_c_restrict_arr" = yes; then
17230
17231$as_echo "#define __restrict_arr __restrict" >>confdefs.h
17232
17233fi
17234
17235
17236
17237# Set up the CFLAGS for real compilation, so we can substitute it.
17238CFLAGS="$REAL_CFLAGS"
17239CPPFLAGS="$REAL_CPPFLAGS"
17240
17241## Hack to detect a buggy GCC version.
17242if test "x$GCC" = xyes \
17243 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17244 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17245 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
2018939f 17246 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
067d23c9
KY
17247fi
17248
16fab143 17249version=$PACKAGE_VERSION
067d23c9
KY
17250
17251### Specify what sort of things we'll be editing into Makefile and config.h.
17252### Use configuration here uncanonicalized to avoid exceeding size limits.
17253
17254
17255## Unused?
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17277## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17278## end of LIBX_BASE, but nothing ever set it.
17279
17280
17281
17282
17283## Used in lwlib/Makefile.in.
17284
d6a003a8
AS
17285if test -n "${machfile}"; then
17286 M_FILE="\$(srcdir)/${machfile}"
17287else
17288 M_FILE=
17289fi
17290S_FILE="\$(srcdir)/${opsysfile}"
067d23c9
KY
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
067d23c9
KY
17301cat >>confdefs.h <<_ACEOF
17302#define EMACS_CONFIGURATION "${canonical}"
17303_ACEOF
17304
17305
17306cat >>confdefs.h <<_ACEOF
17307#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17308_ACEOF
17309
d6a003a8 17310if test -n "$machfile"; then
067d23c9
KY
17311
17312cat >>confdefs.h <<_ACEOF
17313#define config_machfile "${machfile}"
17314_ACEOF
17315
d6a003a8 17316fi
067d23c9
KY
17317
17318cat >>confdefs.h <<_ACEOF
17319#define config_opsysfile "${opsysfile}"
17320_ACEOF
17321
17322
17323XMENU_OBJ=
17324XOBJ=
17325FONT_OBJ=
17326if test "${HAVE_X_WINDOWS}" = "yes" ; then
17327
17328$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17329
17330 XMENU_OBJ=xmenu.o
17331 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17332 FONT_OBJ=xfont.o
17333 if test "$HAVE_XFT" = "yes"; then
17334 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17335 elif test "$HAVE_FREETYPE" = "yes"; then
17336 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17337 fi
17338
17339fi
17340
17341
17342
17343
17344WIDGET_OBJ=
17345MOTIF_LIBW=
17346if test "${USE_X_TOOLKIT}" != "none" ; then
17347 WIDGET_OBJ=widget.o
17348
17349$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17350
17351 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17352
17353$as_echo "#define USE_LUCID 1" >>confdefs.h
17354
17355 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17356
17357$as_echo "#define USE_MOTIF 1" >>confdefs.h
17358
17359 MOTIF_LIBW=-lXm
17360 case "$opsys" in
17361 gnu-linux)
17362 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17363 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17364 ;;
17365
17366 unixware)
17367 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17368 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17369 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17370 ;;
17371
17372 aix4-2)
17373 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17374 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17375 ;;
17376 esac
17377 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17378 fi
17379fi
17380
17381
17382TOOLKIT_LIBW=
17383case "$USE_X_TOOLKIT" in
17384 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17385 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17386 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17387esac
17388
17389
17390if test "$USE_X_TOOLKIT" = "none"; then
17391 LIBXT_OTHER="\$(LIBXSM)"
17392 OLDXMENU_TARGET="really-oldXMenu"
17393else
17394 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17395 OLDXMENU_TARGET="really-lwlib"
17396fi
17397
17398
17399## The X Menu stuff is present in the X10 distribution, but missing
17400## from X11. If we have X10, just use the installed library;
17401## otherwise, use our own copy.
17402if test "${HAVE_X11}" = "yes" ; then
17403
17404$as_echo "#define HAVE_X11 1" >>confdefs.h
17405
17406
17407 if test "$USE_X_TOOLKIT" = "none"; then
17408 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17409 else
17410 OLDXMENU="\${lwlibdir}/liblw.a"
17411 fi
17412 LIBXMENU="\$(OLDXMENU)"
17413 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17414 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17415else
17416 ## For a syntactically valid Makefile; not actually used for anything.
17417 ## See comments in src/Makefile.in.
17418 OLDXMENU=nothing
17419 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17420 if test "${HAVE_X_WINDOWS}" = "yes"; then
17421 LIBXMENU="-lXMenu"
17422 else
17423 LIBXMENU=
17424 fi
17425 LIBX_OTHER=
17426 OLDXMENU_DEPS=
17427fi
17428
17429if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17430 OLDXMENU_TARGET=
17431 OLDXMENU=nothing
17432 LIBXMENU=
17433 OLDXMENU_DEPS=
17434fi
17435
17436
17437
17438
17439
17440
17441
17442if test "${HAVE_MENUS}" = "yes" ; then
17443
17444$as_echo "#define HAVE_MENUS 1" >>confdefs.h
17445
17446fi
17447
17448if test "${GNU_MALLOC}" = "yes" ; then
17449
17450$as_echo "#define GNU_MALLOC 1" >>confdefs.h
17451
17452fi
17453
17454RALLOC_OBJ=
17455if test "${REL_ALLOC}" = "yes" ; then
17456
17457$as_echo "#define REL_ALLOC 1" >>confdefs.h
17458
17459
17460 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17461fi
17462
17463
17464if test "$opsys" = "cygwin"; then
17465 CYGWIN_OBJ="sheap.o"
17466 ## Cygwin differs because of its unexec().
17467 PRE_ALLOC_OBJ=
17468 POST_ALLOC_OBJ=lastfile.o
17469else
17470 CYGWIN_OBJ=
17471 PRE_ALLOC_OBJ=lastfile.o
17472 POST_ALLOC_OBJ=
17473fi
17474
17475
17476
17477
17478
17479case "$opsys" in
17480 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17481
17482 darwin)
17483 ## The -headerpad option tells ld (see man page) to leave room at the
17484 ## end of the header for adding load commands. Needed for dumping.
17485 ## 0x690 is the total size of 30 segment load commands (at 56
17486 ## each); under Cocoa 31 commands are required.
17487 if test "$HAVE_NS" = "yes"; then
17488 libs_nsgui="-framework AppKit"
17489 headerpad_extra=6C8
17490 else
17491 libs_nsgui=
17492 headerpad_extra=690
17493 fi
17494 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17495
17496 ## This is here because src/Makefile.in did some extra fiddling around
17497 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17498 ## #ifndef LD_SWITCH_SYSTEM
17499 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17500 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17501 ## not using gcc, darwin system not on an alpha (ie darwin, since
17502 ## darwin + alpha does not occur).
17503 ## Because this was done in src/Makefile.in, the resulting part of
17504 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17505 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17506 ## rather than LD_SWITCH_SYSTEM.
17507 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17508 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17509 ;;
17510
17511 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17512 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17513 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17514 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17515 ## had different values in configure (in ac_link) and src/Makefile.in.
17516 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17517 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17518
17519 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17520esac
17521
17522if test "$NS_IMPL_GNUSTEP" = "yes"; then
17523 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17524fi
17525
17526
17527
17528
17529LD_FIRSTFLAG=
17530ORDINARY_LINK=
17531case "$opsys" in
17532 ## gnu: GNU needs its own crt0.
17533 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17534
17535 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17536 ## library search parth, i.e. it won't search /usr/lib for libc and
17537 ## friends. Using -nostartfiles instead avoids this problem, and
17538 ## will also work on earlier NetBSD releases.
17539 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17540
17541 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17542 ## MkLinux/LinuxPPC needs this.
17543 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17544 gnu-*)
17545 case "$machine" in
17546 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17547 esac
17548 ;;
17549esac
17550
17551
17552if test "x$ORDINARY_LINK" = "xyes"; then
17553
17554 LD_FIRSTFLAG=""
17555
17556$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17557
17558
17559## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17560## freebsd, gnu-* not on macppc|ibms390x.
17561elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17562
17563 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17564 ## places that are difficult to figure out at make time. Fortunately,
17565 ## these same versions allow you to pass arbitrary flags on to the
17566 ## linker, so there is no reason not to use it as a linker.
17567 ##
17568 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17569 ## searching for libraries in its internal directories, so we have to
17570 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17571 LD_FIRSTFLAG="-nostdlib"
17572fi
17573
17574## FIXME? What setting of EDIT_LDFLAGS should this have?
17575test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17576
17577
17578
17579
17580## FIXME? The logic here is not precisely the same as that above.
17581## There is no check here for a pre-defined LD_FIRSTFLAG.
17582## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17583LIB_GCC=
17584if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17585
17586 case "$opsys" in
17587 freebsd|netbsd|openbsd) LIB_GCC= ;;
17588
17589 gnu-*)
17590 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17591 ## build on ARM EABI under GNU/Linux. (Bug#5518)
d6a003a8
AS
17592 case $host_cpu in
17593 arm*)
067d23c9 17594 LIB_GCC="-lgcc_s"
d6a003a8
AS
17595 ;;
17596 *)
067d23c9
KY
17597 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17598 ## immediately undefine it again and redefine it to empty.
17599 ## Was the C_SWITCH_X_SITE part really necessary?
17600## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17601 LIB_GCC=
d6a003a8
AS
17602 ;;
17603 esac
067d23c9
KY
17604 ;;
17605
17606 ## Ask GCC where to find libgcc.a.
17607 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17608 esac
17609fi
17610
17611
17612TOOLTIP_SUPPORT=
17613WINDOW_SUPPORT=
17614## If we're using X11/GNUstep, define some consequences.
17615if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17616
17617$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17618
17619
17620$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17621
17622 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17623 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17624
17625 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17626 test "$HAVE_X_WINDOWS" = "yes" && \
17627 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17628
17629fi
17630
17631
17632
17633
17634
17635
17636
17637#### Report on what we decided to do.
17638#### Report GTK as a toolkit, even if it doesn't use Xt.
17639#### It makes printing result more understandable as using GTK sets
17640#### toolkit_scroll_bars to yes by default.
17641if test "${HAVE_GTK}" = "yes"; then
17642 USE_X_TOOLKIT=GTK
17643fi
17644
2b7f50d8
AS
17645and_machfile=
17646if test -n "$machfile"; then
17647 and_machfile=" and \`${machfile}'"
17648fi
17649
067d23c9
KY
17650echo "
17651Configured for \`${canonical}'.
17652
17653 Where should the build process find the source code? ${srcdir}
17654 What operating system and machine description files should Emacs use?
2b7f50d8 17655 \`${opsysfile}'${and_machfile}
067d23c9
KY
17656 What compiler should emacs be built with? ${CC} ${CFLAGS}
17657 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17658 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17659 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17660 What window system should Emacs use? ${window_system}
17661 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17662
17663if test -n "${x_includes}"; then
17664echo " Where do we find X Windows header files? ${x_includes}"
17665else
17666echo " Where do we find X Windows header files? Standard dirs"
17667fi
17668if test -n "${x_libraries}"; then
17669echo " Where do we find X Windows libraries? ${x_libraries}"
17670else
17671echo " Where do we find X Windows libraries? Standard dirs"
17672fi
17673
17674echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17675echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17676echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17677echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17678echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17679echo " Does Emacs use -lpng? ${HAVE_PNG}"
17680echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17681echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17682
17683echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17684echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17685echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17686echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17687echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17688echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17689
17690echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17691echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17692echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17693echo " Does Emacs use -lxft? ${HAVE_XFT}"
17694
17695echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17696echo
17697
17698if test $USE_XASSERTS = yes; then
17699 echo " Compiling with asserts turned on."
17700 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17701fi
17702
17703echo
17704
17705if test "$HAVE_NS" = "yes"; then
17706 echo
17707 echo "You must run \"make install\" in order to test the built application.
17708The installed application will go to nextstep/Emacs.app and can be
17709run or moved from there."
17710 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17711 echo "The application will be fully self-contained."
17712 else
17713 echo "The lisp resources for the application will be installed under ${prefix}.
17714You may need to run \"make install\" with sudo. The application will fail
17715to run if these resources are not installed."
17716 fi
17717 echo
17718fi
17719
17720
17721# Remove any trailing slashes in these variables.
17722test "${prefix}" != NONE &&
17723 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17724test "${exec_prefix}" != NONE &&
17725 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17726
193770ee 17727ac_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
KY
17728
17729ac_config_commands="$ac_config_commands default"
17730
17731cat >confcache <<\_ACEOF
17732# This file is a shell script that caches the results of configure
17733# tests run on this system so they can be shared between configure
17734# scripts and configure runs, see configure's option --config-cache.
17735# It is not useful on other systems. If it contains results you don't
17736# want to keep, you may remove or edit it.
17737#
17738# config.status only pays attention to the cache file if you give it
17739# the --recheck option to rerun configure.
17740#
17741# `ac_cv_env_foo' variables (set or unset) will be overridden when
17742# loading this file, other *unset* `ac_cv_foo' will be assigned the
17743# following values.
17744
17745_ACEOF
17746
17747# The following way of writing the cache mishandles newlines in values,
17748# but we know of no workaround that is simple, portable, and efficient.
17749# So, we kill variables containing newlines.
17750# Ultrix sh set writes to stderr and can't be redirected directly,
17751# and sets the high bit in the cache file unless we assign to the vars.
17752(
17753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17754 eval ac_val=\$$ac_var
17755 case $ac_val in #(
17756 *${as_nl}*)
17757 case $ac_var in #(
17758 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17759$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17760 esac
17761 case $ac_var in #(
17762 _ | IFS | as_nl) ;; #(
17763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17764 *) { eval $ac_var=; unset $ac_var;} ;;
17765 esac ;;
17766 esac
17767 done
17768
17769 (set) 2>&1 |
17770 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17771 *${as_nl}ac_space=\ *)
17772 # `set' does not quote correctly, so add quotes: double-quote
17773 # substitution turns \\\\ into \\, and sed turns \\ into \.
17774 sed -n \
17775 "s/'/'\\\\''/g;
17776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17777 ;; #(
17778 *)
17779 # `set' quotes correctly as required by POSIX, so do not add quotes.
17780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17781 ;;
17782 esac |
17783 sort
17784) |
17785 sed '
17786 /^ac_cv_env_/b end
17787 t clear
17788 :clear
17789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17790 t end
17791 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17792 :end' >>confcache
17793if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17794 if test -w "$cache_file"; then
d6974efa 17795 if test "x$cache_file" != "x/dev/null"; then
067d23c9
KY
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17797$as_echo "$as_me: updating cache $cache_file" >&6;}
d6974efa
PE
17798 if test ! -f "$cache_file" || test -h "$cache_file"; then
17799 cat confcache >"$cache_file"
17800 else
17801 case $cache_file in #(
17802 */* | ?:*)
17803 mv -f confcache "$cache_file"$$ &&
17804 mv -f "$cache_file"$$ "$cache_file" ;; #(
17805 *)
17806 mv -f confcache "$cache_file" ;;
17807 esac
17808 fi
17809 fi
067d23c9
KY
17810 else
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17812$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17813 fi
17814fi
17815rm -f confcache
17816
17817test "x$prefix" = xNONE && prefix=$ac_default_prefix
17818# Let make expand exec_prefix.
17819test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17820
17821DEFS=-DHAVE_CONFIG_H
17822
17823ac_libobjs=
17824ac_ltlibobjs=
2018939f 17825U=
067d23c9
KY
17826for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17827 # 1. Remove the extension, and $U if already installed.
17828 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17829 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17830 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17831 # will be set to the directory where LIBOBJS objects are built.
17832 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17833 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17834done
17835LIBOBJS=$ac_libobjs
17836
17837LTLIBOBJS=$ac_ltlibobjs
17838
17839
743c80a7
PE
17840 if test -n "$EXEEXT"; then
17841 am__EXEEXT_TRUE=
17842 am__EXEEXT_FALSE='#'
17843else
17844 am__EXEEXT_TRUE='#'
17845 am__EXEEXT_FALSE=
17846fi
17847
17848if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17849 as_fn_error $? "conditional \"AMDEP\" was never defined.
17850Usually this means the macro was only invoked conditionally." "$LINENO" 5
17851fi
17852if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17853 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17854Usually this means the macro was only invoked conditionally." "$LINENO" 5
17855fi
17856
17857if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17858 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17859Usually this means the macro was only invoked conditionally." "$LINENO" 5
17860fi
17861
17862 gl_libobjs=
17863 gl_ltlibobjs=
17864 if test -n "$gl_LIBOBJS"; then
17865 # Remove the extension.
17866 sed_drop_objext='s/\.o$//;s/\.obj$//'
17867 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17868 gl_libobjs="$gl_libobjs $i.$ac_objext"
17869 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17870 done
17871 fi
17872 gl_LIBOBJS=$gl_libobjs
17873
17874 gl_LTLIBOBJS=$gl_ltlibobjs
17875
17876
17877
17878 gltests_libobjs=
17879 gltests_ltlibobjs=
17880 if test -n "$gltests_LIBOBJS"; then
17881 # Remove the extension.
17882 sed_drop_objext='s/\.o$//;s/\.obj$//'
17883 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17884 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17885 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17886 done
17887 fi
17888 gltests_LIBOBJS=$gltests_libobjs
17889
17890 gltests_LTLIBOBJS=$gltests_ltlibobjs
17891
067d23c9
KY
17892
17893
d6974efa 17894: "${CONFIG_STATUS=./config.status}"
067d23c9
KY
17895ac_write_fail=0
17896ac_clean_files_save=$ac_clean_files
17897ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17898{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17899$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17900as_write_fail=0
17901cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17902#! $SHELL
17903# Generated by $as_me.
17904# Run this file to recreate the current configuration.
17905# Compiler output produced by configure, useful for debugging
17906# configure, is in config.log if it exists.
17907
17908debug=false
17909ac_cs_recheck=false
17910ac_cs_silent=false
17911
17912SHELL=\${CONFIG_SHELL-$SHELL}
17913export SHELL
17914_ASEOF
17915cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17916## -------------------- ##
17917## M4sh Initialization. ##
17918## -------------------- ##
17919
17920# Be more Bourne compatible
17921DUALCASE=1; export DUALCASE # for MKS sh
17922if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17923 emulate sh
17924 NULLCMD=:
17925 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17926 # is contrary to our usage. Disable this feature.
17927 alias -g '${1+"$@"}'='"$@"'
17928 setopt NO_GLOB_SUBST
17929else
17930 case `(set -o) 2>/dev/null` in #(
17931 *posix*) :
17932 set -o posix ;; #(
17933 *) :
17934 ;;
17935esac
17936fi
17937
17938
17939as_nl='
17940'
17941export as_nl
17942# Printing a long string crashes Solaris 7 /usr/bin/printf.
17943as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17944as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17945as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17946# Prefer a ksh shell builtin over an external printf program on Solaris,
17947# but without wasting forks for bash or zsh.
17948if test -z "$BASH_VERSION$ZSH_VERSION" \
17949 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17950 as_echo='print -r --'
17951 as_echo_n='print -rn --'
17952elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17953 as_echo='printf %s\n'
17954 as_echo_n='printf %s'
17955else
17956 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17957 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17958 as_echo_n='/usr/ucb/echo -n'
17959 else
17960 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17961 as_echo_n_body='eval
17962 arg=$1;
17963 case $arg in #(
17964 *"$as_nl"*)
17965 expr "X$arg" : "X\\(.*\\)$as_nl";
17966 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17967 esac;
17968 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17969 '
17970 export as_echo_n_body
17971 as_echo_n='sh -c $as_echo_n_body as_echo'
17972 fi
17973 export as_echo_body
17974 as_echo='sh -c $as_echo_body as_echo'
17975fi
17976
17977# The user is always right.
17978if test "${PATH_SEPARATOR+set}" != set; then
17979 PATH_SEPARATOR=:
17980 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17981 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17982 PATH_SEPARATOR=';'
17983 }
17984fi
17985
17986
17987# IFS
17988# We need space, tab and new line, in precisely that order. Quoting is
17989# there to prevent editors from complaining about space-tab.
17990# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17991# splitting by setting IFS to empty value.)
17992IFS=" "" $as_nl"
17993
17994# Find who we are. Look in the path if we contain no directory separator.
d6974efa 17995as_myself=
067d23c9
KY
17996case $0 in #((
17997 *[\\/]* ) as_myself=$0 ;;
17998 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17999for as_dir in $PATH
18000do
18001 IFS=$as_save_IFS
18002 test -z "$as_dir" && as_dir=.
18003 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18004 done
18005IFS=$as_save_IFS
18006
18007 ;;
18008esac
18009# We did not find ourselves, most probably we were run as `sh COMMAND'
18010# in which case we are not to be found in the path.
18011if test "x$as_myself" = x; then
18012 as_myself=$0
18013fi
18014if test ! -f "$as_myself"; then
18015 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18016 exit 1
18017fi
18018
18019# Unset variables that we do not need and which cause bugs (e.g. in
18020# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18021# suppresses any "Segmentation fault" message there. '((' could
18022# trigger a bug in pdksh 5.2.14.
18023for as_var in BASH_ENV ENV MAIL MAILPATH
18024do eval test x\${$as_var+set} = xset \
18025 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18026done
18027PS1='$ '
18028PS2='> '
18029PS4='+ '
18030
18031# NLS nuisances.
18032LC_ALL=C
18033export LC_ALL
18034LANGUAGE=C
18035export LANGUAGE
18036
18037# CDPATH.
18038(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18039
18040
2018939f
AS
18041# as_fn_error STATUS ERROR [LINENO LOG_FD]
18042# ----------------------------------------
067d23c9
KY
18043# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18044# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2018939f 18045# script with STATUS, using 1 if that was 0.
067d23c9
KY
18046as_fn_error ()
18047{
2018939f
AS
18048 as_status=$1; test $as_status -eq 0 && as_status=1
18049 if test "$4"; then
18050 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18051 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 18052 fi
2018939f 18053 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
18054 as_fn_exit $as_status
18055} # as_fn_error
18056
18057
18058# as_fn_set_status STATUS
18059# -----------------------
18060# Set $? to STATUS, without forking.
18061as_fn_set_status ()
18062{
18063 return $1
18064} # as_fn_set_status
18065
18066# as_fn_exit STATUS
18067# -----------------
18068# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18069as_fn_exit ()
18070{
18071 set +e
18072 as_fn_set_status $1
18073 exit $1
18074} # as_fn_exit
18075
18076# as_fn_unset VAR
18077# ---------------
18078# Portably unset VAR.
18079as_fn_unset ()
18080{
18081 { eval $1=; unset $1;}
18082}
18083as_unset=as_fn_unset
18084# as_fn_append VAR VALUE
18085# ----------------------
18086# Append the text in VALUE to the end of the definition contained in VAR. Take
18087# advantage of any shell optimizations that allow amortized linear growth over
18088# repeated appends, instead of the typical quadratic growth present in naive
18089# implementations.
18090if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18091 eval 'as_fn_append ()
18092 {
18093 eval $1+=\$2
18094 }'
18095else
18096 as_fn_append ()
18097 {
18098 eval $1=\$$1\$2
18099 }
18100fi # as_fn_append
18101
18102# as_fn_arith ARG...
18103# ------------------
18104# Perform arithmetic evaluation on the ARGs, and store the result in the
18105# global $as_val. Take advantage of shells that can avoid forks. The arguments
18106# must be portable across $(()) and expr.
18107if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18108 eval 'as_fn_arith ()
18109 {
18110 as_val=$(( $* ))
18111 }'
18112else
18113 as_fn_arith ()
18114 {
18115 as_val=`expr "$@" || test $? -eq 1`
18116 }
18117fi # as_fn_arith
18118
18119
18120if expr a : '\(a\)' >/dev/null 2>&1 &&
18121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18122 as_expr=expr
18123else
18124 as_expr=false
18125fi
18126
18127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18128 as_basename=basename
18129else
18130 as_basename=false
18131fi
18132
18133if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18134 as_dirname=dirname
18135else
18136 as_dirname=false
18137fi
18138
18139as_me=`$as_basename -- "$0" ||
18140$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18141 X"$0" : 'X\(//\)$' \| \
18142 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18143$as_echo X/"$0" |
18144 sed '/^.*\/\([^/][^/]*\)\/*$/{
18145 s//\1/
18146 q
18147 }
18148 /^X\/\(\/\/\)$/{
18149 s//\1/
18150 q
18151 }
18152 /^X\/\(\/\).*/{
18153 s//\1/
18154 q
18155 }
18156 s/.*/./; q'`
18157
18158# Avoid depending upon Character Ranges.
18159as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18160as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18161as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18162as_cr_digits='0123456789'
18163as_cr_alnum=$as_cr_Letters$as_cr_digits
18164
18165ECHO_C= ECHO_N= ECHO_T=
18166case `echo -n x` in #(((((
18167-n*)
18168 case `echo 'xy\c'` in
18169 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18170 xy) ECHO_C='\c';;
18171 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18172 ECHO_T=' ';;
18173 esac;;
18174*)
18175 ECHO_N='-n';;
18176esac
18177
18178rm -f conf$$ conf$$.exe conf$$.file
18179if test -d conf$$.dir; then
18180 rm -f conf$$.dir/conf$$.file
18181else
18182 rm -f conf$$.dir
18183 mkdir conf$$.dir 2>/dev/null
18184fi
18185if (echo >conf$$.file) 2>/dev/null; then
18186 if ln -s conf$$.file conf$$ 2>/dev/null; then
18187 as_ln_s='ln -s'
18188 # ... but there are two gotchas:
18189 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18190 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18191 # In both cases, we have to default to `cp -p'.
18192 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18193 as_ln_s='cp -p'
18194 elif ln conf$$.file conf$$ 2>/dev/null; then
18195 as_ln_s=ln
18196 else
18197 as_ln_s='cp -p'
18198 fi
18199else
18200 as_ln_s='cp -p'
18201fi
18202rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18203rmdir conf$$.dir 2>/dev/null
18204
18205
18206# as_fn_mkdir_p
18207# -------------
18208# Create "$as_dir" as a directory, including parents if necessary.
18209as_fn_mkdir_p ()
18210{
18211
18212 case $as_dir in #(
18213 -*) as_dir=./$as_dir;;
18214 esac
18215 test -d "$as_dir" || eval $as_mkdir_p || {
18216 as_dirs=
18217 while :; do
18218 case $as_dir in #(
18219 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18220 *) as_qdir=$as_dir;;
18221 esac
18222 as_dirs="'$as_qdir' $as_dirs"
18223 as_dir=`$as_dirname -- "$as_dir" ||
18224$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18225 X"$as_dir" : 'X\(//\)[^/]' \| \
18226 X"$as_dir" : 'X\(//\)$' \| \
18227 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18228$as_echo X"$as_dir" |
18229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18230 s//\1/
18231 q
18232 }
18233 /^X\(\/\/\)[^/].*/{
18234 s//\1/
18235 q
18236 }
18237 /^X\(\/\/\)$/{
18238 s//\1/
18239 q
18240 }
18241 /^X\(\/\).*/{
18242 s//\1/
18243 q
18244 }
18245 s/.*/./; q'`
18246 test -d "$as_dir" && break
18247 done
18248 test -z "$as_dirs" || eval "mkdir $as_dirs"
2018939f 18249 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
18250
18251
18252} # as_fn_mkdir_p
18253if mkdir -p . 2>/dev/null; then
18254 as_mkdir_p='mkdir -p "$as_dir"'
18255else
18256 test -d ./-p && rmdir ./-p
18257 as_mkdir_p=false
18258fi
18259
18260if test -x / >/dev/null 2>&1; then
18261 as_test_x='test -x'
18262else
18263 if ls -dL / >/dev/null 2>&1; then
18264 as_ls_L_option=L
18265 else
18266 as_ls_L_option=
18267 fi
18268 as_test_x='
18269 eval sh -c '\''
18270 if test -d "$1"; then
18271 test -d "$1/.";
18272 else
18273 case $1 in #(
18274 -*)set "./$1";;
18275 esac;
18276 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18277 ???[sx]*):;;*)false;;esac;fi
18278 '\'' sh
18279 '
18280fi
18281as_executable_p=$as_test_x
18282
18283# Sed expression to map a string onto a valid CPP name.
18284as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18285
18286# Sed expression to map a string onto a valid variable name.
18287as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18288
18289
18290exec 6>&1
18291## ----------------------------------- ##
18292## Main body of $CONFIG_STATUS script. ##
18293## ----------------------------------- ##
18294_ASEOF
18295test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18296
18297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18298# Save the log message, to keep $0 and so on meaningful, and to
18299# report actual input values of CONFIG_FILES etc. instead of their
18300# values after options handling.
18301ac_log="
18302This file was extended by emacs $as_me 24.0.50, which was
d6974efa 18303generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
18304
18305 CONFIG_FILES = $CONFIG_FILES
18306 CONFIG_HEADERS = $CONFIG_HEADERS
18307 CONFIG_LINKS = $CONFIG_LINKS
18308 CONFIG_COMMANDS = $CONFIG_COMMANDS
18309 $ $0 $@
18310
18311on `(hostname || uname -n) 2>/dev/null | sed 1q`
18312"
18313
18314_ACEOF
18315
18316case $ac_config_files in *"
18317"*) set x $ac_config_files; shift; ac_config_files=$*;;
18318esac
18319
18320case $ac_config_headers in *"
18321"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18322esac
18323
18324
18325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18326# Files that config.status was made for.
18327config_files="$ac_config_files"
18328config_headers="$ac_config_headers"
18329config_commands="$ac_config_commands"
18330
18331_ACEOF
18332
18333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334ac_cs_usage="\
18335\`$as_me' instantiates files and other configuration actions
18336from templates according to the current configuration. Unless the files
18337and actions are specified as TAGs, all are instantiated by default.
18338
18339Usage: $0 [OPTION]... [TAG]...
18340
18341 -h, --help print this help, then exit
18342 -V, --version print version number and configuration settings, then exit
18343 --config print configuration, then exit
18344 -q, --quiet, --silent
18345 do not print progress messages
18346 -d, --debug don't remove temporary files
18347 --recheck update $as_me by reconfiguring in the same conditions
18348 --file=FILE[:TEMPLATE]
18349 instantiate the configuration file FILE
18350 --header=FILE[:TEMPLATE]
18351 instantiate the configuration header FILE
18352
18353Configuration files:
18354$config_files
18355
18356Configuration headers:
18357$config_headers
18358
18359Configuration commands:
18360$config_commands
18361
18362Report bugs to the package provider."
18363
18364_ACEOF
18365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18366ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18367ac_cs_version="\\
18368emacs config.status 24.0.50
d6974efa 18369configured by $0, generated by GNU Autoconf 2.68,
067d23c9
KY
18370 with options \\"\$ac_cs_config\\"
18371
2018939f 18372Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
18373This config.status script is free software; the Free Software Foundation
18374gives unlimited permission to copy, distribute and modify it."
18375
18376ac_pwd='$ac_pwd'
18377srcdir='$srcdir'
18378INSTALL='$INSTALL'
743c80a7
PE
18379MKDIR_P='$MKDIR_P'
18380AWK='$AWK'
067d23c9
KY
18381test -n "\$AWK" || AWK=awk
18382_ACEOF
18383
18384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18385# The default lists apply if the user does not specify any file.
18386ac_need_defaults=:
18387while test $# != 0
18388do
18389 case $1 in
2018939f 18390 --*=?*)
067d23c9
KY
18391 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18392 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18393 ac_shift=:
18394 ;;
2018939f
AS
18395 --*=)
18396 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18397 ac_optarg=
18398 ac_shift=:
18399 ;;
067d23c9
KY
18400 *)
18401 ac_option=$1
18402 ac_optarg=$2
18403 ac_shift=shift
18404 ;;
18405 esac
18406
18407 case $ac_option in
18408 # Handling of the options.
18409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18410 ac_cs_recheck=: ;;
18411 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18412 $as_echo "$ac_cs_version"; exit ;;
18413 --config | --confi | --conf | --con | --co | --c )
18414 $as_echo "$ac_cs_config"; exit ;;
18415 --debug | --debu | --deb | --de | --d | -d )
18416 debug=: ;;
18417 --file | --fil | --fi | --f )
18418 $ac_shift
18419 case $ac_optarg in
18420 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018939f 18421 '') as_fn_error $? "missing file argument" ;;
067d23c9
KY
18422 esac
18423 as_fn_append CONFIG_FILES " '$ac_optarg'"
18424 ac_need_defaults=false;;
18425 --header | --heade | --head | --hea )
18426 $ac_shift
18427 case $ac_optarg in
18428 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18429 esac
18430 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18431 ac_need_defaults=false;;
18432 --he | --h)
18433 # Conflict between --help and --header
2018939f 18434 as_fn_error $? "ambiguous option: \`$1'
067d23c9
KY
18435Try \`$0 --help' for more information.";;
18436 --help | --hel | -h )
18437 $as_echo "$ac_cs_usage"; exit ;;
18438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18440 ac_cs_silent=: ;;
18441
18442 # This is an error.
2018939f 18443 -*) as_fn_error $? "unrecognized option: \`$1'
067d23c9
KY
18444Try \`$0 --help' for more information." ;;
18445
18446 *) as_fn_append ac_config_targets " $1"
18447 ac_need_defaults=false ;;
18448
18449 esac
18450 shift
18451done
18452
18453ac_configure_extra_args=
18454
18455if $ac_cs_silent; then
18456 exec 6>/dev/null
18457 ac_configure_extra_args="$ac_configure_extra_args --silent"
18458fi
18459
18460_ACEOF
18461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18462if \$ac_cs_recheck; then
18463 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18464 shift
18465 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18466 CONFIG_SHELL='$SHELL'
18467 export CONFIG_SHELL
18468 exec "\$@"
18469fi
18470
18471_ACEOF
18472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18473exec 5>>config.log
18474{
18475 echo
18476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18477## Running $as_me. ##
18478_ASBOX
18479 $as_echo "$ac_log"
18480} >&5
18481
18482_ACEOF
18483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18484#
18485# INIT-COMMANDS
18486#
743c80a7 18487AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
067d23c9
KY
18488GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18489
18490_ACEOF
18491
18492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18493
18494# Handling of arguments.
18495for ac_config_target in $ac_config_targets
18496do
18497 case $ac_config_target in
18498 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
743c80a7 18499 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
067d23c9 18500 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
743c80a7 18501 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
067d23c9
KY
18502 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18503 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18504 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18505 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18506 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18507 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18508 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18509 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18510 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18511 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
ea062854 18512 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
067d23c9
KY
18513 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18514
d6974efa 18515 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
067d23c9
KY
18516 esac
18517done
18518
18519
18520# If the user did not use the arguments to specify the items to instantiate,
18521# then the envvar interface is used. Set only those that are not.
18522# We use the long form for the default assignment because of an extremely
18523# bizarre bug on SunOS 4.1.3.
18524if $ac_need_defaults; then
18525 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18526 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18527 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18528fi
18529
18530# Have a temporary directory for convenience. Make it in the build tree
18531# simply because there is no reason against having it here, and in addition,
18532# creating and moving files from /tmp can sometimes cause problems.
18533# Hook for its removal unless debugging.
18534# Note that there is a small window in which the directory will not be cleaned:
18535# after its creation but before its name has been assigned to `$tmp'.
18536$debug ||
18537{
d6974efa 18538 tmp= ac_tmp=
067d23c9 18539 trap 'exit_status=$?
d6974efa
PE
18540 : "${ac_tmp:=$tmp}"
18541 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
067d23c9
KY
18542' 0
18543 trap 'as_fn_exit 1' 1 2 13 15
18544}
18545# Create a (secure) tmp directory for tmp files.
18546
18547{
18548 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6974efa 18549 test -d "$tmp"
067d23c9
KY
18550} ||
18551{
18552 tmp=./conf$$-$RANDOM
18553 (umask 077 && mkdir "$tmp")
2018939f 18554} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
d6974efa 18555ac_tmp=$tmp
067d23c9
KY
18556
18557# Set up the scripts for CONFIG_FILES section.
18558# No need to generate them if there are no CONFIG_FILES.
18559# This happens for instance with `./config.status config.h'.
18560if test -n "$CONFIG_FILES"; then
18561
18562if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18563 ac_cs_awk_getline=:
18564 ac_cs_awk_pipe_init=
18565 ac_cs_awk_read_file='
18566 while ((getline aline < (F[key])) > 0)
18567 print(aline)
18568 close(F[key])'
18569 ac_cs_awk_pipe_fini=
18570else
18571 ac_cs_awk_getline=false
18572 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18573 ac_cs_awk_read_file='
18574 print "|#_!!_#|"
18575 print "cat " F[key] " &&"
18576 '$ac_cs_awk_pipe_init
18577 # The final `:' finishes the AND list.
18578 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18579fi
18580ac_cr=`echo X | tr X '\015'`
18581# On cygwin, bash can eat \r inside `` if the user requested igncr.
18582# But we know of no other shell where ac_cr would be empty at this
18583# point, so we can use a bashism as a fallback.
18584if test "x$ac_cr" = x; then
18585 eval ac_cr=\$\'\\r\'
18586fi
18587ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18588if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2018939f 18589 ac_cs_awk_cr='\\r'
067d23c9
KY
18590else
18591 ac_cs_awk_cr=$ac_cr
18592fi
18593
d6974efa 18594echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
067d23c9
KY
18595_ACEOF
18596
18597# Create commands to substitute file output variables.
18598{
18599 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6974efa 18600 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
067d23c9
KY
18601 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18602 echo "_ACAWK" &&
18603 echo "_ACEOF"
18604} >conf$$files.sh &&
18605. ./conf$$files.sh ||
2018939f 18606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18607rm -f conf$$files.sh
18608
18609{
18610 echo "cat >conf$$subs.awk <<_ACEOF" &&
18611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18612 echo "_ACEOF"
18613} >conf$$subs.sh ||
2018939f
AS
18614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18615ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
067d23c9
KY
18616ac_delim='%!_!# '
18617for ac_last_try in false false false false false :; do
18618 . ./conf$$subs.sh ||
2018939f 18619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18620
18621 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18622 if test $ac_delim_n = $ac_delim_num; then
18623 break
18624 elif $ac_last_try; then
2018939f 18625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18626 else
18627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18628 fi
18629done
18630rm -f conf$$subs.sh
18631
18632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6974efa 18633cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
067d23c9
KY
18634_ACEOF
18635sed -n '
18636h
18637s/^/S["/; s/!.*/"]=/
18638p
18639g
18640s/^[^!]*!//
18641:repl
18642t repl
18643s/'"$ac_delim"'$//
18644t delim
18645:nl
18646h
18647s/\(.\{148\}\)..*/\1/
18648t more1
18649s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18650p
18651n
18652b repl
18653:more1
18654s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18655p
18656g
18657s/.\{148\}//
18658t nl
18659:delim
18660h
18661s/\(.\{148\}\)..*/\1/
18662t more2
18663s/["\\]/\\&/g; s/^/"/; s/$/"/
18664p
18665b
18666:more2
18667s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18668p
18669g
18670s/.\{148\}//
18671t delim
18672' <conf$$subs.awk | sed '
18673/^[^""]/{
18674 N
18675 s/\n//
18676}
18677' >>$CONFIG_STATUS || ac_write_fail=1
18678rm -f conf$$subs.awk
18679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18680_ACAWK
d6974efa 18681cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
067d23c9
KY
18682 for (key in S) S_is_set[key] = 1
18683 FS = "\a"
18684 \$ac_cs_awk_pipe_init
18685}
18686{
18687 line = $ 0
18688 nfields = split(line, field, "@")
18689 substed = 0
18690 len = length(field[1])
18691 for (i = 2; i < nfields; i++) {
18692 key = field[i]
18693 keylen = length(key)
18694 if (S_is_set[key]) {
18695 value = S[key]
18696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18697 len += length(value) + length(field[++i])
18698 substed = 1
18699 } else
18700 len += 1 + keylen
18701 }
18702 if (nfields == 3 && !substed) {
18703 key = field[2]
18704 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18705 \$ac_cs_awk_read_file
18706 next
18707 }
18708 }
18709 print line
18710}
18711\$ac_cs_awk_pipe_fini
18712_ACAWK
18713_ACEOF
18714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18715if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18717else
18718 cat
d6974efa 18719fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
2018939f 18720 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
067d23c9
KY
18721_ACEOF
18722
2018939f
AS
18723# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18724# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
067d23c9
KY
18725# trailing colons and then remove the whole line if VPATH becomes empty
18726# (actually we leave an empty line to preserve line numbers).
18727if test "x$srcdir" = x.; then
2018939f
AS
18728 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18729h
18730s///
18731s/^/:/
18732s/[ ]*$/:/
18733s/:\$(srcdir):/:/g
18734s/:\${srcdir}:/:/g
18735s/:@srcdir@:/:/g
18736s/^:*//
067d23c9 18737s/:*$//
2018939f
AS
18738x
18739s/\(=[ ]*\).*/\1/
18740G
18741s/\n//
067d23c9
KY
18742s/^[^=]*=[ ]*$//
18743}'
18744fi
18745
18746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18747fi # test -n "$CONFIG_FILES"
18748
18749# Set up the scripts for CONFIG_HEADERS section.
18750# No need to generate them if there are no CONFIG_HEADERS.
18751# This happens for instance with `./config.status Makefile'.
18752if test -n "$CONFIG_HEADERS"; then
d6974efa 18753cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
067d23c9
KY
18754BEGIN {
18755_ACEOF
18756
18757# Transform confdefs.h into an awk script `defines.awk', embedded as
18758# here-document in config.status, that substitutes the proper values into
18759# config.h.in to produce config.h.
18760
18761# Create a delimiter string that does not exist in confdefs.h, to ease
18762# handling of long lines.
18763ac_delim='%!_!# '
18764for ac_last_try in false false :; do
d6974efa
PE
18765 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18766 if test -z "$ac_tt"; then
067d23c9
KY
18767 break
18768 elif $ac_last_try; then
2018939f 18769 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
067d23c9
KY
18770 else
18771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18772 fi
18773done
18774
18775# For the awk script, D is an array of macro values keyed by name,
18776# likewise P contains macro parameters if any. Preserve backslash
18777# newline sequences.
18778
18779ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18780sed -n '
18781s/.\{148\}/&'"$ac_delim"'/g
18782t rset
18783:rset
18784s/^[ ]*#[ ]*define[ ][ ]*/ /
18785t def
18786d
18787:def
18788s/\\$//
18789t bsnl
18790s/["\\]/\\&/g
18791s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18792D["\1"]=" \3"/p
18793s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18794d
18795:bsnl
18796s/["\\]/\\&/g
18797s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18798D["\1"]=" \3\\\\\\n"\\/p
18799t cont
18800s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18801t cont
18802d
18803:cont
18804n
18805s/.\{148\}/&'"$ac_delim"'/g
18806t clear
18807:clear
18808s/\\$//
18809t bsnlc
18810s/["\\]/\\&/g; s/^/"/; s/$/"/p
18811d
18812:bsnlc
18813s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18814b cont
18815' <confdefs.h | sed '
18816s/'"$ac_delim"'/"\\\
18817"/g' >>$CONFIG_STATUS || ac_write_fail=1
18818
18819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18820 for (key in D) D_is_set[key] = 1
18821 FS = "\a"
18822}
18823/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18824 line = \$ 0
18825 split(line, arg, " ")
18826 if (arg[1] == "#") {
18827 defundef = arg[2]
18828 mac1 = arg[3]
18829 } else {
18830 defundef = substr(arg[1], 2)
18831 mac1 = arg[2]
18832 }
18833 split(mac1, mac2, "(") #)
18834 macro = mac2[1]
18835 prefix = substr(line, 1, index(line, defundef) - 1)
18836 if (D_is_set[macro]) {
18837 # Preserve the white space surrounding the "#".
18838 print prefix "define", macro P[macro] D[macro]
18839 next
18840 } else {
18841 # Replace #undef with comments. This is necessary, for example,
18842 # in the case of _POSIX_SOURCE, which is predefined and required
18843 # on some systems where configure will not decide to define it.
18844 if (defundef == "undef") {
18845 print "/*", prefix defundef, macro, "*/"
18846 next
18847 }
18848 }
18849}
18850{ print }
18851_ACAWK
18852_ACEOF
18853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2018939f 18854 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
067d23c9
KY
18855fi # test -n "$CONFIG_HEADERS"
18856
18857
18858eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18859shift
18860for ac_tag
18861do
18862 case $ac_tag in
18863 :[FHLC]) ac_mode=$ac_tag; continue;;
18864 esac
18865 case $ac_mode$ac_tag in
18866 :[FHL]*:*);;
d6974efa 18867 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
067d23c9
KY
18868 :[FH]-) ac_tag=-:-;;
18869 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18870 esac
18871 ac_save_IFS=$IFS
18872 IFS=:
18873 set x $ac_tag
18874 IFS=$ac_save_IFS
18875 shift
18876 ac_file=$1
18877 shift
18878
18879 case $ac_mode in
18880 :L) ac_source=$1;;
18881 :[FH])
18882 ac_file_inputs=
18883 for ac_f
18884 do
18885 case $ac_f in
d6974efa 18886 -) ac_f="$ac_tmp/stdin";;
067d23c9
KY
18887 *) # Look for the file first in the build tree, then in the source tree
18888 # (if the path is not absolute). The absolute path cannot be DOS-style,
18889 # because $ac_f cannot contain `:'.
18890 test -f "$ac_f" ||
18891 case $ac_f in
18892 [\\/$]*) false;;
18893 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18894 esac ||
d6974efa 18895 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
067d23c9
KY
18896 esac
18897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18898 as_fn_append ac_file_inputs " '$ac_f'"
18899 done
18900
18901 # Let's still pretend it is `configure' which instantiates (i.e., don't
18902 # use $as_me), people would be surprised to read:
18903 # /* config.h. Generated by config.status. */
18904 configure_input='Generated from '`
18905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18906 `' by configure.'
18907 if test x"$ac_file" != x-; then
18908 configure_input="$ac_file. $configure_input"
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18910$as_echo "$as_me: creating $ac_file" >&6;}
18911 fi
18912 # Neutralize special characters interpreted by sed in replacement strings.
18913 case $configure_input in #(
18914 *\&* | *\|* | *\\* )
18915 ac_sed_conf_input=`$as_echo "$configure_input" |
18916 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18917 *) ac_sed_conf_input=$configure_input;;
18918 esac
18919
18920 case $ac_tag in
d6974efa
PE
18921 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
067d23c9
KY
18923 esac
18924 ;;
18925 esac
18926
18927 ac_dir=`$as_dirname -- "$ac_file" ||
18928$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18929 X"$ac_file" : 'X\(//\)[^/]' \| \
18930 X"$ac_file" : 'X\(//\)$' \| \
18931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18932$as_echo X"$ac_file" |
18933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18934 s//\1/
18935 q
18936 }
18937 /^X\(\/\/\)[^/].*/{
18938 s//\1/
18939 q
18940 }
18941 /^X\(\/\/\)$/{
18942 s//\1/
18943 q
18944 }
18945 /^X\(\/\).*/{
18946 s//\1/
18947 q
18948 }
18949 s/.*/./; q'`
18950 as_dir="$ac_dir"; as_fn_mkdir_p
18951 ac_builddir=.
18952
18953case "$ac_dir" in
18954.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18955*)
18956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18957 # A ".." for each directory in $ac_dir_suffix.
18958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18959 case $ac_top_builddir_sub in
18960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18962 esac ;;
18963esac
18964ac_abs_top_builddir=$ac_pwd
18965ac_abs_builddir=$ac_pwd$ac_dir_suffix
18966# for backward compatibility:
18967ac_top_builddir=$ac_top_build_prefix
18968
18969case $srcdir in
18970 .) # We are building in place.
18971 ac_srcdir=.
18972 ac_top_srcdir=$ac_top_builddir_sub
18973 ac_abs_top_srcdir=$ac_pwd ;;
18974 [\\/]* | ?:[\\/]* ) # Absolute name.
18975 ac_srcdir=$srcdir$ac_dir_suffix;
18976 ac_top_srcdir=$srcdir
18977 ac_abs_top_srcdir=$srcdir ;;
18978 *) # Relative name.
18979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18980 ac_top_srcdir=$ac_top_build_prefix$srcdir
18981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18982esac
18983ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18984
18985
18986 case $ac_mode in
18987 :F)
18988 #
18989 # CONFIG_FILE
18990 #
18991
18992 case $INSTALL in
18993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18995 esac
743c80a7
PE
18996 ac_MKDIR_P=$MKDIR_P
18997 case $MKDIR_P in
18998 [\\/$]* | ?:[\\/]* ) ;;
18999 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19000 esac
067d23c9
KY
19001_ACEOF
19002
19003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19004# If the template does not know about datarootdir, expand it.
19005# FIXME: This hack should be removed a few years after 2.60.
19006ac_datarootdir_hack=; ac_datarootdir_seen=
19007ac_sed_dataroot='
19008/datarootdir/ {
19009 p
19010 q
19011}
19012/@datadir@/p
19013/@docdir@/p
19014/@infodir@/p
19015/@localedir@/p
19016/@mandir@/p'
19017case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19018*datarootdir*) ac_datarootdir_seen=yes;;
19019*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19021$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19022_ACEOF
19023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19024 ac_datarootdir_hack='
19025 s&@datadir@&$datadir&g
19026 s&@docdir@&$docdir&g
19027 s&@infodir@&$infodir&g
19028 s&@localedir@&$localedir&g
19029 s&@mandir@&$mandir&g
19030 s&\\\${datarootdir}&$datarootdir&g' ;;
19031esac
19032_ACEOF
19033
19034# Neutralize VPATH when `$srcdir' = `.'.
19035# Shell code in configure.ac might set extrasub.
19036# FIXME: do we really want to maintain this feature?
19037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19038ac_sed_extra="$ac_vpsub
19039$extrasub
19040_ACEOF
19041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19042:t
19043/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19044s|@configure_input@|$ac_sed_conf_input|;t t
19045s&@top_builddir@&$ac_top_builddir_sub&;t t
19046s&@top_build_prefix@&$ac_top_build_prefix&;t t
19047s&@srcdir@&$ac_srcdir&;t t
19048s&@abs_srcdir@&$ac_abs_srcdir&;t t
19049s&@top_srcdir@&$ac_top_srcdir&;t t
19050s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19051s&@builddir@&$ac_builddir&;t t
19052s&@abs_builddir@&$ac_abs_builddir&;t t
19053s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19054s&@INSTALL@&$ac_INSTALL&;t t
743c80a7 19055s&@MKDIR_P@&$ac_MKDIR_P&;t t
067d23c9
KY
19056$ac_datarootdir_hack
19057"
19058eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19059if $ac_cs_awk_getline; then
d6974efa 19060 $AWK -f "$ac_tmp/subs.awk"
067d23c9 19061else
d6974efa
PE
19062 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19063fi \
19064 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
19065
19066test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6974efa
PE
19067 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19069 "$ac_tmp/out"`; test -z "$ac_out"; } &&
067d23c9 19070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 19071which seems to be undefined. Please make sure it is defined" >&5
067d23c9 19072$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 19073which seems to be undefined. Please make sure it is defined" >&2;}
067d23c9 19074
d6974efa 19075 rm -f "$ac_tmp/stdin"
067d23c9 19076 case $ac_file in
d6974efa
PE
19077 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19078 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
067d23c9 19079 esac \
2018939f 19080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
19081 ;;
19082 :H)
19083 #
19084 # CONFIG_HEADER
19085 #
19086 if test x"$ac_file" != x-; then
19087 {
19088 $as_echo "/* $configure_input */" \
d6974efa
PE
19089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19090 } >"$ac_tmp/config.h" \
2018939f 19091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d6974efa 19092 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
067d23c9
KY
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19094$as_echo "$as_me: $ac_file is unchanged" >&6;}
19095 else
19096 rm -f "$ac_file"
d6974efa 19097 mv "$ac_tmp/config.h" "$ac_file" \
2018939f 19098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
19099 fi
19100 else
19101 $as_echo "/* $configure_input */" \
d6974efa 19102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
2018939f 19103 || as_fn_error $? "could not create -" "$LINENO" 5
067d23c9 19104 fi
743c80a7
PE
19105# Compute "$ac_file"'s index in $config_headers.
19106_am_arg="$ac_file"
19107_am_stamp_count=1
19108for _am_header in $config_headers :; do
19109 case $_am_header in
19110 $_am_arg | $_am_arg:* )
19111 break ;;
19112 * )
19113 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19114 esac
19115done
19116echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19117$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19118 X"$_am_arg" : 'X\(//\)[^/]' \| \
19119 X"$_am_arg" : 'X\(//\)$' \| \
19120 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19121$as_echo X"$_am_arg" |
19122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19123 s//\1/
19124 q
19125 }
19126 /^X\(\/\/\)[^/].*/{
19127 s//\1/
19128 q
19129 }
19130 /^X\(\/\/\)$/{
19131 s//\1/
19132 q
19133 }
19134 /^X\(\/\).*/{
19135 s//\1/
19136 q
19137 }
19138 s/.*/./; q'`/stamp-h$_am_stamp_count
067d23c9
KY
19139 ;;
19140
19141 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19142$as_echo "$as_me: executing $ac_file commands" >&6;}
19143 ;;
19144 esac
19145
19146
19147 case $ac_file$ac_mode in
743c80a7
PE
19148 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19149 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19150 # are listed without --file. Let's play safe and only enable the eval
19151 # if we detect the quoting.
19152 case $CONFIG_FILES in
19153 *\'*) eval set x "$CONFIG_FILES" ;;
19154 *) set x $CONFIG_FILES ;;
19155 esac
19156 shift
19157 for mf
19158 do
19159 # Strip MF so we end up with the name of the file.
19160 mf=`echo "$mf" | sed -e 's/:.*$//'`
19161 # Check whether this is an Automake generated Makefile or not.
19162 # We used to match only the files named `Makefile.in', but
19163 # some people rename them; so instead we look at the file content.
19164 # Grep'ing the first line is not enough: some people post-process
19165 # each Makefile.in and add a new line on top of each file to say so.
19166 # Grep'ing the whole file is not good either: AIX grep has a line
19167 # limit of 2048, but all sed's we know have understand at least 4000.
19168 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19169 dirpart=`$as_dirname -- "$mf" ||
19170$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19171 X"$mf" : 'X\(//\)[^/]' \| \
19172 X"$mf" : 'X\(//\)$' \| \
19173 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19174$as_echo X"$mf" |
19175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19176 s//\1/
19177 q
19178 }
19179 /^X\(\/\/\)[^/].*/{
19180 s//\1/
19181 q
19182 }
19183 /^X\(\/\/\)$/{
19184 s//\1/
19185 q
19186 }
19187 /^X\(\/\).*/{
19188 s//\1/
19189 q
19190 }
19191 s/.*/./; q'`
19192 else
19193 continue
19194 fi
19195 # Extract the definition of DEPDIR, am__include, and am__quote
19196 # from the Makefile without running `make'.
19197 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19198 test -z "$DEPDIR" && continue
19199 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19200 test -z "am__include" && continue
19201 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19202 # When using ansi2knr, U may be empty or an underscore; expand it
19203 U=`sed -n 's/^U = //p' < "$mf"`
19204 # Find all dependency output files, they are included files with
19205 # $(DEPDIR) in their names. We invoke sed twice because it is the
19206 # simplest approach to changing $(DEPDIR) to its actual value in the
19207 # expansion.
19208 for file in `sed -n "
19209 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19210 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19211 # Make sure the directory exists.
19212 test -f "$dirpart/$file" && continue
19213 fdir=`$as_dirname -- "$file" ||
19214$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19215 X"$file" : 'X\(//\)[^/]' \| \
19216 X"$file" : 'X\(//\)$' \| \
19217 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19218$as_echo X"$file" |
19219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19220 s//\1/
19221 q
19222 }
19223 /^X\(\/\/\)[^/].*/{
19224 s//\1/
19225 q
19226 }
19227 /^X\(\/\/\)$/{
19228 s//\1/
19229 q
19230 }
19231 /^X\(\/\).*/{
19232 s//\1/
19233 q
19234 }
19235 s/.*/./; q'`
19236 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19237 # echo "creating $dirpart/$file"
19238 echo '# dummy' > "$dirpart/$file"
19239 done
19240 done
19241}
19242 ;;
067d23c9
KY
19243 "default":C)
19244
19245### Make the necessary directories, if they don't exist.
19246for dir in etc lisp ; do
19247 test -d ${dir} || mkdir ${dir}
19248done
19249
19250echo creating src/epaths.h
19251${MAKE-make} epaths-force
19252
19253if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19254 echo creating src/.gdbinit
19255 echo source $srcdir/src/.gdbinit > src/.gdbinit
19256fi
19257
19258 ;;
19259
19260 esac
19261done # for ac_tag
19262
19263
19264as_fn_exit 0
19265_ACEOF
19266ac_clean_files=$ac_clean_files_save
19267
19268test $ac_write_fail = 0 ||
2018939f 19269 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
19270
19271
19272# configure is writing to config.log, and then calls config.status.
19273# config.status does its own redirection, appending to config.log.
19274# Unfortunately, on DOS this fails, as config.log is still kept open
19275# by configure, so config.status won't be able to write to it; its
19276# output is simply discarded. So we exec the FD to /dev/null,
19277# effectively closing config.log, so it can be properly (re)opened and
19278# appended to by config.status. When coming back to configure, we
19279# need to make the FD available again.
19280if test "$no_create" != yes; then
19281 ac_cs_success=:
19282 ac_config_status_args=
19283 test "$silent" = yes &&
19284 ac_config_status_args="$ac_config_status_args --quiet"
19285 exec 5>/dev/null
19286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19287 exec 5>>config.log
19288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19289 # would make configure fail if this is the last instruction.
2018939f 19290 $ac_cs_success || as_fn_exit 1
067d23c9
KY
19291fi
19292if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19294$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19295fi
19296