MS-Windows follow-up for 2010-07-12T05:25:46Z!handa@etlken.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
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'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LINKER
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXSM
664 LIBGPM
665 LIBGIF
666 LIBTIFF
667 LIBPNG
668 LIBJPEG
669 LIBXPM
670 FREETYPE_LIBS
671 FREETYPE_CFLAGS
672 M17N_FLT_LIBS
673 M17N_FLT_CFLAGS
674 LIBOTF_LIBS
675 LIBOTF_CFLAGS
676 XFT_LIBS
677 XFT_CFLAGS
678 FONTCONFIG_LIBS
679 FONTCONFIG_CFLAGS
680 LIBXMU
681 LIBXTR6
682 LIBSELINUX_LIBS
683 GCONF_LIBS
684 GCONF_CFLAGS
685 DBUS_OBJ
686 DBUS_LIBS
687 DBUS_CFLAGS
688 GTK_OBJ
689 GTK_LIBS
690 GTK_CFLAGS
691 RSVG_LIBS
692 RSVG_CFLAGS
693 VMLIMIT_OBJ
694 GMALLOC_OBJ
695 HAVE_XSERVER
696 LIB_STANDARD
697 NS_SUPPORT
698 NS_OBJ
699 TEMACS_LDFLAGS2
700 LD_SWITCH_X_SITE_AUX_RPATH
701 LD_SWITCH_X_SITE_AUX
702 XMKMF
703 DEPFLAGS
704 MKDEPDIR
705 SET_MAKE
706 CFLAGS_SOUND
707 ALSA_LIBS
708 ALSA_CFLAGS
709 PKG_CONFIG
710 LIBSOUND
711 START_FILES
712 LIB_MATH
713 CRT_DIR
714 LIBS_SYSTEM
715 C_SWITCH_SYSTEM
716 UNEXEC_OBJ
717 C_SWITCH_MACHINE
718 LD_SWITCH_SYSTEM
719 CANNOT_DUMP
720 MAKEINFO
721 GZIP_PROG
722 INSTALL_INFO
723 RANLIB
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 EGREP
728 GREP
729 CPP
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 MAINT
746 GZIP_INFO
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files='deps_frag
786 ns_frag'
787 ac_user_opts='
788 enable_option_checking
789 with_pop
790 with_kerberos
791 with_kerberos5
792 with_hesiod
793 with_mmdf
794 with_mail_unlink
795 with_mailhost
796 with_sound
797 with_sync_input
798 with_x_toolkit
799 with_xpm
800 with_jpeg
801 with_tiff
802 with_gif
803 with_png
804 with_rsvg
805 with_xft
806 with_libotf
807 with_m17n_flt
808 with_toolkit_scroll_bars
809 with_xaw3d
810 with_xim
811 with_ns
812 with_gpm
813 with_dbus
814 with_gconf
815 with_selinux
816 with_makeinfo
817 with_compress_info
818 with_pkg_config_prog
819 with_crt_dir
820 with_gnustep_conf
821 enable_ns_self_contained
822 enable_asserts
823 enable_maintainer_mode
824 enable_locallisppath
825 enable_checking
826 enable_use_lisp_union_type
827 enable_profiling
828 enable_autodepend
829 enable_largefile
830 with_x
831 '
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 CPP
841 XMKMF'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
891
892 ac_prev=
893 ac_dashdash=
894 for ac_option
895 do
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
901 fi
902
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1175
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1191
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1225
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1228 ;;
1229
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1239
1240 *)
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1246 ;;
1247
1248 esac
1249 done
1250
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1254 fi
1255
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1262 fi
1263
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1269 do
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used" >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1347 fi
1348 else
1349 ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1437
1438 cat <<\_ACEOF
1439
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445 X features:
1446 --x-includes=DIR X include files are in DIR
1447 --x-libraries=DIR X library files are in DIR
1448
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1458 esac
1459 cat <<\_ACEOF
1460
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --disable-ns-self-contained
1466 disable self contained build under NeXTstep
1467 --enable-asserts compile code with asserts enabled
1468 --enable-maintainer-mode
1469 enable make rules and dependencies not useful (and
1470 sometimes confusing) to the casual installer
1471 --enable-locallisppath=PATH
1472 directories Emacs should search for lisp files
1473 specific to this site
1474 --enable-checking[=LIST]
1475 enable expensive run-time checks. With LIST, enable
1476 only specific categories of checks. Categories are:
1477 all,yes,no. Flags are: stringbytes, stringoverrun,
1478 stringfreelist, xmallocoverrun, conslist
1479 --enable-use-lisp-union-type
1480 use a union for the Lisp_Object data type. This is
1481 only useful for development for catching certain
1482 types of bugs.
1483 --enable-profiling build emacs with profiling support. This might not
1484 work on all platforms
1485 --enable-autodepend automatically generate dependencies to .h-files.
1486 Requires GNU Make and Gcc. Enabled if GNU Make and
1487 Gcc is found
1488 --disable-largefile omit support for large files
1489
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --without-pop don't support POP mail retrieval with movemail
1494 --with-kerberos support Kerberos-authenticated POP
1495 --with-kerberos5 support Kerberos version 5 authenticated POP
1496 --with-hesiod support Hesiod to get the POP server host
1497 --with-mmdf support MMDF mailboxes
1498 --with-mail-unlink unlink, rather than empty, mail spool after reading
1499 --with-mailhost=HOSTNAME
1500 string giving default POP mail host
1501 --without-sound don't compile with sound support
1502 --without-sync-input process async input synchronously
1503 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1504 lucid or athena, motif, no)
1505 --without-xpm don't compile with XPM image support
1506 --without-jpeg don't compile with JPEG image support
1507 --without-tiff don't compile with TIFF image support
1508 --without-gif don't compile with GIF image support
1509 --without-png don't compile with PNG image support
1510 --without-rsvg don't compile with SVG image support
1511 --without-xft don't use XFT for anti aliased fonts
1512 --without-libotf don't use libotf for OpenType font support
1513 --without-m17n-flt don't use m17n-flt for text shaping
1514 --without-toolkit-scroll-bars
1515 don't use Motif or Xaw3d scroll bars
1516 --without-xaw3d don't use Xaw3d
1517 --without-xim don't use X11 XIM
1518 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1519 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1520 console
1521 --without-dbus don't compile with D-Bus support
1522 --without-gconf don't compile with GConf support
1523 --without-selinux don't compile with SELinux support
1524 --without-makeinfo don't require makeinfo for building manuals
1525 --without-compress-info don't compress the installed Info pages
1526 --with-pkg-config-prog=PATH
1527 path to pkg-config for finding GTK and librsvg
1528 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1529 /usr/lib, or /usr/lib64 on some platforms.
1530 --with-gnustep-conf=PATH
1531 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1532 or /etc/GNUstep/GNUstep.conf
1533 --with-x use the X Window System
1534
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CPP C preprocessor
1544 XMKMF Path to xmkmf, Makefile generator for X Window System
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to the package provider.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
1560 ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611 cat <<\_ACEOF
1612 emacs configure 24.0.50
1613 generated by GNU Autoconf 2.66
1614
1615 Copyright (C) 2010 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619 exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_link ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext conftest$ac_exeext
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest$ac_exeext && {
1690 test "$cross_compiling" = yes ||
1691 $as_test_x conftest$ac_exeext
1692 }; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699 fi
1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702 # interfere with the next link command; also delete a directory that is
1703 # left behind by Apple's compiler. We do this before executing the actions.
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_link
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } >/dev/null && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1750 # the include files in INCLUDES and setting the cache variable VAR
1751 # accordingly.
1752 ac_fn_c_check_header_mongrel ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if eval "test \"\${$3+set}\"" = set; then :
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval "test \"\${$3+set}\"" = set; then :
1759 $as_echo_n "(cached) " >&6
1760 fi
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 else
1765 # Is the header compilable?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1767 $as_echo_n "checking $2 usability... " >&6; }
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 $4
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 ac_header_compiler=yes
1775 else
1776 ac_header_compiler=no
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1780 $as_echo "$ac_header_compiler" >&6; }
1781
1782 # Is the header present?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1784 $as_echo_n "checking $2 presence... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_cpp "$LINENO"; then :
1790 ac_header_preproc=yes
1791 else
1792 ac_header_preproc=no
1793 fi
1794 rm -f conftest.err conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1796 $as_echo "$ac_header_preproc" >&6; }
1797
1798 # So? What about this header?
1799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1800 yes:no: )
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1802 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 ;;
1806 no:yes:* )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1808 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1810 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1812 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1814 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 ;;
1818 esac
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval "test \"\${$3+set}\"" = set; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 eval "$3=\$ac_header_compiler"
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 fi
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831
1832 } # ac_fn_c_check_header_mongrel
1833
1834 # ac_fn_c_try_run LINENO
1835 # ----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837 # that executables *can* be run.
1838 ac_fn_c_try_run ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852 { { case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_try") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; }; }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: program exited with status $ac_status" >&5
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=$ac_status
1869 fi
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_run
1875
1876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists and can be compiled using the include files in
1879 # INCLUDES, setting the cache variable VAR accordingly.
1880 ac_fn_c_check_header_compile ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval "test \"\${$3+set}\"" = set; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 eval "$3=yes"
1895 else
1896 eval "$3=no"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904
1905 } # ac_fn_c_check_header_compile
1906
1907 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1908 # ---------------------------------------------
1909 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1910 # accordingly.
1911 ac_fn_c_check_decl ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 as_decl_name=`echo $2|sed 's/ *(.*//'`
1915 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1917 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1918 if eval "test \"\${$3+set}\"" = set; then :
1919 $as_echo_n "(cached) " >&6
1920 else
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 $4
1924 int
1925 main ()
1926 {
1927 #ifndef $as_decl_name
1928 #ifdef __cplusplus
1929 (void) $as_decl_use;
1930 #else
1931 (void) $as_decl_name;
1932 #endif
1933 #endif
1934
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 eval "$3=yes"
1941 else
1942 eval "$3=no"
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 fi
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950
1951 } # ac_fn_c_check_decl
1952
1953 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1954 # ----------------------------------------------
1955 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1956 ac_fn_c_check_header_preproc ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval "test \"\${$3+set}\"" = set; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_cpp "$LINENO"; then :
1969 eval "$3=yes"
1970 else
1971 eval "$3=no"
1972 fi
1973 rm -f conftest.err conftest.$ac_ext
1974 fi
1975 eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979
1980 } # ac_fn_c_check_header_preproc
1981
1982 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1983 # ----------------------------------------------------
1984 # Tries to find if the field MEMBER exists in type AGGR, after including
1985 # INCLUDES, setting cache variable VAR accordingly.
1986 ac_fn_c_check_member ()
1987 {
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1990 $as_echo_n "checking for $2.$3... " >&6; }
1991 if eval "test \"\${$4+set}\"" = set; then :
1992 $as_echo_n "(cached) " >&6
1993 else
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 $5
1997 int
1998 main ()
1999 {
2000 static $2 ac_aggr;
2001 if (ac_aggr.$3)
2002 return 0;
2003 ;
2004 return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008 eval "$4=yes"
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $5
2013 int
2014 main ()
2015 {
2016 static $2 ac_aggr;
2017 if (sizeof ac_aggr.$3)
2018 return 0;
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$4=yes"
2025 else
2026 eval "$4=no"
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 eval ac_res=\$$4
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037 } # ac_fn_c_check_member
2038
2039 # ac_fn_c_check_func LINENO FUNC VAR
2040 # ----------------------------------
2041 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2042 ac_fn_c_check_func ()
2043 {
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval "test \"\${$3+set}\"" = set; then :
2048 $as_echo_n "(cached) " >&6
2049 else
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2054 #define $2 innocuous_$2
2055
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $2 (); below.
2058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059 <limits.h> exists even on freestanding compilers. */
2060
2061 #ifdef __STDC__
2062 # include <limits.h>
2063 #else
2064 # include <assert.h>
2065 #endif
2066
2067 #undef $2
2068
2069 /* Override any GCC internal prototype to avoid an error.
2070 Use char because int might match the return type of a GCC
2071 builtin and then its argument prototype would still apply. */
2072 #ifdef __cplusplus
2073 extern "C"
2074 #endif
2075 char $2 ();
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined __stub_$2 || defined __stub___$2
2080 choke me
2081 #endif
2082
2083 int
2084 main ()
2085 {
2086 return $2 ();
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_link "$LINENO"; then :
2092 eval "$3=yes"
2093 else
2094 eval "$3=no"
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext \
2097 conftest$ac_exeext conftest.$ac_ext
2098 fi
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103
2104 } # ac_fn_c_check_func
2105
2106 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2107 # -------------------------------------------
2108 # Tests whether TYPE exists after having included INCLUDES, setting cache
2109 # variable VAR accordingly.
2110 ac_fn_c_check_type ()
2111 {
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval "test \"\${$3+set}\"" = set; then :
2116 $as_echo_n "(cached) " >&6
2117 else
2118 eval "$3=no"
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2121 $4
2122 int
2123 main ()
2124 {
2125 if (sizeof ($2))
2126 return 0;
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2134 $4
2135 int
2136 main ()
2137 {
2138 if (sizeof (($2)))
2139 return 0;
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145
2146 else
2147 eval "$3=yes"
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2157
2158 } # ac_fn_c_check_type
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2162
2163 It was created by emacs $as_me 24.0.50, which was
2164 generated by GNU Autoconf 2.66. Invocation command line was
2165
2166 $ $0 $@
2167
2168 _ACEOF
2169 exec 5>>config.log
2170 {
2171 cat <<_ASUNAME
2172 ## --------- ##
2173 ## Platform. ##
2174 ## --------- ##
2175
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2184
2185 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2186 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2189 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2190 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2191 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2192
2193 _ASUNAME
2194
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 $as_echo "PATH: $as_dir"
2201 done
2202 IFS=$as_save_IFS
2203
2204 } >&5
2205
2206 cat >&5 <<_ACEOF
2207
2208
2209 ## ----------- ##
2210 ## Core tests. ##
2211 ## ----------- ##
2212
2213 _ACEOF
2214
2215
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2221 ac_configure_args=
2222 ac_configure_args0=
2223 ac_configure_args1=
2224 ac_must_keep_next=false
2225 for ac_pass in 1 2
2226 do
2227 for ac_arg
2228 do
2229 case $ac_arg in
2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232 | -silent | --silent | --silen | --sile | --sil)
2233 continue ;;
2234 *\'*)
2235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 esac
2237 case $ac_pass in
2238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2239 2)
2240 as_fn_append ac_configure_args1 " '$ac_arg'"
2241 if test $ac_must_keep_next = true; then
2242 ac_must_keep_next=false # Got value, back to normal.
2243 else
2244 case $ac_arg in
2245 *=* | --config-cache | -C | -disable-* | --disable-* \
2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248 | -with-* | --with-* | -without-* | --without-* | --x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 esac
2252 ;;
2253 -* ) ac_must_keep_next=true ;;
2254 esac
2255 fi
2256 as_fn_append ac_configure_args " '$ac_arg'"
2257 ;;
2258 esac
2259 done
2260 done
2261 { ac_configure_args0=; unset ac_configure_args0;}
2262 { ac_configure_args1=; unset ac_configure_args1;}
2263
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log. We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270 # Save into config.log some information that might help in debugging.
2271 {
2272 echo
2273
2274 $as_echo "## ---------------- ##
2275 ## Cache variables. ##
2276 ## ---------------- ##"
2277 echo
2278 # The following way of writing the cache mishandles newlines in values,
2279 (
2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281 eval ac_val=\$$ac_var
2282 case $ac_val in #(
2283 *${as_nl}*)
2284 case $ac_var in #(
2285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 esac
2288 case $ac_var in #(
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2292 esac ;;
2293 esac
2294 done
2295 (set) 2>&1 |
2296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2298 sed -n \
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 ;; #(
2302 *)
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 ;;
2305 esac |
2306 sort
2307 )
2308 echo
2309
2310 $as_echo "## ----------------- ##
2311 ## Output variables. ##
2312 ## ----------------- ##"
2313 echo
2314 for ac_var in $ac_subst_vars
2315 do
2316 eval ac_val=\$$ac_var
2317 case $ac_val in
2318 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319 esac
2320 $as_echo "$ac_var='\''$ac_val'\''"
2321 done | sort
2322 echo
2323
2324 if test -n "$ac_subst_files"; then
2325 $as_echo "## ------------------- ##
2326 ## File substitutions. ##
2327 ## ------------------- ##"
2328 echo
2329 for ac_var in $ac_subst_files
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338 fi
2339
2340 if test -s confdefs.h; then
2341 $as_echo "## ----------- ##
2342 ## confdefs.h. ##
2343 ## ----------- ##"
2344 echo
2345 cat confdefs.h
2346 echo
2347 fi
2348 test "$ac_signal" != 0 &&
2349 $as_echo "$as_me: caught signal $ac_signal"
2350 $as_echo "$as_me: exit $exit_status"
2351 } >&5
2352 rm -f core *.core core.conftest.* &&
2353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354 exit $exit_status
2355 ' 0
2356 for ac_signal in 1 2 13 15; do
2357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2358 done
2359 ac_signal=0
2360
2361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2362 rm -f -r conftest* confdefs.h
2363
2364 $as_echo "/* confdefs.h */" > confdefs.h
2365
2366 # Predefined preprocessor variables.
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_NAME "$PACKAGE_NAME"
2370 _ACEOF
2371
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2374 _ACEOF
2375
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2378 _ACEOF
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_STRING "$PACKAGE_STRING"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_URL "$PACKAGE_URL"
2390 _ACEOF
2391
2392
2393 # Let the site file select an alternate cache file if it wants to.
2394 # Prefer an explicitly selected file to automatically selected ones.
2395 ac_site_file1=NONE
2396 ac_site_file2=NONE
2397 if test -n "$CONFIG_SITE"; then
2398 # We do not want a PATH search for config.site.
2399 case $CONFIG_SITE in #((
2400 -*) ac_site_file1=./$CONFIG_SITE;;
2401 */*) ac_site_file1=$CONFIG_SITE;;
2402 *) ac_site_file1=./$CONFIG_SITE;;
2403 esac
2404 elif test "x$prefix" != xNONE; then
2405 ac_site_file1=$prefix/share/config.site
2406 ac_site_file2=$prefix/etc/config.site
2407 else
2408 ac_site_file1=$ac_default_prefix/share/config.site
2409 ac_site_file2=$ac_default_prefix/etc/config.site
2410 fi
2411 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2412 do
2413 test "x$ac_site_file" = xNONE && continue
2414 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2416 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2417 sed 's/^/| /' "$ac_site_file" >&5
2418 . "$ac_site_file" \
2419 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421 as_fn_error $? "failed to load site script $ac_site_file
2422 See \`config.log' for more details" "$LINENO" 5; }
2423 fi
2424 done
2425
2426 if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special files
2428 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2429 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431 $as_echo "$as_me: loading cache $cache_file" >&6;}
2432 case $cache_file in
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2435 esac
2436 fi
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439 $as_echo "$as_me: creating cache $cache_file" >&6;}
2440 >$cache_file
2441 fi
2442
2443 as_fn_append ac_header_list " stdlib.h"
2444 as_fn_append ac_header_list " unistd.h"
2445 as_fn_append ac_header_list " sys/param.h"
2446 as_fn_append ac_header_list " sys/time.h"
2447 as_fn_append ac_func_list " alarm"
2448 # Check that the precious variables saved in the cache have kept the same
2449 # value.
2450 ac_cache_corrupted=false
2451 for ac_var in $ac_precious_vars; do
2452 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2453 eval ac_new_set=\$ac_env_${ac_var}_set
2454 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2455 eval ac_new_val=\$ac_env_${ac_var}_value
2456 case $ac_old_set,$ac_new_set in
2457 set,)
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2461 ,set)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2463 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,);;
2466 *)
2467 if test "x$ac_old_val" != "x$ac_new_val"; then
2468 # differences in whitespace do not lead to failure.
2469 ac_old_val_w=`echo x $ac_old_val`
2470 ac_new_val_w=`echo x $ac_new_val`
2471 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2473 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2474 ac_cache_corrupted=:
2475 else
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2477 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2478 eval $ac_var=\$ac_old_val
2479 fi
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2481 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2483 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2484 fi;;
2485 esac
2486 # Pass precious variables to config.status.
2487 if test "$ac_new_set" = set; then
2488 case $ac_new_val in
2489 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2490 *) ac_arg=$ac_var=$ac_new_val ;;
2491 esac
2492 case " $ac_configure_args " in
2493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2494 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2495 esac
2496 fi
2497 done
2498 if $ac_cache_corrupted; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2502 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2503 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2504 fi
2505 ## -------------------- ##
2506 ## Main body of script. ##
2507 ## -------------------- ##
2508
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2517
2518
2519
2520 test "$program_prefix" != NONE &&
2521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE &&
2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2529
2530
2531 lispdir='${datadir}/emacs/${version}/lisp'
2532 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2533 '${datadir}/emacs/site-lisp'
2534 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2535 etcdir='${datadir}/emacs/${version}/etc'
2536 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2537 docdir='${datadir}/emacs/${version}/etc'
2538 gamedir='${localstatedir}/games/emacs'
2539
2540 gameuser=games
2541
2542
2543
2544
2545 # Check whether --with-pop was given.
2546 if test "${with_pop+set}" = set; then :
2547 withval=$with_pop;
2548 else
2549 with_pop=yes
2550 fi
2551
2552 if test "$with_pop" = yes; then
2553 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2554
2555 fi
2556
2557
2558 # Check whether --with-kerberos was given.
2559 if test "${with_kerberos+set}" = set; then :
2560 withval=$with_kerberos;
2561 else
2562 with_kerberos=no
2563 fi
2564
2565 if test "$with_kerberos" != no; then
2566 $as_echo "#define KERBEROS 1" >>confdefs.h
2567
2568 fi
2569
2570
2571 # Check whether --with-kerberos5 was given.
2572 if test "${with_kerberos5+set}" = set; then :
2573 withval=$with_kerberos5;
2574 else
2575 with_kerberos5=no
2576 fi
2577
2578 if test "${with_kerberos5}" != no; then
2579 if test "${with_kerberos}" = no; then
2580 with_kerberos=yes
2581 $as_echo "#define KERBEROS 1" >>confdefs.h
2582
2583 fi
2584
2585 $as_echo "#define KERBEROS5 1" >>confdefs.h
2586
2587 fi
2588
2589
2590 # Check whether --with-hesiod was given.
2591 if test "${with_hesiod+set}" = set; then :
2592 withval=$with_hesiod;
2593 else
2594 with_hesiod=no
2595 fi
2596
2597 if test "$with_hesiod" != no; then
2598
2599 $as_echo "#define HESIOD 1" >>confdefs.h
2600
2601 fi
2602
2603
2604 # Check whether --with-mmdf was given.
2605 if test "${with_mmdf+set}" = set; then :
2606 withval=$with_mmdf;
2607 else
2608 with_mmdf=no
2609 fi
2610
2611 if test "$with_mmdf" != no; then
2612
2613 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2614
2615 fi
2616
2617
2618 # Check whether --with-mail-unlink was given.
2619 if test "${with_mail_unlink+set}" = set; then :
2620 withval=$with_mail_unlink;
2621 else
2622 with_mail_unlink=no
2623 fi
2624
2625 if test "$with_mail_unlink" != no; then
2626
2627 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2628
2629 fi
2630
2631
2632 # Check whether --with-mailhost was given.
2633 if test "${with_mailhost+set}" = set; then :
2634 withval=$with_mailhost;
2635 cat >>confdefs.h <<_ACEOF
2636 #define MAILHOST "$withval"
2637 _ACEOF
2638
2639 fi
2640
2641
2642
2643 # Check whether --with-sound was given.
2644 if test "${with_sound+set}" = set; then :
2645 withval=$with_sound;
2646 else
2647 with_sound=yes
2648 fi
2649
2650
2651
2652 # Check whether --with-sync-input was given.
2653 if test "${with_sync_input+set}" = set; then :
2654 withval=$with_sync_input;
2655 else
2656 with_sync_input=yes
2657 fi
2658
2659 if test "$with_sync_input" = yes; then
2660
2661 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2662
2663 fi
2664
2665
2666 # Check whether --with-x-toolkit was given.
2667 if test "${with_x_toolkit+set}" = set; then :
2668 withval=$with_x_toolkit; case "${withval}" in
2669 y | ye | yes ) val=gtk ;;
2670 n | no ) val=no ;;
2671 l | lu | luc | luci | lucid ) val=lucid ;;
2672 a | at | ath | athe | athen | athena ) val=athena ;;
2673 m | mo | mot | moti | motif ) val=motif ;;
2674 g | gt | gtk ) val=gtk ;;
2675 gtk3 ) val=gtk3 ;;
2676 * )
2677 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2678 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2679 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2680 ;;
2681 esac
2682 with_x_toolkit=$val
2683
2684 fi
2685
2686
2687
2688 # Check whether --with-xpm was given.
2689 if test "${with_xpm+set}" = set; then :
2690 withval=$with_xpm;
2691 else
2692 with_xpm=yes
2693 fi
2694
2695
2696 # Check whether --with-jpeg was given.
2697 if test "${with_jpeg+set}" = set; then :
2698 withval=$with_jpeg;
2699 else
2700 with_jpeg=yes
2701 fi
2702
2703
2704 # Check whether --with-tiff was given.
2705 if test "${with_tiff+set}" = set; then :
2706 withval=$with_tiff;
2707 else
2708 with_tiff=yes
2709 fi
2710
2711
2712 # Check whether --with-gif was given.
2713 if test "${with_gif+set}" = set; then :
2714 withval=$with_gif;
2715 else
2716 with_gif=yes
2717 fi
2718
2719
2720 # Check whether --with-png was given.
2721 if test "${with_png+set}" = set; then :
2722 withval=$with_png;
2723 else
2724 with_png=yes
2725 fi
2726
2727
2728 # Check whether --with-rsvg was given.
2729 if test "${with_rsvg+set}" = set; then :
2730 withval=$with_rsvg;
2731 else
2732 with_rsvg=yes
2733 fi
2734
2735
2736
2737 # Check whether --with-xft was given.
2738 if test "${with_xft+set}" = set; then :
2739 withval=$with_xft;
2740 else
2741 with_xft=yes
2742 fi
2743
2744
2745 # Check whether --with-libotf was given.
2746 if test "${with_libotf+set}" = set; then :
2747 withval=$with_libotf;
2748 else
2749 with_libotf=yes
2750 fi
2751
2752
2753 # Check whether --with-m17n-flt was given.
2754 if test "${with_m17n_flt+set}" = set; then :
2755 withval=$with_m17n_flt;
2756 else
2757 with_m17n_flt=yes
2758 fi
2759
2760
2761
2762 # Check whether --with-toolkit-scroll-bars was given.
2763 if test "${with_toolkit_scroll_bars+set}" = set; then :
2764 withval=$with_toolkit_scroll_bars;
2765 else
2766 with_toolkit_scroll_bars=yes
2767 fi
2768
2769
2770 # Check whether --with-xaw3d was given.
2771 if test "${with_xaw3d+set}" = set; then :
2772 withval=$with_xaw3d;
2773 else
2774 with_xaw3d=yes
2775 fi
2776
2777
2778 # Check whether --with-xim was given.
2779 if test "${with_xim+set}" = set; then :
2780 withval=$with_xim;
2781 else
2782 with_xim=yes
2783 fi
2784
2785
2786 # Check whether --with-ns was given.
2787 if test "${with_ns+set}" = set; then :
2788 withval=$with_ns;
2789 else
2790 with_ns=no
2791 fi
2792
2793
2794
2795 # Check whether --with-gpm was given.
2796 if test "${with_gpm+set}" = set; then :
2797 withval=$with_gpm;
2798 else
2799 with_gpm=yes
2800 fi
2801
2802
2803 # Check whether --with-dbus was given.
2804 if test "${with_dbus+set}" = set; then :
2805 withval=$with_dbus;
2806 else
2807 with_dbus=yes
2808 fi
2809
2810
2811 # Check whether --with-gconf was given.
2812 if test "${with_gconf+set}" = set; then :
2813 withval=$with_gconf;
2814 else
2815 with_gconf=yes
2816 fi
2817
2818
2819 # Check whether --with-selinux was given.
2820 if test "${with_selinux+set}" = set; then :
2821 withval=$with_selinux;
2822 else
2823 with_selinux=yes
2824 fi
2825
2826
2827 ## For the times when you want to build Emacs but don't have
2828 ## a suitable makeinfo, and can live without the manuals.
2829
2830 # Check whether --with-makeinfo was given.
2831 if test "${with_makeinfo+set}" = set; then :
2832 withval=$with_makeinfo;
2833 else
2834 with_makeinfo=yes
2835 fi
2836
2837
2838 ## This is an option because I do not know if all info/man support
2839 ## compressed files, nor how to test if they do so.
2840
2841 # Check whether --with-compress-info was given.
2842 if test "${with_compress_info+set}" = set; then :
2843 withval=$with_compress_info;
2844 else
2845 with_compress_info=yes
2846 fi
2847
2848 if test $with_compress_info = yes; then
2849 GZIP_INFO=yes
2850 else
2851 GZIP_INFO=
2852 fi
2853
2854
2855
2856 # Check whether --with-pkg-config-prog was given.
2857 if test "${with_pkg_config_prog+set}" = set; then :
2858 withval=$with_pkg_config_prog;
2859 fi
2860
2861 if test "X${with_pkg_config_prog}" != X; then
2862 if test "${with_pkg_config_prog}" != yes; then
2863 PKG_CONFIG="${with_pkg_config_prog}"
2864 fi
2865 fi
2866
2867 CRT_DIR=
2868
2869 # Check whether --with-crt-dir was given.
2870 if test "${with_crt_dir+set}" = set; then :
2871 withval=$with_crt_dir;
2872 fi
2873
2874 CRT_DIR="${with_crt_dir}"
2875
2876
2877 # Check whether --with-gnustep-conf was given.
2878 if test "${with_gnustep_conf+set}" = set; then :
2879 withval=$with_gnustep_conf;
2880 fi
2881
2882 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2883 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2884 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2885 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2886
2887 # Check whether --enable-ns-self-contained was given.
2888 if test "${enable_ns_self_contained+set}" = set; then :
2889 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2890 else
2891 EN_NS_SELF_CONTAINED=yes
2892 fi
2893
2894
2895 # Check whether --enable-asserts was given.
2896 if test "${enable_asserts+set}" = set; then :
2897 enableval=$enable_asserts; USE_XASSERTS=$enableval
2898 else
2899 USE_XASSERTS=no
2900 fi
2901
2902
2903 # Check whether --enable-maintainer-mode was given.
2904 if test "${enable_maintainer_mode+set}" = set; then :
2905 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2906 else
2907 USE_MAINTAINER_MODE=no
2908 fi
2909
2910 if test $USE_MAINTAINER_MODE = yes; then
2911 MAINT=
2912 else
2913 MAINT=#
2914 fi
2915
2916
2917 # Check whether --enable-locallisppath was given.
2918 if test "${enable_locallisppath+set}" = set; then :
2919 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2920 locallisppath=
2921 elif test "${enableval}" != "yes"; then
2922 locallisppath=${enableval}
2923 fi
2924 fi
2925
2926
2927 # Check whether --enable-checking was given.
2928 if test "${enable_checking+set}" = set; then :
2929 enableval=$enable_checking; ac_checking_flags="${enableval}"
2930 fi
2931
2932 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2933 for check in $ac_checking_flags
2934 do
2935 case $check in
2936 # these set all the flags to specific states
2937 yes) ac_enable_checking=1 ;;
2938 no) ac_enable_checking= ;
2939 ac_gc_check_stringbytes= ;
2940 ac_gc_check_string_overrun= ;
2941 ac_gc_check_string_free_list= ;
2942 ac_xmalloc_overrun= ;
2943 ac_gc_check_cons_list= ;;
2944 all) ac_enable_checking=1 ;
2945 ac_gc_check_stringbytes=1 ;
2946 ac_gc_check_string_overrun=1 ;
2947 ac_gc_check_string_free_list=1 ;
2948 ac_xmalloc_overrun=1 ;
2949 ac_gc_check_cons_list=1 ;;
2950 # these enable particular checks
2951 stringbytes) ac_gc_check_stringbytes=1 ;;
2952 stringoverrun) ac_gc_check_string_overrun=1 ;;
2953 stringfreelist) ac_gc_check_string_free_list=1 ;;
2954 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2955 conslist) ac_gc_check_cons_list=1 ;;
2956 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
2957 esac
2958 done
2959 IFS="$ac_save_IFS"
2960
2961 if test x$ac_enable_checking != x ; then
2962
2963 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2964
2965 fi
2966 if test x$ac_gc_check_stringbytes != x ; then
2967
2968 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2969
2970 fi
2971 if test x$ac_gc_check_stringoverrun != x ; then
2972
2973 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2974
2975 fi
2976 if test x$ac_gc_check_string_free_list != x ; then
2977
2978 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2979
2980 fi
2981 if test x$ac_xmalloc_overrun != x ; then
2982
2983 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2984
2985 fi
2986 if test x$ac_gc_check_cons_list != x ; then
2987
2988 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2989
2990 fi
2991
2992 # Check whether --enable-use-lisp-union-type was given.
2993 if test "${enable_use_lisp_union_type+set}" = set; then :
2994 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
2995
2996 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
2997
2998 fi
2999 fi
3000
3001
3002
3003 # Check whether --enable-profiling was given.
3004 if test "${enable_profiling+set}" = set; then :
3005 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3006 fi
3007
3008 if test x$ac_enable_profiling != x ; then
3009 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3010 PROFILING_LDFLAGS="-pg"
3011 else
3012 PROFILING_CFLAGS=
3013 PROFILING_LDFLAGS=
3014 fi
3015
3016 # Check whether --enable-autodepend was given.
3017 if test "${enable_autodepend+set}" = set; then :
3018 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3019 else
3020 ac_enable_autodepend=yes
3021 fi
3022
3023
3024 #### Make srcdir absolute, if it isn't already. It's important to
3025 #### avoid running the path through pwd unnecessarily, since pwd can
3026 #### give you automounter prefixes, which can go away. We do all this
3027 #### so Emacs can find its files when run uninstalled.
3028 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3029 unset CDPATH
3030 case "${srcdir}" in
3031 /* ) ;;
3032 . )
3033 ## We may be able to use the $PWD environment variable to make this
3034 ## absolute. But sometimes PWD is inaccurate.
3035 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3036 ## but that tested only for a well-formed and valid PWD,
3037 ## it did not object when PWD was well-formed and valid but just wrong.
3038 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3039 then
3040 srcdir="$PWD"
3041 else
3042 srcdir="`(cd ${srcdir}; pwd)`"
3043 fi
3044 ;;
3045 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3046 esac
3047
3048 #### Check if the source directory already has a configured system in it.
3049 if test `pwd` != `(cd ${srcdir} && pwd)` \
3050 && test -f "${srcdir}/src/config.h" ; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3052 as a build directory right now; it has been configured in its own
3053 right. To configure in another directory as well, you MUST
3054 use GNU make. If you do not have GNU make, then you must
3055 now do \`make distclean' in ${srcdir},
3056 and then run $0 again." >&5
3057 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3058 as a build directory right now; it has been configured in its own
3059 right. To configure in another directory as well, you MUST
3060 use GNU make. If you do not have GNU make, then you must
3061 now do \`make distclean' in ${srcdir},
3062 and then run $0 again." >&2;}
3063 fi
3064
3065 #### Given the configuration name, set machfile and opsysfile to the
3066 #### names of the m/*.h and s/*.h files we should use.
3067
3068 ### Canonicalize the configuration name.
3069
3070 ac_aux_dir=
3071 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3072 if test -f "$ac_dir/install-sh"; then
3073 ac_aux_dir=$ac_dir
3074 ac_install_sh="$ac_aux_dir/install-sh -c"
3075 break
3076 elif test -f "$ac_dir/install.sh"; then
3077 ac_aux_dir=$ac_dir
3078 ac_install_sh="$ac_aux_dir/install.sh -c"
3079 break
3080 elif test -f "$ac_dir/shtool"; then
3081 ac_aux_dir=$ac_dir
3082 ac_install_sh="$ac_aux_dir/shtool install -c"
3083 break
3084 fi
3085 done
3086 if test -z "$ac_aux_dir"; then
3087 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3088 fi
3089
3090 # These three variables are undocumented and unsupported,
3091 # and are intended to be withdrawn in a future Autoconf release.
3092 # They can cause serious problems if a builder's source tree is in a directory
3093 # whose full name contains unusual characters.
3094 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3095 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3096 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3097
3098
3099 # Make sure we can run config.sub.
3100 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3101 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3102
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3104 $as_echo_n "checking build system type... " >&6; }
3105 if test "${ac_cv_build+set}" = set; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 ac_build_alias=$build_alias
3109 test "x$ac_build_alias" = x &&
3110 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3111 test "x$ac_build_alias" = x &&
3112 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3113 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3114 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3115
3116 fi
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3118 $as_echo "$ac_cv_build" >&6; }
3119 case $ac_cv_build in
3120 *-*-*) ;;
3121 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3122 esac
3123 build=$ac_cv_build
3124 ac_save_IFS=$IFS; IFS='-'
3125 set x $ac_cv_build
3126 shift
3127 build_cpu=$1
3128 build_vendor=$2
3129 shift; shift
3130 # Remember, the first character of IFS is used to create $*,
3131 # except with old shells:
3132 build_os=$*
3133 IFS=$ac_save_IFS
3134 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3135
3136
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3138 $as_echo_n "checking host system type... " >&6; }
3139 if test "${ac_cv_host+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test "x$host_alias" = x; then
3143 ac_cv_host=$ac_cv_build
3144 else
3145 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3146 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3147 fi
3148
3149 fi
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3151 $as_echo "$ac_cv_host" >&6; }
3152 case $ac_cv_host in
3153 *-*-*) ;;
3154 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3155 esac
3156 host=$ac_cv_host
3157 ac_save_IFS=$IFS; IFS='-'
3158 set x $ac_cv_host
3159 shift
3160 host_cpu=$1
3161 host_vendor=$2
3162 shift; shift
3163 # Remember, the first character of IFS is used to create $*,
3164 # except with old shells:
3165 host_os=$*
3166 IFS=$ac_save_IFS
3167 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3168
3169
3170 canonical=$host
3171 configuration=${host_alias-${build_alias-$host}}
3172
3173
3174
3175 ### If you add support for a new configuration, add code to this
3176 ### switch statement to recognize your configuration name and select
3177 ### the appropriate operating system and machine description files.
3178
3179 ### You would hope that you could choose an m/*.h file pretty much
3180 ### based on the machine portion of the configuration name, and an s/*.h
3181 ### file based on the operating system portion. However, it turns out
3182 ### that each m/*.h file is pretty manufacturer-specific - for
3183 ### example mips.h is MIPS
3184 ### So we basically have to have a special case for each
3185 ### configuration name.
3186 ###
3187 ### As far as handling version numbers on operating systems is
3188 ### concerned, make sure things will fail in a fixable way. If
3189 ### /etc/MACHINES doesn't say anything about version numbers, be
3190 ### prepared to handle anything reasonably. If version numbers
3191 ### matter, be sure /etc/MACHINES says something about it.
3192
3193 machine='' opsys='' unported=no
3194 case "${canonical}" in
3195
3196 ## FreeBSD ports
3197 *-*-freebsd* )
3198 opsys=freebsd
3199 case "${canonical}" in
3200 alpha*) machine=alpha ;;
3201 amd64-*|x86_64-*) machine=amdx86-64 ;;
3202 arm*) machine=arm ;;
3203 ia64-*) machine=ia64 ;;
3204 i[3456]86-*) machine=intel386 ;;
3205 powerpc-*) machine=macppc ;;
3206 sparc-*) machine=sparc ;;
3207 sparc64-*) machine=sparc ;;
3208 esac
3209 ;;
3210
3211 ## FreeBSD kernel + glibc based userland
3212 *-*-kfreebsd*gnu* )
3213 opsys=gnu-kfreebsd
3214 case "${canonical}" in
3215 alpha*) machine=alpha ;;
3216 amd64-*|x86_64-*) machine=amdx86-64 ;;
3217 ia64-*) machine=ia64 ;;
3218 i[3456]86-*) machine=intel386 ;;
3219 powerpc-*) machine=macppc ;;
3220 sparc-*) machine=sparc ;;
3221 sparc64-*) machine=sparc ;;
3222 esac
3223 ;;
3224
3225 ## NetBSD ports
3226 *-*-netbsd* )
3227 opsys=netbsd
3228 case "${canonical}" in
3229 alpha*) machine=alpha ;;
3230 x86_64-*) machine=amdx86-64 ;;
3231 arm-*) machine=arm ;;
3232 hppa-*) machine=hp800 ;;
3233 i[3456]86-*) machine=intel386 ;;
3234 m68k-*) machine=m68k ;;
3235 powerpc-*) machine=macppc ;;
3236 mips-*) machine=mips ;;
3237 mipse[bl]-*) machine=mips ;;
3238 sparc*-) machine=sparc ;;
3239 vax-*) machine=vax ;;
3240 esac
3241 ;;
3242
3243 ## OpenBSD ports
3244 *-*-openbsd* )
3245 opsys=openbsd
3246 case "${canonical}" in
3247 alpha*) machine=alpha ;;
3248 x86_64-*) machine=amdx86-64 ;;
3249 arm-*) machine=arm ;;
3250 hppa-*) machine=hp800 ;;
3251 i386-*) machine=intel386 ;;
3252 powerpc-*) machine=macppc ;;
3253 sparc*) machine=sparc ;;
3254 vax-*) machine=vax ;;
3255 esac
3256 ;;
3257
3258 alpha*-*-linux-gnu* )
3259 machine=alpha opsys=gnu-linux
3260 ;;
3261
3262 arm*-*-linux-gnu* )
3263 machine=arm opsys=gnu-linux
3264 ;;
3265
3266 ## Apple Darwin / Mac OS X
3267 *-apple-darwin* )
3268 case "${canonical}" in
3269 i[3456]86-* ) machine=intel386 ;;
3270 powerpc-* ) machine=macppc ;;
3271 x86_64-* ) machine=amdx86-64 ;;
3272 * ) unported=yes ;;
3273 esac
3274 opsys=darwin
3275 # Define CPP as follows to make autoconf work correctly.
3276 CPP="${CC-cc} -E -no-cpp-precomp"
3277 # Use fink packages if available.
3278 if test -d /sw/include && test -d /sw/lib; then
3279 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3280 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3281 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3282 fi
3283 ;;
3284
3285 ## HP 9000 series 700 and 800, running HP/UX
3286 hppa*-hp-hpux10.2* )
3287 machine=hp800 opsys=hpux10-20
3288 ;;
3289 hppa*-hp-hpux1[1-9]* )
3290 machine=hp800 opsys=hpux11
3291 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3292 ;;
3293
3294 hppa*-*-linux-gnu* )
3295 machine=hp800 opsys=gnu-linux
3296 ;;
3297
3298 ## IBM machines
3299 s390-*-linux-gnu* )
3300 machine=ibms390 opsys=gnu-linux
3301 ;;
3302 s390x-*-linux-gnu* )
3303 machine=ibms390x opsys=gnu-linux
3304 ;;
3305 rs6000-ibm-aix4.[23]* )
3306 machine=ibmrs6000 opsys=aix4-2
3307 ;;
3308 powerpc-ibm-aix4.[23]* )
3309 machine=ibmrs6000 opsys=aix4-2
3310 ;;
3311 rs6000-ibm-aix[56]* )
3312 machine=ibmrs6000 opsys=aix4-2
3313 ;;
3314 powerpc-ibm-aix[56]* )
3315 machine=ibmrs6000 opsys=aix4-2
3316 ;;
3317
3318 ## Macintosh PowerPC
3319 powerpc*-*-linux-gnu* )
3320 machine=macppc opsys=gnu-linux
3321 ;;
3322
3323 ## Silicon Graphics machines
3324 ## Iris 4D
3325 mips-sgi-irix6.5 )
3326 machine=iris4d opsys=irix6-5
3327 # Without defining _LANGUAGE_C, things get masked out in the headers
3328 # so that, for instance, grepping for `free' in stdlib.h fails and
3329 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3330 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3331 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3332 ;;
3333
3334 ## Suns
3335 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3336 machine=sparc opsys=gnu-linux
3337 ;;
3338
3339 *-sun-solaris* \
3340 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3341 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3342 case "${canonical}" in
3343 i[3456]86-*-* ) machine=intel386 ;;
3344 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3345 sparc* ) machine=sparc ;;
3346 * ) unported=yes ;;
3347 esac
3348 case "${canonical}" in
3349 *-sunos5.6* | *-solaris2.6* )
3350 opsys=sol2-6
3351 NON_GNU_CPP=/usr/ccs/lib/cpp
3352 RANLIB="ar -ts"
3353 ;;
3354 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3355 opsys=sol2-6
3356 emacs_check_sunpro_c=yes
3357 NON_GNU_CPP=/usr/ccs/lib/cpp
3358 ;;
3359 *-sunos5* | *-solaris* )
3360 opsys=sol2-10
3361 emacs_check_sunpro_c=yes
3362 NON_GNU_CPP=/usr/ccs/lib/cpp
3363 ;;
3364 esac
3365 ## Watch out for a compiler that we know will not work.
3366 case "${canonical}" in
3367 *-solaris* | *-sunos5* )
3368 if [ "x$CC" = x/usr/ucb/cc ]; then
3369 ## /usr/ucb/cc doesn't work;
3370 ## we should find some other compiler that does work.
3371 unset CC
3372 fi
3373 ;;
3374 *) ;;
3375 esac
3376 ;;
3377
3378 ## IA-64
3379 ia64*-*-linux* )
3380 machine=ia64 opsys=gnu-linux
3381 ;;
3382
3383 ## Intel 386 machines where we don't care about the manufacturer.
3384 i[3456]86-*-* )
3385 machine=intel386
3386 case "${canonical}" in
3387 *-cygwin ) opsys=cygwin ;;
3388 *-darwin* ) opsys=darwin
3389 CPP="${CC-cc} -E -no-cpp-precomp"
3390 ;;
3391 *-linux-gnu* ) opsys=gnu-linux ;;
3392 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3393 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3394 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3395 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3396 esac
3397 ;;
3398
3399 ## m68k Linux-based GNU system
3400 m68k-*-linux-gnu* )
3401 machine=m68k opsys=gnu-linux
3402 ;;
3403
3404 ## Mips Linux-based GNU system
3405 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3406 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3407 machine=mips opsys=gnu-linux
3408 ;;
3409
3410 ## AMD x86-64 Linux-based GNU system
3411 x86_64-*-linux-gnu* )
3412 machine=amdx86-64 opsys=gnu-linux
3413 ;;
3414
3415 ## Tensilica Xtensa Linux-based GNU system
3416 xtensa*-*-linux-gnu* )
3417 machine=xtensa opsys=gnu-linux
3418 ;;
3419
3420 ## SuperH Linux-based GNU system
3421 sh[34]*-*-linux-gnu* )
3422 machine=sh3 opsys=gnu-linux
3423 ;;
3424
3425 * )
3426 unported=yes
3427 ;;
3428 esac
3429
3430 ### If the code above didn't choose an operating system, just choose
3431 ### an operating system based on the configuration name. You really
3432 ### only want to use this when you have no idea what the right
3433 ### operating system is; if you know what operating systems a machine
3434 ### runs, it's cleaner to make it explicit in the case statement
3435 ### above.
3436 if test x"${opsys}" = x; then
3437 case "${canonical}" in
3438 *-gnu* ) opsys=gnu ;;
3439 * )
3440 unported=yes
3441 ;;
3442 esac
3443 fi
3444
3445
3446
3447 if test $unported = yes; then
3448 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3449 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3450 fi
3451
3452 machfile="m/${machine}.h"
3453 opsysfile="s/${opsys}.h"
3454
3455
3456 #### Choose a compiler.
3457 test -n "$CC" && cc_specified=yes
3458
3459 # Save the value of CFLAGS that the user specified.
3460 SPECIFIED_CFLAGS="$CFLAGS"
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_CC+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489 done
3490 done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3503
3504
3505 fi
3506 if test -z "$ac_cv_prog_CC"; then
3507 ac_ct_CC=$CC
3508 # Extract the first word of "gcc", so it can be a program name with args.
3509 set dummy gcc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_ac_ct_CC="gcc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536 if test -n "$ac_ct_CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3538 $as_echo "$ac_ct_CC" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544 if test "x$ac_ct_CC" = x; then
3545 CC=""
3546 else
3547 case $cross_compiling:$ac_tool_warned in
3548 yes:)
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3551 ac_tool_warned=yes ;;
3552 esac
3553 CC=$ac_ct_CC
3554 fi
3555 else
3556 CC="$ac_cv_prog_CC"
3557 fi
3558
3559 if test -z "$CC"; then
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}cc; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_CC+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_CC="${ac_tool_prefix}cc"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582 done
3583 done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598 fi
3599 fi
3600 if test -z "$CC"; then
3601 # Extract the first word of "cc", so it can be a program name with args.
3602 set dummy cc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_CC+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 ac_prog_rejected=no
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3620 ac_prog_rejected=yes
3621 continue
3622 fi
3623 ac_cv_prog_CC="cc"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 if test $ac_prog_rejected = yes; then
3632 # We found a bogon in the path, so make sure we never use it.
3633 set dummy $ac_cv_prog_CC
3634 shift
3635 if test $# != 0; then
3636 # We chose a different compiler from the bogus one.
3637 # However, it has the same basename, so the bogon will be chosen
3638 # first if we set CC to just the basename; use the full file name.
3639 shift
3640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3641 fi
3642 fi
3643 fi
3644 fi
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 fi
3653
3654
3655 fi
3656 if test -z "$CC"; then
3657 if test -n "$ac_tool_prefix"; then
3658 for ac_prog in cl.exe
3659 do
3660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if test "${ac_cv_prog_CC+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC="$CC" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681 done
3682 done
3683 IFS=$as_save_IFS
3684
3685 fi
3686 fi
3687 CC=$ac_cv_prog_CC
3688 if test -n "$CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 $as_echo "$CC" >&6; }
3691 else
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 fi
3695
3696
3697 test -n "$CC" && break
3698 done
3699 fi
3700 if test -z "$CC"; then
3701 ac_ct_CC=$CC
3702 for ac_prog in cl.exe
3703 do
3704 # Extract the first word of "$ac_prog", so it can be a program name with args.
3705 set dummy $ac_prog; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -n "$ac_ct_CC"; then
3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_CC="$ac_prog"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3724 fi
3725 done
3726 done
3727 IFS=$as_save_IFS
3728
3729 fi
3730 fi
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3734 $as_echo "$ac_ct_CC" >&6; }
3735 else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 fi
3739
3740
3741 test -n "$ac_ct_CC" && break
3742 done
3743
3744 if test "x$ac_ct_CC" = x; then
3745 CC=""
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748 yes:)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 CC=$ac_ct_CC
3754 fi
3755 fi
3756
3757 fi
3758
3759
3760 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762 as_fn_error $? "no acceptable C compiler found in \$PATH
3763 See \`config.log' for more details" "$LINENO" 5; }
3764
3765 # Provide some information about the compiler.
3766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3767 set X $ac_compile
3768 ac_compiler=$2
3769 for ac_option in --version -v -V -qversion; do
3770 { { ac_try="$ac_compiler $ac_option >&5"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3778 ac_status=$?
3779 if test -s conftest.err; then
3780 sed '10a\
3781 ... rest of stderr output deleted ...
3782 10q' conftest.err >conftest.er1
3783 cat conftest.er1 >&5
3784 fi
3785 rm -f conftest.er1 conftest.err
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }
3788 done
3789
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792
3793 int
3794 main ()
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 ac_clean_files_save=$ac_clean_files
3802 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3803 # Try to create an executable without -o first, disregard a.out.
3804 # It will help us diagnose broken compilers, and finding out an intuition
3805 # of exeext.
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3807 $as_echo_n "checking whether the C compiler works... " >&6; }
3808 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3809
3810 # The possible output files:
3811 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3812
3813 ac_rmfiles=
3814 for ac_file in $ac_files
3815 do
3816 case $ac_file in
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3818 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3819 esac
3820 done
3821 rm -f $ac_rmfiles
3822
3823 if { { ac_try="$ac_link_default"
3824 case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830 (eval "$ac_link_default") 2>&5
3831 ac_status=$?
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }; then :
3834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3835 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3836 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3837 # so that the user can short-circuit this test for compilers unknown to
3838 # Autoconf.
3839 for ac_file in $ac_files ''
3840 do
3841 test -f "$ac_file" || continue
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3844 ;;
3845 [ab].out )
3846 # We found the default executable, but exeext='' is most
3847 # certainly right.
3848 break;;
3849 *.* )
3850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3851 then :; else
3852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853 fi
3854 # We set ac_cv_exeext here because the later test for it is not
3855 # safe: cross compilers may not add the suffix if given an `-o'
3856 # argument, so we may need to know it at that point already.
3857 # Even if this section looks crufty: it has the advantage of
3858 # actually working.
3859 break;;
3860 * )
3861 break;;
3862 esac
3863 done
3864 test "$ac_cv_exeext" = no && ac_cv_exeext=
3865
3866 else
3867 ac_file=''
3868 fi
3869 if test -z "$ac_file"; then :
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error 77 "C compiler cannot create executables
3878 See \`config.log' for more details" "$LINENO" 5; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3881 $as_echo "yes" >&6; }
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3884 $as_echo_n "checking for C compiler default output file name... " >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3886 $as_echo "$ac_file" >&6; }
3887 ac_exeext=$ac_cv_exeext
3888
3889 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3890 ac_clean_files=$ac_clean_files_save
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3892 $as_echo_n "checking for suffix of executables... " >&6; }
3893 if { { ac_try="$ac_link"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_link") 2>&5
3901 ac_status=$?
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3906 # work properly (i.e., refer to `conftest.exe'), while it won't with
3907 # `rm'.
3908 for ac_file in conftest.exe conftest conftest.*; do
3909 test -f "$ac_file" || continue
3910 case $ac_file in
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3913 break;;
3914 * ) break;;
3915 esac
3916 done
3917 else
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3921 See \`config.log' for more details" "$LINENO" 5; }
3922 fi
3923 rm -f conftest conftest$ac_cv_exeext
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3925 $as_echo "$ac_cv_exeext" >&6; }
3926
3927 rm -f conftest.$ac_ext
3928 EXEEXT=$ac_cv_exeext
3929 ac_exeext=$EXEEXT
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932 #include <stdio.h>
3933 int
3934 main ()
3935 {
3936 FILE *f = fopen ("conftest.out", "w");
3937 return ferror (f) || fclose (f) != 0;
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 ac_clean_files="$ac_clean_files conftest.out"
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 if test "$cross_compiling" != yes; then
3949 { { ac_try="$ac_link"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_link") 2>&5
3957 ac_status=$?
3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }
3960 if { ac_try='./conftest$ac_cv_exeext'
3961 { { case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_try") 2>&5
3968 ac_status=$?
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; }; then
3971 cross_compiling=no
3972 else
3973 if test "$cross_compiling" = maybe; then
3974 cross_compiling=yes
3975 else
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error $? "cannot run C compiled programs.
3979 If you meant to cross compile, use \`--host'.
3980 See \`config.log' for more details" "$LINENO" 5; }
3981 fi
3982 fi
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3985 $as_echo "$cross_compiling" >&6; }
3986
3987 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3988 ac_clean_files=$ac_clean_files_save
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if test "${ac_cv_objext+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4019 case $ac_file in
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 break;;
4023 esac
4024 done
4025 else
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error $? "cannot compute suffix of object files: cannot compile
4032 See \`config.log' for more details" "$LINENO" 5; }
4033 fi
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4039 ac_objext=$OBJEXT
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051 #ifndef __GNUC__
4052 choke me
4053 #endif
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_compiler_gnu=yes
4061 else
4062 ac_compiler_gnu=no
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4071 GCC=yes
4072 else
4073 GCC=
4074 fi
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 ac_cv_prog_cc_g=no
4085 CFLAGS="-g"
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088
4089 int
4090 main ()
4091 {
4092
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_g=yes
4099 else
4100 CFLAGS=""
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113
4114 else
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4116 CFLAGS="-g"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main ()
4122 {
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_g=yes
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4144 CFLAGS="-g -O2"
4145 else
4146 CFLAGS="-g"
4147 fi
4148 else
4149 if test "$GCC" = yes; then
4150 CFLAGS="-O2"
4151 else
4152 CFLAGS=
4153 fi
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_cv_prog_cc_c89=no
4161 ac_save_CC=$CC
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #include <stdarg.h>
4165 #include <stdio.h>
4166 #include <sys/types.h>
4167 #include <sys/stat.h>
4168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169 struct buf { int x; };
4170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171 static char *e (p, i)
4172 char **p;
4173 int i;
4174 {
4175 return p[i];
4176 }
4177 static char *f (char * (*g) (char **, int), char **p, ...)
4178 {
4179 char *s;
4180 va_list v;
4181 va_start (v,p);
4182 s = g (p, va_arg (v,int));
4183 va_end (v);
4184 return s;
4185 }
4186
4187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188 function prototypes and stuff, but not '\xHH' hex character constants.
4189 These don't provoke an error unfortunately, instead are silently treated
4190 as 'x'. The following induces an error, until -std is added to get
4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192 array size at least. It's necessary to write '\x00'==0 to get something
4193 that's true only with -std. */
4194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195
4196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197 inside strings and character constants. */
4198 #define FOO(x) 'x'
4199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200
4201 int test (int i, double x);
4202 struct s1 {int (*f) (int a);};
4203 struct s2 {int (*f) (double a);};
4204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205 int argc;
4206 char **argv;
4207 int
4208 main ()
4209 {
4210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 do
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c89=$ac_arg
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 done
4225 rm -f conftest.$ac_ext
4226 CC=$ac_save_CC
4227
4228 fi
4229 # AC_CACHE_VAL
4230 case "x$ac_cv_prog_cc_c89" in
4231 x)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4234 xno)
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4237 *)
4238 CC="$CC $ac_cv_prog_cc_c89"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 esac
4242 if test "x$ac_cv_prog_cc_c89" != xno; then :
4243
4244 fi
4245
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
4252
4253 # On Suns, sometimes $CPP names a directory.
4254 if test -n "$CPP" && test -d "$CPP"; then
4255 CPP=
4256 fi
4257
4258 ## If not using gcc, and on Solaris, and no CPP specified, see if
4259 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4260 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4261 test x"$CPP" = x; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4263 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4264
4265 if test "${emacs_cv_sunpro_c+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270
4271 int
4272 main ()
4273 {
4274 #ifndef __SUNPRO_C
4275 fail;
4276 #endif
4277
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 if ac_fn_c_try_link "$LINENO"; then :
4283 emacs_cv_sunpro_c=yes
4284 else
4285 emacs_cv_sunpro_c=no
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext \
4288 conftest$ac_exeext conftest.$ac_ext
4289 fi
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4292 $as_echo "$emacs_cv_sunpro_c" >&6; }
4293
4294 if test x"$emacs_cv_sunpro_c" = xyes; then
4295 NON_GNU_CPP="$CC -E -Xs"
4296 fi
4297 fi
4298
4299 #### Some systems specify a CPP to use unless we are using GCC.
4300 #### Now that we know whether we are using GCC, we can decide whether
4301 #### to use that one.
4302 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4303 then
4304 CPP="$NON_GNU_CPP"
4305 fi
4306
4307 #### Some systems specify a CC to use unless we are using GCC.
4308 #### Now that we know whether we are using GCC, we can decide whether
4309 #### to use that one.
4310 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4311 test x$cc_specified != xyes
4312 then
4313 CC="$NON_GNU_CC"
4314 fi
4315
4316 if test x$GCC = xyes; then
4317 C_OPTIMIZE_SWITCH=-O2
4318 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4319 else
4320 C_OPTIMIZE_SWITCH=-O
4321 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4322 fi
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4330 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4331 # On Suns, sometimes $CPP names a directory.
4332 if test -n "$CPP" && test -d "$CPP"; then
4333 CPP=
4334 fi
4335 if test -z "$CPP"; then
4336 if test "${ac_cv_prog_CPP+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 # Double quotes because CPP needs to be expanded
4340 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4341 do
4342 ac_preproc_ok=false
4343 for ac_c_preproc_warn_flag in '' yes
4344 do
4345 # Use a header file that comes with gcc, so configuring glibc
4346 # with a fresh cross-compiler works.
4347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4348 # <limits.h> exists even on freestanding compilers.
4349 # On the NeXT, cc -E runs the code through the compiler's parser,
4350 # not just through cpp. "Syntax error" is here to catch this case.
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 #ifdef __STDC__
4354 # include <limits.h>
4355 #else
4356 # include <assert.h>
4357 #endif
4358 Syntax error
4359 _ACEOF
4360 if ac_fn_c_try_cpp "$LINENO"; then :
4361
4362 else
4363 # Broken: fails on valid input.
4364 continue
4365 fi
4366 rm -f conftest.err conftest.$ac_ext
4367
4368 # OK, works on sane cases. Now check whether nonexistent headers
4369 # can be detected and how.
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #include <ac_nonexistent.h>
4373 _ACEOF
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4375 # Broken: success on invalid input.
4376 continue
4377 else
4378 # Passes both tests.
4379 ac_preproc_ok=:
4380 break
4381 fi
4382 rm -f conftest.err conftest.$ac_ext
4383
4384 done
4385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386 rm -f conftest.err conftest.$ac_ext
4387 if $ac_preproc_ok; then :
4388 break
4389 fi
4390
4391 done
4392 ac_cv_prog_CPP=$CPP
4393
4394 fi
4395 CPP=$ac_cv_prog_CPP
4396 else
4397 ac_cv_prog_CPP=$CPP
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4400 $as_echo "$CPP" >&6; }
4401 ac_preproc_ok=false
4402 for ac_c_preproc_warn_flag in '' yes
4403 do
4404 # Use a header file that comes with gcc, so configuring glibc
4405 # with a fresh cross-compiler works.
4406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4407 # <limits.h> exists even on freestanding compilers.
4408 # On the NeXT, cc -E runs the code through the compiler's parser,
4409 # not just through cpp. "Syntax error" is here to catch this case.
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412 #ifdef __STDC__
4413 # include <limits.h>
4414 #else
4415 # include <assert.h>
4416 #endif
4417 Syntax error
4418 _ACEOF
4419 if ac_fn_c_try_cpp "$LINENO"; then :
4420
4421 else
4422 # Broken: fails on valid input.
4423 continue
4424 fi
4425 rm -f conftest.err conftest.$ac_ext
4426
4427 # OK, works on sane cases. Now check whether nonexistent headers
4428 # can be detected and how.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <ac_nonexistent.h>
4432 _ACEOF
4433 if ac_fn_c_try_cpp "$LINENO"; then :
4434 # Broken: success on invalid input.
4435 continue
4436 else
4437 # Passes both tests.
4438 ac_preproc_ok=:
4439 break
4440 fi
4441 rm -f conftest.err conftest.$ac_ext
4442
4443 done
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.err conftest.$ac_ext
4446 if $ac_preproc_ok; then :
4447
4448 else
4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4452 See \`config.log' for more details" "$LINENO" 5; }
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4463 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4464 if test "${ac_cv_path_GREP+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -z "$GREP"; then
4468 ac_path_GREP_found=false
4469 # Loop through the user's path and test for each of PROGNAME-LIST
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_prog in grep ggrep; do
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4479 # Check for GNU ac_path_GREP and select it if it is found.
4480 # Check for GNU $ac_path_GREP
4481 case `"$ac_path_GREP" --version 2>&1` in
4482 *GNU*)
4483 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4484 *)
4485 ac_count=0
4486 $as_echo_n 0123456789 >"conftest.in"
4487 while :
4488 do
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 $as_echo 'GREP' >> "conftest.nl"
4493 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495 as_fn_arith $ac_count + 1 && ac_count=$as_val
4496 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_GREP="$ac_path_GREP"
4499 ac_path_GREP_max=$ac_count
4500 fi
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4503 done
4504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505 esac
4506
4507 $ac_path_GREP_found && break 3
4508 done
4509 done
4510 done
4511 IFS=$as_save_IFS
4512 if test -z "$ac_cv_path_GREP"; then
4513 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4514 fi
4515 else
4516 ac_cv_path_GREP=$GREP
4517 fi
4518
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4521 $as_echo "$ac_cv_path_GREP" >&6; }
4522 GREP="$ac_cv_path_GREP"
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4526 $as_echo_n "checking for egrep... " >&6; }
4527 if test "${ac_cv_path_EGREP+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4531 then ac_cv_path_EGREP="$GREP -E"
4532 else
4533 if test -z "$EGREP"; then
4534 ac_path_EGREP_found=false
4535 # Loop through the user's path and test for each of PROGNAME-LIST
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_prog in egrep; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4544 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4545 # Check for GNU ac_path_EGREP and select it if it is found.
4546 # Check for GNU $ac_path_EGREP
4547 case `"$ac_path_EGREP" --version 2>&1` in
4548 *GNU*)
4549 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4550 *)
4551 ac_count=0
4552 $as_echo_n 0123456789 >"conftest.in"
4553 while :
4554 do
4555 cat "conftest.in" "conftest.in" >"conftest.tmp"
4556 mv "conftest.tmp" "conftest.in"
4557 cp "conftest.in" "conftest.nl"
4558 $as_echo 'EGREP' >> "conftest.nl"
4559 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561 as_fn_arith $ac_count + 1 && ac_count=$as_val
4562 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4563 # Best one so far, save it but keep looking for a better one
4564 ac_cv_path_EGREP="$ac_path_EGREP"
4565 ac_path_EGREP_max=$ac_count
4566 fi
4567 # 10*(2^10) chars as input seems more than enough
4568 test $ac_count -gt 10 && break
4569 done
4570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571 esac
4572
4573 $ac_path_EGREP_found && break 3
4574 done
4575 done
4576 done
4577 IFS=$as_save_IFS
4578 if test -z "$ac_cv_path_EGREP"; then
4579 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4580 fi
4581 else
4582 ac_cv_path_EGREP=$EGREP
4583 fi
4584
4585 fi
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4588 $as_echo "$ac_cv_path_EGREP" >&6; }
4589 EGREP="$ac_cv_path_EGREP"
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4593 $as_echo_n "checking for ANSI C header files... " >&6; }
4594 if test "${ac_cv_header_stdc+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <stdlib.h>
4600 #include <stdarg.h>
4601 #include <string.h>
4602 #include <float.h>
4603
4604 int
4605 main ()
4606 {
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 ac_cv_header_stdc=yes
4614 else
4615 ac_cv_header_stdc=no
4616 fi
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618
4619 if test $ac_cv_header_stdc = yes; then
4620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 #include <string.h>
4624
4625 _ACEOF
4626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4627 $EGREP "memchr" >/dev/null 2>&1; then :
4628
4629 else
4630 ac_cv_header_stdc=no
4631 fi
4632 rm -f conftest*
4633
4634 fi
4635
4636 if test $ac_cv_header_stdc = yes; then
4637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 #include <stdlib.h>
4641
4642 _ACEOF
4643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4644 $EGREP "free" >/dev/null 2>&1; then :
4645
4646 else
4647 ac_cv_header_stdc=no
4648 fi
4649 rm -f conftest*
4650
4651 fi
4652
4653 if test $ac_cv_header_stdc = yes; then
4654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4655 if test "$cross_compiling" = yes; then :
4656 :
4657 else
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <ctype.h>
4661 #include <stdlib.h>
4662 #if ((' ' & 0x0FF) == 0x020)
4663 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4664 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4665 #else
4666 # define ISLOWER(c) \
4667 (('a' <= (c) && (c) <= 'i') \
4668 || ('j' <= (c) && (c) <= 'r') \
4669 || ('s' <= (c) && (c) <= 'z'))
4670 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4671 #endif
4672
4673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4674 int
4675 main ()
4676 {
4677 int i;
4678 for (i = 0; i < 256; i++)
4679 if (XOR (islower (i), ISLOWER (i))
4680 || toupper (i) != TOUPPER (i))
4681 return 2;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_run "$LINENO"; then :
4686
4687 else
4688 ac_cv_header_stdc=no
4689 fi
4690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4691 conftest.$ac_objext conftest.beam conftest.$ac_ext
4692 fi
4693
4694 fi
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4697 $as_echo "$ac_cv_header_stdc" >&6; }
4698 if test $ac_cv_header_stdc = yes; then
4699
4700 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4701
4702 fi
4703
4704 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4705 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4706 inttypes.h stdint.h unistd.h
4707 do :
4708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4709 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4710 "
4711 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4712 cat >>confdefs.h <<_ACEOF
4713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4714 _ACEOF
4715
4716 fi
4717
4718 done
4719
4720
4721
4722 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4723 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4724 MINIX=yes
4725 else
4726 MINIX=
4727 fi
4728
4729
4730 if test "$MINIX" = yes; then
4731
4732 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4733
4734
4735 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4736
4737
4738 $as_echo "#define _MINIX 1" >>confdefs.h
4739
4740 fi
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4744 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4745 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750
4751 # define __EXTENSIONS__ 1
4752 $ac_includes_default
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_safe_to_define___extensions__=yes
4763 else
4764 ac_cv_safe_to_define___extensions__=no
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4769 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4770 test $ac_cv_safe_to_define___extensions__ = yes &&
4771 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4772
4773 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4774
4775 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4776
4777 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4778
4779 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4780
4781
4782
4783 ### Use -Wno-pointer-sign if the compiler supports it
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4785 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4786 SAVE_CFLAGS="$CFLAGS"
4787 CFLAGS="$CFLAGS -Wno-pointer-sign"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 has_option=yes
4801 else
4802 has_option=no
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 if test $has_option = yes; then
4806 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4809 $as_echo "$has_option" >&6; }
4810 CFLAGS="$SAVE_CFLAGS"
4811 unset has_option
4812 unset SAVE_CFLAGS
4813
4814 ### Use -Wdeclaration-after-statement if the compiler supports it
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4816 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4817 SAVE_CFLAGS="$CFLAGS"
4818 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 int
4823 main ()
4824 {
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 has_option=yes
4832 else
4833 has_option=no
4834 fi
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 if test $has_option = yes; then
4837 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4840 $as_echo "$has_option" >&6; }
4841 CFLAGS="$SAVE_CFLAGS"
4842 unset has_option
4843 unset SAVE_CFLAGS
4844
4845 ### Use -Wold-style-definition if the compiler supports it
4846 # This can be removed when conversion to standard C is finished.
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4848 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4849 SAVE_CFLAGS="$CFLAGS"
4850 CFLAGS="$CFLAGS -Wold-style-definition"
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853
4854 int
4855 main ()
4856 {
4857
4858 ;
4859 return 0;
4860 }
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 has_option=yes
4864 else
4865 has_option=no
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 if test $has_option = yes; then
4869 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4872 $as_echo "$has_option" >&6; }
4873 CFLAGS="$SAVE_CFLAGS"
4874 unset has_option
4875 unset SAVE_CFLAGS
4876
4877
4878 #### Some other nice autoconf tests.
4879
4880 ac_ext=c
4881 ac_cpp='$CPP $CPPFLAGS'
4882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4886 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4887 # On Suns, sometimes $CPP names a directory.
4888 if test -n "$CPP" && test -d "$CPP"; then
4889 CPP=
4890 fi
4891 if test -z "$CPP"; then
4892 if test "${ac_cv_prog_CPP+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 # Double quotes because CPP needs to be expanded
4896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4897 do
4898 ac_preproc_ok=false
4899 for ac_c_preproc_warn_flag in '' yes
4900 do
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909 #ifdef __STDC__
4910 # include <limits.h>
4911 #else
4912 # include <assert.h>
4913 #endif
4914 Syntax error
4915 _ACEOF
4916 if ac_fn_c_try_cpp "$LINENO"; then :
4917
4918 else
4919 # Broken: fails on valid input.
4920 continue
4921 fi
4922 rm -f conftest.err conftest.$ac_ext
4923
4924 # OK, works on sane cases. Now check whether nonexistent headers
4925 # can be detected and how.
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 #include <ac_nonexistent.h>
4929 _ACEOF
4930 if ac_fn_c_try_cpp "$LINENO"; then :
4931 # Broken: success on invalid input.
4932 continue
4933 else
4934 # Passes both tests.
4935 ac_preproc_ok=:
4936 break
4937 fi
4938 rm -f conftest.err conftest.$ac_ext
4939
4940 done
4941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942 rm -f conftest.err conftest.$ac_ext
4943 if $ac_preproc_ok; then :
4944 break
4945 fi
4946
4947 done
4948 ac_cv_prog_CPP=$CPP
4949
4950 fi
4951 CPP=$ac_cv_prog_CPP
4952 else
4953 ac_cv_prog_CPP=$CPP
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4956 $as_echo "$CPP" >&6; }
4957 ac_preproc_ok=false
4958 for ac_c_preproc_warn_flag in '' yes
4959 do
4960 # Use a header file that comes with gcc, so configuring glibc
4961 # with a fresh cross-compiler works.
4962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963 # <limits.h> exists even on freestanding compilers.
4964 # On the NeXT, cc -E runs the code through the compiler's parser,
4965 # not just through cpp. "Syntax error" is here to catch this case.
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 #ifdef __STDC__
4969 # include <limits.h>
4970 #else
4971 # include <assert.h>
4972 #endif
4973 Syntax error
4974 _ACEOF
4975 if ac_fn_c_try_cpp "$LINENO"; then :
4976
4977 else
4978 # Broken: fails on valid input.
4979 continue
4980 fi
4981 rm -f conftest.err conftest.$ac_ext
4982
4983 # OK, works on sane cases. Now check whether nonexistent headers
4984 # can be detected and how.
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 #include <ac_nonexistent.h>
4988 _ACEOF
4989 if ac_fn_c_try_cpp "$LINENO"; then :
4990 # Broken: success on invalid input.
4991 continue
4992 else
4993 # Passes both tests.
4994 ac_preproc_ok=:
4995 break
4996 fi
4997 rm -f conftest.err conftest.$ac_ext
4998
4999 done
5000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001 rm -f conftest.err conftest.$ac_ext
5002 if $ac_preproc_ok; then :
5003
5004 else
5005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5007 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5008 See \`config.log' for more details" "$LINENO" 5; }
5009 fi
5010
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016
5017 # Find a good install program. We prefer a C program (faster),
5018 # so one script is as good as another. But avoid the broken or
5019 # incompatible versions:
5020 # SysV /etc/install, /usr/sbin/install
5021 # SunOS /usr/etc/install
5022 # IRIX /sbin/install
5023 # AIX /bin/install
5024 # AmigaOS /C/install, which installs bootblocks on floppy discs
5025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5028 # OS/2's system install, which has a completely different semantic
5029 # ./install, which can be erroneously created by make from ./install.sh.
5030 # Reject install programs that cannot install multiple files.
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5032 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5033 if test -z "$INSTALL"; then
5034 if test "${ac_cv_path_install+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 # Account for people who put trailing slashes in PATH elements.
5043 case $as_dir/ in #((
5044 ./ | .// | /[cC]/* | \
5045 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5046 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5047 /usr/ucb/* ) ;;
5048 *)
5049 # OSF1 and SCO ODT 3.0 have their own names for install.
5050 # Don't use installbsd from OSF since it installs stuff as root
5051 # by default.
5052 for ac_prog in ginstall scoinst install; do
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5055 if test $ac_prog = install &&
5056 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5057 # AIX install. It has an incompatible calling convention.
5058 :
5059 elif test $ac_prog = install &&
5060 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5061 # program-specific install script used by HP pwplus--don't use.
5062 :
5063 else
5064 rm -rf conftest.one conftest.two conftest.dir
5065 echo one > conftest.one
5066 echo two > conftest.two
5067 mkdir conftest.dir
5068 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5069 test -s conftest.one && test -s conftest.two &&
5070 test -s conftest.dir/conftest.one &&
5071 test -s conftest.dir/conftest.two
5072 then
5073 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5074 break 3
5075 fi
5076 fi
5077 fi
5078 done
5079 done
5080 ;;
5081 esac
5082
5083 done
5084 IFS=$as_save_IFS
5085
5086 rm -rf conftest.one conftest.two conftest.dir
5087
5088 fi
5089 if test "${ac_cv_path_install+set}" = set; then
5090 INSTALL=$ac_cv_path_install
5091 else
5092 # As a last resort, use the slow shell script. Don't cache a
5093 # value for INSTALL within a source directory, because that will
5094 # break other packages using the cache if that directory is
5095 # removed, or if the value is a relative name.
5096 INSTALL=$ac_install_sh
5097 fi
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5100 $as_echo "$INSTALL" >&6; }
5101
5102 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5103 # It thinks the first close brace ends the variable substitution.
5104 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5105
5106 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5107
5108 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5109
5110 if test "x$RANLIB" = x; then
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$RANLIB"; then
5120 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 RANLIB=$ac_cv_prog_RANLIB
5140 if test -n "$RANLIB"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5142 $as_echo "$RANLIB" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149 fi
5150 if test -z "$ac_cv_prog_RANLIB"; then
5151 ac_ct_RANLIB=$RANLIB
5152 # Extract the first word of "ranlib", so it can be a program name with args.
5153 set dummy ranlib; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -n "$ac_ct_RANLIB"; then
5160 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_prog_ac_ct_RANLIB="ranlib"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5180 if test -n "$ac_ct_RANLIB"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5182 $as_echo "$ac_ct_RANLIB" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188 if test "x$ac_ct_RANLIB" = x; then
5189 RANLIB=":"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 RANLIB=$ac_ct_RANLIB
5198 fi
5199 else
5200 RANLIB="$ac_cv_prog_RANLIB"
5201 fi
5202
5203 fi
5204
5205 ## Although we're running on an amd64 kernel, we're actually compiling for
5206 ## the x86 architecture. The user should probably have provided an
5207 ## explicit --build to `configure', but if everything else than the kernel
5208 ## is running in i386 mode, we can help them out.
5209 if test "$machine" = "amdx86-64"; then
5210 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5211 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5212
5213 fi
5214
5215 if test "$ac_cv_have_decl_i386" = "yes"; then
5216 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5217 machine=intel386
5218 machfile="m/${machine}.h"
5219 fi
5220 fi
5221
5222 # Extract the first word of "install-info", so it can be a program name with args.
5223 set dummy install-info; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 case $INSTALL_INFO in
5230 [\\/]* | ?:[\\/]*)
5231 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5232 ;;
5233 *)
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249 ;;
5250 esac
5251 fi
5252 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5253 if test -n "$INSTALL_INFO"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5255 $as_echo "$INSTALL_INFO" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 # Extract the first word of "install-info", so it can be a program name with args.
5263 set dummy install-info; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 case $INSTALL_INFO in
5270 [\\/]* | ?:[\\/]*)
5271 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5272 ;;
5273 *)
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in /usr/sbin
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289 ;;
5290 esac
5291 fi
5292 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5293 if test -n "$INSTALL_INFO"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5295 $as_echo "$INSTALL_INFO" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 # Extract the first word of "install-info", so it can be a program name with args.
5303 set dummy install-info; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 case $INSTALL_INFO in
5310 [\\/]* | ?:[\\/]*)
5311 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5312 ;;
5313 *)
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in /sbin
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5330 ;;
5331 esac
5332 fi
5333 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5334 if test -n "$INSTALL_INFO"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5336 $as_echo "$INSTALL_INFO" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342
5343 # Extract the first word of "gzip", so it can be a program name with args.
5344 set dummy gzip; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 case $GZIP_PROG in
5351 [\\/]* | ?:[\\/]*)
5352 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5353 ;;
5354 *)
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 ;;
5371 esac
5372 fi
5373 GZIP_PROG=$ac_cv_path_GZIP_PROG
5374 if test -n "$GZIP_PROG"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5376 $as_echo "$GZIP_PROG" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381
5382
5383
5384
5385 ## Need makeinfo >= 4.6 (?) to build the manuals.
5386 # Extract the first word of "makeinfo", so it can be a program name with args.
5387 set dummy makeinfo; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 case $MAKEINFO in
5394 [\\/]* | ?:[\\/]*)
5395 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5396 ;;
5397 *)
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409 done
5410 done
5411 IFS=$as_save_IFS
5412
5413 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5414 ;;
5415 esac
5416 fi
5417 MAKEINFO=$ac_cv_path_MAKEINFO
5418 if test -n "$MAKEINFO"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5420 $as_echo "$MAKEINFO" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 if test "$MAKEINFO" != "no" && \
5428 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
5429 MAKEINFO=no
5430 fi
5431
5432 ## Makeinfo is unusual. For a released Emacs, the manuals are
5433 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5434 ## therefore in the category of "special tools" not normally required, which
5435 ## configure does not have to check for (eg autoconf itself).
5436 ## In a Bazaar checkout on the other hand, the manuals are not included.
5437 ## So makeinfo is a requirement to build from Bazaar, and configure
5438 ## should test for it as it does for any other build requirement.
5439 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5440 ## with pre-built manuals, from a Bazaar checkout.
5441 if test "$MAKEINFO" = "no"; then
5442 if test "x${with_makeinfo}" = "xno"; then
5443 MAKEINFO=off
5444 elif test ! -e $srcdir/info/emacs; then
5445 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5446 source tree does not seem to have pre-built manuals in the \`info' directory.
5447 Either install a suitable version of makeinfo, or re-run configure
5448 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5449 fi
5450 fi
5451
5452
5453 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5454 then
5455 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5456 fi
5457
5458 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5459 then
5460 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5461 fi
5462
5463
5464 late_LDFLAGS=$LDFLAGS
5465 if test "$GCC" = yes; then
5466 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5467 else
5468 LDFLAGS="$LDFLAGS -znocombreloc"
5469 fi
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5472 $as_echo_n "checking for -znocombreloc... " >&6; }
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 main(){return 0;}
5476 _ACEOF
5477 if ac_fn_c_try_link "$LINENO"; then :
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 $as_echo "yes" >&6; }
5480 else
5481 LDFLAGS=$late_LDFLAGS
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext \
5486 conftest$ac_exeext conftest.$ac_ext
5487
5488 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5489
5490
5491 # The value of CPP is a quoted variable reference, so we need to do this
5492 # to get its actual value...
5493 CPP=`eval "echo $CPP"`
5494
5495
5496 ### First figure out CFLAGS (which we use for running the compiler here)
5497 ### and REAL_CFLAGS (which we use for real compilation).
5498 ### The two are the same except when using GCC where we might use
5499 ### extra warning and profiling flags.
5500
5501 ### If the CFLAGS env var is specified, we use that value
5502 ### instead of the default.
5503
5504 if test "x$SPECIFIED_CFLAGS" = x; then
5505 CFLAGS="-g $C_OPTIMIZE_SWITCH"
5506 if test x$GCC = xyes; then
5507 REAL_CFLAGS="$CFLAGS $C_WARNINGS_SWITCH $PROFILING_CFLAGS"
5508 else
5509 REAL_CFLAGS="$CFLAGS"
5510 fi
5511 else
5512 REAL_CFLAGS="$CFLAGS"
5513 fi
5514
5515
5516 CANNOT_DUMP=no
5517 case "$opsys" in
5518 your-opsys-here)
5519 CANNOT_DUMP=yes
5520
5521 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5522
5523 ;;
5524 esac
5525
5526
5527
5528 UNEXEC_OBJ=unexelf.o
5529 case "$opsys" in
5530 # MSDOS uses unexec.o
5531 # MSWindows uses unexw32.o
5532 aix4-2)
5533 UNEXEC_OBJ=unexaix.o
5534 ;;
5535 cygwin)
5536 UNEXEC_OBJ=unexcw.o
5537 ;;
5538 darwin)
5539 UNEXEC_OBJ=unexmacosx.o
5540 ;;
5541 hpux10-20 | hpux11)
5542 UNEXEC_OBJ=unexhp9k800.o
5543 ;;
5544 sol2-10)
5545 # Use the Solaris dldump() function, called from unexsol.c, to dump
5546 # emacs, instead of the generic ELF dump code found in unexelf.c.
5547 # The resulting binary has a complete symbol table, and is better
5548 # for debugging and other observability tools (debuggers, pstack, etc).
5549 #
5550 # If you encounter a problem using dldump(), please consider sending
5551 # a message to the OpenSolaris tools-linking mailing list:
5552 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5553 #
5554 # It is likely that dldump() works with older Solaris too, but this has
5555 # not been tested, so for now this change is for Solaris 10 or newer.
5556 UNEXEC_OBJ=unexsol.o
5557 ;;
5558 esac
5559
5560 LD_SWITCH_SYSTEM=
5561 case "$opsys" in
5562 freebsd)
5563 ## Let `ld' find image libs and similar things in /usr/local/lib.
5564 ## The system compiler, GCC, has apparently been modified to not
5565 ## look there, contrary to what a stock GCC would do.
5566 LD_SWITCH_SYSTEM=-L/usr/local/lib
5567 ;;
5568
5569 gnu-linux)
5570 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5571 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5572 ;;
5573
5574 netbsd)
5575 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5576 ;;
5577
5578 openbsd)
5579 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5580 ## otherwise Emacs dumps core on elf systems.
5581 LD_SWITCH_SYSTEM="-Z"
5582 ;;
5583 esac
5584
5585
5586 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5587
5588 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5589 ## which has not been defined yet. When this was handled with cpp,
5590 ## it was expanded to null when configure sourced the s/*.h file.
5591 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5592 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5593 ## (or somesuch), but because it is supposed to go at the _front_
5594 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5595 ## Compare with the gnu-linux case below, which added to the end
5596 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5597 ## LD_SWITCH_SYSTEM_TEMACS.
5598 case "$opsys" in
5599 netbsd|openbsd)
5600 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5601 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5602 esac
5603
5604
5605 C_SWITCH_MACHINE=
5606 if test "$machine" = "alpha"; then
5607 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5608 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5609
5610 fi
5611
5612 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5613 ## With ELF, make sure that all common symbols get allocated to in the
5614 ## data section. Otherwise, the dump of temacs may miss variables in
5615 ## the shared library that have been initialized. For example, with
5616 ## GNU libc, __malloc_initialized would normally be resolved to the
5617 ## shared library's .bss section, which is fatal.
5618 if test "x$GCC" = "xyes"; then
5619 C_SWITCH_MACHINE="-fno-common"
5620 else
5621 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5622 fi
5623 else
5624 UNEXEC_OBJ=unexalpha.o
5625 fi
5626 fi
5627
5628
5629
5630
5631 C_SWITCH_SYSTEM=
5632 ## Some programs in src produce warnings saying certain subprograms
5633 ## are too complex and need a MAXMEM value greater than 2000 for
5634 ## additional optimization. --nils@exp-math.uni-essen.de
5635 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5636 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5637 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5638 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5639
5640
5641
5642 LIBS_SYSTEM=
5643 case "$opsys" in
5644 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5645 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5646
5647 freebsd) LIBS_SYSTEM="-lutil" ;;
5648
5649 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5650
5651 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5652
5653 ## Motif needs -lgen.
5654 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5655 esac
5656
5657
5658
5659 ### Make sure subsequent tests use flags consistent with the build flags.
5660
5661 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5662 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5663 else
5664 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5665 fi
5666
5667
5668
5669 # Check whether --enable-largefile was given.
5670 if test "${enable_largefile+set}" = set; then :
5671 enableval=$enable_largefile;
5672 fi
5673
5674 if test "$enable_largefile" != no; then
5675
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5677 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5678 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 ac_cv_sys_largefile_CC=no
5682 if test "$GCC" != yes; then
5683 ac_save_CC=$CC
5684 while :; do
5685 # IRIX 6.2 and later do not support large files by default,
5686 # so use the C compiler's -n32 option if that helps.
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <sys/types.h>
5690 /* Check that off_t can represent 2**63 - 1 correctly.
5691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5692 since some C++ compilers masquerading as C compilers
5693 incorrectly reject 9223372036854775807. */
5694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5696 && LARGE_OFF_T % 2147483647 == 1)
5697 ? 1 : -1];
5698 int
5699 main ()
5700 {
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 break
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext
5710 CC="$CC -n32"
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 ac_cv_sys_largefile_CC=' -n32'; break
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext
5715 break
5716 done
5717 CC=$ac_save_CC
5718 rm -f conftest.$ac_ext
5719 fi
5720 fi
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5722 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5723 if test "$ac_cv_sys_largefile_CC" != no; then
5724 CC=$CC$ac_cv_sys_largefile_CC
5725 fi
5726
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5728 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5729 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 while :; do
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #include <sys/types.h>
5736 /* Check that off_t can represent 2**63 - 1 correctly.
5737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5738 since some C++ compilers masquerading as C compilers
5739 incorrectly reject 9223372036854775807. */
5740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5742 && LARGE_OFF_T % 2147483647 == 1)
5743 ? 1 : -1];
5744 int
5745 main ()
5746 {
5747
5748 ;
5749 return 0;
5750 }
5751 _ACEOF
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753 ac_cv_sys_file_offset_bits=no; break
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #define _FILE_OFFSET_BITS 64
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5767 ? 1 : -1];
5768 int
5769 main ()
5770 {
5771
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777 ac_cv_sys_file_offset_bits=64; break
5778 fi
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_cv_sys_file_offset_bits=unknown
5781 break
5782 done
5783 fi
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5785 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5786 case $ac_cv_sys_file_offset_bits in #(
5787 no | unknown) ;;
5788 *)
5789 cat >>confdefs.h <<_ACEOF
5790 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5791 _ACEOF
5792 ;;
5793 esac
5794 rm -rf conftest*
5795 if test $ac_cv_sys_file_offset_bits = unknown; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5797 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5798 if test "${ac_cv_sys_large_files+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 while :; do
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 #include <sys/types.h>
5805 /* Check that off_t can represent 2**63 - 1 correctly.
5806 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5807 since some C++ compilers masquerading as C compilers
5808 incorrectly reject 9223372036854775807. */
5809 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5810 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5811 && LARGE_OFF_T % 2147483647 == 1)
5812 ? 1 : -1];
5813 int
5814 main ()
5815 {
5816
5817 ;
5818 return 0;
5819 }
5820 _ACEOF
5821 if ac_fn_c_try_compile "$LINENO"; then :
5822 ac_cv_sys_large_files=no; break
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 #define _LARGE_FILES 1
5828 #include <sys/types.h>
5829 /* Check that off_t can represent 2**63 - 1 correctly.
5830 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5831 since some C++ compilers masquerading as C compilers
5832 incorrectly reject 9223372036854775807. */
5833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5835 && LARGE_OFF_T % 2147483647 == 1)
5836 ? 1 : -1];
5837 int
5838 main ()
5839 {
5840
5841 ;
5842 return 0;
5843 }
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"; then :
5846 ac_cv_sys_large_files=1; break
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 ac_cv_sys_large_files=unknown
5850 break
5851 done
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5854 $as_echo "$ac_cv_sys_large_files" >&6; }
5855 case $ac_cv_sys_large_files in #(
5856 no | unknown) ;;
5857 *)
5858 cat >>confdefs.h <<_ACEOF
5859 #define _LARGE_FILES $ac_cv_sys_large_files
5860 _ACEOF
5861 ;;
5862 esac
5863 rm -rf conftest*
5864 fi
5865 fi
5866
5867
5868
5869 ## If user specified a crt-dir, use that unconditionally.
5870 if test "X$CRT_DIR" = "X"; then
5871
5872 case "$canonical" in
5873 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5874 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5875 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5876 ## For anything else (eg /usr/lib32), it is up the user to specify
5877 ## the location (bug#5655).
5878 ## Test for crtn.o, not just the directory, because sometimes the
5879 ## directory exists but does not have the relevant files (bug#1287).
5880 ## FIXME better to test for binary compatibility somehow.
5881 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5882 ;;
5883
5884 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5885 esac
5886
5887 case "$opsys" in
5888 hpux10-20) CRT_DIR=/lib ;;
5889 esac
5890
5891 ## Default is /usr/lib.
5892 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5893
5894 else
5895
5896 ## Some platforms don't use any of these files, so it is not
5897 ## appropriate to put this test outside the if block.
5898 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5899 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5900
5901 fi
5902
5903
5904
5905 LIB_MATH=-lm
5906 LIB_STANDARD=
5907 START_FILES=
5908
5909 case $opsys in
5910 cygwin )
5911 LIB_MATH=
5912 START_FILES='ecrt0.o'
5913 ;;
5914 darwin )
5915 ## Adding -lm confuses the dynamic linker, so omit it.
5916 LIB_MATH=
5917 START_FILES='pre-crt0.o'
5918 ;;
5919 freebsd )
5920 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5921 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5922 ;;
5923 gnu-linux | gnu-kfreebsd )
5924 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5925 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5926 ;;
5927 hpux10-20 | hpux11 )
5928 LIB_STANDARD=-lc
5929 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5930 ;;
5931 netbsd | openbsd )
5932 if test -f $CRT_DIR/crti.o; then
5933 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5934 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5935 else
5936 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5937 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5938 fi
5939 ;;
5940 esac
5941
5942
5943
5944
5945
5946
5947
5948 if test "${with_sound}" != "no"; then
5949 # Sound support for GNU/Linux and the free BSDs.
5950 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5951 do :
5952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5955 cat >>confdefs.h <<_ACEOF
5956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5957 _ACEOF
5958 have_sound_header=yes
5959 fi
5960
5961 done
5962
5963 # Emulation library used on NetBSD.
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5965 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5966 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 ac_check_lib_save_LIBS=$LIBS
5970 LIBS="-lossaudio $LIBS"
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973
5974 /* Override any GCC internal prototype to avoid an error.
5975 Use char because int might match the return type of a GCC
5976 builtin and then its argument prototype would still apply. */
5977 #ifdef __cplusplus
5978 extern "C"
5979 #endif
5980 char _oss_ioctl ();
5981 int
5982 main ()
5983 {
5984 return _oss_ioctl ();
5985 ;
5986 return 0;
5987 }
5988 _ACEOF
5989 if ac_fn_c_try_link "$LINENO"; then :
5990 ac_cv_lib_ossaudio__oss_ioctl=yes
5991 else
5992 ac_cv_lib_ossaudio__oss_ioctl=no
5993 fi
5994 rm -f core conftest.err conftest.$ac_objext \
5995 conftest$ac_exeext conftest.$ac_ext
5996 LIBS=$ac_check_lib_save_LIBS
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5999 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6000 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6001 LIBSOUND=-lossaudio
6002 else
6003 LIBSOUND=
6004 fi
6005
6006
6007
6008 ALSA_REQUIRED=1.0.0
6009 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6010
6011 succeeded=no
6012
6013 # Extract the first word of "pkg-config", so it can be a program name with args.
6014 set dummy pkg-config; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 case $PKG_CONFIG in
6021 [\\/]* | ?:[\\/]*)
6022 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6023 ;;
6024 *)
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6041 ;;
6042 esac
6043 fi
6044 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6045 if test -n "$PKG_CONFIG"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6047 $as_echo "$PKG_CONFIG" >&6; }
6048 else
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053
6054
6055 if test "$PKG_CONFIG" = "no" ; then
6056 HAVE_ALSA=no
6057 else
6058 PKG_CONFIG_MIN_VERSION=0.9.0
6059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6061 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6062
6063 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6065 $as_echo "yes" >&6; }
6066 succeeded=yes
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6069 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6070 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6072 $as_echo "$ALSA_CFLAGS" >&6; }
6073
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6075 $as_echo_n "checking ALSA_LIBS... " >&6; }
6076 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6078 $as_echo "$ALSA_LIBS" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 ALSA_CFLAGS=""
6083 ALSA_LIBS=""
6084 ## If we have a custom action on failure, don't print errors, but
6085 ## do set a variable so people can do so.
6086 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6087
6088 fi
6089
6090
6091
6092 else
6093 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6094 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6095 fi
6096 fi
6097
6098 if test $succeeded = yes; then
6099 HAVE_ALSA=yes
6100 else
6101 HAVE_ALSA=no
6102 fi
6103
6104 if test $HAVE_ALSA = yes; then
6105 SAVE_CFLAGS="$CFLAGS"
6106 SAVE_LDFLAGS="$LDFLAGS"
6107 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6108 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 #include <asoundlib.h>
6112 int
6113 main ()
6114 {
6115 snd_lib_error_set_handler (0);
6116 ;
6117 return 0;
6118 }
6119 _ACEOF
6120 if ac_fn_c_try_compile "$LINENO"; then :
6121 emacs_alsa_normal=yes
6122 else
6123 emacs_alsa_normal=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 if test "$emacs_alsa_normal" != yes; then
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 #include <alsa/asoundlib.h>
6130 int
6131 main ()
6132 {
6133 snd_lib_error_set_handler (0);
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 emacs_alsa_subdir=yes
6140 else
6141 emacs_alsa_subdir=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 if test "$emacs_alsa_subdir" != yes; then
6145 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6146 fi
6147 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6148 fi
6149
6150 CFLAGS="$SAVE_CFLAGS"
6151 LDFLAGS="$SAVE_LDFLAGS"
6152 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6153 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6154
6155 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6156
6157 fi
6158
6159 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6160 case "$opsys" in
6161 gnu-linux|freebsd|netbsd)
6162
6163 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6164
6165 ;;
6166 esac
6167 fi
6168
6169
6170 fi
6171
6172 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6173 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6174 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6175 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6176 sys/utsname.h pwd.h utmp.h
6177 do :
6178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6179 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6180 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6181 cat >>confdefs.h <<_ACEOF
6182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6183 _ACEOF
6184
6185 fi
6186
6187 done
6188
6189
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6191 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #include <sys/personality.h>
6195 int
6196 main ()
6197 {
6198 personality (PER_LINUX32)
6199 ;
6200 return 0;
6201 }
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6204 emacs_cv_personality_linux32=yes
6205 else
6206 emacs_cv_personality_linux32=no
6207 fi
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6210 $as_echo "$emacs_cv_personality_linux32" >&6; }
6211
6212 if test $emacs_cv_personality_linux32 = yes; then
6213
6214 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6215
6216 fi
6217
6218 for ac_header in term.h
6219 do :
6220 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6221 if test "x$ac_cv_header_term_h" = x""yes; then :
6222 cat >>confdefs.h <<_ACEOF
6223 #define HAVE_TERM_H 1
6224 _ACEOF
6225
6226 fi
6227
6228 done
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6231 $as_echo_n "checking for ANSI C header files... " >&6; }
6232 if test "${ac_cv_header_stdc+set}" = set; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #include <stdlib.h>
6238 #include <stdarg.h>
6239 #include <string.h>
6240 #include <float.h>
6241
6242 int
6243 main ()
6244 {
6245
6246 ;
6247 return 0;
6248 }
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251 ac_cv_header_stdc=yes
6252 else
6253 ac_cv_header_stdc=no
6254 fi
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256
6257 if test $ac_cv_header_stdc = yes; then
6258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #include <string.h>
6262
6263 _ACEOF
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265 $EGREP "memchr" >/dev/null 2>&1; then :
6266
6267 else
6268 ac_cv_header_stdc=no
6269 fi
6270 rm -f conftest*
6271
6272 fi
6273
6274 if test $ac_cv_header_stdc = yes; then
6275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 #include <stdlib.h>
6279
6280 _ACEOF
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "free" >/dev/null 2>&1; then :
6283
6284 else
6285 ac_cv_header_stdc=no
6286 fi
6287 rm -f conftest*
6288
6289 fi
6290
6291 if test $ac_cv_header_stdc = yes; then
6292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6293 if test "$cross_compiling" = yes; then :
6294 :
6295 else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 #include <ctype.h>
6299 #include <stdlib.h>
6300 #if ((' ' & 0x0FF) == 0x020)
6301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6303 #else
6304 # define ISLOWER(c) \
6305 (('a' <= (c) && (c) <= 'i') \
6306 || ('j' <= (c) && (c) <= 'r') \
6307 || ('s' <= (c) && (c) <= 'z'))
6308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6309 #endif
6310
6311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6312 int
6313 main ()
6314 {
6315 int i;
6316 for (i = 0; i < 256; i++)
6317 if (XOR (islower (i), ISLOWER (i))
6318 || toupper (i) != TOUPPER (i))
6319 return 2;
6320 return 0;
6321 }
6322 _ACEOF
6323 if ac_fn_c_try_run "$LINENO"; then :
6324
6325 else
6326 ac_cv_header_stdc=no
6327 fi
6328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6329 conftest.$ac_objext conftest.beam conftest.$ac_ext
6330 fi
6331
6332 fi
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6335 $as_echo "$ac_cv_header_stdc" >&6; }
6336 if test $ac_cv_header_stdc = yes; then
6337
6338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6339
6340 fi
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6343 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6344 if test "${ac_cv_header_time+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 #include <sys/types.h>
6350 #include <sys/time.h>
6351 #include <time.h>
6352
6353 int
6354 main ()
6355 {
6356 if ((struct tm *) 0)
6357 return 0;
6358 ;
6359 return 0;
6360 }
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"; then :
6363 ac_cv_header_time=yes
6364 else
6365 ac_cv_header_time=no
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6370 $as_echo "$ac_cv_header_time" >&6; }
6371 if test $ac_cv_header_time = yes; then
6372
6373 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6374
6375 fi
6376
6377 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6378 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6379 ac_have_decl=1
6380 else
6381 ac_have_decl=0
6382 fi
6383
6384 cat >>confdefs.h <<_ACEOF
6385 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6386 _ACEOF
6387
6388 if test $ac_cv_have_decl_sys_siglist != yes; then
6389 # For Tru64, at least:
6390 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6391 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6392 ac_have_decl=1
6393 else
6394 ac_have_decl=0
6395 fi
6396
6397 cat >>confdefs.h <<_ACEOF
6398 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6399 _ACEOF
6400
6401 if test $ac_cv_have_decl___sys_siglist = yes; then
6402
6403 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6404
6405 fi
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6408 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6409 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414 #include <sys/types.h>
6415 #include <sys/wait.h>
6416 #ifndef WEXITSTATUS
6417 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6418 #endif
6419 #ifndef WIFEXITED
6420 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6421 #endif
6422
6423 int
6424 main ()
6425 {
6426 int s;
6427 wait (&s);
6428 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6429 ;
6430 return 0;
6431 }
6432 _ACEOF
6433 if ac_fn_c_try_compile "$LINENO"; then :
6434 ac_cv_header_sys_wait_h=yes
6435 else
6436 ac_cv_header_sys_wait_h=no
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6441 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6442 if test $ac_cv_header_sys_wait_h = yes; then
6443
6444 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6445
6446 fi
6447
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6450 $as_echo_n "checking for struct utimbuf... " >&6; }
6451 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 #ifdef TIME_WITH_SYS_TIME
6457 #include <sys/time.h>
6458 #include <time.h>
6459 #else
6460 #ifdef HAVE_SYS_TIME_H
6461 #include <sys/time.h>
6462 #else
6463 #include <time.h>
6464 #endif
6465 #endif
6466 #ifdef HAVE_UTIME_H
6467 #include <utime.h>
6468 #endif
6469 int
6470 main ()
6471 {
6472 static struct utimbuf x; x.actime = x.modtime;
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 emacs_cv_struct_utimbuf=yes
6479 else
6480 emacs_cv_struct_utimbuf=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 fi
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6485 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6486 if test $emacs_cv_struct_utimbuf = yes; then
6487
6488 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6489
6490 fi
6491
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6493 $as_echo_n "checking return type of signal handlers... " >&6; }
6494 if test "${ac_cv_type_signal+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 #include <sys/types.h>
6500 #include <signal.h>
6501
6502 int
6503 main ()
6504 {
6505 return *(signal (0, 0)) (0) == 1;
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_compile "$LINENO"; then :
6511 ac_cv_type_signal=int
6512 else
6513 ac_cv_type_signal=void
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 fi
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6518 $as_echo "$ac_cv_type_signal" >&6; }
6519
6520 cat >>confdefs.h <<_ACEOF
6521 #define RETSIGTYPE $ac_cv_type_signal
6522 _ACEOF
6523
6524
6525
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6527 $as_echo_n "checking for speed_t... " >&6; }
6528 if test "${emacs_cv_speed_t+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 #include <termios.h>
6534 int
6535 main ()
6536 {
6537 speed_t x = 1;
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543 emacs_cv_speed_t=yes
6544 else
6545 emacs_cv_speed_t=no
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6550 $as_echo "$emacs_cv_speed_t" >&6; }
6551 if test $emacs_cv_speed_t = yes; then
6552
6553 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6554
6555 fi
6556
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6558 $as_echo_n "checking for struct timeval... " >&6; }
6559 if test "${emacs_cv_struct_timeval+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564 #ifdef TIME_WITH_SYS_TIME
6565 #include <sys/time.h>
6566 #include <time.h>
6567 #else
6568 #ifdef HAVE_SYS_TIME_H
6569 #include <sys/time.h>
6570 #else
6571 #include <time.h>
6572 #endif
6573 #endif
6574 int
6575 main ()
6576 {
6577 static struct timeval x; x.tv_sec = x.tv_usec;
6578 ;
6579 return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 emacs_cv_struct_timeval=yes
6584 else
6585 emacs_cv_struct_timeval=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 fi
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6590 $as_echo "$emacs_cv_struct_timeval" >&6; }
6591 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6592 if test $emacs_cv_struct_timeval = yes; then
6593
6594 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6595
6596 fi
6597
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6599 $as_echo_n "checking for struct exception... " >&6; }
6600 if test "${emacs_cv_struct_exception+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 #include <math.h>
6606 int
6607 main ()
6608 {
6609 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6610 ;
6611 return 0;
6612 }
6613 _ACEOF
6614 if ac_fn_c_try_compile "$LINENO"; then :
6615 emacs_cv_struct_exception=yes
6616 else
6617 emacs_cv_struct_exception=no
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6622 $as_echo "$emacs_cv_struct_exception" >&6; }
6623 HAVE_EXCEPTION=$emacs_cv_struct_exception
6624 if test $emacs_cv_struct_exception != yes; then
6625
6626 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6627
6628 fi
6629
6630 for ac_header in sys/socket.h
6631 do :
6632 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6633 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6634 cat >>confdefs.h <<_ACEOF
6635 #define HAVE_SYS_SOCKET_H 1
6636 _ACEOF
6637
6638 fi
6639
6640 done
6641
6642 for ac_header in net/if.h
6643 do :
6644 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6645 #if HAVE_SYS_SOCKET_H
6646 #include <sys/socket.h>
6647 #endif
6648 "
6649 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6650 cat >>confdefs.h <<_ACEOF
6651 #define HAVE_NET_IF_H 1
6652 _ACEOF
6653
6654 fi
6655
6656 done
6657
6658
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6660 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6661 if test "${ac_cv_struct_tm+set}" = set; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #include <sys/types.h>
6667 #include <time.h>
6668
6669 int
6670 main ()
6671 {
6672 struct tm tm;
6673 int *p = &tm.tm_sec;
6674 return !p;
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680 ac_cv_struct_tm=time.h
6681 else
6682 ac_cv_struct_tm=sys/time.h
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6687 $as_echo "$ac_cv_struct_tm" >&6; }
6688 if test $ac_cv_struct_tm = sys/time.h; then
6689
6690 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6691
6692 fi
6693
6694 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6695 #include <$ac_cv_struct_tm>
6696
6697 "
6698 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6699
6700 cat >>confdefs.h <<_ACEOF
6701 #define HAVE_STRUCT_TM_TM_ZONE 1
6702 _ACEOF
6703
6704
6705 fi
6706
6707 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6708
6709 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6710
6711 else
6712 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6713 "
6714 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6715 ac_have_decl=1
6716 else
6717 ac_have_decl=0
6718 fi
6719
6720 cat >>confdefs.h <<_ACEOF
6721 #define HAVE_DECL_TZNAME $ac_have_decl
6722 _ACEOF
6723
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6725 $as_echo_n "checking for tzname... " >&6; }
6726 if test "${ac_cv_var_tzname+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731 #include <time.h>
6732 #if !HAVE_DECL_TZNAME
6733 extern char *tzname[];
6734 #endif
6735
6736 int
6737 main ()
6738 {
6739 return tzname[0][0];
6740 ;
6741 return 0;
6742 }
6743 _ACEOF
6744 if ac_fn_c_try_link "$LINENO"; then :
6745 ac_cv_var_tzname=yes
6746 else
6747 ac_cv_var_tzname=no
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6751 fi
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6753 $as_echo "$ac_cv_var_tzname" >&6; }
6754 if test $ac_cv_var_tzname = yes; then
6755
6756 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6757
6758 fi
6759 fi
6760
6761 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6762 "
6763 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6764
6765 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6766
6767 fi
6768
6769 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6770 #if HAVE_SYS_SOCKET_H
6771 #include <sys/socket.h>
6772 #endif
6773 #if HAVE_NET_IF_H
6774 #include <net/if.h>
6775 #endif
6776 "
6777 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6778
6779 cat >>confdefs.h <<_ACEOF
6780 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6781 _ACEOF
6782
6783
6784 fi
6785 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6786 #if HAVE_SYS_SOCKET_H
6787 #include <sys/socket.h>
6788 #endif
6789 #if HAVE_NET_IF_H
6790 #include <net/if.h>
6791 #endif
6792 "
6793 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6794
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6797 _ACEOF
6798
6799
6800 fi
6801 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6802 #if HAVE_SYS_SOCKET_H
6803 #include <sys/socket.h>
6804 #endif
6805 #if HAVE_NET_IF_H
6806 #include <net/if.h>
6807 #endif
6808 "
6809 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6810
6811 cat >>confdefs.h <<_ACEOF
6812 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6813 _ACEOF
6814
6815
6816 fi
6817 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6818 #if HAVE_SYS_SOCKET_H
6819 #include <sys/socket.h>
6820 #endif
6821 #if HAVE_NET_IF_H
6822 #include <net/if.h>
6823 #endif
6824 "
6825 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6826
6827 cat >>confdefs.h <<_ACEOF
6828 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6829 _ACEOF
6830
6831
6832 fi
6833 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6834 #if HAVE_SYS_SOCKET_H
6835 #include <sys/socket.h>
6836 #endif
6837 #if HAVE_NET_IF_H
6838 #include <net/if.h>
6839 #endif
6840 "
6841 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6842
6843 cat >>confdefs.h <<_ACEOF
6844 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6845 _ACEOF
6846
6847
6848 fi
6849
6850
6851
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6853 $as_echo_n "checking for function prototypes... " >&6; }
6854 if test "$ac_cv_prog_cc_c89" != no; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6856 $as_echo "yes" >&6; }
6857
6858 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6859
6860
6861 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6862
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6869 $as_echo_n "checking for working volatile... " >&6; }
6870 if test "${ac_cv_c_volatile+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875
6876 int
6877 main ()
6878 {
6879
6880 volatile int x;
6881 int * volatile y = (int *) 0;
6882 return !x && !y;
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 ac_cv_c_volatile=yes
6889 else
6890 ac_cv_c_volatile=no
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 fi
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6895 $as_echo "$ac_cv_c_volatile" >&6; }
6896 if test $ac_cv_c_volatile = no; then
6897
6898 $as_echo "#define volatile /**/" >>confdefs.h
6899
6900 fi
6901
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6903 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6904 if test "${ac_cv_c_const+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909
6910 int
6911 main ()
6912 {
6913 /* FIXME: Include the comments suggested by Paul. */
6914 #ifndef __cplusplus
6915 /* Ultrix mips cc rejects this. */
6916 typedef int charset[2];
6917 const charset cs;
6918 /* SunOS 4.1.1 cc rejects this. */
6919 char const *const *pcpcc;
6920 char **ppc;
6921 /* NEC SVR4.0.2 mips cc rejects this. */
6922 struct point {int x, y;};
6923 static struct point const zero = {0,0};
6924 /* AIX XL C 1.02.0.0 rejects this.
6925 It does not let you subtract one const X* pointer from another in
6926 an arm of an if-expression whose if-part is not a constant
6927 expression */
6928 const char *g = "string";
6929 pcpcc = &g + (g ? g-g : 0);
6930 /* HPUX 7.0 cc rejects these. */
6931 ++pcpcc;
6932 ppc = (char**) pcpcc;
6933 pcpcc = (char const *const *) ppc;
6934 { /* SCO 3.2v4 cc rejects this. */
6935 char *t;
6936 char const *s = 0 ? (char *) 0 : (char const *) 0;
6937
6938 *t++ = 0;
6939 if (s) return 0;
6940 }
6941 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6942 int x[] = {25, 17};
6943 const int *foo = &x[0];
6944 ++foo;
6945 }
6946 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6947 typedef const int *iptr;
6948 iptr p = 0;
6949 ++p;
6950 }
6951 { /* AIX XL C 1.02.0.0 rejects this saying
6952 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6953 struct s { int j; const int *ap[3]; };
6954 struct s *b; b->j = 5;
6955 }
6956 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6957 const int foo = 10;
6958 if (!foo) return 0;
6959 }
6960 return !cs[0] && !zero.x;
6961 #endif
6962
6963 ;
6964 return 0;
6965 }
6966 _ACEOF
6967 if ac_fn_c_try_compile "$LINENO"; then :
6968 ac_cv_c_const=yes
6969 else
6970 ac_cv_c_const=no
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 fi
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6975 $as_echo "$ac_cv_c_const" >&6; }
6976 if test $ac_cv_c_const = no; then
6977
6978 $as_echo "#define const /**/" >>confdefs.h
6979
6980 fi
6981
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6983 $as_echo_n "checking for void * support... " >&6; }
6984 if test "${emacs_cv_void_star+set}" = set; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989
6990 int
6991 main ()
6992 {
6993 void * foo;
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 if ac_fn_c_try_compile "$LINENO"; then :
6999 emacs_cv_void_star=yes
7000 else
7001 emacs_cv_void_star=no
7002 fi
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7006 $as_echo "$emacs_cv_void_star" >&6; }
7007 if test $emacs_cv_void_star = yes; then
7008 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7009
7010 else
7011 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7012
7013 fi
7014
7015
7016
7017
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7019 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7020 set x ${MAKE-make}
7021 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7022 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 cat >conftest.make <<\_ACEOF
7026 SHELL = /bin/sh
7027 all:
7028 @echo '@@@%%%=$(MAKE)=@@@%%%'
7029 _ACEOF
7030 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7031 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7032 *@@@%%%=?*=@@@%%%*)
7033 eval ac_cv_prog_make_${ac_make}_set=yes;;
7034 *)
7035 eval ac_cv_prog_make_${ac_make}_set=no;;
7036 esac
7037 rm -f conftest.make
7038 fi
7039 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7041 $as_echo "yes" >&6; }
7042 SET_MAKE=
7043 else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 SET_MAKE="MAKE=${MAKE-make}"
7047 fi
7048
7049
7050 DEPFLAGS=
7051 MKDEPDIR=":"
7052 deps_frag=deps.mk
7053 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7055 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7056 HAVE_GNU_MAKE=no
7057 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7058 if test "x$testval" != x; then
7059 HAVE_GNU_MAKE=yes
7060 else
7061 ac_enable_autodepend=no
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7064 $as_echo "$HAVE_GNU_MAKE" >&6; }
7065 if test $HAVE_GNU_MAKE = yes; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7067 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7068 SAVE_CFLAGS="$CFLAGS"
7069 CFLAGS="$CFLAGS -MMD -MF deps.d"
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072
7073 int
7074 main ()
7075 {
7076
7077 ;
7078 return 0;
7079 }
7080 _ACEOF
7081 if ac_fn_c_try_compile "$LINENO"; then :
7082
7083 else
7084 ac_enable_autodepend=no
7085 fi
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 CFLAGS="$SAVE_CFLAGS"
7088 test -f deps.d || ac_enable_autodepend=no
7089 rm -rf deps.d
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7091 $as_echo "$ac_enable_autodepend" >&6; }
7092 fi
7093 if test $ac_enable_autodepend = yes; then
7094 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7095 ## In parallel builds, another make might create depdir between
7096 ## the first test and mkdir, so stick another test on the end.
7097 ## Or use mkinstalldirs? mkdir -p is not portable.
7098 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7099 deps_frag=autodeps.mk
7100 fi
7101 fi
7102 deps_frag=$srcdir/src/$deps_frag
7103
7104
7105
7106
7107
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7109 $as_echo_n "checking for long file names... " >&6; }
7110 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 ac_cv_sys_long_file_names=yes
7114 # Test for long file names in all the places we know might matter:
7115 # . the current directory, where building will happen
7116 # $prefix/lib where we will be installing things
7117 # $exec_prefix/lib likewise
7118 # $TMPDIR if set, where it might want to write temporary files
7119 # /tmp where it might want to write temporary files
7120 # /var/tmp likewise
7121 # /usr/tmp likewise
7122 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7123 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7124 # in the usual case where exec_prefix is '${prefix}'.
7125 case $ac_dir in #(
7126 . | /* | ?:[\\/]*) ;; #(
7127 *) continue;;
7128 esac
7129 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7130 ac_xdir=$ac_dir/cf$$
7131 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7132 ac_tf1=$ac_xdir/conftest9012345
7133 ac_tf2=$ac_xdir/conftest9012346
7134 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7135 ac_cv_sys_long_file_names=no
7136 rm -f -r "$ac_xdir" 2>/dev/null
7137 test $ac_cv_sys_long_file_names = no && break
7138 done
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7141 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7142 if test $ac_cv_sys_long_file_names = yes; then
7143
7144 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7145
7146 fi
7147
7148
7149 #### Choose a window system.
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7152 $as_echo_n "checking for X... " >&6; }
7153
7154
7155 # Check whether --with-x was given.
7156 if test "${with_x+set}" = set; then :
7157 withval=$with_x;
7158 fi
7159
7160 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7161 if test "x$with_x" = xno; then
7162 # The user explicitly disabled X.
7163 have_x=disabled
7164 else
7165 case $x_includes,$x_libraries in #(
7166 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7167 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 # One or both of the vars are not set, and there is no cached value.
7171 ac_x_includes=no ac_x_libraries=no
7172 rm -f -r conftest.dir
7173 if mkdir conftest.dir; then
7174 cd conftest.dir
7175 cat >Imakefile <<'_ACEOF'
7176 incroot:
7177 @echo incroot='${INCROOT}'
7178 usrlibdir:
7179 @echo usrlibdir='${USRLIBDIR}'
7180 libdir:
7181 @echo libdir='${LIBDIR}'
7182 _ACEOF
7183 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7184 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7185 for ac_var in incroot usrlibdir libdir; do
7186 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7187 done
7188 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7189 for ac_extension in a so sl dylib la dll; do
7190 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7191 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7192 ac_im_usrlibdir=$ac_im_libdir; break
7193 fi
7194 done
7195 # Screen out bogus values from the imake configuration. They are
7196 # bogus both because they are the default anyway, and because
7197 # using them would break gcc on systems where it needs fixed includes.
7198 case $ac_im_incroot in
7199 /usr/include) ac_x_includes= ;;
7200 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7201 esac
7202 case $ac_im_usrlibdir in
7203 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7204 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7205 esac
7206 fi
7207 cd ..
7208 rm -f -r conftest.dir
7209 fi
7210
7211 # Standard set of common directories for X headers.
7212 # Check X11 before X11Rn because it is often a symlink to the current release.
7213 ac_x_header_dirs='
7214 /usr/X11/include
7215 /usr/X11R7/include
7216 /usr/X11R6/include
7217 /usr/X11R5/include
7218 /usr/X11R4/include
7219
7220 /usr/include/X11
7221 /usr/include/X11R7
7222 /usr/include/X11R6
7223 /usr/include/X11R5
7224 /usr/include/X11R4
7225
7226 /usr/local/X11/include
7227 /usr/local/X11R7/include
7228 /usr/local/X11R6/include
7229 /usr/local/X11R5/include
7230 /usr/local/X11R4/include
7231
7232 /usr/local/include/X11
7233 /usr/local/include/X11R7
7234 /usr/local/include/X11R6
7235 /usr/local/include/X11R5
7236 /usr/local/include/X11R4
7237
7238 /usr/X386/include
7239 /usr/x386/include
7240 /usr/XFree86/include/X11
7241
7242 /usr/include
7243 /usr/local/include
7244 /usr/unsupported/include
7245 /usr/athena/include
7246 /usr/local/x11r5/include
7247 /usr/lpp/Xamples/include
7248
7249 /usr/openwin/include
7250 /usr/openwin/share/include'
7251
7252 if test "$ac_x_includes" = no; then
7253 # Guess where to find include files, by looking for Xlib.h.
7254 # First, try using that file with no special directory specified.
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 #include <X11/Xlib.h>
7258 _ACEOF
7259 if ac_fn_c_try_cpp "$LINENO"; then :
7260 # We can compile using X headers with no special include directory.
7261 ac_x_includes=
7262 else
7263 for ac_dir in $ac_x_header_dirs; do
7264 if test -r "$ac_dir/X11/Xlib.h"; then
7265 ac_x_includes=$ac_dir
7266 break
7267 fi
7268 done
7269 fi
7270 rm -f conftest.err conftest.$ac_ext
7271 fi # $ac_x_includes = no
7272
7273 if test "$ac_x_libraries" = no; then
7274 # Check for the libraries.
7275 # See if we find them without any special options.
7276 # Don't add to $LIBS permanently.
7277 ac_save_LIBS=$LIBS
7278 LIBS="-lX11 $LIBS"
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 #include <X11/Xlib.h>
7282 int
7283 main ()
7284 {
7285 XrmInitialize ()
7286 ;
7287 return 0;
7288 }
7289 _ACEOF
7290 if ac_fn_c_try_link "$LINENO"; then :
7291 LIBS=$ac_save_LIBS
7292 # We can link X programs with no special library path.
7293 ac_x_libraries=
7294 else
7295 LIBS=$ac_save_LIBS
7296 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7297 do
7298 # Don't even attempt the hair of trying to link an X program!
7299 for ac_extension in a so sl dylib la dll; do
7300 if test -r "$ac_dir/libX11.$ac_extension"; then
7301 ac_x_libraries=$ac_dir
7302 break 2
7303 fi
7304 done
7305 done
7306 fi
7307 rm -f core conftest.err conftest.$ac_objext \
7308 conftest$ac_exeext conftest.$ac_ext
7309 fi # $ac_x_libraries = no
7310
7311 case $ac_x_includes,$ac_x_libraries in #(
7312 no,* | *,no | *\'*)
7313 # Didn't find X, or a directory has "'" in its name.
7314 ac_cv_have_x="have_x=no";; #(
7315 *)
7316 # Record where we found X for the cache.
7317 ac_cv_have_x="have_x=yes\
7318 ac_x_includes='$ac_x_includes'\
7319 ac_x_libraries='$ac_x_libraries'"
7320 esac
7321 fi
7322 ;; #(
7323 *) have_x=yes;;
7324 esac
7325 eval "$ac_cv_have_x"
7326 fi # $with_x != no
7327
7328 if test "$have_x" != yes; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7330 $as_echo "$have_x" >&6; }
7331 no_x=yes
7332 else
7333 # If each of the values was on the command line, it overrides each guess.
7334 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7335 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7336 # Update the cache value to reflect the command line values.
7337 ac_cv_have_x="have_x=yes\
7338 ac_x_includes='$x_includes'\
7339 ac_x_libraries='$x_libraries'"
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7341 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7342 fi
7343
7344 if test "$no_x" = yes; then
7345 window_system=none
7346 else
7347 window_system=x11
7348 fi
7349
7350 ## Workaround for bug in autoconf <= 2.62.
7351 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7352 ## No need to do anything special for these standard directories.
7353 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7354
7355 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7356
7357 fi
7358
7359 LD_SWITCH_X_SITE_AUX=
7360 LD_SWITCH_X_SITE_AUX_RPATH=
7361 if test "${x_libraries}" != NONE; then
7362 if test -n "${x_libraries}"; then
7363 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7364 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7365 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7366 fi
7367 x_default_search_path=""
7368 x_search_path=${x_libraries}
7369 if test -z "${x_search_path}"; then
7370 x_search_path=/usr/lib
7371 fi
7372 for x_library in `echo ${x_search_path}: | \
7373 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7374 x_search_path="\
7375 ${x_library}/X11/%L/%T/%N%C%S:\
7376 ${x_library}/X11/%l/%T/%N%C%S:\
7377 ${x_library}/X11/%T/%N%C%S:\
7378 ${x_library}/X11/%L/%T/%N%S:\
7379 ${x_library}/X11/%l/%T/%N%S:\
7380 ${x_library}/X11/%T/%N%S"
7381 if test x"${x_default_search_path}" = x; then
7382 x_default_search_path=${x_search_path}
7383 else
7384 x_default_search_path="${x_search_path}:${x_default_search_path}"
7385 fi
7386 done
7387 fi
7388
7389
7390
7391 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7392 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7393 fi
7394
7395 if test x"${x_includes}" = x; then
7396 bitmapdir=/usr/include/X11/bitmaps
7397 else
7398 # accumulate include directories that have X11 bitmap subdirectories
7399 bmd_acc="dummyval"
7400 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7401 if test -d "${bmd}/X11/bitmaps"; then
7402 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7403 fi
7404 if test -d "${bmd}/bitmaps"; then
7405 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7406 fi
7407 done
7408 if test ${bmd_acc} != "dummyval"; then
7409 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7410 fi
7411 fi
7412
7413 HAVE_NS=no
7414 NS_IMPL_COCOA=no
7415 NS_IMPL_GNUSTEP=no
7416 tmp_CPPFLAGS="$CPPFLAGS"
7417 tmp_CFLAGS="$CFLAGS"
7418 CPPFLAGS="$CPPFLAGS -x objective-c"
7419 CFLAGS="$CFLAGS -x objective-c"
7420 TEMACS_LDFLAGS2="\${LDFLAGS}"
7421 if test "${with_ns}" != no; then
7422 if test "${opsys}" = darwin; then
7423 NS_IMPL_COCOA=yes
7424 ns_appdir=`pwd`/nextstep/Emacs.app/
7425 ns_appbindir=${ns_appdir}Contents/MacOS/
7426 ns_appresdir=${ns_appdir}Contents/Resources
7427 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7428 elif test -f $GNUSTEP_CONFIG_FILE; then
7429 NS_IMPL_GNUSTEP=yes
7430 ns_appdir=`pwd`/nextstep/Emacs.app/
7431 ns_appbindir=${ns_appdir}
7432 ns_appresdir=${ns_appdir}Resources
7433 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7434 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7435 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7436 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7437 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7438 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7439 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7440 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7441 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7442 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7443 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7444 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7445 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7446 LIB_STANDARD=
7447 START_FILES=
7448 TEMACS_LDFLAGS2=
7449 fi
7450 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7451 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7452 HAVE_NS=yes
7453 else
7454 as_fn_error $? "\`--with-ns' was specified, but the include
7455 files are missing or cannot be compiled." "$LINENO" 5
7456 fi
7457
7458
7459 NS_HAVE_NSINTEGER=yes
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <Foundation/NSObjCRuntime.h>
7463 int
7464 main ()
7465 {
7466 NSInteger i;
7467 ;
7468 return 0;
7469 }
7470 _ACEOF
7471 if ac_fn_c_try_compile "$LINENO"; then :
7472 ns_have_nsinteger=yes
7473 else
7474 ns_have_nsinteger=no
7475 fi
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 if test $ns_have_nsinteger = no; then
7478 NS_HAVE_NSINTEGER=no
7479 fi
7480 fi
7481
7482
7483 ns_frag=/dev/null
7484 NS_OBJ=
7485 NS_SUPPORT=
7486 if test "${HAVE_NS}" = yes; then
7487 window_system=nextstep
7488 with_xft=no
7489 # set up packaging dirs
7490 exec_prefix=${ns_appbindir}
7491 libexecdir=${ns_appbindir}/libexec
7492 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7493 prefix=${ns_appresdir}
7494 fi
7495 ns_frag=$srcdir/src/ns.mk
7496 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7497 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7498 fi
7499 CFLAGS="$tmp_CFLAGS"
7500 CPPFLAGS="$tmp_CPPFLAGS"
7501
7502
7503
7504
7505
7506 case "${window_system}" in
7507 x11 )
7508 HAVE_X_WINDOWS=yes
7509 HAVE_X11=yes
7510 case "${with_x_toolkit}" in
7511 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7512 motif ) USE_X_TOOLKIT=MOTIF ;;
7513 gtk ) with_gtk=yes
7514 USE_X_TOOLKIT=none ;;
7515 gtk3 ) with_gtk3=yes
7516 USE_X_TOOLKIT=none ;;
7517 no ) USE_X_TOOLKIT=none ;;
7518 * ) USE_X_TOOLKIT=maybe ;;
7519 esac
7520 ;;
7521 nextstep | none )
7522 HAVE_X_WINDOWS=no
7523 HAVE_X11=no
7524 USE_X_TOOLKIT=none
7525 ;;
7526 esac
7527
7528 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7529 # Extract the first word of "X", so it can be a program name with args.
7530 set dummy X; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 if test -n "$HAVE_XSERVER"; then
7537 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_prog_HAVE_XSERVER="true"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550 done
7551 done
7552 IFS=$as_save_IFS
7553
7554 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7555 fi
7556 fi
7557 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7558 if test -n "$HAVE_XSERVER"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7560 $as_echo "$HAVE_XSERVER" >&6; }
7561 else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7564 fi
7565
7566
7567 if test "$HAVE_XSERVER" = true ||
7568 test -n "$DISPLAY" ||
7569 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7570 as_fn_error $? "You seem to be running X, but no X development libraries
7571 were found. You should install the relevant development files for X
7572 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7573 sure you have development files for image handling, i.e.
7574 tiff, gif, jpeg, png and xpm.
7575 If you are sure you want Emacs compiled without X window support, pass
7576 --without-x
7577 to configure." "$LINENO" 5
7578 fi
7579 fi
7580
7581 ### If we're using X11, we should use the X menu package.
7582 HAVE_MENUS=no
7583 case ${HAVE_X11} in
7584 yes ) HAVE_MENUS=yes ;;
7585 esac
7586
7587 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7588 # Assume not, until told otherwise.
7589 GNU_MALLOC=yes
7590 doug_lea_malloc=yes
7591 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7592 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7593
7594 else
7595 doug_lea_malloc=no
7596 fi
7597
7598 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7599 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7600
7601 else
7602 doug_lea_malloc=no
7603 fi
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7606 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7607 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612 extern void (* __after_morecore_hook)();
7613 int
7614 main ()
7615 {
7616 __after_morecore_hook = 0
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_link "$LINENO"; then :
7622 emacs_cv_var___after_morecore_hook=yes
7623 else
7624 emacs_cv_var___after_morecore_hook=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext \
7627 conftest$ac_exeext conftest.$ac_ext
7628 fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7630 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7631 if test $emacs_cv_var___after_morecore_hook = no; then
7632 doug_lea_malloc=no
7633 fi
7634
7635
7636 system_malloc=no
7637 case "$opsys" in
7638 ## darwin ld insists on the use of malloc routines in the System framework.
7639 darwin|sol2-10) system_malloc=yes ;;
7640 esac
7641
7642 if test "${system_malloc}" = "yes"; then
7643
7644 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7645
7646 GNU_MALLOC=no
7647 GNU_MALLOC_reason="
7648 (The GNU allocators don't work with this system configuration.)"
7649 GMALLOC_OBJ=
7650 VMLIMIT_OBJ=
7651 else
7652 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7653 VMLIMIT_OBJ=vm-limit.o
7654 fi
7655
7656
7657
7658 if test "$doug_lea_malloc" = "yes" ; then
7659 if test "$GNU_MALLOC" = yes ; then
7660 GNU_MALLOC_reason="
7661 (Using Doug Lea's new malloc from the GNU C Library.)"
7662 fi
7663
7664 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7665
7666
7667 ## Use mmap directly for allocating larger buffers.
7668 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7669 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7670 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7671 case "$opsys" in
7672 gnu*) REL_ALLOC=no ;;
7673 esac
7674 fi
7675
7676 if test x"${REL_ALLOC}" = x; then
7677 REL_ALLOC=${GNU_MALLOC}
7678 fi
7679
7680 use_mmap_for_buffers=no
7681 case "$opsys" in
7682 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7683 esac
7684
7685
7686
7687
7688 for ac_header in $ac_header_list
7689 do :
7690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7692 "
7693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7694 cat >>confdefs.h <<_ACEOF
7695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7696 _ACEOF
7697
7698 fi
7699
7700 done
7701
7702
7703
7704
7705
7706
7707
7708
7709 for ac_func in getpagesize
7710 do :
7711 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7712 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7713 cat >>confdefs.h <<_ACEOF
7714 #define HAVE_GETPAGESIZE 1
7715 _ACEOF
7716
7717 fi
7718 done
7719
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7721 $as_echo_n "checking for working mmap... " >&6; }
7722 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test "$cross_compiling" = yes; then :
7726 ac_cv_func_mmap_fixed_mapped=no
7727 else
7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7730 $ac_includes_default
7731 /* malloc might have been renamed as rpl_malloc. */
7732 #undef malloc
7733
7734 /* Thanks to Mike Haertel and Jim Avera for this test.
7735 Here is a matrix of mmap possibilities:
7736 mmap private not fixed
7737 mmap private fixed at somewhere currently unmapped
7738 mmap private fixed at somewhere already mapped
7739 mmap shared not fixed
7740 mmap shared fixed at somewhere currently unmapped
7741 mmap shared fixed at somewhere already mapped
7742 For private mappings, we should verify that changes cannot be read()
7743 back from the file, nor mmap's back from the file at a different
7744 address. (There have been systems where private was not correctly
7745 implemented like the infamous i386 svr4.0, and systems where the
7746 VM page cache was not coherent with the file system buffer cache
7747 like early versions of FreeBSD and possibly contemporary NetBSD.)
7748 For shared mappings, we should conversely verify that changes get
7749 propagated back to all the places they're supposed to be.
7750
7751 Grep wants private fixed already mapped.
7752 The main things grep needs to know about mmap are:
7753 * does it exist and is it safe to write into the mmap'd area
7754 * how to use it (BSD variants) */
7755
7756 #include <fcntl.h>
7757 #include <sys/mman.h>
7758
7759 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7760 char *malloc ();
7761 #endif
7762
7763 /* This mess was copied from the GNU getpagesize.h. */
7764 #ifndef HAVE_GETPAGESIZE
7765 # ifdef _SC_PAGESIZE
7766 # define getpagesize() sysconf(_SC_PAGESIZE)
7767 # else /* no _SC_PAGESIZE */
7768 # ifdef HAVE_SYS_PARAM_H
7769 # include <sys/param.h>
7770 # ifdef EXEC_PAGESIZE
7771 # define getpagesize() EXEC_PAGESIZE
7772 # else /* no EXEC_PAGESIZE */
7773 # ifdef NBPG
7774 # define getpagesize() NBPG * CLSIZE
7775 # ifndef CLSIZE
7776 # define CLSIZE 1
7777 # endif /* no CLSIZE */
7778 # else /* no NBPG */
7779 # ifdef NBPC
7780 # define getpagesize() NBPC
7781 # else /* no NBPC */
7782 # ifdef PAGESIZE
7783 # define getpagesize() PAGESIZE
7784 # endif /* PAGESIZE */
7785 # endif /* no NBPC */
7786 # endif /* no NBPG */
7787 # endif /* no EXEC_PAGESIZE */
7788 # else /* no HAVE_SYS_PARAM_H */
7789 # define getpagesize() 8192 /* punt totally */
7790 # endif /* no HAVE_SYS_PARAM_H */
7791 # endif /* no _SC_PAGESIZE */
7792
7793 #endif /* no HAVE_GETPAGESIZE */
7794
7795 int
7796 main ()
7797 {
7798 char *data, *data2, *data3;
7799 const char *cdata2;
7800 int i, pagesize;
7801 int fd, fd2;
7802
7803 pagesize = getpagesize ();
7804
7805 /* First, make a file with some known garbage in it. */
7806 data = (char *) malloc (pagesize);
7807 if (!data)
7808 return 1;
7809 for (i = 0; i < pagesize; ++i)
7810 *(data + i) = rand ();
7811 umask (0);
7812 fd = creat ("conftest.mmap", 0600);
7813 if (fd < 0)
7814 return 2;
7815 if (write (fd, data, pagesize) != pagesize)
7816 return 3;
7817 close (fd);
7818
7819 /* Next, check that the tail of a page is zero-filled. File must have
7820 non-zero length, otherwise we risk SIGBUS for entire page. */
7821 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7822 if (fd2 < 0)
7823 return 4;
7824 cdata2 = "";
7825 if (write (fd2, cdata2, 1) != 1)
7826 return 5;
7827 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7828 if (data2 == MAP_FAILED)
7829 return 6;
7830 for (i = 0; i < pagesize; ++i)
7831 if (*(data2 + i))
7832 return 7;
7833 close (fd2);
7834 if (munmap (data2, pagesize))
7835 return 8;
7836
7837 /* Next, try to mmap the file at a fixed address which already has
7838 something else allocated at it. If we can, also make sure that
7839 we see the same garbage. */
7840 fd = open ("conftest.mmap", O_RDWR);
7841 if (fd < 0)
7842 return 9;
7843 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7844 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7845 return 10;
7846 for (i = 0; i < pagesize; ++i)
7847 if (*(data + i) != *(data2 + i))
7848 return 11;
7849
7850 /* Finally, make sure that changes to the mapped area do not
7851 percolate back to the file as seen by read(). (This is a bug on
7852 some variants of i386 svr4.0.) */
7853 for (i = 0; i < pagesize; ++i)
7854 *(data2 + i) = *(data2 + i) + 1;
7855 data3 = (char *) malloc (pagesize);
7856 if (!data3)
7857 return 12;
7858 if (read (fd, data3, pagesize) != pagesize)
7859 return 13;
7860 for (i = 0; i < pagesize; ++i)
7861 if (*(data + i) != *(data3 + i))
7862 return 14;
7863 close (fd);
7864 return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_run "$LINENO"; then :
7868 ac_cv_func_mmap_fixed_mapped=yes
7869 else
7870 ac_cv_func_mmap_fixed_mapped=no
7871 fi
7872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7873 conftest.$ac_objext conftest.beam conftest.$ac_ext
7874 fi
7875
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7878 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7879 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7880
7881 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7882
7883 fi
7884 rm -f conftest.mmap conftest.txt
7885
7886 if test $use_mmap_for_buffers = yes; then
7887
7888 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
7889
7890 REL_ALLOC=no
7891 fi
7892
7893 LIBS="$LIBS_SYSTEM $LIBS"
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7896 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7897 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 ac_check_lib_save_LIBS=$LIBS
7901 LIBS="-ldnet $LIBS"
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904
7905 /* Override any GCC internal prototype to avoid an error.
7906 Use char because int might match the return type of a GCC
7907 builtin and then its argument prototype would still apply. */
7908 #ifdef __cplusplus
7909 extern "C"
7910 #endif
7911 char dnet_ntoa ();
7912 int
7913 main ()
7914 {
7915 return dnet_ntoa ();
7916 ;
7917 return 0;
7918 }
7919 _ACEOF
7920 if ac_fn_c_try_link "$LINENO"; then :
7921 ac_cv_lib_dnet_dnet_ntoa=yes
7922 else
7923 ac_cv_lib_dnet_dnet_ntoa=no
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext \
7926 conftest$ac_exeext conftest.$ac_ext
7927 LIBS=$ac_check_lib_save_LIBS
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7930 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7931 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7932 cat >>confdefs.h <<_ACEOF
7933 #define HAVE_LIBDNET 1
7934 _ACEOF
7935
7936 LIBS="-ldnet $LIBS"
7937
7938 fi
7939
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7942 $as_echo_n "checking for main in -lXbsd... " >&6; }
7943 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 ac_check_lib_save_LIBS=$LIBS
7947 LIBS="-lXbsd $LIBS"
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950
7951
7952 int
7953 main ()
7954 {
7955 return main ();
7956 ;
7957 return 0;
7958 }
7959 _ACEOF
7960 if ac_fn_c_try_link "$LINENO"; then :
7961 ac_cv_lib_Xbsd_main=yes
7962 else
7963 ac_cv_lib_Xbsd_main=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext \
7966 conftest$ac_exeext conftest.$ac_ext
7967 LIBS=$ac_check_lib_save_LIBS
7968 fi
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7970 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7971 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7972 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7973 fi
7974
7975
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7977 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7978 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 ac_check_lib_save_LIBS=$LIBS
7982 LIBS="-lpthreads $LIBS"
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985
7986 /* Override any GCC internal prototype to avoid an error.
7987 Use char because int might match the return type of a GCC
7988 builtin and then its argument prototype would still apply. */
7989 #ifdef __cplusplus
7990 extern "C"
7991 #endif
7992 char cma_open ();
7993 int
7994 main ()
7995 {
7996 return cma_open ();
7997 ;
7998 return 0;
7999 }
8000 _ACEOF
8001 if ac_fn_c_try_link "$LINENO"; then :
8002 ac_cv_lib_pthreads_cma_open=yes
8003 else
8004 ac_cv_lib_pthreads_cma_open=no
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 LIBS=$ac_check_lib_save_LIBS
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8011 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8012 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8013 cat >>confdefs.h <<_ACEOF
8014 #define HAVE_LIBPTHREADS 1
8015 _ACEOF
8016
8017 LIBS="-lpthreads $LIBS"
8018
8019 fi
8020
8021
8022 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8023 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8024 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8025 ## added to LIBS in configure would never contain the pthreads part,
8026 ## but the value used in Makefiles might. FIXME?
8027 ##
8028 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8029 ## be harmless on older versions of X where it happens to exist.
8030 test "$opsys" = "aix4-2" && \
8031 test $ac_cv_lib_pthreads_cma_open = yes && \
8032 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8033
8034
8035 case ${host_os} in
8036 aix*)
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8038 $as_echo_n "checking for -bbigtoc option... " >&6; }
8039 if test "${gdb_cv_bigtoc+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042
8043 case $GCC in
8044 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8045 *) gdb_cv_bigtoc=-bbigtoc ;;
8046 esac
8047
8048 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051
8052 int
8053 main ()
8054 {
8055 int i;
8056 ;
8057 return 0;
8058 }
8059 _ACEOF
8060 if ac_fn_c_try_link "$LINENO"; then :
8061
8062 else
8063 gdb_cv_bigtoc=
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8070 $as_echo "$gdb_cv_bigtoc" >&6; }
8071 ;;
8072 esac
8073
8074 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8075 # used for the tests that follow. We set them back to REAL_CFLAGS and
8076 # REAL_CPPFLAGS later on.
8077
8078 REAL_CPPFLAGS="$CPPFLAGS"
8079
8080 if test "${HAVE_X11}" = "yes"; then
8081 DEFS="$C_SWITCH_X_SITE $DEFS"
8082 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8083 LIBS="-lX11 $LIBS"
8084 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8085 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8086
8087 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8088 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8089 # but it's more convenient here to set LD_RUN_PATH
8090 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8091 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8092 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8093 export LD_RUN_PATH
8094 fi
8095
8096 if test "${opsys}" = "gnu-linux"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8098 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8101
8102 int
8103 main ()
8104 {
8105 XOpenDisplay ("foo");
8106 ;
8107 return 0;
8108 }
8109 _ACEOF
8110 if ac_fn_c_try_link "$LINENO"; then :
8111 xlinux_first_failure=no
8112 else
8113 xlinux_first_failure=yes
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 if test "${xlinux_first_failure}" = "yes"; then
8118 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8119 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8120 OLD_CPPFLAGS="$CPPFLAGS"
8121 OLD_LIBS="$LIBS"
8122 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8123 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8124 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8125 LIBS="$LIBS -b i486-linuxaout"
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128
8129 int
8130 main ()
8131 {
8132 XOpenDisplay ("foo");
8133 ;
8134 return 0;
8135 }
8136 _ACEOF
8137 if ac_fn_c_try_link "$LINENO"; then :
8138 xlinux_second_failure=no
8139 else
8140 xlinux_second_failure=yes
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8144 if test "${xlinux_second_failure}" = "yes"; then
8145 # If we get the same failure with -b, there is no use adding -b.
8146 # So take it out. This plays safe.
8147 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8148 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8149 CPPFLAGS="$OLD_CPPFLAGS"
8150 LIBS="$OLD_LIBS"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8155 $as_echo "yes" >&6; }
8156 fi
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161 fi
8162
8163 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8164 # header files included from there.
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8166 $as_echo_n "checking for Xkb... " >&6; }
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 #include <X11/Xlib.h>
8170 #include <X11/XKBlib.h>
8171 int
8172 main ()
8173 {
8174 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"; then :
8180 emacs_xkb=yes
8181 else
8182 emacs_xkb=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8187 $as_echo "$emacs_xkb" >&6; }
8188 if test $emacs_xkb = yes; then
8189
8190 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8191
8192 fi
8193
8194 for ac_func in XrmSetDatabase XScreenResourceString \
8195 XScreenNumberOfScreen XSetWMProtocols
8196 do :
8197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8198 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8199 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8200 cat >>confdefs.h <<_ACEOF
8201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8202 _ACEOF
8203
8204 fi
8205 done
8206
8207 fi
8208
8209 if test "${window_system}" = "x11"; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8211 $as_echo_n "checking X11 version 6... " >&6; }
8212 if test "${emacs_cv_x11_version_6+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #include <X11/Xlib.h>
8218 int
8219 main ()
8220 {
8221 #if XlibSpecificationRelease < 6
8222 fail;
8223 #endif
8224
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 if ac_fn_c_try_link "$LINENO"; then :
8230 emacs_cv_x11_version_6=yes
8231 else
8232 emacs_cv_x11_version_6=no
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext \
8235 conftest$ac_exeext conftest.$ac_ext
8236 fi
8237
8238 if test $emacs_cv_x11_version_6 = yes; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8240 $as_echo "6 or newer" >&6; }
8241
8242 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8243
8244
8245 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8246
8247 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8248 ## XIM support.
8249 case "$opsys" in
8250 sol2-*) : ;;
8251 *)
8252 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8253
8254 ;;
8255 esac
8256 else
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8258 $as_echo "before 6" >&6; }
8259 fi
8260 fi
8261
8262
8263 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8264 HAVE_RSVG=no
8265 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8266 if test "${with_rsvg}" != "no"; then
8267 RSVG_REQUIRED=2.11.0
8268 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8269
8270
8271 succeeded=no
8272
8273 # Extract the first word of "pkg-config", so it can be a program name with args.
8274 set dummy pkg-config; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 case $PKG_CONFIG in
8281 [\\/]* | ?:[\\/]*)
8282 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8283 ;;
8284 *)
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8287 do
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8292 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8295 fi
8296 done
8297 done
8298 IFS=$as_save_IFS
8299
8300 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8301 ;;
8302 esac
8303 fi
8304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8305 if test -n "$PKG_CONFIG"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8307 $as_echo "$PKG_CONFIG" >&6; }
8308 else
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8311 fi
8312
8313
8314
8315 if test "$PKG_CONFIG" = "no" ; then
8316 :
8317 else
8318 PKG_CONFIG_MIN_VERSION=0.9.0
8319 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8321 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8322
8323 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8325 $as_echo "yes" >&6; }
8326 succeeded=yes
8327
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8329 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8330 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8332 $as_echo "$RSVG_CFLAGS" >&6; }
8333
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8335 $as_echo_n "checking RSVG_LIBS... " >&6; }
8336 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8338 $as_echo "$RSVG_LIBS" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 RSVG_CFLAGS=""
8343 RSVG_LIBS=""
8344 ## If we have a custom action on failure, don't print errors, but
8345 ## do set a variable so people can do so.
8346 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8347
8348 fi
8349
8350
8351
8352 else
8353 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8354 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8355 fi
8356 fi
8357
8358 if test $succeeded = yes; then
8359 :
8360 else
8361 :
8362 fi
8363
8364
8365
8366
8367 if test ".${RSVG_CFLAGS}" != "."; then
8368 HAVE_RSVG=yes
8369
8370 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8371
8372 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8373 LIBS="$RSVG_LIBS $LIBS"
8374 fi
8375 fi
8376 fi
8377
8378
8379 HAVE_GTK=no
8380 if test "${with_gtk3}" = "yes"; then
8381 GLIB_REQUIRED=2.6
8382 GTK_REQUIRED=2.90
8383 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8384
8385
8386 succeeded=no
8387
8388 # Extract the first word of "pkg-config", so it can be a program name with args.
8389 set dummy pkg-config; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 case $PKG_CONFIG in
8396 [\\/]* | ?:[\\/]*)
8397 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8398 ;;
8399 *)
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8402 do
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8410 fi
8411 done
8412 done
8413 IFS=$as_save_IFS
8414
8415 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8416 ;;
8417 esac
8418 fi
8419 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8420 if test -n "$PKG_CONFIG"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8422 $as_echo "$PKG_CONFIG" >&6; }
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8426 fi
8427
8428
8429
8430 if test "$PKG_CONFIG" = "no" ; then
8431 pkg_check_gtk=no
8432 else
8433 PKG_CONFIG_MIN_VERSION=0.9.0
8434 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8436 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8437
8438 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8440 $as_echo "yes" >&6; }
8441 succeeded=yes
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8444 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8445 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8447 $as_echo "$GTK_CFLAGS" >&6; }
8448
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8450 $as_echo_n "checking GTK_LIBS... " >&6; }
8451 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8453 $as_echo "$GTK_LIBS" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8457 GTK_CFLAGS=""
8458 GTK_LIBS=""
8459 ## If we have a custom action on failure, don't print errors, but
8460 ## do set a variable so people can do so.
8461 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8462
8463 fi
8464
8465
8466
8467 else
8468 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8469 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8470 fi
8471 fi
8472
8473 if test $succeeded = yes; then
8474 pkg_check_gtk=yes
8475 else
8476 pkg_check_gtk=no
8477 fi
8478
8479 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8480 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8481 fi
8482 fi
8483
8484 if test "$pkg_check_gtk" != "yes"; then
8485 HAVE_GTK=no
8486 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8487 GLIB_REQUIRED=2.6
8488 GTK_REQUIRED=2.6
8489 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8490
8491
8492 succeeded=no
8493
8494 # Extract the first word of "pkg-config", so it can be a program name with args.
8495 set dummy pkg-config; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 case $PKG_CONFIG in
8502 [\\/]* | ?:[\\/]*)
8503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8504 ;;
8505 *)
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8508 do
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8516 fi
8517 done
8518 done
8519 IFS=$as_save_IFS
8520
8521 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8522 ;;
8523 esac
8524 fi
8525 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8526 if test -n "$PKG_CONFIG"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8528 $as_echo "$PKG_CONFIG" >&6; }
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8532 fi
8533
8534
8535
8536 if test "$PKG_CONFIG" = "no" ; then
8537 pkg_check_gtk=no
8538 else
8539 PKG_CONFIG_MIN_VERSION=0.9.0
8540 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8542 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8543
8544 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8546 $as_echo "yes" >&6; }
8547 succeeded=yes
8548
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8550 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8551 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8553 $as_echo "$GTK_CFLAGS" >&6; }
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8556 $as_echo_n "checking GTK_LIBS... " >&6; }
8557 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8559 $as_echo "$GTK_LIBS" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 GTK_CFLAGS=""
8564 GTK_LIBS=""
8565 ## If we have a custom action on failure, don't print errors, but
8566 ## do set a variable so people can do so.
8567 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8568
8569 fi
8570
8571
8572
8573 else
8574 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8575 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8576 fi
8577 fi
8578
8579 if test $succeeded = yes; then
8580 pkg_check_gtk=yes
8581 else
8582 pkg_check_gtk=no
8583 fi
8584
8585 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8586 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8587 fi
8588 fi
8589 fi
8590
8591 GTK_OBJ=
8592 if test x"$pkg_check_gtk" = xyes; then
8593
8594
8595
8596 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8597 CFLAGS="$CFLAGS $GTK_CFLAGS"
8598 LIBS="$GTK_LIBS $LIBS"
8599 GTK_COMPILES=no
8600 for ac_func in gtk_main
8601 do :
8602 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8603 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8604 cat >>confdefs.h <<_ACEOF
8605 #define HAVE_GTK_MAIN 1
8606 _ACEOF
8607 GTK_COMPILES=yes
8608 fi
8609 done
8610
8611 if test "${GTK_COMPILES}" != "yes"; then
8612 if test "$USE_X_TOOLKIT" != "maybe"; then
8613 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8614 fi
8615 else
8616 HAVE_GTK=yes
8617
8618 $as_echo "#define USE_GTK 1" >>confdefs.h
8619
8620 GTK_OBJ=gtkutil.o
8621 USE_X_TOOLKIT=none
8622 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8623 :
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8626 closing open displays. This is no problem if you just use
8627 one display, but if you use more than one and close one of them
8628 Emacs may crash." >&5
8629 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8630 closing open displays. This is no problem if you just use
8631 one display, but if you use more than one and close one of them
8632 Emacs may crash." >&2;}
8633 sleep 3
8634 fi
8635 fi
8636
8637 fi
8638
8639
8640
8641 if test "${HAVE_GTK}" = "yes"; then
8642
8643 if test "$with_toolkit_scroll_bars" != no; then
8644 with_toolkit_scroll_bars=yes
8645 fi
8646
8647 HAVE_GTK_FILE_SELECTION=no
8648 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8649 #include <gtk/gtk.h>
8650 "
8651 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8652 HAVE_GTK_FILE_SELECTION=yes
8653 else
8654 HAVE_GTK_FILE_SELECTION=no
8655 fi
8656
8657 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8658 for ac_func in gtk_file_selection_new
8659 do :
8660 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8661 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8662 cat >>confdefs.h <<_ACEOF
8663 #define HAVE_GTK_FILE_SELECTION_NEW 1
8664 _ACEOF
8665
8666 fi
8667 done
8668
8669 fi
8670
8671 HAVE_GTK_AND_PTHREAD=no
8672 for ac_header in pthread.h
8673 do :
8674 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8675 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8676 cat >>confdefs.h <<_ACEOF
8677 #define HAVE_PTHREAD_H 1
8678 _ACEOF
8679
8680 fi
8681
8682 done
8683
8684 if test "$ac_cv_header_pthread_h"; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8686 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8687 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 ac_check_lib_save_LIBS=$LIBS
8691 LIBS="-lpthread $LIBS"
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8694
8695 /* Override any GCC internal prototype to avoid an error.
8696 Use char because int might match the return type of a GCC
8697 builtin and then its argument prototype would still apply. */
8698 #ifdef __cplusplus
8699 extern "C"
8700 #endif
8701 char pthread_self ();
8702 int
8703 main ()
8704 {
8705 return pthread_self ();
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"; then :
8711 ac_cv_lib_pthread_pthread_self=yes
8712 else
8713 ac_cv_lib_pthread_pthread_self=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext \
8716 conftest$ac_exeext conftest.$ac_ext
8717 LIBS=$ac_check_lib_save_LIBS
8718 fi
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8720 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8721 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8722 HAVE_GTK_AND_PTHREAD=yes
8723 fi
8724
8725 fi
8726 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8727 case "${canonical}" in
8728 *-hpux*) ;;
8729 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8730 esac
8731
8732 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8733
8734 fi
8735
8736 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
8737 gtk_dialog_get_action_area gtk_widget_get_sensitive \
8738 gtk_widget_get_mapped gtk_adjustment_get_page_size \
8739 gtk_orientable_set_orientation
8740 do :
8741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8742 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8743 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8744 cat >>confdefs.h <<_ACEOF
8745 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8746 _ACEOF
8747
8748 fi
8749 done
8750
8751
8752 fi
8753
8754 HAVE_DBUS=no
8755 DBUS_OBJ=
8756 if test "${with_dbus}" = "yes"; then
8757
8758 succeeded=no
8759
8760 # Extract the first word of "pkg-config", so it can be a program name with args.
8761 set dummy pkg-config; ac_word=$2
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 $as_echo_n "checking for $ac_word... " >&6; }
8764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 case $PKG_CONFIG in
8768 [\\/]* | ?:[\\/]*)
8769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8770 ;;
8771 *)
8772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 for as_dir in $PATH
8774 do
8775 IFS=$as_save_IFS
8776 test -z "$as_dir" && as_dir=.
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 break 2
8782 fi
8783 done
8784 done
8785 IFS=$as_save_IFS
8786
8787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8788 ;;
8789 esac
8790 fi
8791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8792 if test -n "$PKG_CONFIG"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8794 $as_echo "$PKG_CONFIG" >&6; }
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 fi
8799
8800
8801
8802 if test "$PKG_CONFIG" = "no" ; then
8803 HAVE_DBUS=no
8804 else
8805 PKG_CONFIG_MIN_VERSION=0.9.0
8806 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8808 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8809
8810 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8812 $as_echo "yes" >&6; }
8813 succeeded=yes
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8816 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8817 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8819 $as_echo "$DBUS_CFLAGS" >&6; }
8820
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8822 $as_echo_n "checking DBUS_LIBS... " >&6; }
8823 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8825 $as_echo "$DBUS_LIBS" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8829 DBUS_CFLAGS=""
8830 DBUS_LIBS=""
8831 ## If we have a custom action on failure, don't print errors, but
8832 ## do set a variable so people can do so.
8833 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8834
8835 fi
8836
8837
8838
8839 else
8840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8842 fi
8843 fi
8844
8845 if test $succeeded = yes; then
8846 HAVE_DBUS=yes
8847 else
8848 HAVE_DBUS=no
8849 fi
8850
8851 if test "$HAVE_DBUS" = yes; then
8852 LIBS="$LIBS $DBUS_LIBS"
8853
8854 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8855
8856 for ac_func in dbus_watch_get_unix_fd
8857 do :
8858 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8859 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8860 cat >>confdefs.h <<_ACEOF
8861 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8862 _ACEOF
8863
8864 fi
8865 done
8866
8867 DBUS_OBJ=dbusbind.o
8868 fi
8869 fi
8870
8871
8872 HAVE_GCONF=no
8873 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8874
8875 succeeded=no
8876
8877 # Extract the first word of "pkg-config", so it can be a program name with args.
8878 set dummy pkg-config; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 case $PKG_CONFIG in
8885 [\\/]* | ?:[\\/]*)
8886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8887 ;;
8888 *)
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 break 2
8899 fi
8900 done
8901 done
8902 IFS=$as_save_IFS
8903
8904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8905 ;;
8906 esac
8907 fi
8908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8909 if test -n "$PKG_CONFIG"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8911 $as_echo "$PKG_CONFIG" >&6; }
8912 else
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8915 fi
8916
8917
8918
8919 if test "$PKG_CONFIG" = "no" ; then
8920 HAVE_GCONF=no
8921 else
8922 PKG_CONFIG_MIN_VERSION=0.9.0
8923 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8925 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8926
8927 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8929 $as_echo "yes" >&6; }
8930 succeeded=yes
8931
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8933 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8934 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8936 $as_echo "$GCONF_CFLAGS" >&6; }
8937
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8939 $as_echo_n "checking GCONF_LIBS... " >&6; }
8940 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8942 $as_echo "$GCONF_LIBS" >&6; }
8943 else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8946 GCONF_CFLAGS=""
8947 GCONF_LIBS=""
8948 ## If we have a custom action on failure, don't print errors, but
8949 ## do set a variable so people can do so.
8950 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8951
8952 fi
8953
8954
8955
8956 else
8957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8959 fi
8960 fi
8961
8962 if test $succeeded = yes; then
8963 HAVE_GCONF=yes
8964 else
8965 HAVE_GCONF=no
8966 fi
8967
8968 if test "$HAVE_GCONF" = yes; then
8969
8970 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8971
8972 fi
8973 fi
8974
8975 HAVE_LIBSELINUX=no
8976 LIBSELINUX_LIBS=
8977 if test "${with_selinux}" = "yes"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8979 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8980 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 ac_check_lib_save_LIBS=$LIBS
8984 LIBS="-lselinux $LIBS"
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987
8988 /* Override any GCC internal prototype to avoid an error.
8989 Use char because int might match the return type of a GCC
8990 builtin and then its argument prototype would still apply. */
8991 #ifdef __cplusplus
8992 extern "C"
8993 #endif
8994 char lgetfilecon ();
8995 int
8996 main ()
8997 {
8998 return lgetfilecon ();
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_link "$LINENO"; then :
9004 ac_cv_lib_selinux_lgetfilecon=yes
9005 else
9006 ac_cv_lib_selinux_lgetfilecon=no
9007 fi
9008 rm -f core conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
9010 LIBS=$ac_check_lib_save_LIBS
9011 fi
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9013 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9014 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9015 HAVE_LIBSELINUX=yes
9016 else
9017 HAVE_LIBSELINUX=no
9018 fi
9019
9020 if test "$HAVE_LIBSELINUX" = yes; then
9021
9022 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9023
9024 LIBSELINUX_LIBS=-lselinux
9025 fi
9026 fi
9027
9028
9029 HAVE_XAW3D=no
9030 LUCID_LIBW=
9031 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9032 if test "$with_xaw3d" != no; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9034 $as_echo_n "checking for xaw3d... " >&6; }
9035 if test "${emacs_cv_xaw3d+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040
9041 #include <X11/Intrinsic.h>
9042 #include <X11/Xaw3d/Simple.h>
9043 int
9044 main ()
9045 {
9046
9047 ;
9048 return 0;
9049 }
9050 _ACEOF
9051 if ac_fn_c_try_link "$LINENO"; then :
9052 emacs_cv_xaw3d=yes
9053 else
9054 emacs_cv_xaw3d=no
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
9058 fi
9059
9060 else
9061 emacs_cv_xaw3d=no
9062 fi
9063 if test $emacs_cv_xaw3d = yes; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9065 $as_echo "yes; using Lucid toolkit" >&6; }
9066 USE_X_TOOLKIT=LUCID
9067 HAVE_XAW3D=yes
9068 LUCID_LIBW=-lXaw3d
9069
9070 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9071
9072 else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9076 $as_echo_n "checking for libXaw... " >&6; }
9077 if test "${emacs_cv_xaw+set}" = set; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082
9083 #include <X11/Intrinsic.h>
9084 #include <X11/Xaw/Simple.h>
9085 int
9086 main ()
9087 {
9088
9089 ;
9090 return 0;
9091 }
9092 _ACEOF
9093 if ac_fn_c_try_link "$LINENO"; then :
9094 emacs_cv_xaw=yes
9095 else
9096 emacs_cv_xaw=no
9097 fi
9098 rm -f core conftest.err conftest.$ac_objext \
9099 conftest$ac_exeext conftest.$ac_ext
9100 fi
9101
9102 if test $emacs_cv_xaw = yes; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9104 $as_echo "yes; using Lucid toolkit" >&6; }
9105 USE_X_TOOLKIT=LUCID
9106 LUCID_LIBW=-lXaw
9107 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9108 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9109 else
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9111 $as_echo "no; do not use toolkit by default" >&6; }
9112 USE_X_TOOLKIT=none
9113 fi
9114 fi
9115 fi
9116
9117 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9118
9119 LIBXTR6=
9120 if test "${USE_X_TOOLKIT}" != "none"; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9122 $as_echo_n "checking X11 toolkit version... " >&6; }
9123 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 #include <X11/Intrinsic.h>
9129 int
9130 main ()
9131 {
9132 #if XtSpecificationRelease < 6
9133 fail;
9134 #endif
9135
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"; then :
9141 emacs_cv_x11_toolkit_version_6=yes
9142 else
9143 emacs_cv_x11_toolkit_version_6=no
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147 fi
9148
9149 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9150 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9152 $as_echo "6 or newer" >&6; }
9153
9154 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9155
9156 LIBXTR6="-lSM -lICE"
9157 case "$opsys" in
9158 ## Use libw.a along with X11R6 Xt.
9159 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9160 esac
9161 else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9163 $as_echo "before 6" >&6; }
9164 fi
9165
9166 OLDLIBS="$LIBS"
9167 if test x$HAVE_X11XTR6 = xyes; then
9168 LIBS="-lXt -lSM -lICE $LIBS"
9169 else
9170 LIBS="-lXt $LIBS"
9171 fi
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9173 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9174 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 ac_check_lib_save_LIBS=$LIBS
9178 LIBS="-lXmu $LIBS"
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181
9182 /* Override any GCC internal prototype to avoid an error.
9183 Use char because int might match the return type of a GCC
9184 builtin and then its argument prototype would still apply. */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 char XmuConvertStandardSelection ();
9189 int
9190 main ()
9191 {
9192 return XmuConvertStandardSelection ();
9193 ;
9194 return 0;
9195 }
9196 _ACEOF
9197 if ac_fn_c_try_link "$LINENO"; then :
9198 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9199 else
9200 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9201 fi
9202 rm -f core conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204 LIBS=$ac_check_lib_save_LIBS
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9207 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9208 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9209 cat >>confdefs.h <<_ACEOF
9210 #define HAVE_LIBXMU 1
9211 _ACEOF
9212
9213 LIBS="-lXmu $LIBS"
9214
9215 fi
9216
9217 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9218 fi
9219
9220
9221 LIBXMU=-lXmu
9222 case "$machine" in
9223 ## These machines don't supply Xmu.
9224 hpux* | aix4-2 )
9225 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9226 ;;
9227 esac
9228
9229
9230 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9231 if test "${HAVE_X11}" = "yes"; then
9232 if test "${USE_X_TOOLKIT}" != "none"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9234 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9235 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lXext $LIBS"
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242
9243 /* Override any GCC internal prototype to avoid an error.
9244 Use char because int might match the return type of a GCC
9245 builtin and then its argument prototype would still apply. */
9246 #ifdef __cplusplus
9247 extern "C"
9248 #endif
9249 char XShapeQueryExtension ();
9250 int
9251 main ()
9252 {
9253 return XShapeQueryExtension ();
9254 ;
9255 return 0;
9256 }
9257 _ACEOF
9258 if ac_fn_c_try_link "$LINENO"; then :
9259 ac_cv_lib_Xext_XShapeQueryExtension=yes
9260 else
9261 ac_cv_lib_Xext_XShapeQueryExtension=no
9262 fi
9263 rm -f core conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265 LIBS=$ac_check_lib_save_LIBS
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9268 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9269 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9270 cat >>confdefs.h <<_ACEOF
9271 #define HAVE_LIBXEXT 1
9272 _ACEOF
9273
9274 LIBS="-lXext $LIBS"
9275
9276 fi
9277
9278 fi
9279 fi
9280
9281 LIBXP=
9282 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9284 $as_echo_n "checking for Motif version 2.1... " >&6; }
9285 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 #include <Xm/Xm.h>
9291 int
9292 main ()
9293 {
9294 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9295 int x = 5;
9296 #else
9297 Motif version prior to 2.1.
9298 #endif
9299 ;
9300 return 0;
9301 }
9302 _ACEOF
9303 if ac_fn_c_try_compile "$LINENO"; then :
9304 emacs_cv_motif_version_2_1=yes
9305 else
9306 emacs_cv_motif_version_2_1=no
9307 fi
9308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 fi
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9311 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9312 if test $emacs_cv_motif_version_2_1 = yes; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9314 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9315 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 ac_check_lib_save_LIBS=$LIBS
9319 LIBS="-lXp $LIBS"
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322
9323 /* Override any GCC internal prototype to avoid an error.
9324 Use char because int might match the return type of a GCC
9325 builtin and then its argument prototype would still apply. */
9326 #ifdef __cplusplus
9327 extern "C"
9328 #endif
9329 char XpCreateContext ();
9330 int
9331 main ()
9332 {
9333 return XpCreateContext ();
9334 ;
9335 return 0;
9336 }
9337 _ACEOF
9338 if ac_fn_c_try_link "$LINENO"; then :
9339 ac_cv_lib_Xp_XpCreateContext=yes
9340 else
9341 ac_cv_lib_Xp_XpCreateContext=no
9342 fi
9343 rm -f core conftest.err conftest.$ac_objext \
9344 conftest$ac_exeext conftest.$ac_ext
9345 LIBS=$ac_check_lib_save_LIBS
9346 fi
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9348 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9349 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9350 LIBXP=-lXp
9351 fi
9352
9353 else
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9355 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9356 if test "${emacs_cv_lesstif+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 # We put this in CFLAGS temporarily to precede other -I options
9360 # that might be in CFLAGS temporarily.
9361 # We put this in CPPFLAGS where it precedes the other -I options.
9362 OLD_CPPFLAGS=$CPPFLAGS
9363 OLD_CFLAGS=$CFLAGS
9364 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9365 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9369 int
9370 main ()
9371 {
9372 int x = 5;
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_c_try_compile "$LINENO"; then :
9378 emacs_cv_lesstif=yes
9379 else
9380 emacs_cv_lesstif=no
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 fi
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9385 $as_echo "$emacs_cv_lesstif" >&6; }
9386 if test $emacs_cv_lesstif = yes; then
9387 # Make sure this -I option remains in CPPFLAGS after it is set
9388 # back to REAL_CPPFLAGS.
9389 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9390 # have those other -I options anyway. Ultimately, having this
9391 # directory ultimately in CPPFLAGS will be enough.
9392 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9393 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9394 else
9395 CFLAGS=$OLD_CFLAGS
9396 CPPFLAGS=$OLD_CPPFLAGS
9397 fi
9398 fi
9399 fi
9400
9401
9402 USE_TOOLKIT_SCROLL_BARS=no
9403 if test "${with_toolkit_scroll_bars}" != "no"; then
9404 if test "${USE_X_TOOLKIT}" != "none"; then
9405 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9406 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9407
9408 HAVE_XAW3D=no
9409 USE_TOOLKIT_SCROLL_BARS=yes
9410 elif test "${HAVE_XAW3D}" = "yes"; then
9411 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9412
9413 USE_TOOLKIT_SCROLL_BARS=yes
9414 fi
9415 elif test "${HAVE_GTK}" = "yes"; then
9416 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9417
9418 USE_TOOLKIT_SCROLL_BARS=yes
9419 elif test "${HAVE_NS}" = "yes"; then
9420 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9421
9422 USE_TOOLKIT_SCROLL_BARS=yes
9423 fi
9424 fi
9425
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428
9429 #include <X11/Xlib.h>
9430 #include <X11/Xresource.h>
9431 int
9432 main ()
9433 {
9434 XIMProc callback;
9435 ;
9436 return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 HAVE_XIM=yes
9441
9442 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9443
9444 else
9445 HAVE_XIM=no
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448
9449
9450 if test "${with_xim}" != "no"; then
9451
9452 $as_echo "#define USE_XIM 1" >>confdefs.h
9453
9454 fi
9455
9456
9457 if test "${HAVE_XIM}" != "no"; then
9458 late_CFLAGS=$CFLAGS
9459 if test "$GCC" = yes; then
9460 CFLAGS="$CFLAGS --pedantic-errors"
9461 fi
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464
9465 #include <X11/Xlib.h>
9466 #include <X11/Xresource.h>
9467 int
9468 main ()
9469 {
9470 Display *display;
9471 XrmDatabase db;
9472 char *res_name;
9473 char *res_class;
9474 XIMProc callback;
9475 XPointer *client_data;
9476 #ifndef __GNUC__
9477 /* If we're not using GCC, it's probably not XFree86, and this is
9478 probably right, but we can't use something like --pedantic-errors. */
9479 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9480 char*, XIMProc, XPointer*);
9481 #endif
9482 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9483 client_data);
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_compile "$LINENO"; then :
9489 emacs_cv_arg6_star=yes
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 if test "$emacs_cv_arg6_star" = yes; then
9493 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9494
9495 else
9496 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9497
9498 fi
9499 CFLAGS=$late_CFLAGS
9500 fi
9501
9502 ### Start of font-backend (under any platform) section.
9503 # (nothing here yet -- this is a placeholder)
9504 ### End of font-backend (under any platform) section.
9505
9506 ### Start of font-backend (under X11) section.
9507 if test "${HAVE_X11}" = "yes"; then
9508
9509 succeeded=no
9510
9511 # Extract the first word of "pkg-config", so it can be a program name with args.
9512 set dummy pkg-config; ac_word=$2
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514 $as_echo_n "checking for $ac_word... " >&6; }
9515 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 case $PKG_CONFIG in
9519 [\\/]* | ?:[\\/]*)
9520 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9521 ;;
9522 *)
9523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524 for as_dir in $PATH
9525 do
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9530 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 break 2
9533 fi
9534 done
9535 done
9536 IFS=$as_save_IFS
9537
9538 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9539 ;;
9540 esac
9541 fi
9542 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9543 if test -n "$PKG_CONFIG"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9545 $as_echo "$PKG_CONFIG" >&6; }
9546 else
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9549 fi
9550
9551
9552
9553 if test "$PKG_CONFIG" = "no" ; then
9554 HAVE_FC=no
9555 else
9556 PKG_CONFIG_MIN_VERSION=0.9.0
9557 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9559 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9560
9561 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9563 $as_echo "yes" >&6; }
9564 succeeded=yes
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9567 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9568 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9570 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9571
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9573 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9574 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9576 $as_echo "$FONTCONFIG_LIBS" >&6; }
9577 else
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579 $as_echo "no" >&6; }
9580 FONTCONFIG_CFLAGS=""
9581 FONTCONFIG_LIBS=""
9582 ## If we have a custom action on failure, don't print errors, but
9583 ## do set a variable so people can do so.
9584 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9585
9586 fi
9587
9588
9589
9590 else
9591 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9592 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9593 fi
9594 fi
9595
9596 if test $succeeded = yes; then
9597 HAVE_FC=yes
9598 else
9599 HAVE_FC=no
9600 fi
9601
9602
9603 ## Use -lXft if available, unless `--with-xft=no'.
9604 HAVE_XFT=maybe
9605 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9606 with_xft="no";
9607 fi
9608 if test "x${with_xft}" != "xno"; then
9609
9610
9611 succeeded=no
9612
9613 # Extract the first word of "pkg-config", so it can be a program name with args.
9614 set dummy pkg-config; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 case $PKG_CONFIG in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9623 ;;
9624 *)
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9627 do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9635 fi
9636 done
9637 done
9638 IFS=$as_save_IFS
9639
9640 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9641 ;;
9642 esac
9643 fi
9644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9645 if test -n "$PKG_CONFIG"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9647 $as_echo "$PKG_CONFIG" >&6; }
9648 else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9651 fi
9652
9653
9654
9655 if test "$PKG_CONFIG" = "no" ; then
9656 HAVE_XFT=no
9657 else
9658 PKG_CONFIG_MIN_VERSION=0.9.0
9659 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9661 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9662
9663 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9665 $as_echo "yes" >&6; }
9666 succeeded=yes
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9669 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9670 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9672 $as_echo "$XFT_CFLAGS" >&6; }
9673
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9675 $as_echo_n "checking XFT_LIBS... " >&6; }
9676 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9678 $as_echo "$XFT_LIBS" >&6; }
9679 else
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681 $as_echo "no" >&6; }
9682 XFT_CFLAGS=""
9683 XFT_LIBS=""
9684 ## If we have a custom action on failure, don't print errors, but
9685 ## do set a variable so people can do so.
9686 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9687
9688 fi
9689
9690
9691
9692 else
9693 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9694 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9695 fi
9696 fi
9697
9698 if test $succeeded = yes; then
9699 :
9700 else
9701 HAVE_XFT=no
9702 fi
9703
9704 ## Because xftfont.c uses XRenderQueryExtension, we also
9705 ## need to link to -lXrender.
9706 HAVE_XRENDER=no
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9708 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9709 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 ac_check_lib_save_LIBS=$LIBS
9713 LIBS="-lXrender $LIBS"
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char XRenderQueryExtension ();
9724 int
9725 main ()
9726 {
9727 return XRenderQueryExtension ();
9728 ;
9729 return 0;
9730 }
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9734 else
9735 ac_cv_lib_Xrender_XRenderQueryExtension=no
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9740 fi
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9742 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9743 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9744 HAVE_XRENDER=yes
9745 fi
9746
9747 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9748 OLD_CPPFLAGS="$CPPFLAGS"
9749 OLD_CFLAGS="$CFLAGS"
9750 OLD_LIBS="$LIBS"
9751 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9752 CFLAGS="$CFLAGS $XFT_CFLAGS"
9753 XFT_LIBS="-lXrender $XFT_LIBS"
9754 LIBS="$XFT_LIBS $LIBS"
9755 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9756 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9758 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9759 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 ac_check_lib_save_LIBS=$LIBS
9763 LIBS="-lXft $XFT_LIBS $LIBS"
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766
9767 /* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 char XftFontOpen ();
9774 int
9775 main ()
9776 {
9777 return XftFontOpen ();
9778 ;
9779 return 0;
9780 }
9781 _ACEOF
9782 if ac_fn_c_try_link "$LINENO"; then :
9783 ac_cv_lib_Xft_XftFontOpen=yes
9784 else
9785 ac_cv_lib_Xft_XftFontOpen=no
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789 LIBS=$ac_check_lib_save_LIBS
9790 fi
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9792 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9793 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9794 HAVE_XFT=yes
9795 fi
9796
9797 fi
9798
9799
9800
9801 if test "${HAVE_XFT}" = "yes"; then
9802
9803 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9804
9805
9806 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9807 else
9808 CPPFLAGS="$OLD_CPPFLAGS"
9809 CFLAGS="$OLD_CFLAGS"
9810 LIBS="$OLD_LIBS"
9811 fi # "${HAVE_XFT}" = "yes"
9812 fi # "$HAVE_XFT" != no
9813 fi # "x${with_xft}" != "xno"
9814
9815 if test "$HAVE_XFT" != "yes"; then
9816 HAVE_XFT=no
9817 fi
9818
9819
9820 HAVE_FREETYPE=no
9821 ## We used to allow building with FreeType and without Xft.
9822 ## However, the ftx font backend driver is not in good shape.
9823 if test "${HAVE_XFT}" = "yes"; then
9824 HAVE_FREETYPE=yes
9825 FONTCONFIG_CFLAGS=
9826 FONTCONFIG_LIBS=
9827 fi
9828
9829 HAVE_LIBOTF=no
9830 if test "${HAVE_FREETYPE}" = "yes"; then
9831
9832 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9833
9834 if test "${with_libotf}" != "no"; then
9835
9836 succeeded=no
9837
9838 # Extract the first word of "pkg-config", so it can be a program name with args.
9839 set dummy pkg-config; ac_word=$2
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9841 $as_echo_n "checking for $ac_word... " >&6; }
9842 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 case $PKG_CONFIG in
9846 [\\/]* | ?:[\\/]*)
9847 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9848 ;;
9849 *)
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 for as_dir in $PATH
9852 do
9853 IFS=$as_save_IFS
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
9856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9857 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 break 2
9860 fi
9861 done
9862 done
9863 IFS=$as_save_IFS
9864
9865 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9866 ;;
9867 esac
9868 fi
9869 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9870 if test -n "$PKG_CONFIG"; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9872 $as_echo "$PKG_CONFIG" >&6; }
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9876 fi
9877
9878
9879
9880 if test "$PKG_CONFIG" = "no" ; then
9881 HAVE_LIBOTF=no
9882 else
9883 PKG_CONFIG_MIN_VERSION=0.9.0
9884 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9886 $as_echo_n "checking for libotf... " >&6; }
9887
9888 if $PKG_CONFIG --exists "libotf" 2>&5; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9890 $as_echo "yes" >&6; }
9891 succeeded=yes
9892
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9894 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9895 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9897 $as_echo "$LIBOTF_CFLAGS" >&6; }
9898
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9900 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9901 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9903 $as_echo "$LIBOTF_LIBS" >&6; }
9904 else
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9907 LIBOTF_CFLAGS=""
9908 LIBOTF_LIBS=""
9909 ## If we have a custom action on failure, don't print errors, but
9910 ## do set a variable so people can do so.
9911 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9912
9913 fi
9914
9915
9916
9917 else
9918 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9919 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9920 fi
9921 fi
9922
9923 if test $succeeded = yes; then
9924 HAVE_LIBOTF=yes
9925 else
9926 HAVE_LIBOTF=no
9927 fi
9928
9929 if test "$HAVE_LIBOTF" = "yes"; then
9930
9931 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9932
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9934 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9935 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 ac_check_lib_save_LIBS=$LIBS
9939 LIBS="-lotf $LIBS"
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942
9943 /* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9946 #ifdef __cplusplus
9947 extern "C"
9948 #endif
9949 char OTF_get_variation_glyphs ();
9950 int
9951 main ()
9952 {
9953 return OTF_get_variation_glyphs ();
9954 ;
9955 return 0;
9956 }
9957 _ACEOF
9958 if ac_fn_c_try_link "$LINENO"; then :
9959 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9960 else
9961 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_lib_save_LIBS
9966 fi
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9968 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9969 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9970 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9971 else
9972 HAVE_OTF_GET_VARIATION_GLYPHS=no
9973 fi
9974
9975 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9976
9977 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9978
9979 fi
9980 fi
9981 fi
9982 fi
9983
9984 HAVE_M17N_FLT=no
9985 if test "${HAVE_LIBOTF}" = yes; then
9986 if test "${with_m17n_flt}" != "no"; then
9987
9988 succeeded=no
9989
9990 # Extract the first word of "pkg-config", so it can be a program name with args.
9991 set dummy pkg-config; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 case $PKG_CONFIG in
9998 [\\/]* | ?:[\\/]*)
9999 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10000 ;;
10001 *)
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10004 do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013 done
10014 done
10015 IFS=$as_save_IFS
10016
10017 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10018 ;;
10019 esac
10020 fi
10021 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10022 if test -n "$PKG_CONFIG"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10024 $as_echo "$PKG_CONFIG" >&6; }
10025 else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 fi
10029
10030
10031
10032 if test "$PKG_CONFIG" = "no" ; then
10033 HAVE_M17N_FLT=no
10034 else
10035 PKG_CONFIG_MIN_VERSION=0.9.0
10036 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10038 $as_echo_n "checking for m17n-flt... " >&6; }
10039
10040 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10042 $as_echo "yes" >&6; }
10043 succeeded=yes
10044
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10046 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10047 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10049 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10050
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10052 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10053 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10055 $as_echo "$M17N_FLT_LIBS" >&6; }
10056 else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10059 M17N_FLT_CFLAGS=""
10060 M17N_FLT_LIBS=""
10061 ## If we have a custom action on failure, don't print errors, but
10062 ## do set a variable so people can do so.
10063 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10064
10065 fi
10066
10067
10068
10069 else
10070 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10071 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10072 fi
10073 fi
10074
10075 if test $succeeded = yes; then
10076 HAVE_M17N_FLT=yes
10077 else
10078 HAVE_M17N_FLT=no
10079 fi
10080
10081 if test "$HAVE_M17N_FLT" = "yes"; then
10082
10083 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10084
10085 fi
10086 fi
10087 fi
10088 else
10089 HAVE_XFT=no
10090 HAVE_FREETYPE=no
10091 HAVE_LIBOTF=no
10092 HAVE_M17N_FLT=no
10093 fi
10094
10095 ### End of font-backend (under X11) section.
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106 ### Use -lXpm if available, unless `--with-xpm=no'.
10107 HAVE_XPM=no
10108 LIBXPM=
10109 if test "${HAVE_X11}" = "yes"; then
10110 if test "${with_xpm}" != "no"; then
10111 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10112 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10114 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10115 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 ac_check_lib_save_LIBS=$LIBS
10119 LIBS="-lXpm -lX11 $LIBS"
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 char XpmReadFileToPixmap ();
10130 int
10131 main ()
10132 {
10133 return XpmReadFileToPixmap ();
10134 ;
10135 return 0;
10136 }
10137 _ACEOF
10138 if ac_fn_c_try_link "$LINENO"; then :
10139 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10140 else
10141 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 LIBS=$ac_check_lib_save_LIBS
10146 fi
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10148 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10149 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10150 HAVE_XPM=yes
10151 fi
10152
10153 fi
10154
10155
10156 if test "${HAVE_XPM}" = "yes"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10158 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161 #include "X11/xpm.h"
10162 #ifndef XpmReturnAllocPixels
10163 no_return_alloc_pixels
10164 #endif
10165
10166 _ACEOF
10167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10168 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10169 HAVE_XPM=no
10170 else
10171 HAVE_XPM=yes
10172 fi
10173 rm -f conftest*
10174
10175
10176 if test "${HAVE_XPM}" = "yes"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10178 $as_echo "yes" >&6; }
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10182 fi
10183 fi
10184 fi
10185
10186 if test "${HAVE_XPM}" = "yes"; then
10187
10188 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10189
10190 LIBXPM=-lXpm
10191 fi
10192 fi
10193
10194
10195 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10196 HAVE_JPEG=no
10197 LIBJPEG=
10198 if test "${HAVE_X11}" = "yes"; then
10199 if test "${with_jpeg}" != "no"; then
10200 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10201 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10203 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10204 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 ac_check_lib_save_LIBS=$LIBS
10208 LIBS="-ljpeg $LIBS"
10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10211
10212 /* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 char jpeg_destroy_compress ();
10219 int
10220 main ()
10221 {
10222 return jpeg_destroy_compress ();
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_link "$LINENO"; then :
10228 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10229 else
10230 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 LIBS=$ac_check_lib_save_LIBS
10235 fi
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10237 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10238 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10239 HAVE_JPEG=yes
10240 fi
10241
10242 fi
10243
10244
10245 fi
10246
10247 if test "${HAVE_JPEG}" = "yes"; then
10248 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10249
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 #include <jpeglib.h>
10253 version=JPEG_LIB_VERSION
10254
10255 _ACEOF
10256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10257 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10258 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10259
10260 else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10262 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10263 HAVE_JPEG=no
10264 fi
10265 rm -f conftest*
10266
10267 fi
10268 if test "${HAVE_JPEG}" = "yes"; then
10269 LIBJPEG=-ljpeg
10270 fi
10271 fi
10272
10273
10274 ### Use -lpng if available, unless `--with-png=no'.
10275 HAVE_PNG=no
10276 LIBPNG=
10277 if test "${HAVE_X11}" = "yes"; then
10278 if test "${with_png}" != "no"; then
10279 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10280 # in /usr/include/libpng.
10281 for ac_header in png.h libpng/png.h
10282 do :
10283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10284 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10286 cat >>confdefs.h <<_ACEOF
10287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10288 _ACEOF
10289
10290 fi
10291
10292 done
10293
10294 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10296 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10297 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-lpng -lz -lm $LIBS"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304
10305 /* Override any GCC internal prototype to avoid an error.
10306 Use char because int might match the return type of a GCC
10307 builtin and then its argument prototype would still apply. */
10308 #ifdef __cplusplus
10309 extern "C"
10310 #endif
10311 char png_get_channels ();
10312 int
10313 main ()
10314 {
10315 return png_get_channels ();
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321 ac_cv_lib_png_png_get_channels=yes
10322 else
10323 ac_cv_lib_png_png_get_channels=no
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 LIBS=$ac_check_lib_save_LIBS
10328 fi
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10330 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10331 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10332 HAVE_PNG=yes
10333 fi
10334
10335 fi
10336 fi
10337
10338 if test "${HAVE_PNG}" = "yes"; then
10339
10340 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10341
10342 LIBPNG="-lpng -lz -lm"
10343 fi
10344 fi
10345
10346
10347 ### Use -ltiff if available, unless `--with-tiff=no'.
10348 HAVE_TIFF=no
10349 LIBTIFF=
10350 if test "${HAVE_X11}" = "yes"; then
10351 if test "${with_tiff}" != "no"; then
10352 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10353 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10354 tifflibs="-lz -lm"
10355 # At least one tiff package requires the jpeg library.
10356 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10358 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10359 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 ac_check_lib_save_LIBS=$LIBS
10363 LIBS="-ltiff $tifflibs $LIBS"
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366
10367 /* Override any GCC internal prototype to avoid an error.
10368 Use char because int might match the return type of a GCC
10369 builtin and then its argument prototype would still apply. */
10370 #ifdef __cplusplus
10371 extern "C"
10372 #endif
10373 char TIFFGetVersion ();
10374 int
10375 main ()
10376 {
10377 return TIFFGetVersion ();
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 if ac_fn_c_try_link "$LINENO"; then :
10383 ac_cv_lib_tiff_TIFFGetVersion=yes
10384 else
10385 ac_cv_lib_tiff_TIFFGetVersion=no
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389 LIBS=$ac_check_lib_save_LIBS
10390 fi
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10392 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10393 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10394 HAVE_TIFF=yes
10395 fi
10396
10397 fi
10398
10399
10400 fi
10401
10402 if test "${HAVE_TIFF}" = "yes"; then
10403
10404 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10405
10406 LIBTIFF=-ltiff
10407 fi
10408 fi
10409
10410
10411 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10412 HAVE_GIF=no
10413 LIBGIF=
10414 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10415 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10416 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10417 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10418 # Earlier versions can crash Emacs.
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10420 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10421 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 ac_check_lib_save_LIBS=$LIBS
10425 LIBS="-lgif $LIBS"
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428
10429 /* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10432 #ifdef __cplusplus
10433 extern "C"
10434 #endif
10435 char EGifPutExtensionLast ();
10436 int
10437 main ()
10438 {
10439 return EGifPutExtensionLast ();
10440 ;
10441 return 0;
10442 }
10443 _ACEOF
10444 if ac_fn_c_try_link "$LINENO"; then :
10445 ac_cv_lib_gif_EGifPutExtensionLast=yes
10446 else
10447 ac_cv_lib_gif_EGifPutExtensionLast=no
10448 fi
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451 LIBS=$ac_check_lib_save_LIBS
10452 fi
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10454 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10455 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10456 HAVE_GIF=yes
10457 else
10458 HAVE_GIF=maybe
10459 fi
10460
10461 fi
10462
10463
10464
10465 if test "$HAVE_GIF" = yes; then
10466 LIBGIF=-lgif
10467 elif test "$HAVE_GIF" = maybe; then
10468 # If gif_lib.h but no libgif, try libungif.
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10470 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10471 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 ac_check_lib_save_LIBS=$LIBS
10475 LIBS="-lungif $LIBS"
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10478
10479 /* Override any GCC internal prototype to avoid an error.
10480 Use char because int might match the return type of a GCC
10481 builtin and then its argument prototype would still apply. */
10482 #ifdef __cplusplus
10483 extern "C"
10484 #endif
10485 char EGifPutExtensionLast ();
10486 int
10487 main ()
10488 {
10489 return EGifPutExtensionLast ();
10490 ;
10491 return 0;
10492 }
10493 _ACEOF
10494 if ac_fn_c_try_link "$LINENO"; then :
10495 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10496 else
10497 ac_cv_lib_ungif_EGifPutExtensionLast=no
10498 fi
10499 rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10501 LIBS=$ac_check_lib_save_LIBS
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10504 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10505 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10506 HAVE_GIF=yes
10507 else
10508 HAVE_GIF=no
10509 fi
10510
10511 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10512 fi
10513
10514 if test "${HAVE_GIF}" = "yes"; then
10515
10516 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10517
10518 fi
10519 fi
10520
10521
10522 if test "${HAVE_X11}" = "yes"; then
10523 MISSING=""
10524 WITH_NO=""
10525 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10526 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10527 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10528 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10529 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10530 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10531 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10532 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10533 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10534 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10535
10536 if test "X${MISSING}" != X; then
10537 as_fn_error $? "The following required libraries were not found:
10538 $MISSING
10539 Maybe some development libraries/packages are missing?
10540 If you don't want to link with them give
10541 $WITH_NO
10542 as options to configure" "$LINENO" 5
10543 fi
10544 fi
10545
10546 ### Use -lgpm if available, unless `--with-gpm=no'.
10547 HAVE_GPM=no
10548 LIBGPM=
10549 MOUSE_SUPPORT=
10550 if test "${with_gpm}" != "no"; then
10551 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10552 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10554 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10555 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558 ac_check_lib_save_LIBS=$LIBS
10559 LIBS="-lgpm $LIBS"
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10562
10563 /* Override any GCC internal prototype to avoid an error.
10564 Use char because int might match the return type of a GCC
10565 builtin and then its argument prototype would still apply. */
10566 #ifdef __cplusplus
10567 extern "C"
10568 #endif
10569 char Gpm_Open ();
10570 int
10571 main ()
10572 {
10573 return Gpm_Open ();
10574 ;
10575 return 0;
10576 }
10577 _ACEOF
10578 if ac_fn_c_try_link "$LINENO"; then :
10579 ac_cv_lib_gpm_Gpm_Open=yes
10580 else
10581 ac_cv_lib_gpm_Gpm_Open=no
10582 fi
10583 rm -f core conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10586 fi
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10588 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10589 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10590 HAVE_GPM=yes
10591 fi
10592
10593 fi
10594
10595
10596
10597 if test "${HAVE_GPM}" = "yes"; then
10598
10599 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10600
10601 LIBGPM=-lgpm
10602 ## May be reset below.
10603 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10604 fi
10605 fi
10606
10607
10608 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10609 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10610
10611 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10612
10613 fi
10614
10615
10616
10617 C_SWITCH_X_SYSTEM=
10618 ### Use NeXTstep API to implement GUI.
10619 if test "${HAVE_NS}" = "yes"; then
10620
10621 $as_echo "#define HAVE_NS 1" >>confdefs.h
10622
10623 if test "${NS_IMPL_COCOA}" = "yes"; then
10624
10625 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10626
10627 GNU_OBJC_CFLAGS=
10628 fi
10629 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10630
10631 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10632
10633 # See also .m.o rule in Makefile.in */
10634 # FIXME: are all these flags really needed? Document here why. */
10635 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10636 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10637 fi
10638 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10639
10640 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10641
10642 fi
10643 # We also have mouse menus.
10644 HAVE_MENUS=yes
10645 OTHER_FILES=ns-app
10646 fi
10647
10648
10649 ### Use session management (-lSM -lICE) if available
10650 HAVE_X_SM=no
10651 LIBXSM=
10652 if test "${HAVE_X11}" = "yes"; then
10653 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10654 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10656 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10657 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 ac_check_lib_save_LIBS=$LIBS
10661 LIBS="-lSM -lICE $LIBS"
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664
10665 /* Override any GCC internal prototype to avoid an error.
10666 Use char because int might match the return type of a GCC
10667 builtin and then its argument prototype would still apply. */
10668 #ifdef __cplusplus
10669 extern "C"
10670 #endif
10671 char SmcOpenConnection ();
10672 int
10673 main ()
10674 {
10675 return SmcOpenConnection ();
10676 ;
10677 return 0;
10678 }
10679 _ACEOF
10680 if ac_fn_c_try_link "$LINENO"; then :
10681 ac_cv_lib_SM_SmcOpenConnection=yes
10682 else
10683 ac_cv_lib_SM_SmcOpenConnection=no
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10690 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10691 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10692 HAVE_X_SM=yes
10693 fi
10694
10695 fi
10696
10697
10698
10699 if test "${HAVE_X_SM}" = "yes"; then
10700
10701 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10702
10703 LIBXSM="-lSM -lICE"
10704 case "$LIBS" in
10705 *-lSM*) ;;
10706 *) LIBS="$LIBXSM $LIBS" ;;
10707 esac
10708 fi
10709 fi
10710
10711
10712 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10714 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10715 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720 #include <netdb.h>
10721 int
10722 main ()
10723 {
10724 return h_errno;
10725 ;
10726 return 0;
10727 }
10728 _ACEOF
10729 if ac_fn_c_try_link "$LINENO"; then :
10730 emacs_cv_netdb_declares_h_errno=yes
10731 else
10732 emacs_cv_netdb_declares_h_errno=no
10733 fi
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 fi
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10738 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10739 if test $emacs_cv_netdb_declares_h_errno = yes; then
10740
10741 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10742
10743 fi
10744
10745 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10746 # for constant arguments. Useless!
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10748 $as_echo_n "checking for working alloca.h... " >&6; }
10749 if test "${ac_cv_working_alloca_h+set}" = set; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10754 #include <alloca.h>
10755 int
10756 main ()
10757 {
10758 char *p = (char *) alloca (2 * sizeof (int));
10759 if (p) return 0;
10760 ;
10761 return 0;
10762 }
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"; then :
10765 ac_cv_working_alloca_h=yes
10766 else
10767 ac_cv_working_alloca_h=no
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext \
10770 conftest$ac_exeext conftest.$ac_ext
10771 fi
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10773 $as_echo "$ac_cv_working_alloca_h" >&6; }
10774 if test $ac_cv_working_alloca_h = yes; then
10775
10776 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10777
10778 fi
10779
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10781 $as_echo_n "checking for alloca... " >&6; }
10782 if test "${ac_cv_func_alloca_works+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10787 #ifdef __GNUC__
10788 # define alloca __builtin_alloca
10789 #else
10790 # ifdef _MSC_VER
10791 # include <malloc.h>
10792 # define alloca _alloca
10793 # else
10794 # ifdef HAVE_ALLOCA_H
10795 # include <alloca.h>
10796 # else
10797 # ifdef _AIX
10798 #pragma alloca
10799 # else
10800 # ifndef alloca /* predefined by HP cc +Olibcalls */
10801 char *alloca ();
10802 # endif
10803 # endif
10804 # endif
10805 # endif
10806 #endif
10807
10808 int
10809 main ()
10810 {
10811 char *p = (char *) alloca (1);
10812 if (p) return 0;
10813 ;
10814 return 0;
10815 }
10816 _ACEOF
10817 if ac_fn_c_try_link "$LINENO"; then :
10818 ac_cv_func_alloca_works=yes
10819 else
10820 ac_cv_func_alloca_works=no
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10826 $as_echo "$ac_cv_func_alloca_works" >&6; }
10827
10828 if test $ac_cv_func_alloca_works = yes; then
10829
10830 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10831
10832 else
10833 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10834 # that cause trouble. Some versions do not even contain alloca or
10835 # contain a buggy version. If you still want to use their alloca,
10836 # use ar to extract alloca.o from them instead of compiling alloca.c.
10837
10838 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10839
10840 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10841
10842
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10844 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10845 if test "${ac_cv_os_cray+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850 #if defined CRAY && ! defined CRAY2
10851 webecray
10852 #else
10853 wenotbecray
10854 #endif
10855
10856 _ACEOF
10857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10858 $EGREP "webecray" >/dev/null 2>&1; then :
10859 ac_cv_os_cray=yes
10860 else
10861 ac_cv_os_cray=no
10862 fi
10863 rm -f conftest*
10864
10865 fi
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10867 $as_echo "$ac_cv_os_cray" >&6; }
10868 if test $ac_cv_os_cray = yes; then
10869 for ac_func in _getb67 GETB67 getb67; do
10870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10873
10874 cat >>confdefs.h <<_ACEOF
10875 #define CRAY_STACKSEG_END $ac_func
10876 _ACEOF
10877
10878 break
10879 fi
10880
10881 done
10882 fi
10883
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10885 $as_echo_n "checking stack direction for C alloca... " >&6; }
10886 if test "${ac_cv_c_stack_direction+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 if test "$cross_compiling" = yes; then :
10890 ac_cv_c_stack_direction=0
10891 else
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894 $ac_includes_default
10895 int
10896 find_stack_direction ()
10897 {
10898 static char *addr = 0;
10899 auto char dummy;
10900 if (addr == 0)
10901 {
10902 addr = &dummy;
10903 return find_stack_direction ();
10904 }
10905 else
10906 return (&dummy > addr) ? 1 : -1;
10907 }
10908
10909 int
10910 main ()
10911 {
10912 return find_stack_direction () < 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_run "$LINENO"; then :
10916 ac_cv_c_stack_direction=1
10917 else
10918 ac_cv_c_stack_direction=-1
10919 fi
10920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10921 conftest.$ac_objext conftest.beam conftest.$ac_ext
10922 fi
10923
10924 fi
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10926 $as_echo "$ac_cv_c_stack_direction" >&6; }
10927 cat >>confdefs.h <<_ACEOF
10928 #define STACK_DIRECTION $ac_cv_c_stack_direction
10929 _ACEOF
10930
10931
10932 fi
10933
10934
10935 if test x"$ac_cv_func_alloca_works" != xyes; then
10936 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
10937 fi
10938
10939 # fmod, logb, and frexp are found in -lm on most systems.
10940 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10942 $as_echo_n "checking for sqrt in -lm... " >&6; }
10943 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-lm $LIBS"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char sqrt ();
10958 int
10959 main ()
10960 {
10961 return sqrt ();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 ac_cv_lib_m_sqrt=yes
10968 else
10969 ac_cv_lib_m_sqrt=no
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_lib_save_LIBS
10974 fi
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10976 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10977 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10978 cat >>confdefs.h <<_ACEOF
10979 #define HAVE_LIBM 1
10980 _ACEOF
10981
10982 LIBS="-lm $LIBS"
10983
10984 fi
10985
10986
10987 # Check for mail-locking functions in a "mail" library. Probably this should
10988 # have the same check as for liblockfile below.
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10990 $as_echo_n "checking for maillock in -lmail... " >&6; }
10991 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lmail $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char maillock ();
11006 int
11007 main ()
11008 {
11009 return maillock ();
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ac_cv_lib_mail_maillock=yes
11016 else
11017 ac_cv_lib_mail_maillock=no
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11024 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11025 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11026 have_mail=yes
11027 else
11028 have_mail=no
11029 fi
11030
11031 if test $have_mail = yes; then
11032 LIBS_MAIL=-lmail
11033 LIBS="$LIBS_MAIL $LIBS"
11034
11035 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11036
11037 else
11038 LIBS_MAIL=
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11041 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11042 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-llockfile $LIBS"
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049
11050 /* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 char maillock ();
11057 int
11058 main ()
11059 {
11060 return maillock ();
11061 ;
11062 return 0;
11063 }
11064 _ACEOF
11065 if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_lib_lockfile_maillock=yes
11067 else
11068 ac_cv_lib_lockfile_maillock=no
11069 fi
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11073 fi
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11075 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11076 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11077 have_lockfile=yes
11078 else
11079 have_lockfile=no
11080 fi
11081
11082 if test $have_lockfile = yes; then
11083 LIBS_MAIL=-llockfile
11084 LIBS="$LIBS_MAIL $LIBS"
11085
11086 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11087
11088 else
11089 # If we have the shared liblockfile, assume we must use it for mail
11090 # locking (e.g. Debian). If we couldn't link against liblockfile
11091 # (no liblockfile.a installed), ensure that we don't need to.
11092 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11093 set dummy liblockfile.so; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 if test -n "$liblockfile"; then
11100 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11101 else
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11104 for as_dir in $as_dummy
11105 do
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11110 ac_cv_prog_liblockfile="yes"
11111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 break 2
11113 fi
11114 done
11115 done
11116 IFS=$as_save_IFS
11117
11118 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11119 fi
11120 fi
11121 liblockfile=$ac_cv_prog_liblockfile
11122 if test -n "$liblockfile"; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11124 $as_echo "$liblockfile" >&6; }
11125 else
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128 fi
11129
11130
11131 if test $ac_cv_prog_liblockfile = yes; then
11132 as_fn_error $? "Shared liblockfile found but can't link against it.
11133 This probably means that movemail could lose mail.
11134 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11135 fi
11136 fi
11137 for ac_func in touchlock
11138 do :
11139 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11140 if test "x$ac_cv_func_touchlock" = x""yes; then :
11141 cat >>confdefs.h <<_ACEOF
11142 #define HAVE_TOUCHLOCK 1
11143 _ACEOF
11144
11145 fi
11146 done
11147
11148 for ac_header in maillock.h
11149 do :
11150 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11151 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11152 cat >>confdefs.h <<_ACEOF
11153 #define HAVE_MAILLOCK_H 1
11154 _ACEOF
11155
11156 fi
11157
11158 done
11159
11160
11161
11162 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11163 ## interlock access to the mail spool. The alternative is a lock file named
11164 ## /usr/spool/mail/$USER.lock.
11165 mail_lock=no
11166 case "$opsys" in
11167 aix4-2) mail_lock="lockf" ;;
11168
11169 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11170
11171 ## On GNU/Linux systems, both methods are used by various mail programs.
11172 ## I assume most people are using newer mailers that have heard of flock.
11173 ## Change this if you need to.
11174 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11175 ## configure gets the right answers, and that means *NOT* using flock.
11176 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11177 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11178 ## Debian maintainer hasn't provided a clean fix for Emacs.
11179 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11180 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11181 ## correct logic. -- fx
11182 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11183 ## liblockfile is a Free Software replacement for libmail, used on
11184 ## Debian systems and elsewhere. -rfr.
11185 gnu-*)
11186 mail_lock="flock"
11187 if test $have_mail = yes || test $have_lockfile = yes; then
11188 test $ac_cv_header_maillock_h = yes && mail_lock=no
11189 fi
11190 ;;
11191 esac
11192
11193 BLESSMAIL_TARGET=
11194 case "$mail_lock" in
11195 flock)
11196 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11197 ;;
11198
11199 lockf)
11200 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11201 ;;
11202
11203 *) BLESSMAIL_TARGET="need-blessmail" ;;
11204 esac
11205
11206
11207
11208 for ac_func in gethostname getdomainname dup2 \
11209 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11210 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11211 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11212 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11213 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11214 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11215 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11216 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11217 cfmakeraw cfsetspeed isnan copysign
11218 do :
11219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11220 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11221 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11222 cat >>confdefs.h <<_ACEOF
11223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224 _ACEOF
11225
11226 fi
11227 done
11228
11229
11230 for ac_header in sys/un.h
11231 do :
11232 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11233 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11234 cat >>confdefs.h <<_ACEOF
11235 #define HAVE_SYS_UN_H 1
11236 _ACEOF
11237
11238 fi
11239
11240 done
11241
11242
11243
11244
11245
11246
11247
11248 for ac_func in $ac_func_list
11249 do :
11250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11251 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11252 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11253 cat >>confdefs.h <<_ACEOF
11254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11255 _ACEOF
11256
11257 fi
11258 done
11259
11260
11261
11262
11263
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11265 $as_echo_n "checking for working mktime... " >&6; }
11266 if test "${ac_cv_func_working_mktime+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 if test "$cross_compiling" = yes; then :
11270 ac_cv_func_working_mktime=no
11271 else
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11274 /* Test program from Paul Eggert and Tony Leneis. */
11275 #ifdef TIME_WITH_SYS_TIME
11276 # include <sys/time.h>
11277 # include <time.h>
11278 #else
11279 # ifdef HAVE_SYS_TIME_H
11280 # include <sys/time.h>
11281 # else
11282 # include <time.h>
11283 # endif
11284 #endif
11285
11286 #include <limits.h>
11287 #include <stdlib.h>
11288
11289 #ifdef HAVE_UNISTD_H
11290 # include <unistd.h>
11291 #endif
11292
11293 #ifndef HAVE_ALARM
11294 # define alarm(X) /* empty */
11295 #endif
11296
11297 /* Work around redefinition to rpl_putenv by other config tests. */
11298 #undef putenv
11299
11300 static time_t time_t_max;
11301 static time_t time_t_min;
11302
11303 /* Values we'll use to set the TZ environment variable. */
11304 static const char *tz_strings[] = {
11305 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11306 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11307 };
11308 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11309
11310 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11311 Based on a problem report from Andreas Jaeger. */
11312 static int
11313 spring_forward_gap ()
11314 {
11315 /* glibc (up to about 1998-10-07) failed this test. */
11316 struct tm tm;
11317
11318 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11319 instead of "TZ=America/Vancouver" in order to detect the bug even
11320 on systems that don't support the Olson extension, or don't have the
11321 full zoneinfo tables installed. */
11322 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11323
11324 tm.tm_year = 98;
11325 tm.tm_mon = 3;
11326 tm.tm_mday = 5;
11327 tm.tm_hour = 2;
11328 tm.tm_min = 0;
11329 tm.tm_sec = 0;
11330 tm.tm_isdst = -1;
11331 return mktime (&tm) != (time_t) -1;
11332 }
11333
11334 static int
11335 mktime_test1 (time_t now)
11336 {
11337 struct tm *lt;
11338 return ! (lt = localtime (&now)) || mktime (lt) == now;
11339 }
11340
11341 static int
11342 mktime_test (time_t now)
11343 {
11344 return (mktime_test1 (now)
11345 && mktime_test1 ((time_t) (time_t_max - now))
11346 && mktime_test1 ((time_t) (time_t_min + now)));
11347 }
11348
11349 static int
11350 irix_6_4_bug ()
11351 {
11352 /* Based on code from Ariel Faigon. */
11353 struct tm tm;
11354 tm.tm_year = 96;
11355 tm.tm_mon = 3;
11356 tm.tm_mday = 0;
11357 tm.tm_hour = 0;
11358 tm.tm_min = 0;
11359 tm.tm_sec = 0;
11360 tm.tm_isdst = -1;
11361 mktime (&tm);
11362 return tm.tm_mon == 2 && tm.tm_mday == 31;
11363 }
11364
11365 static int
11366 bigtime_test (int j)
11367 {
11368 struct tm tm;
11369 time_t now;
11370 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11371 now = mktime (&tm);
11372 if (now != (time_t) -1)
11373 {
11374 struct tm *lt = localtime (&now);
11375 if (! (lt
11376 && lt->tm_year == tm.tm_year
11377 && lt->tm_mon == tm.tm_mon
11378 && lt->tm_mday == tm.tm_mday
11379 && lt->tm_hour == tm.tm_hour
11380 && lt->tm_min == tm.tm_min
11381 && lt->tm_sec == tm.tm_sec
11382 && lt->tm_yday == tm.tm_yday
11383 && lt->tm_wday == tm.tm_wday
11384 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11385 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11386 return 0;
11387 }
11388 return 1;
11389 }
11390
11391 static int
11392 year_2050_test ()
11393 {
11394 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11395 ignoring leap seconds. */
11396 unsigned long int answer = 2527315200UL;
11397
11398 struct tm tm;
11399 time_t t;
11400 tm.tm_year = 2050 - 1900;
11401 tm.tm_mon = 2 - 1;
11402 tm.tm_mday = 1;
11403 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11404 tm.tm_isdst = -1;
11405
11406 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11407 instead of "TZ=America/Vancouver" in order to detect the bug even
11408 on systems that don't support the Olson extension, or don't have the
11409 full zoneinfo tables installed. */
11410 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11411
11412 t = mktime (&tm);
11413
11414 /* Check that the result is either a failure, or close enough
11415 to the correct answer that we can assume the discrepancy is
11416 due to leap seconds. */
11417 return (t == (time_t) -1
11418 || (0 < t && answer - 120 <= t && t <= answer + 120));
11419 }
11420
11421 int
11422 main ()
11423 {
11424 time_t t, delta;
11425 int i, j;
11426
11427 /* This test makes some buggy mktime implementations loop.
11428 Give up after 60 seconds; a mktime slower than that
11429 isn't worth using anyway. */
11430 alarm (60);
11431
11432 for (;;)
11433 {
11434 t = (time_t_max << 1) + 1;
11435 if (t <= time_t_max)
11436 break;
11437 time_t_max = t;
11438 }
11439 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11440
11441 delta = time_t_max / 997; /* a suitable prime number */
11442 for (i = 0; i < N_STRINGS; i++)
11443 {
11444 if (tz_strings[i])
11445 putenv ((char*) tz_strings[i]);
11446
11447 for (t = 0; t <= time_t_max - delta; t += delta)
11448 if (! mktime_test (t))
11449 return 1;
11450 if (! (mktime_test ((time_t) 1)
11451 && mktime_test ((time_t) (60 * 60))
11452 && mktime_test ((time_t) (60 * 60 * 24))))
11453 return 1;
11454
11455 for (j = 1; ; j <<= 1)
11456 if (! bigtime_test (j))
11457 return 1;
11458 else if (INT_MAX / 2 < j)
11459 break;
11460 if (! bigtime_test (INT_MAX))
11461 return 1;
11462 }
11463 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11464 }
11465 _ACEOF
11466 if ac_fn_c_try_run "$LINENO"; then :
11467 ac_cv_func_working_mktime=yes
11468 else
11469 ac_cv_func_working_mktime=no
11470 fi
11471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11472 conftest.$ac_objext conftest.beam conftest.$ac_ext
11473 fi
11474
11475 fi
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11477 $as_echo "$ac_cv_func_working_mktime" >&6; }
11478 if test $ac_cv_func_working_mktime = no; then
11479 case " $LIBOBJS " in
11480 *" mktime.$ac_objext "* ) ;;
11481 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11482 ;;
11483 esac
11484
11485 fi
11486
11487 if test "$ac_cv_func_working_mktime" = no; then
11488
11489 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11490
11491 fi
11492
11493 ac_have_func=no # yes means we've found a way to get the load average.
11494
11495 # Make sure getloadavg.c is where it belongs, at configure-time.
11496 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11497 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11498
11499 ac_save_LIBS=$LIBS
11500
11501 # Check for getloadavg, but be sure not to touch the cache variable.
11502 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11503 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11504 exit 0
11505 else
11506 exit 1
11507 fi
11508 ) && ac_have_func=yes
11509
11510 # On HPUX9, an unprivileged user can get load averages through this function.
11511 for ac_func in pstat_getdynamic
11512 do :
11513 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11514 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11515 cat >>confdefs.h <<_ACEOF
11516 #define HAVE_PSTAT_GETDYNAMIC 1
11517 _ACEOF
11518
11519 fi
11520 done
11521
11522
11523 # Solaris has libkstat which does not require root.
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11525 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11526 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-lkstat $LIBS"
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11533
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char kstat_open ();
11541 int
11542 main ()
11543 {
11544 return kstat_open ();
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 if ac_fn_c_try_link "$LINENO"; then :
11550 ac_cv_lib_kstat_kstat_open=yes
11551 else
11552 ac_cv_lib_kstat_kstat_open=no
11553 fi
11554 rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556 LIBS=$ac_check_lib_save_LIBS
11557 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11559 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11560 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11561 cat >>confdefs.h <<_ACEOF
11562 #define HAVE_LIBKSTAT 1
11563 _ACEOF
11564
11565 LIBS="-lkstat $LIBS"
11566
11567 fi
11568
11569 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11570
11571 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11572 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11573 # to get the right answer into the cache.
11574 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11575 if test $ac_have_func = no; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11577 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11578 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-lelf $LIBS"
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 char elf_begin ();
11593 int
11594 main ()
11595 {
11596 return elf_begin ();
11597 ;
11598 return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_link "$LINENO"; then :
11602 ac_cv_lib_elf_elf_begin=yes
11603 else
11604 ac_cv_lib_elf_elf_begin=no
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11611 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11612 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11613 LIBS="-lelf $LIBS"
11614 fi
11615
11616 fi
11617 if test $ac_have_func = no; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11619 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11620 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lkvm $LIBS"
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char kvm_open ();
11635 int
11636 main ()
11637 {
11638 return kvm_open ();
11639 ;
11640 return 0;
11641 }
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644 ac_cv_lib_kvm_kvm_open=yes
11645 else
11646 ac_cv_lib_kvm_kvm_open=no
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 LIBS=$ac_check_lib_save_LIBS
11651 fi
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11653 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11654 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11655 LIBS="-lkvm $LIBS"
11656 fi
11657
11658 # Check for the 4.4BSD definition of getloadavg.
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11660 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11661 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 ac_check_lib_save_LIBS=$LIBS
11665 LIBS="-lutil $LIBS"
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11668
11669 /* Override any GCC internal prototype to avoid an error.
11670 Use char because int might match the return type of a GCC
11671 builtin and then its argument prototype would still apply. */
11672 #ifdef __cplusplus
11673 extern "C"
11674 #endif
11675 char getloadavg ();
11676 int
11677 main ()
11678 {
11679 return getloadavg ();
11680 ;
11681 return 0;
11682 }
11683 _ACEOF
11684 if ac_fn_c_try_link "$LINENO"; then :
11685 ac_cv_lib_util_getloadavg=yes
11686 else
11687 ac_cv_lib_util_getloadavg=no
11688 fi
11689 rm -f core conftest.err conftest.$ac_objext \
11690 conftest$ac_exeext conftest.$ac_ext
11691 LIBS=$ac_check_lib_save_LIBS
11692 fi
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11694 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11695 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11696 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11697 fi
11698
11699 fi
11700
11701 if test $ac_have_func = no; then
11702 # There is a commonly available library for RS/6000 AIX.
11703 # Since it is not a standard part of AIX, it might be installed locally.
11704 ac_getloadavg_LIBS=$LIBS
11705 LIBS="-L/usr/local/lib $LIBS"
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11707 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11708 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 ac_check_lib_save_LIBS=$LIBS
11712 LIBS="-lgetloadavg $LIBS"
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715
11716 /* Override any GCC internal prototype to avoid an error.
11717 Use char because int might match the return type of a GCC
11718 builtin and then its argument prototype would still apply. */
11719 #ifdef __cplusplus
11720 extern "C"
11721 #endif
11722 char getloadavg ();
11723 int
11724 main ()
11725 {
11726 return getloadavg ();
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 if ac_fn_c_try_link "$LINENO"; then :
11732 ac_cv_lib_getloadavg_getloadavg=yes
11733 else
11734 ac_cv_lib_getloadavg_getloadavg=no
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11741 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11742 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11743 LIBS="-lgetloadavg $LIBS"
11744 else
11745 LIBS=$ac_getloadavg_LIBS
11746 fi
11747
11748 fi
11749
11750 # Make sure it is really in the library, if we think we found it,
11751 # otherwise set up the replacement function.
11752 for ac_func in getloadavg
11753 do :
11754 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11755 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11756 cat >>confdefs.h <<_ACEOF
11757 #define HAVE_GETLOADAVG 1
11758 _ACEOF
11759
11760 else
11761 case " $LIBOBJS " in
11762 *" getloadavg.$ac_objext "* ) ;;
11763 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11764 ;;
11765 esac
11766
11767
11768 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11769
11770 # Figure out what our getloadavg.c needs.
11771 ac_have_func=no
11772 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11773 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11774 ac_have_func=yes
11775
11776 $as_echo "#define DGUX 1" >>confdefs.h
11777
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11779 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11780 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783 ac_check_lib_save_LIBS=$LIBS
11784 LIBS="-ldgc $LIBS"
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787
11788 /* Override any GCC internal prototype to avoid an error.
11789 Use char because int might match the return type of a GCC
11790 builtin and then its argument prototype would still apply. */
11791 #ifdef __cplusplus
11792 extern "C"
11793 #endif
11794 char dg_sys_info ();
11795 int
11796 main ()
11797 {
11798 return dg_sys_info ();
11799 ;
11800 return 0;
11801 }
11802 _ACEOF
11803 if ac_fn_c_try_link "$LINENO"; then :
11804 ac_cv_lib_dgc_dg_sys_info=yes
11805 else
11806 ac_cv_lib_dgc_dg_sys_info=no
11807 fi
11808 rm -f core conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 LIBS=$ac_check_lib_save_LIBS
11811 fi
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11813 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11814 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11815 cat >>confdefs.h <<_ACEOF
11816 #define HAVE_LIBDGC 1
11817 _ACEOF
11818
11819 LIBS="-ldgc $LIBS"
11820
11821 fi
11822
11823 fi
11824
11825
11826
11827 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11828 if test "x$ac_cv_header_locale_h" = x""yes; then :
11829
11830 fi
11831
11832
11833 for ac_func in setlocale
11834 do :
11835 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11836 if test "x$ac_cv_func_setlocale" = x""yes; then :
11837 cat >>confdefs.h <<_ACEOF
11838 #define HAVE_SETLOCALE 1
11839 _ACEOF
11840
11841 fi
11842 done
11843
11844
11845 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11846 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11847 # Irix 4.0.5F has the header but not the library.
11848 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11849 ac_have_func=yes
11850
11851 $as_echo "#define SVR4 1" >>confdefs.h
11852
11853 fi
11854
11855 if test $ac_have_func = no; then
11856 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11857 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11858 ac_have_func=yes
11859
11860 $as_echo "#define UMAX 1" >>confdefs.h
11861
11862
11863 $as_echo "#define UMAX4_3 1" >>confdefs.h
11864
11865 fi
11866
11867
11868 fi
11869
11870 if test $ac_have_func = no; then
11871 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11872 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11873 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11874
11875 fi
11876
11877
11878 fi
11879
11880 if test $ac_have_func = no; then
11881 for ac_header in mach/mach.h
11882 do :
11883 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11884 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11885 cat >>confdefs.h <<_ACEOF
11886 #define HAVE_MACH_MACH_H 1
11887 _ACEOF
11888
11889 fi
11890
11891 done
11892
11893 fi
11894
11895 for ac_header in nlist.h
11896 do :
11897 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11898 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11899 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_NLIST_H 1
11901 _ACEOF
11902 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11903 "
11904 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11905
11906 cat >>confdefs.h <<_ACEOF
11907 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11908 _ACEOF
11909
11910
11911 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11912
11913 fi
11914
11915
11916 fi
11917
11918 done
11919
11920 fi
11921 done
11922
11923
11924 # Some definitions of getloadavg require that the program be installed setgid.
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11926 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11927 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11933 #ifdef LDAV_PRIVILEGED
11934 Yowza Am I SETGID yet
11935 #endif
11936 _ACEOF
11937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11938 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11939 ac_cv_func_getloadavg_setgid=yes
11940 else
11941 ac_cv_func_getloadavg_setgid=no
11942 fi
11943 rm -f conftest*
11944
11945 fi
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11947 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11948 if test $ac_cv_func_getloadavg_setgid = yes; then
11949 NEED_SETGID=true
11950
11951 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11952
11953 else
11954 NEED_SETGID=false
11955 fi
11956
11957 if test $ac_cv_func_getloadavg_setgid = yes; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11959 $as_echo_n "checking group of /dev/kmem... " >&6; }
11960 if test "${ac_cv_group_kmem+set}" = set; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11964 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11965 # If we got an error (system does not support symlinks), try without -L.
11966 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11967 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11968 | sed -ne 's/[ ][ ]*/ /g;
11969 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11970 / /s/.* //;p;'`
11971
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11974 $as_echo "$ac_cv_group_kmem" >&6; }
11975 KMEM_GROUP=$ac_cv_group_kmem
11976 fi
11977 if test "x$ac_save_LIBS" = x; then
11978 GETLOADAVG_LIBS=$LIBS
11979 else
11980 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11981 fi
11982 LIBS=$ac_save_LIBS
11983
11984
11985
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11987 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11988 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 while :; do
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11994 #include <sys/types.h> /* for off_t */
11995 #include <stdio.h>
11996 int
11997 main ()
11998 {
11999 int (*fp) (FILE *, off_t, int) = fseeko;
12000 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12001 ;
12002 return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_link "$LINENO"; then :
12006 ac_cv_sys_largefile_source=no; break
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012 #define _LARGEFILE_SOURCE 1
12013 #include <sys/types.h> /* for off_t */
12014 #include <stdio.h>
12015 int
12016 main ()
12017 {
12018 int (*fp) (FILE *, off_t, int) = fseeko;
12019 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 if ac_fn_c_try_link "$LINENO"; then :
12025 ac_cv_sys_largefile_source=1; break
12026 fi
12027 rm -f core conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext conftest.$ac_ext
12029 ac_cv_sys_largefile_source=unknown
12030 break
12031 done
12032 fi
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12034 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12035 case $ac_cv_sys_largefile_source in #(
12036 no | unknown) ;;
12037 *)
12038 cat >>confdefs.h <<_ACEOF
12039 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12040 _ACEOF
12041 ;;
12042 esac
12043 rm -rf conftest*
12044
12045 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12046 # in glibc 2.1.3, but that breaks too many other things.
12047 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12048 if test $ac_cv_sys_largefile_source != unknown; then
12049
12050 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12051
12052 fi
12053
12054
12055 # Configure getopt.
12056 # getopt.m4 serial 10
12057
12058 # The getopt module assume you want GNU getopt, with getopt_long etc,
12059 # rather than vanilla POSIX getopt. This means your your code should
12060 # always include <getopt.h> for the getopt prototypes.
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072 # Prerequisites of lib/getopt*.
12073
12074
12075
12076
12077 GETOPT_H=
12078 for ac_header in getopt.h
12079 do :
12080 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12081 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12082 cat >>confdefs.h <<_ACEOF
12083 #define HAVE_GETOPT_H 1
12084 _ACEOF
12085
12086 else
12087 GETOPT_H=getopt.h
12088 fi
12089
12090 done
12091
12092 if test -z "$GETOPT_H"; then
12093 for ac_func in getopt_long_only
12094 do :
12095 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12096 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12097 cat >>confdefs.h <<_ACEOF
12098 #define HAVE_GETOPT_LONG_ONLY 1
12099 _ACEOF
12100
12101 else
12102 GETOPT_H=getopt.h
12103 fi
12104 done
12105
12106 fi
12107
12108 if test -z "$GETOPT_H"; then
12109 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12110 "
12111 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12112 GETOPT_H=getopt.h
12113 fi
12114
12115 fi
12116
12117 if test -z "$GETOPT_H"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12119 $as_echo_n "checking for working GNU getopt function... " >&6; }
12120 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 if test "$cross_compiling" = yes; then :
12124 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12125 "
12126 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12127 gl_cv_func_gnu_getopt=no
12128 else
12129 gl_cv_func_gnu_getopt=yes
12130 fi
12131
12132 else
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 #include <getopt.h>
12136 int
12137 main ()
12138 {
12139
12140 char *myargv[3];
12141 myargv[0] = "conftest";
12142 myargv[1] = "-+";
12143 myargv[2] = 0;
12144 return getopt (2, myargv, "+a") != '?';
12145
12146 ;
12147 return 0;
12148 }
12149 _ACEOF
12150 if ac_fn_c_try_run "$LINENO"; then :
12151 gl_cv_func_gnu_getopt=yes
12152 else
12153 gl_cv_func_gnu_getopt=no
12154 fi
12155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12156 conftest.$ac_objext conftest.beam conftest.$ac_ext
12157 fi
12158
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12161 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12162 if test "$gl_cv_func_gnu_getopt" = "no"; then
12163 GETOPT_H=getopt.h
12164 fi
12165 fi
12166
12167
12168
12169 if test -n "$GETOPT_H"; then :
12170
12171
12172 GETOPT_H=getopt.h
12173
12174 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12175
12176
12177
12178 :
12179 GETOPTOBJS='getopt.o getopt1.o'
12180
12181 fi
12182
12183
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12186 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12187 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 # Use it with a single arg.
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12193 $ac_includes_default
12194 int
12195 main ()
12196 {
12197 getpgrp (0);
12198 ;
12199 return 0;
12200 }
12201 _ACEOF
12202 if ac_fn_c_try_compile "$LINENO"; then :
12203 ac_cv_func_getpgrp_void=no
12204 else
12205 ac_cv_func_getpgrp_void=yes
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208
12209 fi
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12211 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12212 if test $ac_cv_func_getpgrp_void = yes; then
12213
12214 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12215
12216 fi
12217
12218
12219 for ac_func in strftime
12220 do :
12221 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12222 if test "x$ac_cv_func_strftime" = x""yes; then :
12223 cat >>confdefs.h <<_ACEOF
12224 #define HAVE_STRFTIME 1
12225 _ACEOF
12226
12227 else
12228 # strftime is in -lintl on SCO UNIX.
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12230 $as_echo_n "checking for strftime in -lintl... " >&6; }
12231 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 ac_check_lib_save_LIBS=$LIBS
12235 LIBS="-lintl $LIBS"
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 char strftime ();
12246 int
12247 main ()
12248 {
12249 return strftime ();
12250 ;
12251 return 0;
12252 }
12253 _ACEOF
12254 if ac_fn_c_try_link "$LINENO"; then :
12255 ac_cv_lib_intl_strftime=yes
12256 else
12257 ac_cv_lib_intl_strftime=no
12258 fi
12259 rm -f core conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261 LIBS=$ac_check_lib_save_LIBS
12262 fi
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12264 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12265 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12266 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12267
12268 LIBS="-lintl $LIBS"
12269 fi
12270
12271 fi
12272 done
12273
12274
12275 # UNIX98 PTYs.
12276 for ac_func in grantpt
12277 do :
12278 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12279 if test "x$ac_cv_func_grantpt" = x""yes; then :
12280 cat >>confdefs.h <<_ACEOF
12281 #define HAVE_GRANTPT 1
12282 _ACEOF
12283
12284 fi
12285 done
12286
12287
12288 # PTY-related GNU extensions.
12289 for ac_func in getpt
12290 do :
12291 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12292 if test "x$ac_cv_func_getpt" = x""yes; then :
12293 cat >>confdefs.h <<_ACEOF
12294 #define HAVE_GETPT 1
12295 _ACEOF
12296
12297 fi
12298 done
12299
12300
12301 # Check this now, so that we will NOT find the above functions in ncurses.
12302 # That is because we have not set up to link ncurses in lib-src.
12303 # It's better to believe a function is not available
12304 # than to expect to find it in ncurses.
12305 # Also we need tputs and friends to be able to build at all.
12306 have_tputs_et_al=true
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12308 $as_echo_n "checking for library containing tputs... " >&6; }
12309 if test "${ac_cv_search_tputs+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 ac_func_search_save_LIBS=$LIBS
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315
12316 /* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12319 #ifdef __cplusplus
12320 extern "C"
12321 #endif
12322 char tputs ();
12323 int
12324 main ()
12325 {
12326 return tputs ();
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 for ac_lib in '' ncurses terminfo termcap; do
12332 if test -z "$ac_lib"; then
12333 ac_res="none required"
12334 else
12335 ac_res=-l$ac_lib
12336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12337 fi
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_search_tputs=$ac_res
12340 fi
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext
12343 if test "${ac_cv_search_tputs+set}" = set; then :
12344 break
12345 fi
12346 done
12347 if test "${ac_cv_search_tputs+set}" = set; then :
12348
12349 else
12350 ac_cv_search_tputs=no
12351 fi
12352 rm conftest.$ac_ext
12353 LIBS=$ac_func_search_save_LIBS
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12356 $as_echo "$ac_cv_search_tputs" >&6; }
12357 ac_res=$ac_cv_search_tputs
12358 if test "$ac_res" != no; then :
12359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12360
12361 else
12362 have_tputs_et_al=false
12363 fi
12364
12365 if test "$have_tputs_et_al" != true; then
12366 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
12367 Maybe some development libraries/packages are missing? Try installing
12368 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12369 fi
12370 # Must define this when any termcap library is found.
12371
12372 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12373
12374 ## FIXME This was the cpp logic, but I am not sure it is right.
12375 ## The above test has not necessarily found libncurses.
12376 HAVE_LIBNCURSES=yes
12377
12378 ## Use terminfo instead of termcap?
12379 ## Note only system files NOT using terminfo are:
12380 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12381 ## darwin|gnu without ncurses.
12382 TERMINFO=no
12383 LIBS_TERMCAP=
12384 case "$opsys" in
12385 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12386 ## hpux10-20: Use the system provided termcap(3) library.
12387 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12388 ## is necessary. Otherwise Emacs dumps core when run -nw.
12389 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
12390
12391 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12392 ## The ncurses library has been moved out of the System framework in
12393 ## Mac OS X 10.2. So if configure detects it, set the command-line
12394 ## option to use it.
12395 darwin|gnu*)
12396 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12397 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12398 TERMINFO=yes
12399 LIBS_TERMCAP="-lncurses"
12400 fi
12401 ;;
12402
12403 freebsd)
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12405 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12406 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12411 #include <osreldate.h>
12412 int
12413 main ()
12414 {
12415 #if __FreeBSD_version < 400000
12416 fail;
12417 #endif
12418
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 emacs_cv_freebsd_terminfo=yes
12425 else
12426 emacs_cv_freebsd_terminfo=no
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 fi
12431
12432
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12434 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12435
12436 if test $emacs_cv_freebsd_terminfo = yes; then
12437 TERMINFO=yes
12438 LIBS_TERMCAP="-lncurses"
12439 else
12440 LIBS_TERMCAP="-ltermcap"
12441 fi
12442 ;;
12443
12444 netbsd)
12445 if test $ac_cv_search_tputs = -lterminfo; then
12446 TERMINFO=yes
12447 LIBS_TERMCAP="-lterminfo"
12448 else
12449 LIBS_TERMCAP="-ltermcap"
12450 fi
12451 ;;
12452
12453 esac
12454
12455 case "$opsys" in
12456 ## hpux: Make sure we get select from libc rather than from libcurses
12457 ## because libcurses on HPUX 10.10 has a broken version of select.
12458 ## We used to use -lc -lcurses, but this may be cleaner.
12459 hpux*) LIBS_TERMCAP="-ltermcap" ;;
12460
12461 openbsd) LIBS_TERMCAP="-lncurses" ;;
12462
12463 ## Must use system termcap, if we use any termcap. It does special things.
12464 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
12465 esac
12466
12467 TERMCAP_OBJ=tparam.o
12468 if test $TERMINFO = yes; then
12469
12470 $as_echo "#define TERMINFO 1" >>confdefs.h
12471
12472
12473 ## Default used to be -ltermcap. Add a case above if need something else.
12474 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
12475
12476 TERMCAP_OBJ=terminfo.o
12477 fi
12478
12479
12480
12481
12482 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12483 resolv=no
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486 #include <netinet/in.h>
12487 #include <arpa/nameser.h>
12488 #include <resolv.h>
12489 int
12490 main ()
12491 {
12492 return res_init();
12493 ;
12494 return 0;
12495 }
12496 _ACEOF
12497 if ac_fn_c_try_link "$LINENO"; then :
12498 have_res_init=yes
12499 else
12500 have_res_init=no
12501 fi
12502 rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 if test "$have_res_init" = no; then
12505 OLIBS="$LIBS"
12506 LIBS="$LIBS -lresolv"
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12508 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 #include <netinet/in.h>
12512 #include <arpa/nameser.h>
12513 #include <resolv.h>
12514 int
12515 main ()
12516 {
12517 return res_init();
12518 ;
12519 return 0;
12520 }
12521 _ACEOF
12522 if ac_fn_c_try_link "$LINENO"; then :
12523 have_res_init=yes
12524 else
12525 have_res_init=no
12526 fi
12527 rm -f core conftest.err conftest.$ac_objext \
12528 conftest$ac_exeext conftest.$ac_ext
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12530 $as_echo "$have_res_init" >&6; }
12531 if test "$have_res_init" = yes ; then
12532 resolv=yes
12533 fi
12534 LIBS="$OLIBS"
12535 fi
12536
12537 if test "$have_res_init" = yes; then
12538
12539 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12540
12541 fi
12542
12543 # Do we need the Hesiod library to provide the support routines?
12544 LIBHESIOD=
12545 if test "$with_hesiod" != no ; then
12546 # Don't set $LIBS here -- see comments above. FIXME which comments?
12547 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12548 if test "x$ac_cv_func_res_send" = x""yes; then :
12549
12550 else
12551 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12552 if test "x$ac_cv_func___res_send" = x""yes; then :
12553
12554 else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12556 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12557 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12558 $as_echo_n "(cached) " >&6
12559 else
12560 ac_check_lib_save_LIBS=$LIBS
12561 LIBS="-lresolv $LIBS"
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564
12565 /* Override any GCC internal prototype to avoid an error.
12566 Use char because int might match the return type of a GCC
12567 builtin and then its argument prototype would still apply. */
12568 #ifdef __cplusplus
12569 extern "C"
12570 #endif
12571 char res_send ();
12572 int
12573 main ()
12574 {
12575 return res_send ();
12576 ;
12577 return 0;
12578 }
12579 _ACEOF
12580 if ac_fn_c_try_link "$LINENO"; then :
12581 ac_cv_lib_resolv_res_send=yes
12582 else
12583 ac_cv_lib_resolv_res_send=no
12584 fi
12585 rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12587 LIBS=$ac_check_lib_save_LIBS
12588 fi
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12590 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12591 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12592 resolv=yes
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12595 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12596 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-lresolv $LIBS"
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 char __res_send ();
12611 int
12612 main ()
12613 {
12614 return __res_send ();
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_c_try_link "$LINENO"; then :
12620 ac_cv_lib_resolv___res_send=yes
12621 else
12622 ac_cv_lib_resolv___res_send=no
12623 fi
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12629 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12630 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12631 resolv=yes
12632 fi
12633
12634 fi
12635
12636 fi
12637
12638 fi
12639
12640 if test "$resolv" = yes ; then
12641 RESOLVLIB=-lresolv
12642 else
12643 RESOLVLIB=
12644 fi
12645 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12646 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12647
12648 else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12650 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12651 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-lhesiod $RESOLVLIB $LIBS"
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658
12659 /* Override any GCC internal prototype to avoid an error.
12660 Use char because int might match the return type of a GCC
12661 builtin and then its argument prototype would still apply. */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 char hes_getmailhost ();
12666 int
12667 main ()
12668 {
12669 return hes_getmailhost ();
12670 ;
12671 return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 ac_cv_lib_hesiod_hes_getmailhost=yes
12676 else
12677 ac_cv_lib_hesiod_hes_getmailhost=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12684 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12685 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12686 hesiod=yes
12687 else
12688 :
12689 fi
12690
12691 fi
12692
12693
12694 if test x"$hesiod" = xyes; then
12695
12696 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12697
12698 LIBHESIOD=-lhesiod
12699 fi
12700 fi
12701
12702
12703 # Do we need libresolv (due to res_init or Hesiod)?
12704 if test "$resolv" = yes ; then
12705
12706 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12707
12708 LIBRESOLV=-lresolv
12709 else
12710 LIBRESOLV=
12711 fi
12712
12713
12714 # These tell us which Kerberos-related libraries to use.
12715 COM_ERRLIB=
12716 CRYPTOLIB=
12717 KRB5LIB=
12718 DESLIB=
12719 KRB4LIB=
12720
12721 if test "${with_kerberos}" != no; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12723 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12724 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
12726 else
12727 ac_check_lib_save_LIBS=$LIBS
12728 LIBS="-lcom_err $LIBS"
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12731
12732 /* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply. */
12735 #ifdef __cplusplus
12736 extern "C"
12737 #endif
12738 char com_err ();
12739 int
12740 main ()
12741 {
12742 return com_err ();
12743 ;
12744 return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_c_try_link "$LINENO"; then :
12748 ac_cv_lib_com_err_com_err=yes
12749 else
12750 ac_cv_lib_com_err_com_err=no
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12754 LIBS=$ac_check_lib_save_LIBS
12755 fi
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12757 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12758 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12759 have_com_err=yes
12760 else
12761 have_com_err=no
12762 fi
12763
12764 if test $have_com_err = yes; then
12765 COM_ERRLIB=-lcom_err
12766 LIBS="$COM_ERRLIB $LIBS"
12767
12768 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12769
12770 fi
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12772 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12773 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 ac_check_lib_save_LIBS=$LIBS
12777 LIBS="-lcrypto $LIBS"
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780
12781 /* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
12787 char mit_des_cbc_encrypt ();
12788 int
12789 main ()
12790 {
12791 return mit_des_cbc_encrypt ();
12792 ;
12793 return 0;
12794 }
12795 _ACEOF
12796 if ac_fn_c_try_link "$LINENO"; then :
12797 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12798 else
12799 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12800 fi
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12803 LIBS=$ac_check_lib_save_LIBS
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12806 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12807 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12808 have_crypto=yes
12809 else
12810 have_crypto=no
12811 fi
12812
12813 if test $have_crypto = yes; then
12814 CRYPTOLIB=-lcrypto
12815 LIBS="$CRYPTOLIB $LIBS"
12816
12817 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12818
12819 fi
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12821 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12822 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 ac_check_lib_save_LIBS=$LIBS
12826 LIBS="-lk5crypto $LIBS"
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829
12830 /* Override any GCC internal prototype to avoid an error.
12831 Use char because int might match the return type of a GCC
12832 builtin and then its argument prototype would still apply. */
12833 #ifdef __cplusplus
12834 extern "C"
12835 #endif
12836 char mit_des_cbc_encrypt ();
12837 int
12838 main ()
12839 {
12840 return mit_des_cbc_encrypt ();
12841 ;
12842 return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_link "$LINENO"; then :
12846 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12847 else
12848 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext \
12851 conftest$ac_exeext conftest.$ac_ext
12852 LIBS=$ac_check_lib_save_LIBS
12853 fi
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12855 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12856 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12857 have_k5crypto=yes
12858 else
12859 have_k5crypto=no
12860 fi
12861
12862 if test $have_k5crypto = yes; then
12863 CRYPTOLIB=-lk5crypto
12864 LIBS="$CRYPTOLIB $LIBS"
12865
12866 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12867
12868 fi
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12870 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12871 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 ac_check_lib_save_LIBS=$LIBS
12875 LIBS="-lkrb5 $LIBS"
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char krb5_init_context ();
12886 int
12887 main ()
12888 {
12889 return krb5_init_context ();
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_link "$LINENO"; then :
12895 ac_cv_lib_krb5_krb5_init_context=yes
12896 else
12897 ac_cv_lib_krb5_krb5_init_context=no
12898 fi
12899 rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_lib_save_LIBS
12902 fi
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12904 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12905 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12906 have_krb5=yes
12907 else
12908 have_krb5=no
12909 fi
12910
12911 if test $have_krb5=yes; then
12912 KRB5LIB=-lkrb5
12913 LIBS="$KRB5LIB $LIBS"
12914
12915 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12916
12917 fi
12918 if test "${with_kerberos5}" = no; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12920 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12921 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12922 $as_echo_n "(cached) " >&6
12923 else
12924 ac_check_lib_save_LIBS=$LIBS
12925 LIBS="-ldes425 $LIBS"
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12928
12929 /* Override any GCC internal prototype to avoid an error.
12930 Use char because int might match the return type of a GCC
12931 builtin and then its argument prototype would still apply. */
12932 #ifdef __cplusplus
12933 extern "C"
12934 #endif
12935 char des_cbc_encrypt ();
12936 int
12937 main ()
12938 {
12939 return des_cbc_encrypt ();
12940 ;
12941 return 0;
12942 }
12943 _ACEOF
12944 if ac_fn_c_try_link "$LINENO"; then :
12945 ac_cv_lib_des425_des_cbc_encrypt=yes
12946 else
12947 ac_cv_lib_des425_des_cbc_encrypt=no
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12951 LIBS=$ac_check_lib_save_LIBS
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12954 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12955 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12956 have_des425=yes
12957 else
12958 have_des425=no
12959 fi
12960
12961 if test $have_des425 = yes; then
12962 DESLIB=-ldes425
12963 LIBS="$DESLIB $LIBS"
12964
12965 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12966
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12969 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12970 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 ac_check_lib_save_LIBS=$LIBS
12974 LIBS="-ldes $LIBS"
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12977
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12981 #ifdef __cplusplus
12982 extern "C"
12983 #endif
12984 char des_cbc_encrypt ();
12985 int
12986 main ()
12987 {
12988 return des_cbc_encrypt ();
12989 ;
12990 return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_c_try_link "$LINENO"; then :
12994 ac_cv_lib_des_des_cbc_encrypt=yes
12995 else
12996 ac_cv_lib_des_des_cbc_encrypt=no
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext conftest.$ac_ext
13000 LIBS=$ac_check_lib_save_LIBS
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13003 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13004 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13005 have_des=yes
13006 else
13007 have_des=no
13008 fi
13009
13010 if test $have_des = yes; then
13011 DESLIB=-ldes
13012 LIBS="$DESLIB $LIBS"
13013
13014 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13015
13016 fi
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13019 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13020 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-lkrb4 $LIBS"
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13027
13028 /* Override any GCC internal prototype to avoid an error.
13029 Use char because int might match the return type of a GCC
13030 builtin and then its argument prototype would still apply. */
13031 #ifdef __cplusplus
13032 extern "C"
13033 #endif
13034 char krb_get_cred ();
13035 int
13036 main ()
13037 {
13038 return krb_get_cred ();
13039 ;
13040 return 0;
13041 }
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044 ac_cv_lib_krb4_krb_get_cred=yes
13045 else
13046 ac_cv_lib_krb4_krb_get_cred=no
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050 LIBS=$ac_check_lib_save_LIBS
13051 fi
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13053 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13054 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13055 have_krb4=yes
13056 else
13057 have_krb4=no
13058 fi
13059
13060 if test $have_krb4 = yes; then
13061 KRB4LIB=-lkrb4
13062 LIBS="$KRB4LIB $LIBS"
13063
13064 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13065
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13068 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13069 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-lkrb $LIBS"
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char krb_get_cred ();
13084 int
13085 main ()
13086 {
13087 return krb_get_cred ();
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"; then :
13093 ac_cv_lib_krb_krb_get_cred=yes
13094 else
13095 ac_cv_lib_krb_krb_get_cred=no
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS
13100 fi
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13102 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13103 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13104 have_krb=yes
13105 else
13106 have_krb=no
13107 fi
13108
13109 if test $have_krb = yes; then
13110 KRB4LIB=-lkrb
13111 LIBS="$KRB4LIB $LIBS"
13112
13113 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13114
13115 fi
13116 fi
13117 fi
13118
13119 if test "${with_kerberos5}" != no; then
13120 for ac_header in krb5.h
13121 do :
13122 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13123 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13124 cat >>confdefs.h <<_ACEOF
13125 #define HAVE_KRB5_H 1
13126 _ACEOF
13127 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13128 "
13129 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13130
13131 cat >>confdefs.h <<_ACEOF
13132 #define HAVE_KRB5_ERROR_TEXT 1
13133 _ACEOF
13134
13135
13136 fi
13137 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13138 "
13139 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13140
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_KRB5_ERROR_E_TEXT 1
13143 _ACEOF
13144
13145
13146 fi
13147
13148 fi
13149
13150 done
13151
13152 else
13153 for ac_header in des.h
13154 do :
13155 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13156 if test "x$ac_cv_header_des_h" = x""yes; then :
13157 cat >>confdefs.h <<_ACEOF
13158 #define HAVE_DES_H 1
13159 _ACEOF
13160
13161 else
13162 for ac_header in kerberosIV/des.h
13163 do :
13164 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13165 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13166 cat >>confdefs.h <<_ACEOF
13167 #define HAVE_KERBEROSIV_DES_H 1
13168 _ACEOF
13169
13170 else
13171 for ac_header in kerberos/des.h
13172 do :
13173 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13174 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_KERBEROS_DES_H 1
13177 _ACEOF
13178
13179 fi
13180
13181 done
13182
13183 fi
13184
13185 done
13186
13187 fi
13188
13189 done
13190
13191 for ac_header in krb.h
13192 do :
13193 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13194 if test "x$ac_cv_header_krb_h" = x""yes; then :
13195 cat >>confdefs.h <<_ACEOF
13196 #define HAVE_KRB_H 1
13197 _ACEOF
13198
13199 else
13200 for ac_header in kerberosIV/krb.h
13201 do :
13202 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13203 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13204 cat >>confdefs.h <<_ACEOF
13205 #define HAVE_KERBEROSIV_KRB_H 1
13206 _ACEOF
13207
13208 else
13209 for ac_header in kerberos/krb.h
13210 do :
13211 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13212 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13213 cat >>confdefs.h <<_ACEOF
13214 #define HAVE_KERBEROS_KRB_H 1
13215 _ACEOF
13216
13217 fi
13218
13219 done
13220
13221 fi
13222
13223 done
13224
13225 fi
13226
13227 done
13228
13229 fi
13230 for ac_header in com_err.h
13231 do :
13232 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13233 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13234 cat >>confdefs.h <<_ACEOF
13235 #define HAVE_COM_ERR_H 1
13236 _ACEOF
13237
13238 fi
13239
13240 done
13241
13242 fi
13243
13244
13245
13246
13247
13248
13249
13250 # Solaris requires -lintl if you want strerror (which calls dgettext)
13251 # to return localized messages.
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13253 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13254 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 ac_check_lib_save_LIBS=$LIBS
13258 LIBS="-lintl $LIBS"
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261
13262 /* Override any GCC internal prototype to avoid an error.
13263 Use char because int might match the return type of a GCC
13264 builtin and then its argument prototype would still apply. */
13265 #ifdef __cplusplus
13266 extern "C"
13267 #endif
13268 char dgettext ();
13269 int
13270 main ()
13271 {
13272 return dgettext ();
13273 ;
13274 return 0;
13275 }
13276 _ACEOF
13277 if ac_fn_c_try_link "$LINENO"; then :
13278 ac_cv_lib_intl_dgettext=yes
13279 else
13280 ac_cv_lib_intl_dgettext=no
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext \
13283 conftest$ac_exeext conftest.$ac_ext
13284 LIBS=$ac_check_lib_save_LIBS
13285 fi
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13287 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13288 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_LIBINTL 1
13291 _ACEOF
13292
13293 LIBS="-lintl $LIBS"
13294
13295 fi
13296
13297
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13299 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13300 if test "${emacs_cv_localtime_cache+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 if test x$ac_cv_func_tzset = xyes; then
13304 if test "$cross_compiling" = yes; then :
13305 # If we have tzset, assume the worst when cross-compiling.
13306 emacs_cv_localtime_cache=yes
13307 else
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13310 #include <time.h>
13311 extern char **environ;
13312 unset_TZ ()
13313 {
13314 char **from, **to;
13315 for (to = from = environ; (*to = *from); from++)
13316 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13317 to++;
13318 }
13319 char TZ_GMT0[] = "TZ=GMT0";
13320 char TZ_PST8[] = "TZ=PST8";
13321 main()
13322 {
13323 time_t now = time ((time_t *) 0);
13324 int hour_GMT0, hour_unset;
13325 if (putenv (TZ_GMT0) != 0)
13326 exit (1);
13327 hour_GMT0 = localtime (&now)->tm_hour;
13328 unset_TZ ();
13329 hour_unset = localtime (&now)->tm_hour;
13330 if (putenv (TZ_PST8) != 0)
13331 exit (1);
13332 if (localtime (&now)->tm_hour == hour_GMT0)
13333 exit (1);
13334 unset_TZ ();
13335 if (localtime (&now)->tm_hour != hour_unset)
13336 exit (1);
13337 exit (0);
13338 }
13339 _ACEOF
13340 if ac_fn_c_try_run "$LINENO"; then :
13341 emacs_cv_localtime_cache=no
13342 else
13343 emacs_cv_localtime_cache=yes
13344 fi
13345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13346 conftest.$ac_objext conftest.beam conftest.$ac_ext
13347 fi
13348
13349 else
13350 # If we lack tzset, report that localtime does not cache TZ,
13351 # since we can't invalidate the cache if we don't have tzset.
13352 emacs_cv_localtime_cache=no
13353 fi
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13356 $as_echo "$emacs_cv_localtime_cache" >&6; }
13357 if test $emacs_cv_localtime_cache = yes; then
13358
13359 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13360
13361 fi
13362
13363 if test "x$HAVE_TIMEVAL" = xyes; then
13364 for ac_func in gettimeofday
13365 do :
13366 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13367 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13368 cat >>confdefs.h <<_ACEOF
13369 #define HAVE_GETTIMEOFDAY 1
13370 _ACEOF
13371
13372 fi
13373 done
13374
13375 if test $ac_cv_func_gettimeofday = yes; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13377 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13378 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383
13384 #ifdef TIME_WITH_SYS_TIME
13385 #include <sys/time.h>
13386 #include <time.h>
13387 #else
13388 #ifdef HAVE_SYS_TIME_H
13389 #include <sys/time.h>
13390 #else
13391 #include <time.h>
13392 #endif
13393 #endif
13394 int
13395 main ()
13396 {
13397 struct timeval time;
13398 gettimeofday (&time, 0);
13399 ;
13400 return 0;
13401 }
13402 _ACEOF
13403 if ac_fn_c_try_compile "$LINENO"; then :
13404 emacs_cv_gettimeofday_two_arguments=yes
13405 else
13406 emacs_cv_gettimeofday_two_arguments=no
13407 fi
13408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 fi
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13411 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13412 if test $emacs_cv_gettimeofday_two_arguments = no; then
13413
13414 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13415
13416 fi
13417 fi
13418 fi
13419
13420 ok_so_far=yes
13421 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13422 if test "x$ac_cv_func_socket" = x""yes; then :
13423
13424 else
13425 ok_so_far=no
13426 fi
13427
13428 if test $ok_so_far = yes; then
13429 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13430 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13431
13432 else
13433 ok_so_far=no
13434 fi
13435
13436
13437 fi
13438 if test $ok_so_far = yes; then
13439 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13440 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13441
13442 else
13443 ok_so_far=no
13444 fi
13445
13446
13447 fi
13448 if test $ok_so_far = yes; then
13449
13450 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13451
13452 fi
13453
13454 for ac_header in sys/ioctl.h
13455 do :
13456 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13457 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13458 cat >>confdefs.h <<_ACEOF
13459 #define HAVE_SYS_IOCTL_H 1
13460 _ACEOF
13461
13462 fi
13463
13464 done
13465
13466
13467 if test -f /usr/lpp/X11/bin/smt.exp; then
13468
13469 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13470
13471 fi
13472
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13474 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13475 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13477 $as_echo "yes" >&6; }
13478
13479 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13480
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13484 fi
13485
13486 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13487 if test "x$ac_cv_type_pid_t" = x""yes; then :
13488
13489 else
13490
13491 cat >>confdefs.h <<_ACEOF
13492 #define pid_t int
13493 _ACEOF
13494
13495 fi
13496
13497 for ac_header in vfork.h
13498 do :
13499 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13500 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13501 cat >>confdefs.h <<_ACEOF
13502 #define HAVE_VFORK_H 1
13503 _ACEOF
13504
13505 fi
13506
13507 done
13508
13509 for ac_func in fork vfork
13510 do :
13511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13513 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13514 cat >>confdefs.h <<_ACEOF
13515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13516 _ACEOF
13517
13518 fi
13519 done
13520
13521 if test "x$ac_cv_func_fork" = xyes; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13523 $as_echo_n "checking for working fork... " >&6; }
13524 if test "${ac_cv_func_fork_works+set}" = set; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 if test "$cross_compiling" = yes; then :
13528 ac_cv_func_fork_works=cross
13529 else
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 $ac_includes_default
13533 int
13534 main ()
13535 {
13536
13537 /* By Ruediger Kuhlmann. */
13538 return fork () < 0;
13539
13540 ;
13541 return 0;
13542 }
13543 _ACEOF
13544 if ac_fn_c_try_run "$LINENO"; then :
13545 ac_cv_func_fork_works=yes
13546 else
13547 ac_cv_func_fork_works=no
13548 fi
13549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13550 conftest.$ac_objext conftest.beam conftest.$ac_ext
13551 fi
13552
13553 fi
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13555 $as_echo "$ac_cv_func_fork_works" >&6; }
13556
13557 else
13558 ac_cv_func_fork_works=$ac_cv_func_fork
13559 fi
13560 if test "x$ac_cv_func_fork_works" = xcross; then
13561 case $host in
13562 *-*-amigaos* | *-*-msdosdjgpp*)
13563 # Override, as these systems have only a dummy fork() stub
13564 ac_cv_func_fork_works=no
13565 ;;
13566 *)
13567 ac_cv_func_fork_works=yes
13568 ;;
13569 esac
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13571 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13572 fi
13573 ac_cv_func_vfork_works=$ac_cv_func_vfork
13574 if test "x$ac_cv_func_vfork" = xyes; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13576 $as_echo_n "checking for working vfork... " >&6; }
13577 if test "${ac_cv_func_vfork_works+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 if test "$cross_compiling" = yes; then :
13581 ac_cv_func_vfork_works=cross
13582 else
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 /* Thanks to Paul Eggert for this test. */
13586 $ac_includes_default
13587 #include <sys/wait.h>
13588 #ifdef HAVE_VFORK_H
13589 # include <vfork.h>
13590 #endif
13591 /* On some sparc systems, changes by the child to local and incoming
13592 argument registers are propagated back to the parent. The compiler
13593 is told about this with #include <vfork.h>, but some compilers
13594 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13595 static variable whose address is put into a register that is
13596 clobbered by the vfork. */
13597 static void
13598 #ifdef __cplusplus
13599 sparc_address_test (int arg)
13600 # else
13601 sparc_address_test (arg) int arg;
13602 #endif
13603 {
13604 static pid_t child;
13605 if (!child) {
13606 child = vfork ();
13607 if (child < 0) {
13608 perror ("vfork");
13609 _exit(2);
13610 }
13611 if (!child) {
13612 arg = getpid();
13613 write(-1, "", 0);
13614 _exit (arg);
13615 }
13616 }
13617 }
13618
13619 int
13620 main ()
13621 {
13622 pid_t parent = getpid ();
13623 pid_t child;
13624
13625 sparc_address_test (0);
13626
13627 child = vfork ();
13628
13629 if (child == 0) {
13630 /* Here is another test for sparc vfork register problems. This
13631 test uses lots of local variables, at least as many local
13632 variables as main has allocated so far including compiler
13633 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13634 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13635 reuse the register of parent for one of the local variables,
13636 since it will think that parent can't possibly be used any more
13637 in this routine. Assigning to the local variable will thus
13638 munge parent in the parent process. */
13639 pid_t
13640 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13641 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13642 /* Convince the compiler that p..p7 are live; otherwise, it might
13643 use the same hardware register for all 8 local variables. */
13644 if (p != p1 || p != p2 || p != p3 || p != p4
13645 || p != p5 || p != p6 || p != p7)
13646 _exit(1);
13647
13648 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13649 from child file descriptors. If the child closes a descriptor
13650 before it execs or exits, this munges the parent's descriptor
13651 as well. Test for this by closing stdout in the child. */
13652 _exit(close(fileno(stdout)) != 0);
13653 } else {
13654 int status;
13655 struct stat st;
13656
13657 while (wait(&status) != child)
13658 ;
13659 return (
13660 /* Was there some problem with vforking? */
13661 child < 0
13662
13663 /* Did the child fail? (This shouldn't happen.) */
13664 || status
13665
13666 /* Did the vfork/compiler bug occur? */
13667 || parent != getpid()
13668
13669 /* Did the file descriptor bug occur? */
13670 || fstat(fileno(stdout), &st) != 0
13671 );
13672 }
13673 }
13674 _ACEOF
13675 if ac_fn_c_try_run "$LINENO"; then :
13676 ac_cv_func_vfork_works=yes
13677 else
13678 ac_cv_func_vfork_works=no
13679 fi
13680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13681 conftest.$ac_objext conftest.beam conftest.$ac_ext
13682 fi
13683
13684 fi
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13686 $as_echo "$ac_cv_func_vfork_works" >&6; }
13687
13688 fi;
13689 if test "x$ac_cv_func_fork_works" = xcross; then
13690 ac_cv_func_vfork_works=$ac_cv_func_vfork
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13692 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13693 fi
13694
13695 if test "x$ac_cv_func_vfork_works" = xyes; then
13696
13697 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13698
13699 else
13700
13701 $as_echo "#define vfork fork" >>confdefs.h
13702
13703 fi
13704 if test "x$ac_cv_func_fork_works" = xyes; then
13705
13706 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13707
13708 fi
13709
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13712 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13713 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13718 #include <langinfo.h>
13719 int
13720 main ()
13721 {
13722 char* cs = nl_langinfo(CODESET);
13723 ;
13724 return 0;
13725 }
13726 _ACEOF
13727 if ac_fn_c_try_link "$LINENO"; then :
13728 emacs_cv_langinfo_codeset=yes
13729 else
13730 emacs_cv_langinfo_codeset=no
13731 fi
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13734
13735 fi
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13737 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13738 if test $emacs_cv_langinfo_codeset = yes; then
13739
13740 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13741
13742 fi
13743
13744 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13745 if test "x$ac_cv_type_size_t" = x""yes; then :
13746
13747 cat >>confdefs.h <<_ACEOF
13748 #define HAVE_SIZE_T 1
13749 _ACEOF
13750
13751
13752 fi
13753
13754
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13756 $as_echo_n "checking for mbstate_t... " >&6; }
13757 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 $ac_includes_default
13763 # include <wchar.h>
13764 int
13765 main ()
13766 {
13767 mbstate_t x; return sizeof x;
13768 ;
13769 return 0;
13770 }
13771 _ACEOF
13772 if ac_fn_c_try_compile "$LINENO"; then :
13773 ac_cv_type_mbstate_t=yes
13774 else
13775 ac_cv_type_mbstate_t=no
13776 fi
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 fi
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13780 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13781 if test $ac_cv_type_mbstate_t = yes; then
13782
13783 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13784
13785 else
13786
13787 $as_echo "#define mbstate_t int" >>confdefs.h
13788
13789 fi
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13792 $as_echo_n "checking for C restrict keyword... " >&6; }
13793 if test "${emacs_cv_c_restrict+set}" = set; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13798 void fred (int *restrict x);
13799 int
13800 main ()
13801 {
13802
13803 ;
13804 return 0;
13805 }
13806 _ACEOF
13807 if ac_fn_c_try_compile "$LINENO"; then :
13808 emacs_cv_c_restrict=yes
13809 else
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13812 void fred (int *__restrict x);
13813 int
13814 main ()
13815 {
13816
13817 ;
13818 return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822 emacs_cv_c_restrict=__restrict
13823 else
13824 emacs_cv_c_restrict=no
13825 fi
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 fi
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829 fi
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13831 $as_echo "$emacs_cv_c_restrict" >&6; }
13832 case "$emacs_cv_c_restrict" in
13833 yes) emacs_restrict=restrict;;
13834 no) emacs_restrict="";;
13835 *) emacs_restrict="$emacs_cv_c_restrict";;
13836 esac
13837 if test "$emacs_restrict" != __restrict; then
13838
13839 cat >>confdefs.h <<_ACEOF
13840 #define __restrict $emacs_restrict
13841 _ACEOF
13842
13843 fi
13844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13846 $as_echo_n "checking for C restricted array declarations... " >&6; }
13847 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13852 void fred (int x[__restrict]);
13853 int
13854 main ()
13855 {
13856
13857 ;
13858 return 0;
13859 }
13860 _ACEOF
13861 if ac_fn_c_try_compile "$LINENO"; then :
13862 emacs_cv_c_restrict_arr=yes
13863 else
13864 emacs_cv_c_restrict_arr=no
13865 fi
13866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13867 fi
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13869 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13870 if test "$emacs_cv_c_restrict_arr" = yes; then
13871
13872 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13873
13874 fi
13875
13876
13877
13878 # Set up the CFLAGS for real compilation, so we can substitute it.
13879 CFLAGS="$REAL_CFLAGS"
13880 CPPFLAGS="$REAL_CPPFLAGS"
13881
13882 ## Hack to detect a buggy GCC version.
13883 if test "x$GCC" = xyes \
13884 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13885 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13886 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13887 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13888 fi
13889
13890 #### Find out which version of Emacs this is.
13891 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13892 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13893 if test x"${version}" = x; then
13894 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13895 fi
13896 if test x"${version}" != x"$PACKAGE_VERSION"; then
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13898 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13899 fi
13900
13901 ### Specify what sort of things we'll be editing into Makefile and config.h.
13902 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13903
13904
13905 ## Unused?
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13927 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13928 ## end of LIBX_BASE, but nothing ever set it.
13929
13930
13931
13932
13933 ## Used in lwlib/Makefile.in.
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946 cat >>confdefs.h <<_ACEOF
13947 #define EMACS_CONFIGURATION "${canonical}"
13948 _ACEOF
13949
13950
13951 cat >>confdefs.h <<_ACEOF
13952 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13953 _ACEOF
13954
13955
13956 cat >>confdefs.h <<_ACEOF
13957 #define config_machfile "${machfile}"
13958 _ACEOF
13959
13960
13961 cat >>confdefs.h <<_ACEOF
13962 #define config_opsysfile "${opsysfile}"
13963 _ACEOF
13964
13965
13966 XMENU_OBJ=
13967 XOBJ=
13968 FONT_OBJ=
13969 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13970
13971 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13972
13973 XMENU_OBJ=xmenu.o
13974 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13975 FONT_OBJ=xfont.o
13976 if test "$HAVE_XFT" = "yes"; then
13977 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
13978 elif test "$HAVE_FREETYPE" = "yes"; then
13979 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
13980 fi
13981
13982 fi
13983
13984
13985
13986
13987 WIDGET_OBJ=
13988 MOTIF_LIBW=
13989 if test "${USE_X_TOOLKIT}" != "none" ; then
13990 WIDGET_OBJ=widget.o
13991
13992 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13993
13994 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13995
13996 $as_echo "#define USE_LUCID 1" >>confdefs.h
13997
13998 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13999
14000 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14001
14002 MOTIF_LIBW=-lXm
14003 case "$opsys" in
14004 gnu-linux)
14005 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14006 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14007 ;;
14008
14009 unixware)
14010 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14011 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14012 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14013 ;;
14014
14015 aix4-2)
14016 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14017 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14018 ;;
14019 esac
14020 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14021 fi
14022 fi
14023
14024
14025 TOOLKIT_LIBW=
14026 case "$USE_X_TOOLKIT" in
14027 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14028 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14029 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14030 esac
14031
14032
14033 if test "$USE_X_TOOLKIT" = "none"; then
14034 LIBXT_OTHER="\$(LIBXSM)"
14035 OLDXMENU_TARGET="really-oldXMenu"
14036 else
14037 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14038 OLDXMENU_TARGET="really-lwlib"
14039 fi
14040
14041
14042 ## The X Menu stuff is present in the X10 distribution, but missing
14043 ## from X11. If we have X10, just use the installed library;
14044 ## otherwise, use our own copy.
14045 if test "${HAVE_X11}" = "yes" ; then
14046
14047 $as_echo "#define HAVE_X11 1" >>confdefs.h
14048
14049
14050 if test "$USE_X_TOOLKIT" = "none"; then
14051 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14052 else
14053 OLDXMENU="\${lwlibdir}liblw.a"
14054 fi
14055 LIBXMENU="\$(OLDXMENU)"
14056 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14057 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14058 else
14059 ## For a syntactically valid Makefile; not actually used for anything.
14060 ## See comments in src/Makefile.in.
14061 OLDXMENU=nothing
14062 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14063 if test "${HAVE_X_WINDOWS}" = "yes"; then
14064 LIBXMENU="-lXMenu"
14065 else
14066 LIBXMENU=
14067 fi
14068 LIBX_OTHER=
14069 OLDXMENU_DEPS=
14070 fi
14071
14072 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14073 OLDXMENU_TARGET=
14074 OLDXMENU=nothing
14075 LIBXMENU=
14076 OLDXMENU_DEPS=
14077 fi
14078
14079
14080
14081
14082
14083
14084
14085 if test "${HAVE_MENUS}" = "yes" ; then
14086
14087 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14088
14089 fi
14090
14091 if test "${GNU_MALLOC}" = "yes" ; then
14092
14093 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14094
14095 fi
14096
14097 RALLOC_OBJ=
14098 if test "${REL_ALLOC}" = "yes" ; then
14099
14100 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14101
14102
14103 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14104 fi
14105
14106
14107 if test "$opsys" = "cygwin"; then
14108 CYGWIN_OBJ="sheap.o"
14109 ## Cygwin differs because of its unexec().
14110 PRE_ALLOC_OBJ=
14111 POST_ALLOC_OBJ=lastfile.o
14112 else
14113 CYGWIN_OBJ=
14114 PRE_ALLOC_OBJ=lastfile.o
14115 POST_ALLOC_OBJ=
14116 fi
14117
14118
14119
14120
14121
14122 case "$opsys" in
14123 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14124
14125 darwin)
14126 ## The -headerpad option tells ld (see man page) to leave room at the
14127 ## end of the header for adding load commands. Needed for dumping.
14128 ## 0x690 is the total size of 30 segment load commands (at 56
14129 ## each); under Cocoa 31 commands are required.
14130 if test "$HAVE_NS" = "yes"; then
14131 libs_nsgui="-framework AppKit"
14132 headerpad_extra=6C8
14133 else
14134 libs_nsgui=
14135 headerpad_extra=690
14136 fi
14137 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14138
14139 ## This is here because src/Makefile.in did some extra fiddling around
14140 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14141 ## #ifndef LD_SWITCH_SYSTEM
14142 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14143 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14144 ## not using gcc, darwin system not on an alpha (ie darwin, since
14145 ## darwin + alpha does not occur).
14146 ## Because this was done in src/Makefile.in, the resulting part of
14147 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14148 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14149 ## rather than LD_SWITCH_SYSTEM.
14150 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14151 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14152 ;;
14153
14154 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14155 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14156 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14157 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14158 ## had different values in configure (in ac_link) and src/Makefile.in.
14159 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14160 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14161
14162 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14163 esac
14164
14165 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14166 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14167 fi
14168
14169
14170
14171
14172 LINKER=
14173 ORDINARY_LINK=
14174 case "$opsys" in
14175 ## gnu: GNU needs its own crt0.
14176 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14177
14178 cygwin) LINKER="\$(CC)" ;;
14179
14180 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14181 ## library search parth, i.e. it won't search /usr/lib for libc and
14182 ## friends. Using -nostartfiles instead avoids this problem, and
14183 ## will also work on earlier NetBSD releases.
14184 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
14185
14186 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14187 ## MkLinux/LinuxPPC needs this.
14188 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14189 gnu-*)
14190 case "$machine" in
14191 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
14192 esac
14193 ;;
14194 esac
14195
14196
14197 if test "x$ORDINARY_LINK" = "xyes"; then
14198
14199 LINKER="\$(CC)"
14200
14201 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14202
14203
14204 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14205 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
14206 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14207
14208 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14209 ## places that are difficult to figure out at make time. Fortunately,
14210 ## these same versions allow you to pass arbitrary flags on to the
14211 ## linker, so there is no reason not to use it as a linker.
14212 ##
14213 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14214 ## searching for libraries in its internal directories, so we have to
14215 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14216 LINKER="\$(CC) -nostdlib"
14217 fi
14218
14219 test "x$LINKER" = "x" && LINKER=ld
14220 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14221 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
14222
14223
14224
14225
14226 ## FIXME? The logic here is not precisely the same as that above.
14227 ## There is no check here for a pre-defined LINKER.
14228 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14229 LIB_GCC=
14230 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14231
14232 case "$opsys" in
14233 ## cygwin: don't link against static libgcc.
14234 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
14235
14236 gnu-*)
14237 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14238 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14239 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14240 if test "$machine" = "arm"; then
14241 LIB_GCC="-lgcc_s"
14242 else
14243 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14244 ## immediately undefine it again and redefine it to empty.
14245 ## Was the C_SWITCH_X_SITE part really necessary?
14246 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14247 LIB_GCC=
14248 fi
14249 ;;
14250
14251 ## Ask GCC where to find libgcc.a.
14252 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14253 esac
14254 fi
14255
14256
14257 TOOLTIP_SUPPORT=
14258 WINDOW_SUPPORT=
14259 ## If we're using X11/GNUstep, define some consequences.
14260 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14261
14262 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14263
14264
14265 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14266
14267 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14268 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14269
14270 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14271 test "$HAVE_X_WINDOWS" = "yes" && \
14272 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14273
14274 fi
14275
14276
14277
14278
14279
14280
14281
14282 #### Report on what we decided to do.
14283 #### Report GTK as a toolkit, even if it doesn't use Xt.
14284 #### It makes printing result more understandable as using GTK sets
14285 #### toolkit_scroll_bars to yes by default.
14286 if test "${HAVE_GTK}" = "yes"; then
14287 USE_X_TOOLKIT=GTK
14288 fi
14289
14290 echo "
14291 Configured for \`${canonical}'.
14292
14293 Where should the build process find the source code? ${srcdir}
14294 What operating system and machine description files should Emacs use?
14295 \`${opsysfile}' and \`${machfile}'
14296 What compiler should emacs be built with? ${CC} ${CFLAGS}
14297 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14298 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14299 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14300 What window system should Emacs use? ${window_system}
14301 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14302
14303 if test -n "${x_includes}"; then
14304 echo " Where do we find X Windows header files? ${x_includes}"
14305 else
14306 echo " Where do we find X Windows header files? Standard dirs"
14307 fi
14308 if test -n "${x_libraries}"; then
14309 echo " Where do we find X Windows libraries? ${x_libraries}"
14310 else
14311 echo " Where do we find X Windows libraries? Standard dirs"
14312 fi
14313
14314 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14315 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14316 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14317 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14318 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14319 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14320 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14321 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14322 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14323 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14324 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14325
14326 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14327 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14328 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14329 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14330
14331 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14332 echo
14333
14334 if test $USE_XASSERTS = yes; then
14335 echo " Compiling with asserts turned on."
14336 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14337 fi
14338
14339 echo
14340
14341 if test "$HAVE_NS" = "yes"; then
14342 echo
14343 echo "You must run \"make install\" in order to test the built application.
14344 The installed application will go to nextstep/Emacs.app and can be
14345 run or moved from there."
14346 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14347 echo "The application will be fully self-contained."
14348 else
14349 echo "The lisp resources for the application will be installed under ${prefix}.
14350 You may need to run \"make install\" with sudo. The application will fail
14351 to run if these resources are not installed."
14352 fi
14353 echo
14354 fi
14355
14356 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14357 echo "D-Bus integration has been tested for GNU/Linux only."
14358 echo
14359 fi
14360
14361
14362 # Remove any trailing slashes in these variables.
14363 test "${prefix}" != NONE &&
14364 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14365 test "${exec_prefix}" != NONE &&
14366 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14367
14368 ac_config_files="$ac_config_files 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"
14369
14370 ac_config_commands="$ac_config_commands default"
14371
14372 cat >confcache <<\_ACEOF
14373 # This file is a shell script that caches the results of configure
14374 # tests run on this system so they can be shared between configure
14375 # scripts and configure runs, see configure's option --config-cache.
14376 # It is not useful on other systems. If it contains results you don't
14377 # want to keep, you may remove or edit it.
14378 #
14379 # config.status only pays attention to the cache file if you give it
14380 # the --recheck option to rerun configure.
14381 #
14382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14384 # following values.
14385
14386 _ACEOF
14387
14388 # The following way of writing the cache mishandles newlines in values,
14389 # but we know of no workaround that is simple, portable, and efficient.
14390 # So, we kill variables containing newlines.
14391 # Ultrix sh set writes to stderr and can't be redirected directly,
14392 # and sets the high bit in the cache file unless we assign to the vars.
14393 (
14394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14395 eval ac_val=\$$ac_var
14396 case $ac_val in #(
14397 *${as_nl}*)
14398 case $ac_var in #(
14399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14400 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14401 esac
14402 case $ac_var in #(
14403 _ | IFS | as_nl) ;; #(
14404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14405 *) { eval $ac_var=; unset $ac_var;} ;;
14406 esac ;;
14407 esac
14408 done
14409
14410 (set) 2>&1 |
14411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14412 *${as_nl}ac_space=\ *)
14413 # `set' does not quote correctly, so add quotes: double-quote
14414 # substitution turns \\\\ into \\, and sed turns \\ into \.
14415 sed -n \
14416 "s/'/'\\\\''/g;
14417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14418 ;; #(
14419 *)
14420 # `set' quotes correctly as required by POSIX, so do not add quotes.
14421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14422 ;;
14423 esac |
14424 sort
14425 ) |
14426 sed '
14427 /^ac_cv_env_/b end
14428 t clear
14429 :clear
14430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14431 t end
14432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14433 :end' >>confcache
14434 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14435 if test -w "$cache_file"; then
14436 test "x$cache_file" != "x/dev/null" &&
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14438 $as_echo "$as_me: updating cache $cache_file" >&6;}
14439 cat confcache >$cache_file
14440 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14442 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14443 fi
14444 fi
14445 rm -f confcache
14446
14447 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14448 # Let make expand exec_prefix.
14449 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14450
14451 DEFS=-DHAVE_CONFIG_H
14452
14453 ac_libobjs=
14454 ac_ltlibobjs=
14455 U=
14456 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14457 # 1. Remove the extension, and $U if already installed.
14458 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14459 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14460 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14461 # will be set to the directory where LIBOBJS objects are built.
14462 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14463 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14464 done
14465 LIBOBJS=$ac_libobjs
14466
14467 LTLIBOBJS=$ac_ltlibobjs
14468
14469
14470
14471 : ${CONFIG_STATUS=./config.status}
14472 ac_write_fail=0
14473 ac_clean_files_save=$ac_clean_files
14474 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14476 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14477 as_write_fail=0
14478 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14479 #! $SHELL
14480 # Generated by $as_me.
14481 # Run this file to recreate the current configuration.
14482 # Compiler output produced by configure, useful for debugging
14483 # configure, is in config.log if it exists.
14484
14485 debug=false
14486 ac_cs_recheck=false
14487 ac_cs_silent=false
14488
14489 SHELL=\${CONFIG_SHELL-$SHELL}
14490 export SHELL
14491 _ASEOF
14492 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14493 ## -------------------- ##
14494 ## M4sh Initialization. ##
14495 ## -------------------- ##
14496
14497 # Be more Bourne compatible
14498 DUALCASE=1; export DUALCASE # for MKS sh
14499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14500 emulate sh
14501 NULLCMD=:
14502 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14503 # is contrary to our usage. Disable this feature.
14504 alias -g '${1+"$@"}'='"$@"'
14505 setopt NO_GLOB_SUBST
14506 else
14507 case `(set -o) 2>/dev/null` in #(
14508 *posix*) :
14509 set -o posix ;; #(
14510 *) :
14511 ;;
14512 esac
14513 fi
14514
14515
14516 as_nl='
14517 '
14518 export as_nl
14519 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14520 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14521 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14522 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14523 # Prefer a ksh shell builtin over an external printf program on Solaris,
14524 # but without wasting forks for bash or zsh.
14525 if test -z "$BASH_VERSION$ZSH_VERSION" \
14526 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14527 as_echo='print -r --'
14528 as_echo_n='print -rn --'
14529 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14530 as_echo='printf %s\n'
14531 as_echo_n='printf %s'
14532 else
14533 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14534 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14535 as_echo_n='/usr/ucb/echo -n'
14536 else
14537 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14538 as_echo_n_body='eval
14539 arg=$1;
14540 case $arg in #(
14541 *"$as_nl"*)
14542 expr "X$arg" : "X\\(.*\\)$as_nl";
14543 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14544 esac;
14545 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14546 '
14547 export as_echo_n_body
14548 as_echo_n='sh -c $as_echo_n_body as_echo'
14549 fi
14550 export as_echo_body
14551 as_echo='sh -c $as_echo_body as_echo'
14552 fi
14553
14554 # The user is always right.
14555 if test "${PATH_SEPARATOR+set}" != set; then
14556 PATH_SEPARATOR=:
14557 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14558 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14559 PATH_SEPARATOR=';'
14560 }
14561 fi
14562
14563
14564 # IFS
14565 # We need space, tab and new line, in precisely that order. Quoting is
14566 # there to prevent editors from complaining about space-tab.
14567 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14568 # splitting by setting IFS to empty value.)
14569 IFS=" "" $as_nl"
14570
14571 # Find who we are. Look in the path if we contain no directory separator.
14572 case $0 in #((
14573 *[\\/]* ) as_myself=$0 ;;
14574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14575 for as_dir in $PATH
14576 do
14577 IFS=$as_save_IFS
14578 test -z "$as_dir" && as_dir=.
14579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14580 done
14581 IFS=$as_save_IFS
14582
14583 ;;
14584 esac
14585 # We did not find ourselves, most probably we were run as `sh COMMAND'
14586 # in which case we are not to be found in the path.
14587 if test "x$as_myself" = x; then
14588 as_myself=$0
14589 fi
14590 if test ! -f "$as_myself"; then
14591 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14592 exit 1
14593 fi
14594
14595 # Unset variables that we do not need and which cause bugs (e.g. in
14596 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14597 # suppresses any "Segmentation fault" message there. '((' could
14598 # trigger a bug in pdksh 5.2.14.
14599 for as_var in BASH_ENV ENV MAIL MAILPATH
14600 do eval test x\${$as_var+set} = xset \
14601 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14602 done
14603 PS1='$ '
14604 PS2='> '
14605 PS4='+ '
14606
14607 # NLS nuisances.
14608 LC_ALL=C
14609 export LC_ALL
14610 LANGUAGE=C
14611 export LANGUAGE
14612
14613 # CDPATH.
14614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14615
14616
14617 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14618 # ----------------------------------------
14619 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14620 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14621 # script with STATUS, using 1 if that was 0.
14622 as_fn_error ()
14623 {
14624 as_status=$1; test $as_status -eq 0 && as_status=1
14625 if test "$4"; then
14626 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14627 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14628 fi
14629 $as_echo "$as_me: error: $2" >&2
14630 as_fn_exit $as_status
14631 } # as_fn_error
14632
14633
14634 # as_fn_set_status STATUS
14635 # -----------------------
14636 # Set $? to STATUS, without forking.
14637 as_fn_set_status ()
14638 {
14639 return $1
14640 } # as_fn_set_status
14641
14642 # as_fn_exit STATUS
14643 # -----------------
14644 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14645 as_fn_exit ()
14646 {
14647 set +e
14648 as_fn_set_status $1
14649 exit $1
14650 } # as_fn_exit
14651
14652 # as_fn_unset VAR
14653 # ---------------
14654 # Portably unset VAR.
14655 as_fn_unset ()
14656 {
14657 { eval $1=; unset $1;}
14658 }
14659 as_unset=as_fn_unset
14660 # as_fn_append VAR VALUE
14661 # ----------------------
14662 # Append the text in VALUE to the end of the definition contained in VAR. Take
14663 # advantage of any shell optimizations that allow amortized linear growth over
14664 # repeated appends, instead of the typical quadratic growth present in naive
14665 # implementations.
14666 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14667 eval 'as_fn_append ()
14668 {
14669 eval $1+=\$2
14670 }'
14671 else
14672 as_fn_append ()
14673 {
14674 eval $1=\$$1\$2
14675 }
14676 fi # as_fn_append
14677
14678 # as_fn_arith ARG...
14679 # ------------------
14680 # Perform arithmetic evaluation on the ARGs, and store the result in the
14681 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14682 # must be portable across $(()) and expr.
14683 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14684 eval 'as_fn_arith ()
14685 {
14686 as_val=$(( $* ))
14687 }'
14688 else
14689 as_fn_arith ()
14690 {
14691 as_val=`expr "$@" || test $? -eq 1`
14692 }
14693 fi # as_fn_arith
14694
14695
14696 if expr a : '\(a\)' >/dev/null 2>&1 &&
14697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14698 as_expr=expr
14699 else
14700 as_expr=false
14701 fi
14702
14703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14704 as_basename=basename
14705 else
14706 as_basename=false
14707 fi
14708
14709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14710 as_dirname=dirname
14711 else
14712 as_dirname=false
14713 fi
14714
14715 as_me=`$as_basename -- "$0" ||
14716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14717 X"$0" : 'X\(//\)$' \| \
14718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14719 $as_echo X/"$0" |
14720 sed '/^.*\/\([^/][^/]*\)\/*$/{
14721 s//\1/
14722 q
14723 }
14724 /^X\/\(\/\/\)$/{
14725 s//\1/
14726 q
14727 }
14728 /^X\/\(\/\).*/{
14729 s//\1/
14730 q
14731 }
14732 s/.*/./; q'`
14733
14734 # Avoid depending upon Character Ranges.
14735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14738 as_cr_digits='0123456789'
14739 as_cr_alnum=$as_cr_Letters$as_cr_digits
14740
14741 ECHO_C= ECHO_N= ECHO_T=
14742 case `echo -n x` in #(((((
14743 -n*)
14744 case `echo 'xy\c'` in
14745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14746 xy) ECHO_C='\c';;
14747 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14748 ECHO_T=' ';;
14749 esac;;
14750 *)
14751 ECHO_N='-n';;
14752 esac
14753
14754 rm -f conf$$ conf$$.exe conf$$.file
14755 if test -d conf$$.dir; then
14756 rm -f conf$$.dir/conf$$.file
14757 else
14758 rm -f conf$$.dir
14759 mkdir conf$$.dir 2>/dev/null
14760 fi
14761 if (echo >conf$$.file) 2>/dev/null; then
14762 if ln -s conf$$.file conf$$ 2>/dev/null; then
14763 as_ln_s='ln -s'
14764 # ... but there are two gotchas:
14765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14767 # In both cases, we have to default to `cp -p'.
14768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14769 as_ln_s='cp -p'
14770 elif ln conf$$.file conf$$ 2>/dev/null; then
14771 as_ln_s=ln
14772 else
14773 as_ln_s='cp -p'
14774 fi
14775 else
14776 as_ln_s='cp -p'
14777 fi
14778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14779 rmdir conf$$.dir 2>/dev/null
14780
14781
14782 # as_fn_mkdir_p
14783 # -------------
14784 # Create "$as_dir" as a directory, including parents if necessary.
14785 as_fn_mkdir_p ()
14786 {
14787
14788 case $as_dir in #(
14789 -*) as_dir=./$as_dir;;
14790 esac
14791 test -d "$as_dir" || eval $as_mkdir_p || {
14792 as_dirs=
14793 while :; do
14794 case $as_dir in #(
14795 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14796 *) as_qdir=$as_dir;;
14797 esac
14798 as_dirs="'$as_qdir' $as_dirs"
14799 as_dir=`$as_dirname -- "$as_dir" ||
14800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14801 X"$as_dir" : 'X\(//\)[^/]' \| \
14802 X"$as_dir" : 'X\(//\)$' \| \
14803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14804 $as_echo X"$as_dir" |
14805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14806 s//\1/
14807 q
14808 }
14809 /^X\(\/\/\)[^/].*/{
14810 s//\1/
14811 q
14812 }
14813 /^X\(\/\/\)$/{
14814 s//\1/
14815 q
14816 }
14817 /^X\(\/\).*/{
14818 s//\1/
14819 q
14820 }
14821 s/.*/./; q'`
14822 test -d "$as_dir" && break
14823 done
14824 test -z "$as_dirs" || eval "mkdir $as_dirs"
14825 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14826
14827
14828 } # as_fn_mkdir_p
14829 if mkdir -p . 2>/dev/null; then
14830 as_mkdir_p='mkdir -p "$as_dir"'
14831 else
14832 test -d ./-p && rmdir ./-p
14833 as_mkdir_p=false
14834 fi
14835
14836 if test -x / >/dev/null 2>&1; then
14837 as_test_x='test -x'
14838 else
14839 if ls -dL / >/dev/null 2>&1; then
14840 as_ls_L_option=L
14841 else
14842 as_ls_L_option=
14843 fi
14844 as_test_x='
14845 eval sh -c '\''
14846 if test -d "$1"; then
14847 test -d "$1/.";
14848 else
14849 case $1 in #(
14850 -*)set "./$1";;
14851 esac;
14852 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14853 ???[sx]*):;;*)false;;esac;fi
14854 '\'' sh
14855 '
14856 fi
14857 as_executable_p=$as_test_x
14858
14859 # Sed expression to map a string onto a valid CPP name.
14860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14861
14862 # Sed expression to map a string onto a valid variable name.
14863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14864
14865
14866 exec 6>&1
14867 ## ----------------------------------- ##
14868 ## Main body of $CONFIG_STATUS script. ##
14869 ## ----------------------------------- ##
14870 _ASEOF
14871 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14872
14873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14874 # Save the log message, to keep $0 and so on meaningful, and to
14875 # report actual input values of CONFIG_FILES etc. instead of their
14876 # values after options handling.
14877 ac_log="
14878 This file was extended by emacs $as_me 24.0.50, which was
14879 generated by GNU Autoconf 2.66. Invocation command line was
14880
14881 CONFIG_FILES = $CONFIG_FILES
14882 CONFIG_HEADERS = $CONFIG_HEADERS
14883 CONFIG_LINKS = $CONFIG_LINKS
14884 CONFIG_COMMANDS = $CONFIG_COMMANDS
14885 $ $0 $@
14886
14887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14888 "
14889
14890 _ACEOF
14891
14892 case $ac_config_files in *"
14893 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14894 esac
14895
14896 case $ac_config_headers in *"
14897 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14898 esac
14899
14900
14901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14902 # Files that config.status was made for.
14903 config_files="$ac_config_files"
14904 config_headers="$ac_config_headers"
14905 config_commands="$ac_config_commands"
14906
14907 _ACEOF
14908
14909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14910 ac_cs_usage="\
14911 \`$as_me' instantiates files and other configuration actions
14912 from templates according to the current configuration. Unless the files
14913 and actions are specified as TAGs, all are instantiated by default.
14914
14915 Usage: $0 [OPTION]... [TAG]...
14916
14917 -h, --help print this help, then exit
14918 -V, --version print version number and configuration settings, then exit
14919 --config print configuration, then exit
14920 -q, --quiet, --silent
14921 do not print progress messages
14922 -d, --debug don't remove temporary files
14923 --recheck update $as_me by reconfiguring in the same conditions
14924 --file=FILE[:TEMPLATE]
14925 instantiate the configuration file FILE
14926 --header=FILE[:TEMPLATE]
14927 instantiate the configuration header FILE
14928
14929 Configuration files:
14930 $config_files
14931
14932 Configuration headers:
14933 $config_headers
14934
14935 Configuration commands:
14936 $config_commands
14937
14938 Report bugs to the package provider."
14939
14940 _ACEOF
14941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14942 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14943 ac_cs_version="\\
14944 emacs config.status 24.0.50
14945 configured by $0, generated by GNU Autoconf 2.66,
14946 with options \\"\$ac_cs_config\\"
14947
14948 Copyright (C) 2010 Free Software Foundation, Inc.
14949 This config.status script is free software; the Free Software Foundation
14950 gives unlimited permission to copy, distribute and modify it."
14951
14952 ac_pwd='$ac_pwd'
14953 srcdir='$srcdir'
14954 INSTALL='$INSTALL'
14955 test -n "\$AWK" || AWK=awk
14956 _ACEOF
14957
14958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959 # The default lists apply if the user does not specify any file.
14960 ac_need_defaults=:
14961 while test $# != 0
14962 do
14963 case $1 in
14964 --*=*)
14965 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14966 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14967 ac_shift=:
14968 ;;
14969 *)
14970 ac_option=$1
14971 ac_optarg=$2
14972 ac_shift=shift
14973 ;;
14974 esac
14975
14976 case $ac_option in
14977 # Handling of the options.
14978 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14979 ac_cs_recheck=: ;;
14980 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14981 $as_echo "$ac_cs_version"; exit ;;
14982 --config | --confi | --conf | --con | --co | --c )
14983 $as_echo "$ac_cs_config"; exit ;;
14984 --debug | --debu | --deb | --de | --d | -d )
14985 debug=: ;;
14986 --file | --fil | --fi | --f )
14987 $ac_shift
14988 case $ac_optarg in
14989 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14990 esac
14991 as_fn_append CONFIG_FILES " '$ac_optarg'"
14992 ac_need_defaults=false;;
14993 --header | --heade | --head | --hea )
14994 $ac_shift
14995 case $ac_optarg in
14996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14997 esac
14998 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14999 ac_need_defaults=false;;
15000 --he | --h)
15001 # Conflict between --help and --header
15002 as_fn_error $? "ambiguous option: \`$1'
15003 Try \`$0 --help' for more information.";;
15004 --help | --hel | -h )
15005 $as_echo "$ac_cs_usage"; exit ;;
15006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15007 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15008 ac_cs_silent=: ;;
15009
15010 # This is an error.
15011 -*) as_fn_error $? "unrecognized option: \`$1'
15012 Try \`$0 --help' for more information." ;;
15013
15014 *) as_fn_append ac_config_targets " $1"
15015 ac_need_defaults=false ;;
15016
15017 esac
15018 shift
15019 done
15020
15021 ac_configure_extra_args=
15022
15023 if $ac_cs_silent; then
15024 exec 6>/dev/null
15025 ac_configure_extra_args="$ac_configure_extra_args --silent"
15026 fi
15027
15028 _ACEOF
15029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15030 if \$ac_cs_recheck; then
15031 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15032 shift
15033 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15034 CONFIG_SHELL='$SHELL'
15035 export CONFIG_SHELL
15036 exec "\$@"
15037 fi
15038
15039 _ACEOF
15040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15041 exec 5>>config.log
15042 {
15043 echo
15044 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15045 ## Running $as_me. ##
15046 _ASBOX
15047 $as_echo "$ac_log"
15048 } >&5
15049
15050 _ACEOF
15051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15052 #
15053 # INIT-COMMANDS
15054 #
15055 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15056
15057 _ACEOF
15058
15059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15060
15061 # Handling of arguments.
15062 for ac_config_target in $ac_config_targets
15063 do
15064 case $ac_config_target in
15065 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15067 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15068 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15069 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15070 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15071 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15072 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15073 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15074 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15075 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15076 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15077 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15078
15079 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15080 esac
15081 done
15082
15083
15084 # If the user did not use the arguments to specify the items to instantiate,
15085 # then the envvar interface is used. Set only those that are not.
15086 # We use the long form for the default assignment because of an extremely
15087 # bizarre bug on SunOS 4.1.3.
15088 if $ac_need_defaults; then
15089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15092 fi
15093
15094 # Have a temporary directory for convenience. Make it in the build tree
15095 # simply because there is no reason against having it here, and in addition,
15096 # creating and moving files from /tmp can sometimes cause problems.
15097 # Hook for its removal unless debugging.
15098 # Note that there is a small window in which the directory will not be cleaned:
15099 # after its creation but before its name has been assigned to `$tmp'.
15100 $debug ||
15101 {
15102 tmp=
15103 trap 'exit_status=$?
15104 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15105 ' 0
15106 trap 'as_fn_exit 1' 1 2 13 15
15107 }
15108 # Create a (secure) tmp directory for tmp files.
15109
15110 {
15111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15112 test -n "$tmp" && test -d "$tmp"
15113 } ||
15114 {
15115 tmp=./conf$$-$RANDOM
15116 (umask 077 && mkdir "$tmp")
15117 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15118
15119 # Set up the scripts for CONFIG_FILES section.
15120 # No need to generate them if there are no CONFIG_FILES.
15121 # This happens for instance with `./config.status config.h'.
15122 if test -n "$CONFIG_FILES"; then
15123
15124 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15125 ac_cs_awk_getline=:
15126 ac_cs_awk_pipe_init=
15127 ac_cs_awk_read_file='
15128 while ((getline aline < (F[key])) > 0)
15129 print(aline)
15130 close(F[key])'
15131 ac_cs_awk_pipe_fini=
15132 else
15133 ac_cs_awk_getline=false
15134 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15135 ac_cs_awk_read_file='
15136 print "|#_!!_#|"
15137 print "cat " F[key] " &&"
15138 '$ac_cs_awk_pipe_init
15139 # The final `:' finishes the AND list.
15140 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15141 fi
15142 ac_cr=`echo X | tr X '\015'`
15143 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15144 # But we know of no other shell where ac_cr would be empty at this
15145 # point, so we can use a bashism as a fallback.
15146 if test "x$ac_cr" = x; then
15147 eval ac_cr=\$\'\\r\'
15148 fi
15149 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15150 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15151 ac_cs_awk_cr='\\r'
15152 else
15153 ac_cs_awk_cr=$ac_cr
15154 fi
15155
15156 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15157 _ACEOF
15158
15159 # Create commands to substitute file output variables.
15160 {
15161 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15162 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15163 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15164 echo "_ACAWK" &&
15165 echo "_ACEOF"
15166 } >conf$$files.sh &&
15167 . ./conf$$files.sh ||
15168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15169 rm -f conf$$files.sh
15170
15171 {
15172 echo "cat >conf$$subs.awk <<_ACEOF" &&
15173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15174 echo "_ACEOF"
15175 } >conf$$subs.sh ||
15176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15177 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15178 ac_delim='%!_!# '
15179 for ac_last_try in false false false false false :; do
15180 . ./conf$$subs.sh ||
15181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15182
15183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15184 if test $ac_delim_n = $ac_delim_num; then
15185 break
15186 elif $ac_last_try; then
15187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15188 else
15189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15190 fi
15191 done
15192 rm -f conf$$subs.sh
15193
15194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15195 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15196 _ACEOF
15197 sed -n '
15198 h
15199 s/^/S["/; s/!.*/"]=/
15200 p
15201 g
15202 s/^[^!]*!//
15203 :repl
15204 t repl
15205 s/'"$ac_delim"'$//
15206 t delim
15207 :nl
15208 h
15209 s/\(.\{148\}\)..*/\1/
15210 t more1
15211 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15212 p
15213 n
15214 b repl
15215 :more1
15216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15217 p
15218 g
15219 s/.\{148\}//
15220 t nl
15221 :delim
15222 h
15223 s/\(.\{148\}\)..*/\1/
15224 t more2
15225 s/["\\]/\\&/g; s/^/"/; s/$/"/
15226 p
15227 b
15228 :more2
15229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15230 p
15231 g
15232 s/.\{148\}//
15233 t delim
15234 ' <conf$$subs.awk | sed '
15235 /^[^""]/{
15236 N
15237 s/\n//
15238 }
15239 ' >>$CONFIG_STATUS || ac_write_fail=1
15240 rm -f conf$$subs.awk
15241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242 _ACAWK
15243 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15244 for (key in S) S_is_set[key] = 1
15245 FS = "\a"
15246 \$ac_cs_awk_pipe_init
15247 }
15248 {
15249 line = $ 0
15250 nfields = split(line, field, "@")
15251 substed = 0
15252 len = length(field[1])
15253 for (i = 2; i < nfields; i++) {
15254 key = field[i]
15255 keylen = length(key)
15256 if (S_is_set[key]) {
15257 value = S[key]
15258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15259 len += length(value) + length(field[++i])
15260 substed = 1
15261 } else
15262 len += 1 + keylen
15263 }
15264 if (nfields == 3 && !substed) {
15265 key = field[2]
15266 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15267 \$ac_cs_awk_read_file
15268 next
15269 }
15270 }
15271 print line
15272 }
15273 \$ac_cs_awk_pipe_fini
15274 _ACAWK
15275 _ACEOF
15276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15277 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15278 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15279 else
15280 cat
15281 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15282 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15283 _ACEOF
15284
15285 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15286 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15287 # trailing colons and then remove the whole line if VPATH becomes empty
15288 # (actually we leave an empty line to preserve line numbers).
15289 if test "x$srcdir" = x.; then
15290 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15291 h
15292 s///
15293 s/^/:/
15294 s/[ ]*$/:/
15295 s/:\$(srcdir):/:/g
15296 s/:\${srcdir}:/:/g
15297 s/:@srcdir@:/:/g
15298 s/^:*//
15299 s/:*$//
15300 x
15301 s/\(=[ ]*\).*/\1/
15302 G
15303 s/\n//
15304 s/^[^=]*=[ ]*$//
15305 }'
15306 fi
15307
15308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15309 fi # test -n "$CONFIG_FILES"
15310
15311 # Set up the scripts for CONFIG_HEADERS section.
15312 # No need to generate them if there are no CONFIG_HEADERS.
15313 # This happens for instance with `./config.status Makefile'.
15314 if test -n "$CONFIG_HEADERS"; then
15315 cat >"$tmp/defines.awk" <<\_ACAWK ||
15316 BEGIN {
15317 _ACEOF
15318
15319 # Transform confdefs.h into an awk script `defines.awk', embedded as
15320 # here-document in config.status, that substitutes the proper values into
15321 # config.h.in to produce config.h.
15322
15323 # Create a delimiter string that does not exist in confdefs.h, to ease
15324 # handling of long lines.
15325 ac_delim='%!_!# '
15326 for ac_last_try in false false :; do
15327 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15328 if test -z "$ac_t"; then
15329 break
15330 elif $ac_last_try; then
15331 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15332 else
15333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15334 fi
15335 done
15336
15337 # For the awk script, D is an array of macro values keyed by name,
15338 # likewise P contains macro parameters if any. Preserve backslash
15339 # newline sequences.
15340
15341 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15342 sed -n '
15343 s/.\{148\}/&'"$ac_delim"'/g
15344 t rset
15345 :rset
15346 s/^[ ]*#[ ]*define[ ][ ]*/ /
15347 t def
15348 d
15349 :def
15350 s/\\$//
15351 t bsnl
15352 s/["\\]/\\&/g
15353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15354 D["\1"]=" \3"/p
15355 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15356 d
15357 :bsnl
15358 s/["\\]/\\&/g
15359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15360 D["\1"]=" \3\\\\\\n"\\/p
15361 t cont
15362 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15363 t cont
15364 d
15365 :cont
15366 n
15367 s/.\{148\}/&'"$ac_delim"'/g
15368 t clear
15369 :clear
15370 s/\\$//
15371 t bsnlc
15372 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15373 d
15374 :bsnlc
15375 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15376 b cont
15377 ' <confdefs.h | sed '
15378 s/'"$ac_delim"'/"\\\
15379 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15380
15381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 for (key in D) D_is_set[key] = 1
15383 FS = "\a"
15384 }
15385 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15386 line = \$ 0
15387 split(line, arg, " ")
15388 if (arg[1] == "#") {
15389 defundef = arg[2]
15390 mac1 = arg[3]
15391 } else {
15392 defundef = substr(arg[1], 2)
15393 mac1 = arg[2]
15394 }
15395 split(mac1, mac2, "(") #)
15396 macro = mac2[1]
15397 prefix = substr(line, 1, index(line, defundef) - 1)
15398 if (D_is_set[macro]) {
15399 # Preserve the white space surrounding the "#".
15400 print prefix "define", macro P[macro] D[macro]
15401 next
15402 } else {
15403 # Replace #undef with comments. This is necessary, for example,
15404 # in the case of _POSIX_SOURCE, which is predefined and required
15405 # on some systems where configure will not decide to define it.
15406 if (defundef == "undef") {
15407 print "/*", prefix defundef, macro, "*/"
15408 next
15409 }
15410 }
15411 }
15412 { print }
15413 _ACAWK
15414 _ACEOF
15415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15416 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15417 fi # test -n "$CONFIG_HEADERS"
15418
15419
15420 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15421 shift
15422 for ac_tag
15423 do
15424 case $ac_tag in
15425 :[FHLC]) ac_mode=$ac_tag; continue;;
15426 esac
15427 case $ac_mode$ac_tag in
15428 :[FHL]*:*);;
15429 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15430 :[FH]-) ac_tag=-:-;;
15431 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15432 esac
15433 ac_save_IFS=$IFS
15434 IFS=:
15435 set x $ac_tag
15436 IFS=$ac_save_IFS
15437 shift
15438 ac_file=$1
15439 shift
15440
15441 case $ac_mode in
15442 :L) ac_source=$1;;
15443 :[FH])
15444 ac_file_inputs=
15445 for ac_f
15446 do
15447 case $ac_f in
15448 -) ac_f="$tmp/stdin";;
15449 *) # Look for the file first in the build tree, then in the source tree
15450 # (if the path is not absolute). The absolute path cannot be DOS-style,
15451 # because $ac_f cannot contain `:'.
15452 test -f "$ac_f" ||
15453 case $ac_f in
15454 [\\/$]*) false;;
15455 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15456 esac ||
15457 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15458 esac
15459 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15460 as_fn_append ac_file_inputs " '$ac_f'"
15461 done
15462
15463 # Let's still pretend it is `configure' which instantiates (i.e., don't
15464 # use $as_me), people would be surprised to read:
15465 # /* config.h. Generated by config.status. */
15466 configure_input='Generated from '`
15467 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15468 `' by configure.'
15469 if test x"$ac_file" != x-; then
15470 configure_input="$ac_file. $configure_input"
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15472 $as_echo "$as_me: creating $ac_file" >&6;}
15473 fi
15474 # Neutralize special characters interpreted by sed in replacement strings.
15475 case $configure_input in #(
15476 *\&* | *\|* | *\\* )
15477 ac_sed_conf_input=`$as_echo "$configure_input" |
15478 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15479 *) ac_sed_conf_input=$configure_input;;
15480 esac
15481
15482 case $ac_tag in
15483 *:-:* | *:-) cat >"$tmp/stdin" \
15484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15485 esac
15486 ;;
15487 esac
15488
15489 ac_dir=`$as_dirname -- "$ac_file" ||
15490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15491 X"$ac_file" : 'X\(//\)[^/]' \| \
15492 X"$ac_file" : 'X\(//\)$' \| \
15493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15494 $as_echo X"$ac_file" |
15495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15496 s//\1/
15497 q
15498 }
15499 /^X\(\/\/\)[^/].*/{
15500 s//\1/
15501 q
15502 }
15503 /^X\(\/\/\)$/{
15504 s//\1/
15505 q
15506 }
15507 /^X\(\/\).*/{
15508 s//\1/
15509 q
15510 }
15511 s/.*/./; q'`
15512 as_dir="$ac_dir"; as_fn_mkdir_p
15513 ac_builddir=.
15514
15515 case "$ac_dir" in
15516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15517 *)
15518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15519 # A ".." for each directory in $ac_dir_suffix.
15520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15521 case $ac_top_builddir_sub in
15522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15524 esac ;;
15525 esac
15526 ac_abs_top_builddir=$ac_pwd
15527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15528 # for backward compatibility:
15529 ac_top_builddir=$ac_top_build_prefix
15530
15531 case $srcdir in
15532 .) # We are building in place.
15533 ac_srcdir=.
15534 ac_top_srcdir=$ac_top_builddir_sub
15535 ac_abs_top_srcdir=$ac_pwd ;;
15536 [\\/]* | ?:[\\/]* ) # Absolute name.
15537 ac_srcdir=$srcdir$ac_dir_suffix;
15538 ac_top_srcdir=$srcdir
15539 ac_abs_top_srcdir=$srcdir ;;
15540 *) # Relative name.
15541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15542 ac_top_srcdir=$ac_top_build_prefix$srcdir
15543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15544 esac
15545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15546
15547
15548 case $ac_mode in
15549 :F)
15550 #
15551 # CONFIG_FILE
15552 #
15553
15554 case $INSTALL in
15555 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15556 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15557 esac
15558 _ACEOF
15559
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561 # If the template does not know about datarootdir, expand it.
15562 # FIXME: This hack should be removed a few years after 2.60.
15563 ac_datarootdir_hack=; ac_datarootdir_seen=
15564 ac_sed_dataroot='
15565 /datarootdir/ {
15566 p
15567 q
15568 }
15569 /@datadir@/p
15570 /@docdir@/p
15571 /@infodir@/p
15572 /@localedir@/p
15573 /@mandir@/p'
15574 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15575 *datarootdir*) ac_datarootdir_seen=yes;;
15576 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15578 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15579 _ACEOF
15580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15581 ac_datarootdir_hack='
15582 s&@datadir@&$datadir&g
15583 s&@docdir@&$docdir&g
15584 s&@infodir@&$infodir&g
15585 s&@localedir@&$localedir&g
15586 s&@mandir@&$mandir&g
15587 s&\\\${datarootdir}&$datarootdir&g' ;;
15588 esac
15589 _ACEOF
15590
15591 # Neutralize VPATH when `$srcdir' = `.'.
15592 # Shell code in configure.ac might set extrasub.
15593 # FIXME: do we really want to maintain this feature?
15594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15595 ac_sed_extra="$ac_vpsub
15596 $extrasub
15597 _ACEOF
15598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15599 :t
15600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15601 s|@configure_input@|$ac_sed_conf_input|;t t
15602 s&@top_builddir@&$ac_top_builddir_sub&;t t
15603 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15604 s&@srcdir@&$ac_srcdir&;t t
15605 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15606 s&@top_srcdir@&$ac_top_srcdir&;t t
15607 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15608 s&@builddir@&$ac_builddir&;t t
15609 s&@abs_builddir@&$ac_abs_builddir&;t t
15610 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15611 s&@INSTALL@&$ac_INSTALL&;t t
15612 $ac_datarootdir_hack
15613 "
15614 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15615 if $ac_cs_awk_getline; then
15616 $AWK -f "$tmp/subs.awk"
15617 else
15618 $AWK -f "$tmp/subs.awk" | $SHELL
15619 fi >$tmp/out \
15620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15621
15622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15626 which seems to be undefined. Please make sure it is defined" >&5
15627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15628 which seems to be undefined. Please make sure it is defined" >&2;}
15629
15630 rm -f "$tmp/stdin"
15631 case $ac_file in
15632 -) cat "$tmp/out" && rm -f "$tmp/out";;
15633 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15634 esac \
15635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15636 ;;
15637 :H)
15638 #
15639 # CONFIG_HEADER
15640 #
15641 if test x"$ac_file" != x-; then
15642 {
15643 $as_echo "/* $configure_input */" \
15644 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15645 } >"$tmp/config.h" \
15646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15647 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15649 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15650 else
15651 rm -f "$ac_file"
15652 mv "$tmp/config.h" "$ac_file" \
15653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15654 fi
15655 else
15656 $as_echo "/* $configure_input */" \
15657 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15658 || as_fn_error $? "could not create -" "$LINENO" 5
15659 fi
15660 ;;
15661
15662 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15663 $as_echo "$as_me: executing $ac_file commands" >&6;}
15664 ;;
15665 esac
15666
15667
15668 case $ac_file$ac_mode in
15669 "default":C)
15670
15671 ### Make the necessary directories, if they don't exist.
15672 for dir in etc lisp ; do
15673 test -d ${dir} || mkdir ${dir}
15674 done
15675
15676 echo creating src/epaths.h
15677 ${MAKE-make} epaths-force
15678
15679 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
15680 echo creating src/.gdbinit
15681 echo source $srcdir/src/.gdbinit > src/.gdbinit
15682 fi
15683
15684 ;;
15685
15686 esac
15687 done # for ac_tag
15688
15689
15690 as_fn_exit 0
15691 _ACEOF
15692 ac_clean_files=$ac_clean_files_save
15693
15694 test $ac_write_fail = 0 ||
15695 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15696
15697
15698 # configure is writing to config.log, and then calls config.status.
15699 # config.status does its own redirection, appending to config.log.
15700 # Unfortunately, on DOS this fails, as config.log is still kept open
15701 # by configure, so config.status won't be able to write to it; its
15702 # output is simply discarded. So we exec the FD to /dev/null,
15703 # effectively closing config.log, so it can be properly (re)opened and
15704 # appended to by config.status. When coming back to configure, we
15705 # need to make the FD available again.
15706 if test "$no_create" != yes; then
15707 ac_cs_success=:
15708 ac_config_status_args=
15709 test "$silent" = yes &&
15710 ac_config_status_args="$ac_config_status_args --quiet"
15711 exec 5>/dev/null
15712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15713 exec 5>>config.log
15714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15715 # would make configure fail if this is the last instruction.
15716 $ac_cs_success || as_fn_exit 1
15717 fi
15718 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15720 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15721 fi
15722
15723