]> code.delx.au - gnu-emacs/blob - configure
Merge: add word to sentence in trunk/doc/lispintro/emacs-lisp-intro.texi, in section...
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 23.1.92.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
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 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=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&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, 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='23.1.92'
553 PACKAGE_STRING='emacs 23.1.92'
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 OTHER_FILES
599 LIB_SRC_EXTRA_INSTALLABLES
600 GNU_OBJC_CFLAGS
601 GNUSTEP_SYSTEM_LIBRARIES
602 GNUSTEP_SYSTEM_HEADERS
603 GNUSTEP_MAKEFILES
604 ns_appsrc
605 ns_appresdir
606 ns_appbindir
607 ns_appdir
608 opsysfile
609 machfile
610 X_TOOLKIT_TYPE
611 C_SWITCH_X_SITE
612 LD_SWITCH_X_SITE_AUX
613 LD_SWITCH_X_SITE
614 c_switch_machine
615 c_switch_system
616 gameuser
617 gamedir
618 bitmapdir
619 archlibdir
620 etcdir
621 x_default_search_path
622 lisppath
623 locallisppath
624 lispdir
625 srcdir
626 canonical
627 configuration
628 version
629 GETOPTOBJS
630 GETOPT_H
631 GETLOADAVG_LIBS
632 KMEM_GROUP
633 NEED_SETGID
634 LIBOBJS
635 liblockfile
636 ALLOCA
637 FREETYPE_LIBS
638 FREETYPE_CFLAGS
639 M17N_FLT_LIBS
640 M17N_FLT_CFLAGS
641 LIBOTF_LIBS
642 LIBOTF_CFLAGS
643 XFT_LIBS
644 XFT_CFLAGS
645 FONTCONFIG_LIBS
646 FONTCONFIG_CFLAGS
647 GCONF_LIBS
648 GCONF_CFLAGS
649 DBUS_LIBS
650 DBUS_CFLAGS
651 GTK_LIBS
652 GTK_CFLAGS
653 RSVG_LIBS
654 RSVG_CFLAGS
655 HAVE_XSERVER
656 XMKMF
657 SET_MAKE
658 CFLAGS_SOUND
659 ALSA_LIBS
660 ALSA_CFLAGS
661 PKG_CONFIG
662 LIBSOUND
663 MAKEINFO
664 GZIP_PROG
665 INSTALL_INFO
666 RANLIB
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 LN_S
671 EGREP
672 GREP
673 CPP
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 MAINT
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 with_pop
732 with_kerberos
733 with_kerberos5
734 with_hesiod
735 with_sound
736 with_sync_input
737 with_x_toolkit
738 with_xpm
739 with_jpeg
740 with_tiff
741 with_gif
742 with_png
743 with_rsvg
744 with_xft
745 with_libotf
746 with_m17n_flt
747 with_toolkit_scroll_bars
748 with_xaw3d
749 with_xim
750 with_ns
751 with_gpm
752 with_dbus
753 with_gconf
754 with_makeinfo
755 with_gtk
756 with_gcc
757 with_pkg_config_prog
758 with_gnustep_conf
759 enable_ns_self_contained
760 enable_asserts
761 enable_maintainer_mode
762 enable_locallisppath
763 enable_checking
764 enable_profiling
765 enable_autodepend
766 enable_largefile
767 with_x
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP
778 XMKMF'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
838 fi
839
840 case $ac_option in
841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information."
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures emacs 23.1.92 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382 X features:
1383 --x-includes=DIR X include files are in DIR
1384 --x-libraries=DIR X library files are in DIR
1385
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of emacs 23.1.92:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398 Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --disable-ns-self-contained
1403 disable self contained build under NeXTstep
1404 --enable-asserts compile code with asserts enabled
1405 --enable-maintainer-mode
1406 enable make rules and dependencies not useful (and
1407 sometimes confusing) to the casual installer
1408 --enable-locallisppath=PATH
1409 directories Emacs should search for lisp files
1410 specific to this site
1411 --enable-checking[=LIST]
1412 enable expensive run-time checks. With LIST, enable
1413 only specific categories of checks. Categories are:
1414 all,yes,no. Flags are: stringbytes, stringoverrun,
1415 stringfreelist, xmallocoverrun, conslist
1416 --enable-profiling build emacs with profiling support. This might not
1417 work on all platforms
1418 --enable-autodepend automatically generate dependencies to .h-files.
1419 Requires GNU Make and Gcc. Enabled if GNU Make and
1420 Gcc is found
1421 --disable-largefile omit support for large files
1422
1423 Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --without-pop don't support POP mail retrieval with movemail
1427 --with-kerberos support Kerberos-authenticated POP
1428 --with-kerberos5 support Kerberos version 5 authenticated POP
1429 --with-hesiod support Hesiod to get the POP server host
1430 --without-sound don't compile with sound support
1431 --without-sync-input process async input synchronously
1432 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1433 motif, gtk, no)
1434 --without-xpm don't compile with XPM image support
1435 --without-jpeg don't compile with JPEG image support
1436 --without-tiff don't compile with TIFF image support
1437 --without-gif don't compile with GIF image support
1438 --without-png don't compile with PNG image support
1439 --without-rsvg don't compile with SVG image support
1440 --without-xft don't use XFT for anti aliased fonts
1441 --without-libotf don't use libotf for OpenType font support
1442 --without-m17n-flt don't use m17n-flt for text shaping
1443 --without-toolkit-scroll-bars
1444 don't use Motif or Xaw3d scroll bars
1445 --without-xaw3d don't use Xaw3d
1446 --without-xim don't use X11 XIM
1447 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1448 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1449 console
1450 --without-dbus don't compile with D-Bus support
1451 --without-gconf don't compile with GConf support
1452 --without-makeinfo don't require makeinfo for building manuals
1453
1454 --with-pkg-config-prog=PATH
1455 path to pkg-config for finding GTK and librsvg
1456 --with-gnustep-conf=PATH
1457 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1458 or /etc/GNUstep/GNUstep.conf
1459 --with-x use the X Window System
1460
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 LIBS libraries to pass to the linker, e.g. -l<library>
1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 CPP C preprocessor
1470 XMKMF Path to xmkmf, Makefile generator for X Window System
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to the package provider.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 emacs configure 23.1.92
1539 generated by GNU Autoconf 2.65
1540
1541 Copyright (C) 2009 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584 fi
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_c_try_link LINENO
1591 # -----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_link ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 $as_test_x conftest$ac_exeext
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_link
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } >/dev/null && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_cpp
1672
1673 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1674 # -------------------------------------------------------
1675 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1676 # the include files in INCLUDES and setting the cache variable VAR
1677 # accordingly.
1678 ac_fn_c_check_header_mongrel ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 $as_echo_n "(cached) " >&6
1686 fi
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 else
1691 # Is the header compilable?
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1693 $as_echo_n "checking $2 usability... " >&6; }
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 $4
1697 #include <$2>
1698 _ACEOF
1699 if ac_fn_c_try_compile "$LINENO"; then :
1700 ac_header_compiler=yes
1701 else
1702 ac_header_compiler=no
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1706 $as_echo "$ac_header_compiler" >&6; }
1707
1708 # Is the header present?
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1710 $as_echo_n "checking $2 presence... " >&6; }
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_cpp "$LINENO"; then :
1716 ac_header_preproc=yes
1717 else
1718 ac_header_preproc=no
1719 fi
1720 rm -f conftest.err conftest.$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1722 $as_echo "$ac_header_preproc" >&6; }
1723
1724 # So? What about this header?
1725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1726 yes:no: )
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1728 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 ;;
1732 no:yes:* )
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1734 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1736 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1738 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1740 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1742 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1743 ;;
1744 esac
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748 $as_echo_n "(cached) " >&6
1749 else
1750 eval "$3=\$ac_header_compiler"
1751 fi
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 fi
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757
1758 } # ac_fn_c_check_header_mongrel
1759
1760 # ac_fn_c_try_run LINENO
1761 # ----------------------
1762 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1763 # that executables *can* be run.
1764 ac_fn_c_try_run ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if { { ac_try="$ac_link"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>&5
1775 ac_status=$?
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1778 { { case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_try") 2>&5
1785 ac_status=$?
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; }; }; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: program exited with status $ac_status" >&5
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=$ac_status
1795 fi
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_run
1801
1802 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists and can be compiled using the include files in
1805 # INCLUDES, setting the cache variable VAR accordingly.
1806 ac_fn_c_check_header_compile ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 $4
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830
1831 } # ac_fn_c_check_header_compile
1832
1833 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1834 # ----------------------------------------------
1835 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_preproc ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_cpp "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1852 fi
1853 rm -f conftest.err conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
1860 } # ac_fn_c_check_header_preproc
1861
1862 # ac_fn_c_check_decl LINENO SYMBOL VAR
1863 # ------------------------------------
1864 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1865 ac_fn_c_check_decl ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1869 $as_echo_n "checking whether $2 is declared... " >&6; }
1870 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 $4
1876 int
1877 main ()
1878 {
1879 #ifndef $2
1880 (void) $2;
1881 #endif
1882
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 fi
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898
1899 } # ac_fn_c_check_decl
1900
1901 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1902 # ----------------------------------------------------
1903 # Tries to find if the field MEMBER exists in type AGGR, after including
1904 # INCLUDES, setting cache variable VAR accordingly.
1905 ac_fn_c_check_member ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1909 $as_echo_n "checking for $2.$3... " >&6; }
1910 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1911 $as_echo_n "(cached) " >&6
1912 else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 $5
1916 int
1917 main ()
1918 {
1919 static $2 ac_aggr;
1920 if (ac_aggr.$3)
1921 return 0;
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 eval "$4=yes"
1928 else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 $5
1932 int
1933 main ()
1934 {
1935 static $2 ac_aggr;
1936 if (sizeof ac_aggr.$3)
1937 return 0;
1938 ;
1939 return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$4=yes"
1944 else
1945 eval "$4=no"
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 fi
1951 eval ac_res=\$$4
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
1956 } # ac_fn_c_check_member
1957
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1973 #define $2 innocuous_$2
1974
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char $2 (); below.
1977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978 <limits.h> exists even on freestanding compilers. */
1979
1980 #ifdef __STDC__
1981 # include <limits.h>
1982 #else
1983 # include <assert.h>
1984 #endif
1985
1986 #undef $2
1987
1988 /* Override any GCC internal prototype to avoid an error.
1989 Use char because int might match the return type of a GCC
1990 builtin and then its argument prototype would still apply. */
1991 #ifdef __cplusplus
1992 extern "C"
1993 #endif
1994 char $2 ();
1995 /* The GNU C library defines this for functions which it implements
1996 to always fail with ENOSYS. Some functions are actually named
1997 something starting with __ and the normal name is an alias. */
1998 #if defined __stub_$2 || defined __stub___$2
1999 choke me
2000 #endif
2001
2002 int
2003 main ()
2004 {
2005 return $2 ();
2006 ;
2007 return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_link "$LINENO"; then :
2011 eval "$3=yes"
2012 else
2013 eval "$3=no"
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext \
2016 conftest$ac_exeext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022
2023 } # ac_fn_c_check_func
2024
2025 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026 # -------------------------------------------
2027 # Tests whether TYPE exists after having included INCLUDES, setting cache
2028 # variable VAR accordingly.
2029 ac_fn_c_check_type ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 eval "$3=no"
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof ($2))
2045 return 0;
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 $4
2054 int
2055 main ()
2056 {
2057 if (sizeof (($2)))
2058 return 0;
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064
2065 else
2066 eval "$3=yes"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076
2077 } # ac_fn_c_check_type
2078 cat >config.log <<_ACEOF
2079 This file contains any messages produced by compilers while
2080 running configure, to aid debugging if configure makes a mistake.
2081
2082 It was created by emacs $as_me 23.1.92, which was
2083 generated by GNU Autoconf 2.65. Invocation command line was
2084
2085 $ $0 $@
2086
2087 _ACEOF
2088 exec 5>>config.log
2089 {
2090 cat <<_ASUNAME
2091 ## --------- ##
2092 ## Platform. ##
2093 ## --------- ##
2094
2095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2100
2101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2103
2104 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2105 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2107 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2108 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2109 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2110 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2111
2112 _ASUNAME
2113
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 $as_echo "PATH: $as_dir"
2120 done
2121 IFS=$as_save_IFS
2122
2123 } >&5
2124
2125 cat >&5 <<_ACEOF
2126
2127
2128 ## ----------- ##
2129 ## Core tests. ##
2130 ## ----------- ##
2131
2132 _ACEOF
2133
2134
2135 # Keep a trace of the command line.
2136 # Strip out --no-create and --no-recursion so they do not pile up.
2137 # Strip out --silent because we don't want to record it for future runs.
2138 # Also quote any args containing shell meta-characters.
2139 # Make two passes to allow for proper duplicate-argument suppression.
2140 ac_configure_args=
2141 ac_configure_args0=
2142 ac_configure_args1=
2143 ac_must_keep_next=false
2144 for ac_pass in 1 2
2145 do
2146 for ac_arg
2147 do
2148 case $ac_arg in
2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151 | -silent | --silent | --silen | --sile | --sil)
2152 continue ;;
2153 *\'*)
2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2155 esac
2156 case $ac_pass in
2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2158 2)
2159 as_fn_append ac_configure_args1 " '$ac_arg'"
2160 if test $ac_must_keep_next = true; then
2161 ac_must_keep_next=false # Got value, back to normal.
2162 else
2163 case $ac_arg in
2164 *=* | --config-cache | -C | -disable-* | --disable-* \
2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167 | -with-* | --with-* | -without-* | --without-* | --x)
2168 case "$ac_configure_args0 " in
2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170 esac
2171 ;;
2172 -* ) ac_must_keep_next=true ;;
2173 esac
2174 fi
2175 as_fn_append ac_configure_args " '$ac_arg'"
2176 ;;
2177 esac
2178 done
2179 done
2180 { ac_configure_args0=; unset ac_configure_args0;}
2181 { ac_configure_args1=; unset ac_configure_args1;}
2182
2183 # When interrupted or exit'd, cleanup temporary files, and complete
2184 # config.log. We remove comments because anyway the quotes in there
2185 # would cause problems or look ugly.
2186 # WARNING: Use '\'' to represent an apostrophe within the trap.
2187 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188 trap 'exit_status=$?
2189 # Save into config.log some information that might help in debugging.
2190 {
2191 echo
2192
2193 cat <<\_ASBOX
2194 ## ---------------- ##
2195 ## Cache variables. ##
2196 ## ---------------- ##
2197 _ASBOX
2198 echo
2199 # The following way of writing the cache mishandles newlines in values,
2200 (
2201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202 eval ac_val=\$$ac_var
2203 case $ac_val in #(
2204 *${as_nl}*)
2205 case $ac_var in #(
2206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2208 esac
2209 case $ac_var in #(
2210 _ | IFS | as_nl) ;; #(
2211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212 *) { eval $ac_var=; unset $ac_var;} ;;
2213 esac ;;
2214 esac
2215 done
2216 (set) 2>&1 |
2217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218 *${as_nl}ac_space=\ *)
2219 sed -n \
2220 "s/'\''/'\''\\\\'\'''\''/g;
2221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2222 ;; #(
2223 *)
2224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2225 ;;
2226 esac |
2227 sort
2228 )
2229 echo
2230
2231 cat <<\_ASBOX
2232 ## ----------------- ##
2233 ## Output variables. ##
2234 ## ----------------- ##
2235 _ASBOX
2236 echo
2237 for ac_var in $ac_subst_vars
2238 do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in
2241 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 esac
2243 $as_echo "$ac_var='\''$ac_val'\''"
2244 done | sort
2245 echo
2246
2247 if test -n "$ac_subst_files"; then
2248 cat <<\_ASBOX
2249 ## ------------------- ##
2250 ## File substitutions. ##
2251 ## ------------------- ##
2252 _ASBOX
2253 echo
2254 for ac_var in $ac_subst_files
2255 do
2256 eval ac_val=\$$ac_var
2257 case $ac_val in
2258 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 esac
2260 $as_echo "$ac_var='\''$ac_val'\''"
2261 done | sort
2262 echo
2263 fi
2264
2265 if test -s confdefs.h; then
2266 cat <<\_ASBOX
2267 ## ----------- ##
2268 ## confdefs.h. ##
2269 ## ----------- ##
2270 _ASBOX
2271 echo
2272 cat confdefs.h
2273 echo
2274 fi
2275 test "$ac_signal" != 0 &&
2276 $as_echo "$as_me: caught signal $ac_signal"
2277 $as_echo "$as_me: exit $exit_status"
2278 } >&5
2279 rm -f core *.core core.conftest.* &&
2280 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2281 exit $exit_status
2282 ' 0
2283 for ac_signal in 1 2 13 15; do
2284 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 done
2286 ac_signal=0
2287
2288 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2289 rm -f -r conftest* confdefs.h
2290
2291 $as_echo "/* confdefs.h */" > confdefs.h
2292
2293 # Predefined preprocessor variables.
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_NAME "$PACKAGE_NAME"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_STRING "$PACKAGE_STRING"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_URL "$PACKAGE_URL"
2317 _ACEOF
2318
2319
2320 # Let the site file select an alternate cache file if it wants to.
2321 # Prefer an explicitly selected file to automatically selected ones.
2322 ac_site_file1=NONE
2323 ac_site_file2=NONE
2324 if test -n "$CONFIG_SITE"; then
2325 ac_site_file1=$CONFIG_SITE
2326 elif test "x$prefix" != xNONE; then
2327 ac_site_file1=$prefix/share/config.site
2328 ac_site_file2=$prefix/etc/config.site
2329 else
2330 ac_site_file1=$ac_default_prefix/share/config.site
2331 ac_site_file2=$ac_default_prefix/etc/config.site
2332 fi
2333 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2334 do
2335 test "x$ac_site_file" = xNONE && continue
2336 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2338 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2339 sed 's/^/| /' "$ac_site_file" >&5
2340 . "$ac_site_file"
2341 fi
2342 done
2343
2344 if test -r "$cache_file"; then
2345 # Some versions of bash will fail to source /dev/null (special files
2346 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2347 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2349 $as_echo "$as_me: loading cache $cache_file" >&6;}
2350 case $cache_file in
2351 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2352 *) . "./$cache_file";;
2353 esac
2354 fi
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2357 $as_echo "$as_me: creating cache $cache_file" >&6;}
2358 >$cache_file
2359 fi
2360
2361 as_fn_append ac_header_list " stdlib.h"
2362 as_fn_append ac_header_list " unistd.h"
2363 as_fn_append ac_header_list " sys/param.h"
2364 as_fn_append ac_header_list " sys/time.h"
2365 as_fn_append ac_func_list " alarm"
2366 # Check that the precious variables saved in the cache have kept the same
2367 # value.
2368 ac_cache_corrupted=false
2369 for ac_var in $ac_precious_vars; do
2370 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2371 eval ac_new_set=\$ac_env_${ac_var}_set
2372 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2373 eval ac_new_val=\$ac_env_${ac_var}_value
2374 case $ac_old_set,$ac_new_set in
2375 set,)
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2377 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2378 ac_cache_corrupted=: ;;
2379 ,set)
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2381 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2382 ac_cache_corrupted=: ;;
2383 ,);;
2384 *)
2385 if test "x$ac_old_val" != "x$ac_new_val"; then
2386 # differences in whitespace do not lead to failure.
2387 ac_old_val_w=`echo x $ac_old_val`
2388 ac_new_val_w=`echo x $ac_new_val`
2389 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2391 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2392 ac_cache_corrupted=:
2393 else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2395 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2396 eval $ac_var=\$ac_old_val
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2399 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2401 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2402 fi;;
2403 esac
2404 # Pass precious variables to config.status.
2405 if test "$ac_new_set" = set; then
2406 case $ac_new_val in
2407 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2408 *) ac_arg=$ac_var=$ac_new_val ;;
2409 esac
2410 case " $ac_configure_args " in
2411 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2412 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2413 esac
2414 fi
2415 done
2416 if $ac_cache_corrupted; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2420 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2421 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2422 fi
2423 ## -------------------- ##
2424 ## Main body of script. ##
2425 ## -------------------- ##
2426
2427 ac_ext=c
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432
2433
2434 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2435
2436
2437
2438 test "$program_prefix" != NONE &&
2439 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2440 # Use a double $ so make ignores it.
2441 test "$program_suffix" != NONE &&
2442 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2443 # Double any \ or $.
2444 # By default was `s,x,x', remove it if useless.
2445 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2446 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2447
2448
2449 lispdir='${datadir}/emacs/${version}/lisp'
2450 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2451 '${datadir}/emacs/site-lisp'
2452 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2453 etcdir='${datadir}/emacs/${version}/etc'
2454 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2455 docdir='${datadir}/emacs/${version}/etc'
2456 gamedir='${localstatedir}/games/emacs'
2457
2458 gameuser=games
2459
2460
2461
2462
2463 # Check whether --with-pop was given.
2464 if test "${with_pop+set}" = set; then :
2465 withval=$with_pop;
2466 else
2467 with_pop=yes
2468 fi
2469
2470 if test "$with_pop" = yes; then
2471 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2472
2473 fi
2474
2475
2476 # Check whether --with-kerberos was given.
2477 if test "${with_kerberos+set}" = set; then :
2478 withval=$with_kerberos;
2479 else
2480 with_kerberos=no
2481 fi
2482
2483 if test "$with_kerberos" != no; then
2484 $as_echo "#define KERBEROS 1" >>confdefs.h
2485
2486 fi
2487
2488
2489 # Check whether --with-kerberos5 was given.
2490 if test "${with_kerberos5+set}" = set; then :
2491 withval=$with_kerberos5;
2492 else
2493 with_kerberos5=no
2494 fi
2495
2496 if test "${with_kerberos5}" != no; then
2497 if test "${with_kerberos}" = no; then
2498 with_kerberos=yes
2499 $as_echo "#define KERBEROS 1" >>confdefs.h
2500
2501 fi
2502
2503 $as_echo "#define KERBEROS5 1" >>confdefs.h
2504
2505 fi
2506
2507
2508 # Check whether --with-hesiod was given.
2509 if test "${with_hesiod+set}" = set; then :
2510 withval=$with_hesiod;
2511 else
2512 with_hesiod=no
2513 fi
2514
2515 if test "$with_hesiod" != no; then
2516
2517 $as_echo "#define HESIOD 1" >>confdefs.h
2518
2519 fi
2520
2521
2522 # Check whether --with-sound was given.
2523 if test "${with_sound+set}" = set; then :
2524 withval=$with_sound;
2525 else
2526 with_sound=yes
2527 fi
2528
2529
2530
2531 # Check whether --with-sync-input was given.
2532 if test "${with_sync_input+set}" = set; then :
2533 withval=$with_sync_input;
2534 else
2535 with_sync_input=yes
2536 fi
2537
2538 if test "$with_sync_input" = yes; then
2539
2540 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2541
2542 fi
2543
2544
2545 # Check whether --with-x-toolkit was given.
2546 if test "${with_x_toolkit+set}" = set; then :
2547 withval=$with_x_toolkit; case "${withval}" in
2548 y | ye | yes ) val=gtk ;;
2549 n | no ) val=no ;;
2550 l | lu | luc | luci | lucid ) val=lucid ;;
2551 a | at | ath | athe | athen | athena ) val=athena ;;
2552 m | mo | mot | moti | motif ) val=motif ;;
2553 g | gt | gtk ) val=gtk ;;
2554 * )
2555 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2556 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2557 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2558 ;;
2559 esac
2560 with_x_toolkit=$val
2561
2562 fi
2563
2564
2565
2566 # Check whether --with-xpm was given.
2567 if test "${with_xpm+set}" = set; then :
2568 withval=$with_xpm;
2569 else
2570 with_xpm=yes
2571 fi
2572
2573
2574 # Check whether --with-jpeg was given.
2575 if test "${with_jpeg+set}" = set; then :
2576 withval=$with_jpeg;
2577 else
2578 with_jpeg=yes
2579 fi
2580
2581
2582 # Check whether --with-tiff was given.
2583 if test "${with_tiff+set}" = set; then :
2584 withval=$with_tiff;
2585 else
2586 with_tiff=yes
2587 fi
2588
2589
2590 # Check whether --with-gif was given.
2591 if test "${with_gif+set}" = set; then :
2592 withval=$with_gif;
2593 else
2594 with_gif=yes
2595 fi
2596
2597
2598 # Check whether --with-png was given.
2599 if test "${with_png+set}" = set; then :
2600 withval=$with_png;
2601 else
2602 with_png=yes
2603 fi
2604
2605
2606 # Check whether --with-rsvg was given.
2607 if test "${with_rsvg+set}" = set; then :
2608 withval=$with_rsvg;
2609 else
2610 with_rsvg=yes
2611 fi
2612
2613
2614
2615 # Check whether --with-xft was given.
2616 if test "${with_xft+set}" = set; then :
2617 withval=$with_xft;
2618 else
2619 with_xft=yes
2620 fi
2621
2622
2623 # Check whether --with-libotf was given.
2624 if test "${with_libotf+set}" = set; then :
2625 withval=$with_libotf;
2626 else
2627 with_libotf=yes
2628 fi
2629
2630
2631 # Check whether --with-m17n-flt was given.
2632 if test "${with_m17n_flt+set}" = set; then :
2633 withval=$with_m17n_flt;
2634 else
2635 with_m17n_flt=yes
2636 fi
2637
2638
2639
2640 # Check whether --with-toolkit-scroll-bars was given.
2641 if test "${with_toolkit_scroll_bars+set}" = set; then :
2642 withval=$with_toolkit_scroll_bars;
2643 else
2644 with_toolkit_scroll_bars=yes
2645 fi
2646
2647
2648 # Check whether --with-xaw3d was given.
2649 if test "${with_xaw3d+set}" = set; then :
2650 withval=$with_xaw3d;
2651 else
2652 with_xaw3d=yes
2653 fi
2654
2655
2656 # Check whether --with-xim was given.
2657 if test "${with_xim+set}" = set; then :
2658 withval=$with_xim;
2659 else
2660 with_xim=yes
2661 fi
2662
2663
2664 # Check whether --with-ns was given.
2665 if test "${with_ns+set}" = set; then :
2666 withval=$with_ns;
2667 else
2668 with_ns=no
2669 fi
2670
2671
2672
2673 # Check whether --with-gpm was given.
2674 if test "${with_gpm+set}" = set; then :
2675 withval=$with_gpm;
2676 else
2677 with_gpm=yes
2678 fi
2679
2680
2681 # Check whether --with-dbus was given.
2682 if test "${with_dbus+set}" = set; then :
2683 withval=$with_dbus;
2684 else
2685 with_dbus=yes
2686 fi
2687
2688
2689 # Check whether --with-gconf was given.
2690 if test "${with_gconf+set}" = set; then :
2691 withval=$with_gconf;
2692 else
2693 with_gconf=yes
2694 fi
2695
2696
2697 ## For the times when you want to build Emacs but don't have
2698 ## a suitable makeinfo, and can live without the manuals.
2699
2700 # Check whether --with-makeinfo was given.
2701 if test "${with_makeinfo+set}" = set; then :
2702 withval=$with_makeinfo;
2703 else
2704 with_makeinfo=yes
2705 fi
2706
2707
2708
2709 # Check whether --with-gtk was given.
2710 if test "${with_gtk+set}" = set; then :
2711 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to
2712 specify a toolkit." "$LINENO" 5
2713 fi
2714
2715
2716
2717 # Check whether --with-gcc was given.
2718 if test "${with_gcc+set}" = set; then :
2719 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment
2720 variable to specify a compiler." "$LINENO" 5
2721 fi
2722
2723
2724
2725 # Check whether --with-pkg-config-prog was given.
2726 if test "${with_pkg_config_prog+set}" = set; then :
2727 withval=$with_pkg_config_prog;
2728 fi
2729
2730 if test "X${with_pkg_config_prog}" != X; then
2731 if test "${with_pkg_config_prog}" != yes; then
2732 PKG_CONFIG="${with_pkg_config_prog}"
2733 fi
2734 fi
2735
2736
2737 # Check whether --with-gnustep-conf was given.
2738 if test "${with_gnustep_conf+set}" = set; then :
2739 withval=$with_gnustep_conf;
2740 fi
2741
2742 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2743 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2744 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2745 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2746
2747 # Check whether --enable-ns-self-contained was given.
2748 if test "${enable_ns_self_contained+set}" = set; then :
2749 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2750 else
2751 EN_NS_SELF_CONTAINED=yes
2752 fi
2753
2754
2755 # Check whether --enable-asserts was given.
2756 if test "${enable_asserts+set}" = set; then :
2757 enableval=$enable_asserts; USE_XASSERTS=$enableval
2758 else
2759 USE_XASSERTS=no
2760 fi
2761
2762
2763 # Check whether --enable-maintainer-mode was given.
2764 if test "${enable_maintainer_mode+set}" = set; then :
2765 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2766 else
2767 USE_MAINTAINER_MODE=no
2768 fi
2769
2770 if test $USE_MAINTAINER_MODE = yes; then
2771 MAINT=
2772 else
2773 MAINT=#
2774 fi
2775
2776
2777 # Check whether --enable-locallisppath was given.
2778 if test "${enable_locallisppath+set}" = set; then :
2779 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2780 locallisppath=
2781 elif test "${enableval}" != "yes"; then
2782 locallisppath=${enableval}
2783 fi
2784 fi
2785
2786
2787 # Check whether --enable-checking was given.
2788 if test "${enable_checking+set}" = set; then :
2789 enableval=$enable_checking; ac_checking_flags="${enableval}"
2790 fi
2791
2792 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2793 for check in $ac_checking_flags
2794 do
2795 case $check in
2796 # these set all the flags to specific states
2797 yes) ac_enable_checking=1 ;;
2798 no) ac_enable_checking= ;
2799 ac_gc_check_stringbytes= ;
2800 ac_gc_check_string_overrun= ;
2801 ac_gc_check_string_free_list= ;
2802 ac_xmalloc_overrun= ;
2803 ac_gc_check_cons_list= ;;
2804 all) ac_enable_checking=1 ;
2805 ac_gc_check_stringbytes=1 ;
2806 ac_gc_check_string_overrun=1 ;
2807 ac_gc_check_string_free_list=1 ;
2808 ac_xmalloc_overrun=1 ;
2809 ac_gc_check_cons_list=1 ;;
2810 # these enable particular checks
2811 stringbytes) ac_gc_check_stringbytes=1 ;;
2812 stringoverrun) ac_gc_check_string_overrun=1 ;;
2813 stringfreelist) ac_gc_check_string_free_list=1 ;;
2814 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2815 conslist) ac_gc_check_cons_list=1 ;;
2816 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2817 esac
2818 done
2819 IFS="$ac_save_IFS"
2820
2821 if test x$ac_enable_checking != x ; then
2822
2823 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2824
2825 fi
2826 if test x$ac_gc_check_stringbytes != x ; then
2827
2828 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2829
2830 fi
2831 if test x$ac_gc_check_stringoverrun != x ; then
2832
2833 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2834
2835 fi
2836 if test x$ac_gc_check_string_free_list != x ; then
2837
2838 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2839
2840 fi
2841 if test x$ac_xmalloc_overrun != x ; then
2842
2843 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2844
2845 fi
2846 if test x$ac_gc_check_cons_list != x ; then
2847
2848 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2849
2850 fi
2851
2852 # Check whether --enable-profiling was given.
2853 if test "${enable_profiling+set}" = set; then :
2854 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2855 fi
2856
2857 if test x$ac_enable_profiling != x ; then
2858 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2859 PROFILING_LDFLAGS="-pg"
2860 else
2861 PROFILING_CFLAGS=
2862 PROFILING_LDFLAGS=
2863 fi
2864
2865 # Check whether --enable-autodepend was given.
2866 if test "${enable_autodepend+set}" = set; then :
2867 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2868 else
2869 ac_enable_autodepend=yes
2870 fi
2871
2872
2873 #### Make srcdir absolute, if it isn't already. It's important to
2874 #### avoid running the path through pwd unnecessarily, since pwd can
2875 #### give you automounter prefixes, which can go away. We do all this
2876 #### so Emacs can find its files when run uninstalled.
2877 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2878 unset CDPATH
2879 case "${srcdir}" in
2880 /* ) ;;
2881 . )
2882 ## We may be able to use the $PWD environment variable to make this
2883 ## absolute. But sometimes PWD is inaccurate.
2884 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2885 ## but that tested only for a well-formed and valid PWD,
2886 ## it did not object when PWD was well-formed and valid but just wrong.
2887 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2888 then
2889 srcdir="$PWD"
2890 else
2891 srcdir="`(cd ${srcdir}; pwd)`"
2892 fi
2893 ;;
2894 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2895 esac
2896
2897 #### Check if the source directory already has a configured system in it.
2898 if test `pwd` != `(cd ${srcdir} && pwd)` \
2899 && test -f "${srcdir}/src/config.h" ; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2901 as a build directory right now; it has been configured in its own
2902 right. To configure in another directory as well, you MUST
2903 use GNU make. If you do not have GNU make, then you must
2904 now do \`make distclean' in ${srcdir},
2905 and then run $0 again." >&5
2906 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2907 as a build directory right now; it has been configured in its own
2908 right. To configure in another directory as well, you MUST
2909 use GNU make. If you do not have GNU make, then you must
2910 now do \`make distclean' in ${srcdir},
2911 and then run $0 again." >&2;}
2912 fi
2913
2914 #### Given the configuration name, set machfile and opsysfile to the
2915 #### names of the m/*.h and s/*.h files we should use.
2916
2917 ### Canonicalize the configuration name.
2918
2919 ac_aux_dir=
2920 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2921 for ac_t in install-sh install.sh shtool; do
2922 if test -f "$ac_dir/$ac_t"; then
2923 ac_aux_dir=$ac_dir
2924 ac_install_sh="$ac_aux_dir/$ac_t -c"
2925 break 2
2926 fi
2927 done
2928 done
2929 if test -z "$ac_aux_dir"; then
2930 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2931 fi
2932
2933 # These three variables are undocumented and unsupported,
2934 # and are intended to be withdrawn in a future Autoconf release.
2935 # They can cause serious problems if a builder's source tree is in a directory
2936 # whose full name contains unusual characters.
2937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2940
2941
2942 # Make sure we can run config.sub.
2943 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2944 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2945
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2947 $as_echo_n "checking build system type... " >&6; }
2948 if test "${ac_cv_build+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 ac_build_alias=$build_alias
2952 test "x$ac_build_alias" = x &&
2953 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2954 test "x$ac_build_alias" = x &&
2955 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2956 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2957 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2958
2959 fi
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2961 $as_echo "$ac_cv_build" >&6; }
2962 case $ac_cv_build in
2963 *-*-*) ;;
2964 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2965 esac
2966 build=$ac_cv_build
2967 ac_save_IFS=$IFS; IFS='-'
2968 set x $ac_cv_build
2969 shift
2970 build_cpu=$1
2971 build_vendor=$2
2972 shift; shift
2973 # Remember, the first character of IFS is used to create $*,
2974 # except with old shells:
2975 build_os=$*
2976 IFS=$ac_save_IFS
2977 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2978
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2981 $as_echo_n "checking host system type... " >&6; }
2982 if test "${ac_cv_host+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test "x$host_alias" = x; then
2986 ac_cv_host=$ac_cv_build
2987 else
2988 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2989 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2990 fi
2991
2992 fi
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2994 $as_echo "$ac_cv_host" >&6; }
2995 case $ac_cv_host in
2996 *-*-*) ;;
2997 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2998 esac
2999 host=$ac_cv_host
3000 ac_save_IFS=$IFS; IFS='-'
3001 set x $ac_cv_host
3002 shift
3003 host_cpu=$1
3004 host_vendor=$2
3005 shift; shift
3006 # Remember, the first character of IFS is used to create $*,
3007 # except with old shells:
3008 host_os=$*
3009 IFS=$ac_save_IFS
3010 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3011
3012
3013 canonical=$host
3014 configuration=${host_alias-${build_alias-$host}}
3015
3016
3017
3018 ### If you add support for a new configuration, add code to this
3019 ### switch statement to recognize your configuration name and select
3020 ### the appropriate operating system and machine description files.
3021
3022 ### You would hope that you could choose an m/*.h file pretty much
3023 ### based on the machine portion of the configuration name, and an s-
3024 ### file based on the operating system portion. However, it turns out
3025 ### that each m/*.h file is pretty manufacturer-specific - for
3026 ### example mips.h is MIPS
3027 ### So we basically have to have a special case for each
3028 ### configuration name.
3029 ###
3030 ### As far as handling version numbers on operating systems is
3031 ### concerned, make sure things will fail in a fixable way. If
3032 ### /etc/MACHINES doesn't say anything about version numbers, be
3033 ### prepared to handle anything reasonably. If version numbers
3034 ### matter, be sure /etc/MACHINES says something about it.
3035 ###
3036 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3037 ### "System V Release 4"; he writes, "The old convention encouraged
3038 ### confusion between `system' and `release' levels'."
3039
3040 machine='' opsys='' unported=no
3041 case "${canonical}" in
3042
3043 ## FreeBSD ports
3044 *-*-freebsd* )
3045 opsys=freebsd
3046 case "${canonical}" in
3047 alpha*-*-freebsd*) machine=alpha ;;
3048 arm*-*-freebsd*) machine=arm ;;
3049 ia64-*-freebsd*) machine=ia64 ;;
3050 sparc-*-freebsd*) machine=sparc ;;
3051 sparc64-*-freebsd*) machine=sparc ;;
3052 powerpc-*-freebsd*) machine=macppc ;;
3053 i[3456]86-*-freebsd*) machine=intel386 ;;
3054 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
3055 esac
3056 ;;
3057
3058 ## FreeBSD kernel + glibc based userland
3059 *-*-kfreebsd*gnu* )
3060 opsys=gnu-kfreebsd
3061 case "${canonical}" in
3062 alpha*-*-kfreebsd*) machine=alpha ;;
3063 ia64-*-kfreebsd*) machine=ia64 ;;
3064 sparc-*-kfreebsd*) machine=sparc ;;
3065 sparc64-*-kfreebsd*) machine=sparc ;;
3066 powerpc-*-kfreebsd*) machine=macppc ;;
3067 i[3456]86-*-kfreebsd*) machine=intel386 ;;
3068 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
3069 esac
3070 ;;
3071
3072 ## NetBSD ports
3073 *-*-netbsd* )
3074 opsys=netbsd
3075 if test -f /usr/lib/crti.o; then
3076
3077 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3078
3079 fi
3080
3081 case "${canonical}" in
3082 alpha*-*-netbsd*) machine=alpha ;;
3083 i[3456]86-*-netbsd*) machine=intel386 ;;
3084 mips-*-netbsd*) machine=mips ;;
3085 mipsel-*-netbsd*) machine=mips ;;
3086 mipseb-*-netbsd*) machine=mips ;;
3087 powerpc-*-netbsd*) machine=macppc ;;
3088 sparc*-*-netbsd*) machine=sparc ;;
3089 vax-*-netbsd*) machine=vax ;;
3090 arm-*-netbsd*) machine=arm ;;
3091 x86_64-*-netbsd*) machine=amdx86-64 ;;
3092 hppa-*-netbsd*) machine=hp800 ;;
3093 m68k-*-netbsd*) machine=m68k ;;
3094 esac
3095 ;;
3096
3097 ## OpenBSD ports
3098 *-*-openbsd* )
3099 opsys=openbsd
3100 case "${canonical}" in
3101 alpha*-*-openbsd*) machine=alpha ;;
3102 arm-*-openbsd*) machine=arm ;;
3103 i386-*-openbsd*) machine=intel386 ;;
3104 powerpc-*-openbsd*) machine=macppc ;;
3105 sparc*-*-openbsd*) machine=sparc ;;
3106 vax-*-openbsd*) machine=vax ;;
3107 x86_64-*-openbsd*) machine=amdx86-64 ;;
3108 hppa-*-openbsd*) machine=hp800 ;;
3109 esac
3110 ;;
3111
3112 ## LynxOS ports
3113 *-*-lynxos* )
3114 opsys=lynxos
3115 case "${canonical}" in
3116 i[3456]86-*-lynxos*) machine=intel386 ;;
3117 powerpc-*-lynxos*) machine=powerpc ;;
3118 esac
3119 ;;
3120
3121 alpha*-*-linux-gnu* )
3122 machine=alpha opsys=gnu-linux
3123 ;;
3124
3125 arm*-*-linux-gnu* )
3126 machine=arm opsys=gnu-linux
3127 ;;
3128
3129 ## Apple Darwin / Mac OS X
3130 *-apple-darwin* )
3131 case "${canonical}" in
3132 i[3456]86-* ) machine=intel386 ;;
3133 powerpc-* ) machine=macppc ;;
3134 x86_64-* ) machine=amdx86-64 ;;
3135 * ) unported=yes ;;
3136 esac
3137 opsys=darwin
3138 # Define CPP as follows to make autoconf work correctly.
3139 CPP="${CC-cc} -E -no-cpp-precomp"
3140 # Use fink packages if available.
3141 if test -d /sw/include && test -d /sw/lib; then
3142 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3143 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3144 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3145 fi
3146 ;;
3147
3148 ## HP 9000 series 700 and 800, running HP/UX
3149 hppa*-hp-hpux10.2* )
3150 machine=hp800 opsys=hpux10-20
3151 ;;
3152 hppa*-hp-hpux1[1-9]* )
3153 machine=hp800 opsys=hpux11
3154 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3155 ;;
3156
3157 hppa*-*-linux-gnu* )
3158 machine=hp800 opsys=gnu-linux
3159 ;;
3160
3161 ## IBM machines
3162 s390-*-linux-gnu* )
3163 machine=ibms390 opsys=gnu-linux
3164 ;;
3165 s390x-*-linux-gnu* )
3166 machine=ibms390x opsys=gnu-linux
3167 ;;
3168 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
3169 machine=ibmrs6000 opsys=aix4-2
3170 ;;
3171 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
3172 machine=ibmrs6000 opsys=aix4-2
3173 ;;
3174 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
3175 machine=ibmrs6000 opsys=aix4-2
3176 ;;
3177 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
3178 machine=ibmrs6000 opsys=aix4-2
3179 ;;
3180
3181 ## Macintosh PowerPC
3182 powerpc*-*-linux-gnu* )
3183 machine=macppc opsys=gnu-linux
3184 ;;
3185
3186 ## Silicon Graphics machines
3187 ## Iris 4D
3188 mips-sgi-irix6.5 )
3189 machine=iris4d opsys=irix6-5
3190 # Without defining _LANGUAGE_C, things get masked out in the headers
3191 # so that, for instance, grepping for `free' in stdlib.h fails and
3192 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3193 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3194 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3195 ;;
3196
3197 ## Suns
3198 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3199 machine=sparc opsys=gnu-linux
3200 ;;
3201
3202 *-sun-solaris* \
3203 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3204 | x86_64-*-solaris2* | x86_64-*-sunos5* \
3205 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
3206 case "${canonical}" in
3207 i[3456]86-*-* ) machine=intel386 ;;
3208 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3209 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3210 sparc* ) machine=sparc ;;
3211 * ) unported=yes ;;
3212 esac
3213 case "${canonical}" in
3214 *-sunos5.3* | *-solaris2.3* )
3215 opsys=sol2-3
3216 NON_GNU_CPP=/usr/ccs/lib/cpp
3217 ;;
3218 *-sunos5.4* | *-solaris2.4* )
3219 opsys=sol2-4
3220 NON_GNU_CPP=/usr/ccs/lib/cpp
3221 RANLIB="ar -ts"
3222 ;;
3223 *-sunos5.5* | *-solaris2.5* )
3224 opsys=sol2-5
3225 NON_GNU_CPP=/usr/ccs/lib/cpp
3226 RANLIB="ar -ts"
3227 ;;
3228 *-sunos5.6* | *-solaris2.6* )
3229 opsys=sol2-6
3230 NON_GNU_CPP=/usr/ccs/lib/cpp
3231 RANLIB="ar -ts"
3232 ;;
3233 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3234 opsys=sol2-6
3235 emacs_check_sunpro_c=yes
3236 NON_GNU_CPP=/usr/ccs/lib/cpp
3237 ;;
3238 *-sunos5* | *-solaris* )
3239 opsys=sol2-10
3240 emacs_check_sunpro_c=yes
3241 NON_GNU_CPP=/usr/ccs/lib/cpp
3242 ;;
3243 esac
3244 ## Watch out for a compiler that we know will not work.
3245 case "${canonical}" in
3246 *-solaris* | *-sunos5* )
3247 if [ "x$CC" = x/usr/ucb/cc ]; then
3248 ## /usr/ucb/cc doesn't work;
3249 ## we should find some other compiler that does work.
3250 unset CC
3251 fi
3252 ;;
3253 *) ;;
3254 esac
3255 ;;
3256
3257 ## IA-64
3258 ia64*-*-linux* )
3259 machine=ia64 opsys=gnu-linux
3260 ;;
3261
3262 ## Intel 386 machines where we don't care about the manufacturer
3263 i[3456]86-*-* )
3264 machine=intel386
3265 case "${canonical}" in
3266 *-cygwin ) opsys=cygwin ;;
3267 *-darwin* ) opsys=darwin
3268 CPP="${CC-cc} -E -no-cpp-precomp"
3269 ;;
3270 *-linux-gnu* ) opsys=gnu-linux ;;
3271 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3272 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3273 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3274 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3275 esac
3276 ;;
3277
3278 ## m68k Linux-based GNU system
3279 m68k-*-linux-gnu* )
3280 machine=m68k opsys=gnu-linux
3281 ;;
3282
3283 ## Mips Linux-based GNU system
3284 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3285 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3286 machine=mips opsys=gnu-linux
3287 ;;
3288
3289 ## AMD x86-64 Linux-based GNU system
3290 x86_64-*-linux-gnu* )
3291 machine=amdx86-64 opsys=gnu-linux
3292 ;;
3293
3294 ## Tensilica Xtensa Linux-based GNU system
3295 xtensa*-*-linux-gnu* )
3296 machine=xtensa opsys=gnu-linux
3297 ;;
3298
3299 ## SuperH Linux-based GNU system
3300 sh[34]*-*-linux-gnu* )
3301 machine=sh3 opsys=gnu-linux
3302 ;;
3303
3304 * )
3305 unported=yes
3306 ;;
3307 esac
3308
3309 ### If the code above didn't choose an operating system, just choose
3310 ### an operating system based on the configuration name. You really
3311 ### only want to use this when you have no idea what the right
3312 ### operating system is; if you know what operating systems a machine
3313 ### runs, it's cleaner to make it explicit in the case statement
3314 ### above.
3315 if test x"${opsys}" = x; then
3316 case "${canonical}" in
3317 *-gnu* ) opsys=gnu ;;
3318 *-sysv4.2uw* ) opsys=unixware ;;
3319 *-sysv5uw* ) opsys=unixware ;;
3320 *-sysv5OpenUNIX* ) opsys=unixware ;;
3321 *-sysv4.1* | *-sysvr4.1* )
3322 NON_GNU_CPP=/usr/lib/cpp
3323 opsys=usg5-4 ;;
3324 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3325 if [ x$NON_GNU_CPP = x ]; then
3326 if [ -f /usr/ccs/lib/cpp ]; then
3327 NON_GNU_CPP=/usr/ccs/lib/cpp
3328 else
3329 NON_GNU_CPP=/lib/cpp
3330 fi
3331 fi
3332 opsys=usg5-4-2 ;;
3333 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3334 * )
3335 unported=yes
3336 ;;
3337 esac
3338 fi
3339
3340
3341
3342 if test $unported = yes; then
3343 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3344 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3345 fi
3346
3347 machfile="m/${machine}.h"
3348 opsysfile="s/${opsys}.h"
3349
3350
3351 #### Choose a compiler.
3352 test -n "$CC" && cc_specified=yes
3353
3354 # Save the value of CFLAGS that the user specified.
3355 SPECIFIED_CFLAGS="$CFLAGS"
3356
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399
3400 fi
3401 if test -z "$ac_cv_prog_CC"; then
3402 ac_ct_CC=$CC
3403 # Extract the first word of "gcc", so it can be a program name with args.
3404 set dummy gcc; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$ac_ct_CC"; then
3411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_ac_ct_CC="gcc"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424 done
3425 done
3426 IFS=$as_save_IFS
3427
3428 fi
3429 fi
3430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3431 if test -n "$ac_ct_CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433 $as_echo "$ac_ct_CC" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 fi
3438
3439 if test "x$ac_ct_CC" = x; then
3440 CC=""
3441 else
3442 case $cross_compiling:$ac_tool_warned in
3443 yes:)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3447 esac
3448 CC=$ac_ct_CC
3449 fi
3450 else
3451 CC="$ac_cv_prog_CC"
3452 fi
3453
3454 if test -z "$CC"; then
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}cc; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CC="${ac_tool_prefix}cc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 fi
3491
3492
3493 fi
3494 fi
3495 if test -z "$CC"; then
3496 # Extract the first word of "cc", so it can be a program name with args.
3497 set dummy cc; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 ac_prog_rejected=no
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3515 ac_prog_rejected=yes
3516 continue
3517 fi
3518 ac_cv_prog_CC="cc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522 done
3523 done
3524 IFS=$as_save_IFS
3525
3526 if test $ac_prog_rejected = yes; then
3527 # We found a bogon in the path, so make sure we never use it.
3528 set dummy $ac_cv_prog_CC
3529 shift
3530 if test $# != 0; then
3531 # We chose a different compiler from the bogus one.
3532 # However, it has the same basename, so the bogon will be chosen
3533 # first if we set CC to just the basename; use the full file name.
3534 shift
3535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3536 fi
3537 fi
3538 fi
3539 fi
3540 CC=$ac_cv_prog_CC
3541 if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549
3550 fi
3551 if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 for ac_prog in cl.exe
3554 do
3555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3575 fi
3576 done
3577 done
3578 IFS=$as_save_IFS
3579
3580 fi
3581 fi
3582 CC=$ac_cv_prog_CC
3583 if test -n "$CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585 $as_echo "$CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591
3592 test -n "$CC" && break
3593 done
3594 fi
3595 if test -z "$CC"; then
3596 ac_ct_CC=$CC
3597 for ac_prog in cl.exe
3598 do
3599 # Extract the first word of "$ac_prog", so it can be a program name with args.
3600 set dummy $ac_prog; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test -n "$ac_ct_CC"; then
3607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_ac_ct_CC="$ac_prog"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620 done
3621 done
3622 IFS=$as_save_IFS
3623
3624 fi
3625 fi
3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627 if test -n "$ac_ct_CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629 $as_echo "$ac_ct_CC" >&6; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3633 fi
3634
3635
3636 test -n "$ac_ct_CC" && break
3637 done
3638
3639 if test "x$ac_ct_CC" = x; then
3640 CC=""
3641 else
3642 case $cross_compiling:$ac_tool_warned in
3643 yes:)
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3646 ac_tool_warned=yes ;;
3647 esac
3648 CC=$ac_ct_CC
3649 fi
3650 fi
3651
3652 fi
3653
3654
3655 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error "no acceptable C compiler found in \$PATH
3658 See \`config.log' for more details." "$LINENO" 5; }
3659
3660 # Provide some information about the compiler.
3661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3662 set X $ac_compile
3663 ac_compiler=$2
3664 for ac_option in --version -v -V -qversion; do
3665 { { ac_try="$ac_compiler $ac_option >&5"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3673 ac_status=$?
3674 if test -s conftest.err; then
3675 sed '10a\
3676 ... rest of stderr output deleted ...
3677 10q' conftest.err >conftest.er1
3678 cat conftest.er1 >&5
3679 fi
3680 rm -f conftest.er1 conftest.err
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3683 done
3684
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main ()
3690 {
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 ac_clean_files_save=$ac_clean_files
3697 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3698 # Try to create an executable without -o first, disregard a.out.
3699 # It will help us diagnose broken compilers, and finding out an intuition
3700 # of exeext.
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3702 $as_echo_n "checking whether the C compiler works... " >&6; }
3703 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3704
3705 # The possible output files:
3706 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3707
3708 ac_rmfiles=
3709 for ac_file in $ac_files
3710 do
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3714 esac
3715 done
3716 rm -f $ac_rmfiles
3717
3718 if { { ac_try="$ac_link_default"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_link_default") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; then :
3729 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3730 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3731 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3732 # so that the user can short-circuit this test for compilers unknown to
3733 # Autoconf.
3734 for ac_file in $ac_files ''
3735 do
3736 test -f "$ac_file" || continue
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3739 ;;
3740 [ab].out )
3741 # We found the default executable, but exeext='' is most
3742 # certainly right.
3743 break;;
3744 *.* )
3745 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3746 then :; else
3747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748 fi
3749 # We set ac_cv_exeext here because the later test for it is not
3750 # safe: cross compilers may not add the suffix if given an `-o'
3751 # argument, so we may need to know it at that point already.
3752 # Even if this section looks crufty: it has the advantage of
3753 # actually working.
3754 break;;
3755 * )
3756 break;;
3757 esac
3758 done
3759 test "$ac_cv_exeext" = no && ac_cv_exeext=
3760
3761 else
3762 ac_file=''
3763 fi
3764 if test -z "$ac_file"; then :
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 $as_echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 { as_fn_set_status 77
3773 as_fn_error "C compiler cannot create executables
3774 See \`config.log' for more details." "$LINENO" 5; }; }
3775 else
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777 $as_echo "yes" >&6; }
3778 fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3780 $as_echo_n "checking for C compiler default output file name... " >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3782 $as_echo "$ac_file" >&6; }
3783 ac_exeext=$ac_cv_exeext
3784
3785 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3786 ac_clean_files=$ac_clean_files_save
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3788 $as_echo_n "checking for suffix of executables... " >&6; }
3789 if { { ac_try="$ac_link"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796 (eval "$ac_link") 2>&5
3797 ac_status=$?
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }; then :
3800 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3801 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3802 # work properly (i.e., refer to `conftest.exe'), while it won't with
3803 # `rm'.
3804 for ac_file in conftest.exe conftest conftest.*; do
3805 test -f "$ac_file" || continue
3806 case $ac_file in
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3809 break;;
3810 * ) break;;
3811 esac
3812 done
3813 else
3814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error "cannot compute suffix of executables: cannot compile and link
3817 See \`config.log' for more details." "$LINENO" 5; }
3818 fi
3819 rm -f conftest conftest$ac_cv_exeext
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3821 $as_echo "$ac_cv_exeext" >&6; }
3822
3823 rm -f conftest.$ac_ext
3824 EXEEXT=$ac_cv_exeext
3825 ac_exeext=$EXEEXT
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828 #include <stdio.h>
3829 int
3830 main ()
3831 {
3832 FILE *f = fopen ("conftest.out", "w");
3833 return ferror (f) || fclose (f) != 0;
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 ac_clean_files="$ac_clean_files conftest.out"
3840 # Check that the compiler produces executables we can run. If not, either
3841 # the compiler is broken, or we cross compile.
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3843 $as_echo_n "checking whether we are cross compiling... " >&6; }
3844 if test "$cross_compiling" != yes; then
3845 { { ac_try="$ac_link"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_link") 2>&5
3853 ac_status=$?
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }
3856 if { ac_try='./conftest$ac_cv_exeext'
3857 { { case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }; }; then
3867 cross_compiling=no
3868 else
3869 if test "$cross_compiling" = maybe; then
3870 cross_compiling=yes
3871 else
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error "cannot run C compiled programs.
3875 If you meant to cross compile, use \`--host'.
3876 See \`config.log' for more details." "$LINENO" 5; }
3877 fi
3878 fi
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3881 $as_echo "$cross_compiling" >&6; }
3882
3883 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3884 ac_clean_files=$ac_clean_files_save
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3886 $as_echo_n "checking for suffix of object files... " >&6; }
3887 if test "${ac_cv_objext+set}" = set; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892
3893 int
3894 main ()
3895 {
3896
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 rm -f conftest.o conftest.obj
3902 if { { ac_try="$ac_compile"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_compile") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then :
3913 for ac_file in conftest.o conftest.obj conftest.*; do
3914 test -f "$ac_file" || continue;
3915 case $ac_file in
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3918 break;;
3919 esac
3920 done
3921 else
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "cannot compute suffix of object files: cannot compile
3928 See \`config.log' for more details." "$LINENO" 5; }
3929 fi
3930 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3933 $as_echo "$ac_cv_objext" >&6; }
3934 OBJEXT=$ac_cv_objext
3935 ac_objext=$OBJEXT
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3937 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3938 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943
3944 int
3945 main ()
3946 {
3947 #ifndef __GNUC__
3948 choke me
3949 #endif
3950
3951 ;
3952 return 0;
3953 }
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956 ac_compiler_gnu=yes
3957 else
3958 ac_compiler_gnu=no
3959 fi
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3962
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3965 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3966 if test $ac_compiler_gnu = yes; then
3967 GCC=yes
3968 else
3969 GCC=
3970 fi
3971 ac_test_CFLAGS=${CFLAGS+set}
3972 ac_save_CFLAGS=$CFLAGS
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3974 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3975 if test "${ac_cv_prog_cc_g+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 ac_save_c_werror_flag=$ac_c_werror_flag
3979 ac_c_werror_flag=yes
3980 ac_cv_prog_cc_g=no
3981 CFLAGS="-g"
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984
3985 int
3986 main ()
3987 {
3988
3989 ;
3990 return 0;
3991 }
3992 _ACEOF
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_prog_cc_g=yes
3995 else
3996 CFLAGS=""
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999
4000 int
4001 main ()
4002 {
4003
4004 ;
4005 return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009
4010 else
4011 ac_c_werror_flag=$ac_save_c_werror_flag
4012 CFLAGS="-g"
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015
4016 int
4017 main ()
4018 {
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_prog_cc_g=yes
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_c_werror_flag=$ac_save_c_werror_flag
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4035 $as_echo "$ac_cv_prog_cc_g" >&6; }
4036 if test "$ac_test_CFLAGS" = set; then
4037 CFLAGS=$ac_save_CFLAGS
4038 elif test $ac_cv_prog_cc_g = yes; then
4039 if test "$GCC" = yes; then
4040 CFLAGS="-g -O2"
4041 else
4042 CFLAGS="-g"
4043 fi
4044 else
4045 if test "$GCC" = yes; then
4046 CFLAGS="-O2"
4047 else
4048 CFLAGS=
4049 fi
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4052 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4053 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 ac_cv_prog_cc_c89=no
4057 ac_save_CC=$CC
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #include <stdarg.h>
4061 #include <stdio.h>
4062 #include <sys/types.h>
4063 #include <sys/stat.h>
4064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4065 struct buf { int x; };
4066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4067 static char *e (p, i)
4068 char **p;
4069 int i;
4070 {
4071 return p[i];
4072 }
4073 static char *f (char * (*g) (char **, int), char **p, ...)
4074 {
4075 char *s;
4076 va_list v;
4077 va_start (v,p);
4078 s = g (p, va_arg (v,int));
4079 va_end (v);
4080 return s;
4081 }
4082
4083 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4084 function prototypes and stuff, but not '\xHH' hex character constants.
4085 These don't provoke an error unfortunately, instead are silently treated
4086 as 'x'. The following induces an error, until -std is added to get
4087 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4088 array size at least. It's necessary to write '\x00'==0 to get something
4089 that's true only with -std. */
4090 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4091
4092 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4093 inside strings and character constants. */
4094 #define FOO(x) 'x'
4095 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4096
4097 int test (int i, double x);
4098 struct s1 {int (*f) (int a);};
4099 struct s2 {int (*f) (double a);};
4100 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4101 int argc;
4102 char **argv;
4103 int
4104 main ()
4105 {
4106 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4112 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4113 do
4114 CC="$ac_save_CC $ac_arg"
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_cv_prog_cc_c89=$ac_arg
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext
4119 test "x$ac_cv_prog_cc_c89" != "xno" && break
4120 done
4121 rm -f conftest.$ac_ext
4122 CC=$ac_save_CC
4123
4124 fi
4125 # AC_CACHE_VAL
4126 case "x$ac_cv_prog_cc_c89" in
4127 x)
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4129 $as_echo "none needed" >&6; } ;;
4130 xno)
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4132 $as_echo "unsupported" >&6; } ;;
4133 *)
4134 CC="$CC $ac_cv_prog_cc_c89"
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4136 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4137 esac
4138 if test "x$ac_cv_prog_cc_c89" != xno; then :
4139
4140 fi
4141
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148
4149 # On Suns, sometimes $CPP names a directory.
4150 if test -n "$CPP" && test -d "$CPP"; then
4151 CPP=
4152 fi
4153
4154 ## If not using gcc, and on Solaris, and no CPP specified, see if
4155 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4156 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4157 test x"$CPP" = x; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4159 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4160
4161 if test "${emacs_cv_sunpro_c+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166
4167 int
4168 main ()
4169 {
4170 #ifndef __SUNPRO_C
4171 fail;
4172 #endif
4173
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 if ac_fn_c_try_link "$LINENO"; then :
4179 emacs_cv_sunpro_c=yes
4180 else
4181 emacs_cv_sunpro_c=no
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185 fi
4186
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4188 $as_echo "$emacs_cv_sunpro_c" >&6; }
4189
4190 if test x"$emacs_cv_sunpro_c" = xyes; then
4191 NON_GNU_CPP="$CC -E -Xs"
4192 fi
4193 fi
4194
4195 #### Some systems specify a CPP to use unless we are using GCC.
4196 #### Now that we know whether we are using GCC, we can decide whether
4197 #### to use that one.
4198 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4199 then
4200 CPP="$NON_GNU_CPP"
4201 fi
4202
4203 #### Some systems specify a CC to use unless we are using GCC.
4204 #### Now that we know whether we are using GCC, we can decide whether
4205 #### to use that one.
4206 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4207 test x$cc_specified != xyes
4208 then
4209 CC="$NON_GNU_CC"
4210 fi
4211
4212 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4213 then
4214 CC="$CC $GCC_TEST_OPTIONS"
4215 fi
4216
4217 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4218 then
4219 CC="$CC $NON_GCC_TEST_OPTIONS"
4220 fi
4221
4222 ac_ext=c
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4228 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4229 # On Suns, sometimes $CPP names a directory.
4230 if test -n "$CPP" && test -d "$CPP"; then
4231 CPP=
4232 fi
4233 if test -z "$CPP"; then
4234 if test "${ac_cv_prog_CPP+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 # Double quotes because CPP needs to be expanded
4238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4239 do
4240 ac_preproc_ok=false
4241 for ac_c_preproc_warn_flag in '' yes
4242 do
4243 # Use a header file that comes with gcc, so configuring glibc
4244 # with a fresh cross-compiler works.
4245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4246 # <limits.h> exists even on freestanding compilers.
4247 # On the NeXT, cc -E runs the code through the compiler's parser,
4248 # not just through cpp. "Syntax error" is here to catch this case.
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #ifdef __STDC__
4252 # include <limits.h>
4253 #else
4254 # include <assert.h>
4255 #endif
4256 Syntax error
4257 _ACEOF
4258 if ac_fn_c_try_cpp "$LINENO"; then :
4259
4260 else
4261 # Broken: fails on valid input.
4262 continue
4263 fi
4264 rm -f conftest.err conftest.$ac_ext
4265
4266 # OK, works on sane cases. Now check whether nonexistent headers
4267 # can be detected and how.
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <ac_nonexistent.h>
4271 _ACEOF
4272 if ac_fn_c_try_cpp "$LINENO"; then :
4273 # Broken: success on invalid input.
4274 continue
4275 else
4276 # Passes both tests.
4277 ac_preproc_ok=:
4278 break
4279 fi
4280 rm -f conftest.err conftest.$ac_ext
4281
4282 done
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then :
4286 break
4287 fi
4288
4289 done
4290 ac_cv_prog_CPP=$CPP
4291
4292 fi
4293 CPP=$ac_cv_prog_CPP
4294 else
4295 ac_cv_prog_CPP=$CPP
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4298 $as_echo "$CPP" >&6; }
4299 ac_preproc_ok=false
4300 for ac_c_preproc_warn_flag in '' yes
4301 do
4302 # Use a header file that comes with gcc, so configuring glibc
4303 # with a fresh cross-compiler works.
4304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4305 # <limits.h> exists even on freestanding compilers.
4306 # On the NeXT, cc -E runs the code through the compiler's parser,
4307 # not just through cpp. "Syntax error" is here to catch this case.
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4310 #ifdef __STDC__
4311 # include <limits.h>
4312 #else
4313 # include <assert.h>
4314 #endif
4315 Syntax error
4316 _ACEOF
4317 if ac_fn_c_try_cpp "$LINENO"; then :
4318
4319 else
4320 # Broken: fails on valid input.
4321 continue
4322 fi
4323 rm -f conftest.err conftest.$ac_ext
4324
4325 # OK, works on sane cases. Now check whether nonexistent headers
4326 # can be detected and how.
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #include <ac_nonexistent.h>
4330 _ACEOF
4331 if ac_fn_c_try_cpp "$LINENO"; then :
4332 # Broken: success on invalid input.
4333 continue
4334 else
4335 # Passes both tests.
4336 ac_preproc_ok=:
4337 break
4338 fi
4339 rm -f conftest.err conftest.$ac_ext
4340
4341 done
4342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4343 rm -f conftest.err conftest.$ac_ext
4344 if $ac_preproc_ok; then :
4345
4346 else
4347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4349 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4350 See \`config.log' for more details." "$LINENO" 5; }
4351 fi
4352
4353 ac_ext=c
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358
4359
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4361 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4362 if test "${ac_cv_path_GREP+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -z "$GREP"; then
4366 ac_path_GREP_found=false
4367 # Loop through the user's path and test for each of PROGNAME-LIST
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_prog in grep ggrep; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4376 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4377 # Check for GNU ac_path_GREP and select it if it is found.
4378 # Check for GNU $ac_path_GREP
4379 case `"$ac_path_GREP" --version 2>&1` in
4380 *GNU*)
4381 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4382 *)
4383 ac_count=0
4384 $as_echo_n 0123456789 >"conftest.in"
4385 while :
4386 do
4387 cat "conftest.in" "conftest.in" >"conftest.tmp"
4388 mv "conftest.tmp" "conftest.in"
4389 cp "conftest.in" "conftest.nl"
4390 $as_echo 'GREP' >> "conftest.nl"
4391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4393 as_fn_arith $ac_count + 1 && ac_count=$as_val
4394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4395 # Best one so far, save it but keep looking for a better one
4396 ac_cv_path_GREP="$ac_path_GREP"
4397 ac_path_GREP_max=$ac_count
4398 fi
4399 # 10*(2^10) chars as input seems more than enough
4400 test $ac_count -gt 10 && break
4401 done
4402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4403 esac
4404
4405 $ac_path_GREP_found && break 3
4406 done
4407 done
4408 done
4409 IFS=$as_save_IFS
4410 if test -z "$ac_cv_path_GREP"; then
4411 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4412 fi
4413 else
4414 ac_cv_path_GREP=$GREP
4415 fi
4416
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4419 $as_echo "$ac_cv_path_GREP" >&6; }
4420 GREP="$ac_cv_path_GREP"
4421
4422
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4424 $as_echo_n "checking for egrep... " >&6; }
4425 if test "${ac_cv_path_EGREP+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4429 then ac_cv_path_EGREP="$GREP -E"
4430 else
4431 if test -z "$EGREP"; then
4432 ac_path_EGREP_found=false
4433 # Loop through the user's path and test for each of PROGNAME-LIST
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4436 do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_prog in egrep; do
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4442 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4443 # Check for GNU ac_path_EGREP and select it if it is found.
4444 # Check for GNU $ac_path_EGREP
4445 case `"$ac_path_EGREP" --version 2>&1` in
4446 *GNU*)
4447 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4448 *)
4449 ac_count=0
4450 $as_echo_n 0123456789 >"conftest.in"
4451 while :
4452 do
4453 cat "conftest.in" "conftest.in" >"conftest.tmp"
4454 mv "conftest.tmp" "conftest.in"
4455 cp "conftest.in" "conftest.nl"
4456 $as_echo 'EGREP' >> "conftest.nl"
4457 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459 as_fn_arith $ac_count + 1 && ac_count=$as_val
4460 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4461 # Best one so far, save it but keep looking for a better one
4462 ac_cv_path_EGREP="$ac_path_EGREP"
4463 ac_path_EGREP_max=$ac_count
4464 fi
4465 # 10*(2^10) chars as input seems more than enough
4466 test $ac_count -gt 10 && break
4467 done
4468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4469 esac
4470
4471 $ac_path_EGREP_found && break 3
4472 done
4473 done
4474 done
4475 IFS=$as_save_IFS
4476 if test -z "$ac_cv_path_EGREP"; then
4477 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4478 fi
4479 else
4480 ac_cv_path_EGREP=$EGREP
4481 fi
4482
4483 fi
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4486 $as_echo "$ac_cv_path_EGREP" >&6; }
4487 EGREP="$ac_cv_path_EGREP"
4488
4489
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4491 $as_echo_n "checking for ANSI C header files... " >&6; }
4492 if test "${ac_cv_header_stdc+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <stdlib.h>
4498 #include <stdarg.h>
4499 #include <string.h>
4500 #include <float.h>
4501
4502 int
4503 main ()
4504 {
4505
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 if ac_fn_c_try_compile "$LINENO"; then :
4511 ac_cv_header_stdc=yes
4512 else
4513 ac_cv_header_stdc=no
4514 fi
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516
4517 if test $ac_cv_header_stdc = yes; then
4518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521 #include <string.h>
4522
4523 _ACEOF
4524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4525 $EGREP "memchr" >/dev/null 2>&1; then :
4526
4527 else
4528 ac_cv_header_stdc=no
4529 fi
4530 rm -f conftest*
4531
4532 fi
4533
4534 if test $ac_cv_header_stdc = yes; then
4535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #include <stdlib.h>
4539
4540 _ACEOF
4541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4542 $EGREP "free" >/dev/null 2>&1; then :
4543
4544 else
4545 ac_cv_header_stdc=no
4546 fi
4547 rm -f conftest*
4548
4549 fi
4550
4551 if test $ac_cv_header_stdc = yes; then
4552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4553 if test "$cross_compiling" = yes; then :
4554 :
4555 else
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #include <ctype.h>
4559 #include <stdlib.h>
4560 #if ((' ' & 0x0FF) == 0x020)
4561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4563 #else
4564 # define ISLOWER(c) \
4565 (('a' <= (c) && (c) <= 'i') \
4566 || ('j' <= (c) && (c) <= 'r') \
4567 || ('s' <= (c) && (c) <= 'z'))
4568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4569 #endif
4570
4571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4572 int
4573 main ()
4574 {
4575 int i;
4576 for (i = 0; i < 256; i++)
4577 if (XOR (islower (i), ISLOWER (i))
4578 || toupper (i) != TOUPPER (i))
4579 return 2;
4580 return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_c_try_run "$LINENO"; then :
4584
4585 else
4586 ac_cv_header_stdc=no
4587 fi
4588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4589 conftest.$ac_objext conftest.beam conftest.$ac_ext
4590 fi
4591
4592 fi
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4595 $as_echo "$ac_cv_header_stdc" >&6; }
4596 if test $ac_cv_header_stdc = yes; then
4597
4598 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4599
4600 fi
4601
4602 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4604 inttypes.h stdint.h unistd.h
4605 do :
4606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4607 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4608 "
4609 eval as_val=\$$as_ac_Header
4610 if test "x$as_val" = x""yes; then :
4611 cat >>confdefs.h <<_ACEOF
4612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 _ACEOF
4614
4615 fi
4616
4617 done
4618
4619
4620
4621 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4622 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4623 MINIX=yes
4624 else
4625 MINIX=
4626 fi
4627
4628
4629 if test "$MINIX" = yes; then
4630
4631 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4632
4633
4634 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4635
4636
4637 $as_echo "#define _MINIX 1" >>confdefs.h
4638
4639 fi
4640
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4643 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4644 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649
4650 # define __EXTENSIONS__ 1
4651 $ac_includes_default
4652 int
4653 main ()
4654 {
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_cv_safe_to_define___extensions__=yes
4662 else
4663 ac_cv_safe_to_define___extensions__=no
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4668 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4669 test $ac_cv_safe_to_define___extensions__ = yes &&
4670 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4671
4672 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4673
4674 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4675
4676 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4677
4678 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4679
4680
4681
4682 ### Use -Wno-pointer-sign if the compiler supports it
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4684 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4685 SAVE_CFLAGS="$CFLAGS"
4686 CFLAGS="$CFLAGS -Wno-pointer-sign"
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689
4690 int
4691 main ()
4692 {
4693
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 has_option=yes
4700 else
4701 has_option=no
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 if test $has_option = yes; then
4705 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4708 $as_echo "$has_option" >&6; }
4709 CFLAGS="$SAVE_CFLAGS"
4710 unset has_option
4711 unset SAVE_CFLAGS
4712
4713 ### Use -Wdeclaration-after-statement if the compiler supports it
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4715 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4716 SAVE_CFLAGS="$CFLAGS"
4717 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 has_option=yes
4731 else
4732 has_option=no
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 if test $has_option = yes; then
4736 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4739 $as_echo "$has_option" >&6; }
4740 CFLAGS="$SAVE_CFLAGS"
4741 unset has_option
4742 unset SAVE_CFLAGS
4743
4744 #### Some other nice autoconf tests.
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4747 $as_echo_n "checking whether ln -s works... " >&6; }
4748 LN_S=$as_ln_s
4749 if test "$LN_S" = "ln -s"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4751 $as_echo "yes" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4754 $as_echo "no, using $LN_S" >&6; }
4755 fi
4756
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4764 # On Suns, sometimes $CPP names a directory.
4765 if test -n "$CPP" && test -d "$CPP"; then
4766 CPP=
4767 fi
4768 if test -z "$CPP"; then
4769 if test "${ac_cv_prog_CPP+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 # Double quotes because CPP needs to be expanded
4773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4774 do
4775 ac_preproc_ok=false
4776 for ac_c_preproc_warn_flag in '' yes
4777 do
4778 # Use a header file that comes with gcc, so configuring glibc
4779 # with a fresh cross-compiler works.
4780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4781 # <limits.h> exists even on freestanding compilers.
4782 # On the NeXT, cc -E runs the code through the compiler's parser,
4783 # not just through cpp. "Syntax error" is here to catch this case.
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #ifdef __STDC__
4787 # include <limits.h>
4788 #else
4789 # include <assert.h>
4790 #endif
4791 Syntax error
4792 _ACEOF
4793 if ac_fn_c_try_cpp "$LINENO"; then :
4794
4795 else
4796 # Broken: fails on valid input.
4797 continue
4798 fi
4799 rm -f conftest.err conftest.$ac_ext
4800
4801 # OK, works on sane cases. Now check whether nonexistent headers
4802 # can be detected and how.
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 #include <ac_nonexistent.h>
4806 _ACEOF
4807 if ac_fn_c_try_cpp "$LINENO"; then :
4808 # Broken: success on invalid input.
4809 continue
4810 else
4811 # Passes both tests.
4812 ac_preproc_ok=:
4813 break
4814 fi
4815 rm -f conftest.err conftest.$ac_ext
4816
4817 done
4818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4819 rm -f conftest.err conftest.$ac_ext
4820 if $ac_preproc_ok; then :
4821 break
4822 fi
4823
4824 done
4825 ac_cv_prog_CPP=$CPP
4826
4827 fi
4828 CPP=$ac_cv_prog_CPP
4829 else
4830 ac_cv_prog_CPP=$CPP
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4833 $as_echo "$CPP" >&6; }
4834 ac_preproc_ok=false
4835 for ac_c_preproc_warn_flag in '' yes
4836 do
4837 # Use a header file that comes with gcc, so configuring glibc
4838 # with a fresh cross-compiler works.
4839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4840 # <limits.h> exists even on freestanding compilers.
4841 # On the NeXT, cc -E runs the code through the compiler's parser,
4842 # not just through cpp. "Syntax error" is here to catch this case.
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 #ifdef __STDC__
4846 # include <limits.h>
4847 #else
4848 # include <assert.h>
4849 #endif
4850 Syntax error
4851 _ACEOF
4852 if ac_fn_c_try_cpp "$LINENO"; then :
4853
4854 else
4855 # Broken: fails on valid input.
4856 continue
4857 fi
4858 rm -f conftest.err conftest.$ac_ext
4859
4860 # OK, works on sane cases. Now check whether nonexistent headers
4861 # can be detected and how.
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864 #include <ac_nonexistent.h>
4865 _ACEOF
4866 if ac_fn_c_try_cpp "$LINENO"; then :
4867 # Broken: success on invalid input.
4868 continue
4869 else
4870 # Passes both tests.
4871 ac_preproc_ok=:
4872 break
4873 fi
4874 rm -f conftest.err conftest.$ac_ext
4875
4876 done
4877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4878 rm -f conftest.err conftest.$ac_ext
4879 if $ac_preproc_ok; then :
4880
4881 else
4882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4884 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4885 See \`config.log' for more details." "$LINENO" 5; }
4886 fi
4887
4888 ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894 # Find a good install program. We prefer a C program (faster),
4895 # so one script is as good as another. But avoid the broken or
4896 # incompatible versions:
4897 # SysV /etc/install, /usr/sbin/install
4898 # SunOS /usr/etc/install
4899 # IRIX /sbin/install
4900 # AIX /bin/install
4901 # AmigaOS /C/install, which installs bootblocks on floppy discs
4902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4905 # OS/2's system install, which has a completely different semantic
4906 # ./install, which can be erroneously created by make from ./install.sh.
4907 # Reject install programs that cannot install multiple files.
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4909 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4910 if test -z "$INSTALL"; then
4911 if test "${ac_cv_path_install+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 # Account for people who put trailing slashes in PATH elements.
4920 case $as_dir/ in #((
4921 ./ | .// | /[cC]/* | \
4922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4923 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4924 /usr/ucb/* ) ;;
4925 *)
4926 # OSF1 and SCO ODT 3.0 have their own names for install.
4927 # Don't use installbsd from OSF since it installs stuff as root
4928 # by default.
4929 for ac_prog in ginstall scoinst install; do
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4932 if test $ac_prog = install &&
4933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4934 # AIX install. It has an incompatible calling convention.
4935 :
4936 elif test $ac_prog = install &&
4937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4938 # program-specific install script used by HP pwplus--don't use.
4939 :
4940 else
4941 rm -rf conftest.one conftest.two conftest.dir
4942 echo one > conftest.one
4943 echo two > conftest.two
4944 mkdir conftest.dir
4945 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4946 test -s conftest.one && test -s conftest.two &&
4947 test -s conftest.dir/conftest.one &&
4948 test -s conftest.dir/conftest.two
4949 then
4950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4951 break 3
4952 fi
4953 fi
4954 fi
4955 done
4956 done
4957 ;;
4958 esac
4959
4960 done
4961 IFS=$as_save_IFS
4962
4963 rm -rf conftest.one conftest.two conftest.dir
4964
4965 fi
4966 if test "${ac_cv_path_install+set}" = set; then
4967 INSTALL=$ac_cv_path_install
4968 else
4969 # As a last resort, use the slow shell script. Don't cache a
4970 # value for INSTALL within a source directory, because that will
4971 # break other packages using the cache if that directory is
4972 # removed, or if the value is a relative name.
4973 INSTALL=$ac_install_sh
4974 fi
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4977 $as_echo "$INSTALL" >&6; }
4978
4979 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4980 # It thinks the first close brace ends the variable substitution.
4981 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4982
4983 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4984
4985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4986
4987 if test "x$RANLIB" = x; then
4988 if test -n "$ac_tool_prefix"; then
4989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4990 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 if test -n "$RANLIB"; then
4997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 RANLIB=$ac_cv_prog_RANLIB
5017 if test -n "$RANLIB"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5019 $as_echo "$RANLIB" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026 fi
5027 if test -z "$ac_cv_prog_RANLIB"; then
5028 ac_ct_RANLIB=$RANLIB
5029 # Extract the first word of "ranlib", so it can be a program name with args.
5030 set dummy ranlib; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 if test -n "$ac_ct_RANLIB"; then
5037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_ac_ct_RANLIB="ranlib"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5057 if test -n "$ac_ct_RANLIB"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5059 $as_echo "$ac_ct_RANLIB" >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065 if test "x$ac_ct_RANLIB" = x; then
5066 RANLIB=":"
5067 else
5068 case $cross_compiling:$ac_tool_warned in
5069 yes:)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5073 esac
5074 RANLIB=$ac_ct_RANLIB
5075 fi
5076 else
5077 RANLIB="$ac_cv_prog_RANLIB"
5078 fi
5079
5080 fi
5081 # Extract the first word of "install-info", so it can be a program name with args.
5082 set dummy install-info; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 case $INSTALL_INFO in
5089 [\\/]* | ?:[\\/]*)
5090 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5091 ;;
5092 *)
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 ;;
5109 esac
5110 fi
5111 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5112 if test -n "$INSTALL_INFO"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5114 $as_echo "$INSTALL_INFO" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119
5120
5121 # Extract the first word of "install-info", so it can be a program name with args.
5122 set dummy install-info; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 case $INSTALL_INFO in
5129 [\\/]* | ?:[\\/]*)
5130 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5131 ;;
5132 *)
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in /usr/sbin
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 ;;
5149 esac
5150 fi
5151 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5152 if test -n "$INSTALL_INFO"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5154 $as_echo "$INSTALL_INFO" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 fi
5159
5160
5161 # Extract the first word of "install-info", so it can be a program name with args.
5162 set dummy install-info; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 case $INSTALL_INFO in
5169 [\\/]* | ?:[\\/]*)
5170 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5171 ;;
5172 *)
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in /sbin
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5189 ;;
5190 esac
5191 fi
5192 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5193 if test -n "$INSTALL_INFO"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5195 $as_echo "$INSTALL_INFO" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201
5202 # Extract the first word of "gzip", so it can be a program name with args.
5203 set dummy gzip; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 case $GZIP_PROG in
5210 [\\/]* | ?:[\\/]*)
5211 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5212 ;;
5213 *)
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225 done
5226 done
5227 IFS=$as_save_IFS
5228
5229 ;;
5230 esac
5231 fi
5232 GZIP_PROG=$ac_cv_path_GZIP_PROG
5233 if test -n "$GZIP_PROG"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5235 $as_echo "$GZIP_PROG" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242
5243
5244 ## Need makeinfo >= 4.6 (?) to build the manuals.
5245 # Extract the first word of "makeinfo", so it can be a program name with args.
5246 set dummy makeinfo; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 case $MAKEINFO in
5253 [\\/]* | ?:[\\/]*)
5254 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5255 ;;
5256 *)
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268 done
5269 done
5270 IFS=$as_save_IFS
5271
5272 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5273 ;;
5274 esac
5275 fi
5276 MAKEINFO=$ac_cv_path_MAKEINFO
5277 if test -n "$MAKEINFO"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5279 $as_echo "$MAKEINFO" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 if test "$MAKEINFO" != "no" && \
5287 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
5288 MAKEINFO=no
5289 fi
5290
5291 ## Makeinfo is unusual. For a released Emacs, the manuals are
5292 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5293 ## therefore in the category of "special tools" not normally required, which
5294 ## configure does not have to check for (eg autoconf itself).
5295 ## In a Bazaar checkout on the other hand, the manuals are not included.
5296 ## So makeinfo is a requirement to build from Bazaar, and configure
5297 ## should test for it as it does for any other build requirement.
5298 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5299 ## with pre-built manuals, from a Bazaar checkout.
5300 if test "$MAKEINFO" = "no"; then
5301 if test "x${with_makeinfo}" = "xno"; then
5302 MAKEINFO=off
5303 elif ! test -e $srcdir/info/emacs; then
5304 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5305 source tree does not seem to have pre-built manuals in the \`info' directory.
5306 Either install a suitable version of makeinfo, or re-run configure
5307 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5308 fi
5309 fi
5310
5311
5312 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5313 then
5314 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5315 fi
5316
5317 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5318 then
5319 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5320 fi
5321
5322
5323 late_LDFLAGS=$LDFLAGS
5324 if test "$GCC" = yes; then
5325 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5326 else
5327 LDFLAGS="$LDFLAGS -znocombreloc"
5328 fi
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5331 $as_echo_n "checking for -znocombreloc... " >&6; }
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 main(){return 0;}
5335 _ACEOF
5336 if ac_fn_c_try_link "$LINENO"; then :
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5338 $as_echo "yes" >&6; }
5339 else
5340 LDFLAGS=$late_LDFLAGS
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344 rm -f core conftest.err conftest.$ac_objext \
5345 conftest$ac_exeext conftest.$ac_ext
5346
5347 #### Extract some information from the operating system and machine files.
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5350 - which libraries the lib-src programs will want, and
5351 - whether the GNU malloc routines are usable..." >&5
5352 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5353 - which libraries the lib-src programs will want, and
5354 - whether the GNU malloc routines are usable..." >&6;}
5355
5356 ### First figure out CFLAGS (which we use for running the compiler here)
5357 ### and REAL_CFLAGS (which we use for real compilation).
5358 ### The two are the same except on a few systems, where they are made
5359 ### different to work around various lossages. For example,
5360 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5361 ### as implying static linking.
5362
5363 ### If the CFLAGS env var is specified, we use that value
5364 ### instead of the default.
5365
5366 ### It's not important that this name contain the PID; you can't run
5367 ### two configures in the same directory and have anything work
5368 ### anyway.
5369 tempcname="conftest.c"
5370
5371 echo '
5372 #include "'${srcdir}'/src/'${opsysfile}'"
5373 #include "'${srcdir}'/src/'${machfile}'"
5374 #ifndef LIBS_MACHINE
5375 #define LIBS_MACHINE
5376 #endif
5377 #ifndef LIBS_SYSTEM
5378 #define LIBS_SYSTEM
5379 #endif
5380 #ifndef C_SWITCH_SYSTEM
5381 #define C_SWITCH_SYSTEM
5382 #endif
5383 #ifndef C_SWITCH_MACHINE
5384 #define C_SWITCH_MACHINE
5385 #endif
5386 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5387 configure___ c_switch_system=C_SWITCH_SYSTEM
5388 configure___ c_switch_machine=C_SWITCH_MACHINE
5389
5390 #ifndef LIB_X11_LIB
5391 #define LIB_X11_LIB -lX11
5392 #endif
5393
5394 #ifndef LIBX11_SYSTEM
5395 #define LIBX11_SYSTEM
5396 #endif
5397 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5398
5399 #ifdef UNEXEC
5400 configure___ unexec=UNEXEC
5401 #else
5402 configure___ unexec=unexec.o
5403 #endif
5404
5405 #ifdef SYSTEM_MALLOC
5406 configure___ system_malloc=yes
5407 #else
5408 configure___ system_malloc=no
5409 #endif
5410
5411 #ifdef USE_MMAP_FOR_BUFFERS
5412 configure___ use_mmap_for_buffers=yes
5413 #else
5414 configure___ use_mmap_for_buffers=no
5415 #endif
5416
5417 #ifndef C_DEBUG_SWITCH
5418 #define C_DEBUG_SWITCH -g
5419 #endif
5420
5421 #ifndef C_OPTIMIZE_SWITCH
5422 #ifdef __GNUC__
5423 #define C_OPTIMIZE_SWITCH -O2
5424 #else
5425 #define C_OPTIMIZE_SWITCH -O
5426 #endif
5427 #endif
5428
5429 #ifndef C_WARNINGS_SWITCH
5430 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5431 #endif
5432
5433 #ifndef LD_SWITCH_MACHINE
5434 #define LD_SWITCH_MACHINE
5435 #endif
5436
5437 #ifndef LD_SWITCH_SYSTEM
5438 #define LD_SWITCH_SYSTEM
5439 #endif
5440
5441 #ifndef LD_SWITCH_X_SITE_AUX
5442 #define LD_SWITCH_X_SITE_AUX
5443 #endif
5444
5445 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5446 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5447
5448 #ifdef THIS_IS_CONFIGURE
5449
5450 /* Get the CFLAGS for tests in configure. */
5451 #ifdef __GNUC__
5452 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5453 #else
5454 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5455 #endif
5456
5457 #else /* not THIS_IS_CONFIGURE */
5458
5459 /* Get the CFLAGS for real compilation. */
5460 #ifdef __GNUC__
5461 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5462 #else
5463 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5464 #endif
5465
5466 #endif /* not THIS_IS_CONFIGURE */
5467 ' > ${tempcname}
5468
5469 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5470
5471 # The value of CPP is a quoted variable reference, so we need to do this
5472 # to get its actual value...
5473 CPP=`eval "echo $CPP"`
5474 eval `${CPP} -Isrc ${tempcname} \
5475 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5476 if test "x$SPECIFIED_CFLAGS" = x; then
5477 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5478 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5479 else
5480 REAL_CFLAGS="$CFLAGS"
5481 fi
5482 rm ${tempcname}
5483
5484 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5485
5486 ### Make sure subsequent tests use flags consistent with the build flags.
5487
5488 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5489 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5490 else
5491 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5492 fi
5493
5494
5495
5496 # Check whether --enable-largefile was given.
5497 if test "${enable_largefile+set}" = set; then :
5498 enableval=$enable_largefile;
5499 fi
5500
5501 if test "$enable_largefile" != no; then
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5504 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5505 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 ac_cv_sys_largefile_CC=no
5509 if test "$GCC" != yes; then
5510 ac_save_CC=$CC
5511 while :; do
5512 # IRIX 6.2 and later do not support large files by default,
5513 # so use the C compiler's -n32 option if that helps.
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 #include <sys/types.h>
5517 /* Check that off_t can represent 2**63 - 1 correctly.
5518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5519 since some C++ compilers masquerading as C compilers
5520 incorrectly reject 9223372036854775807. */
5521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5523 && LARGE_OFF_T % 2147483647 == 1)
5524 ? 1 : -1];
5525 int
5526 main ()
5527 {
5528
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"; then :
5534 break
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext
5537 CC="$CC -n32"
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539 ac_cv_sys_largefile_CC=' -n32'; break
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext
5542 break
5543 done
5544 CC=$ac_save_CC
5545 rm -f conftest.$ac_ext
5546 fi
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5549 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5550 if test "$ac_cv_sys_largefile_CC" != no; then
5551 CC=$CC$ac_cv_sys_largefile_CC
5552 fi
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5555 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5556 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 while :; do
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #include <sys/types.h>
5563 /* Check that off_t can represent 2**63 - 1 correctly.
5564 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5565 since some C++ compilers masquerading as C compilers
5566 incorrectly reject 9223372036854775807. */
5567 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5568 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5569 && LARGE_OFF_T % 2147483647 == 1)
5570 ? 1 : -1];
5571 int
5572 main ()
5573 {
5574
5575 ;
5576 return 0;
5577 }
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"; then :
5580 ac_cv_sys_file_offset_bits=no; break
5581 fi
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #define _FILE_OFFSET_BITS 64
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5594 ? 1 : -1];
5595 int
5596 main ()
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 ac_cv_sys_file_offset_bits=64; break
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 ac_cv_sys_file_offset_bits=unknown
5608 break
5609 done
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5612 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5613 case $ac_cv_sys_file_offset_bits in #(
5614 no | unknown) ;;
5615 *)
5616 cat >>confdefs.h <<_ACEOF
5617 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5618 _ACEOF
5619 ;;
5620 esac
5621 rm -rf conftest*
5622 if test $ac_cv_sys_file_offset_bits = unknown; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5624 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5625 if test "${ac_cv_sys_large_files+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 while :; do
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <sys/types.h>
5632 /* Check that off_t can represent 2**63 - 1 correctly.
5633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5634 since some C++ compilers masquerading as C compilers
5635 incorrectly reject 9223372036854775807. */
5636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5638 && LARGE_OFF_T % 2147483647 == 1)
5639 ? 1 : -1];
5640 int
5641 main ()
5642 {
5643
5644 ;
5645 return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 ac_cv_sys_large_files=no; break
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #define _LARGE_FILES 1
5655 #include <sys/types.h>
5656 /* Check that off_t can represent 2**63 - 1 correctly.
5657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5658 since some C++ compilers masquerading as C compilers
5659 incorrectly reject 9223372036854775807. */
5660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5662 && LARGE_OFF_T % 2147483647 == 1)
5663 ? 1 : -1];
5664 int
5665 main ()
5666 {
5667
5668 ;
5669 return 0;
5670 }
5671 _ACEOF
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 ac_cv_sys_large_files=1; break
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 ac_cv_sys_large_files=unknown
5677 break
5678 done
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5681 $as_echo "$ac_cv_sys_large_files" >&6; }
5682 case $ac_cv_sys_large_files in #(
5683 no | unknown) ;;
5684 *)
5685 cat >>confdefs.h <<_ACEOF
5686 #define _LARGE_FILES $ac_cv_sys_large_files
5687 _ACEOF
5688 ;;
5689 esac
5690 rm -rf conftest*
5691 fi
5692 fi
5693
5694
5695
5696 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5697 ### be located in either /usr/lib64 or /usr/lib.
5698 ### In some rare cases, /usr/lib64 exists but does not contain the
5699 ### relevant files (bug#1287). Hence test for crtn.o.
5700 case "${canonical}" in
5701 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5702 if test -e /usr/lib64/crtn.o; then
5703
5704 $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
5705
5706 fi
5707 esac
5708
5709
5710
5711
5712 if test "${with_sound}" != "no"; then
5713 # Sound support for GNU/Linux and the free BSDs.
5714 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5715 do :
5716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5717 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5718 eval as_val=\$$as_ac_Header
5719 if test "x$as_val" = x""yes; then :
5720 cat >>confdefs.h <<_ACEOF
5721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722 _ACEOF
5723
5724 fi
5725
5726 done
5727
5728 # Emulation library used on NetBSD.
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5730 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5731 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 ac_check_lib_save_LIBS=$LIBS
5735 LIBS="-lossaudio $LIBS"
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738
5739 /* Override any GCC internal prototype to avoid an error.
5740 Use char because int might match the return type of a GCC
5741 builtin and then its argument prototype would still apply. */
5742 #ifdef __cplusplus
5743 extern "C"
5744 #endif
5745 char _oss_ioctl ();
5746 int
5747 main ()
5748 {
5749 return _oss_ioctl ();
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_c_try_link "$LINENO"; then :
5755 ac_cv_lib_ossaudio__oss_ioctl=yes
5756 else
5757 ac_cv_lib_ossaudio__oss_ioctl=no
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 LIBS=$ac_check_lib_save_LIBS
5762 fi
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5764 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5765 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5766 LIBSOUND=-lossaudio
5767 else
5768 LIBSOUND=
5769 fi
5770
5771
5772
5773 ALSA_REQUIRED=1.0.0
5774 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5775
5776 succeeded=no
5777
5778 # Extract the first word of "pkg-config", so it can be a program name with args.
5779 set dummy pkg-config; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 case $PKG_CONFIG in
5786 [\\/]* | ?:[\\/]*)
5787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5788 ;;
5789 *)
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5800 fi
5801 done
5802 done
5803 IFS=$as_save_IFS
5804
5805 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5806 ;;
5807 esac
5808 fi
5809 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5810 if test -n "$PKG_CONFIG"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5812 $as_echo "$PKG_CONFIG" >&6; }
5813 else
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817
5818
5819
5820 if test "$PKG_CONFIG" = "no" ; then
5821 HAVE_ALSA=no
5822 else
5823 PKG_CONFIG_MIN_VERSION=0.9.0
5824 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5826 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5827
5828 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5830 $as_echo "yes" >&6; }
5831 succeeded=yes
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5834 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5835 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5837 $as_echo "$ALSA_CFLAGS" >&6; }
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5840 $as_echo_n "checking ALSA_LIBS... " >&6; }
5841 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5843 $as_echo "$ALSA_LIBS" >&6; }
5844 else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5847 ALSA_CFLAGS=""
5848 ALSA_LIBS=""
5849 ## If we have a custom action on failure, don't print errors, but
5850 ## do set a variable so people can do so.
5851 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5852
5853 fi
5854
5855
5856
5857 else
5858 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5859 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5860 fi
5861 fi
5862
5863 if test $succeeded = yes; then
5864 HAVE_ALSA=yes
5865 else
5866 HAVE_ALSA=no
5867 fi
5868
5869 if test $HAVE_ALSA = yes; then
5870 SAVE_CFLAGS="$CFLAGS"
5871 SAVE_LDFLAGS="$LDFLAGS"
5872 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5873 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #include <asoundlib.h>
5877 int
5878 main ()
5879 {
5880 snd_lib_error_set_handler (0);
5881 ;
5882 return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 emacs_alsa_normal=yes
5887 else
5888 emacs_alsa_normal=no
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 if test "$emacs_alsa_normal" != yes; then
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 #include <alsa/asoundlib.h>
5895 int
5896 main ()
5897 {
5898 snd_lib_error_set_handler (0);
5899 ;
5900 return 0;
5901 }
5902 _ACEOF
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904 emacs_alsa_subdir=yes
5905 else
5906 emacs_alsa_subdir=no
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 if test "$emacs_alsa_subdir" != yes; then
5910 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5911 fi
5912 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5913 fi
5914
5915 CFLAGS="$SAVE_CFLAGS"
5916 LDFLAGS="$SAVE_LDFLAGS"
5917 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5918 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5919
5920 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5921
5922 fi
5923
5924 fi
5925
5926 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5927 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5928 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5929 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5930 sys/utsname.h pwd.h utmp.h
5931 do :
5932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5933 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5934 eval as_val=\$$as_ac_Header
5935 if test "x$as_val" = x""yes; then :
5936 cat >>confdefs.h <<_ACEOF
5937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5938 _ACEOF
5939
5940 fi
5941
5942 done
5943
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5946 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949 #include <sys/personality.h>
5950 int
5951 main ()
5952 {
5953 personality (PER_LINUX32)
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 emacs_cv_personality_linux32=yes
5960 else
5961 emacs_cv_personality_linux32=no
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5965 $as_echo "$emacs_cv_personality_linux32" >&6; }
5966
5967 if test $emacs_cv_personality_linux32 = yes; then
5968
5969 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
5970
5971 fi
5972
5973 for ac_header in term.h
5974 do :
5975 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
5976 if test "x$ac_cv_header_term_h" = x""yes; then :
5977 cat >>confdefs.h <<_ACEOF
5978 #define HAVE_TERM_H 1
5979 _ACEOF
5980
5981 fi
5982
5983 done
5984
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5986 $as_echo_n "checking for ANSI C header files... " >&6; }
5987 if test "${ac_cv_header_stdc+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <stdlib.h>
5993 #include <stdarg.h>
5994 #include <string.h>
5995 #include <float.h>
5996
5997 int
5998 main ()
5999 {
6000
6001 ;
6002 return 0;
6003 }
6004 _ACEOF
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006 ac_cv_header_stdc=yes
6007 else
6008 ac_cv_header_stdc=no
6009 fi
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011
6012 if test $ac_cv_header_stdc = yes; then
6013 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 #include <string.h>
6017
6018 _ACEOF
6019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6020 $EGREP "memchr" >/dev/null 2>&1; then :
6021
6022 else
6023 ac_cv_header_stdc=no
6024 fi
6025 rm -f conftest*
6026
6027 fi
6028
6029 if test $ac_cv_header_stdc = yes; then
6030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 #include <stdlib.h>
6034
6035 _ACEOF
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 $EGREP "free" >/dev/null 2>&1; then :
6038
6039 else
6040 ac_cv_header_stdc=no
6041 fi
6042 rm -f conftest*
6043
6044 fi
6045
6046 if test $ac_cv_header_stdc = yes; then
6047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6048 if test "$cross_compiling" = yes; then :
6049 :
6050 else
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 #include <ctype.h>
6054 #include <stdlib.h>
6055 #if ((' ' & 0x0FF) == 0x020)
6056 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6057 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6058 #else
6059 # define ISLOWER(c) \
6060 (('a' <= (c) && (c) <= 'i') \
6061 || ('j' <= (c) && (c) <= 'r') \
6062 || ('s' <= (c) && (c) <= 'z'))
6063 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6064 #endif
6065
6066 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6067 int
6068 main ()
6069 {
6070 int i;
6071 for (i = 0; i < 256; i++)
6072 if (XOR (islower (i), ISLOWER (i))
6073 || toupper (i) != TOUPPER (i))
6074 return 2;
6075 return 0;
6076 }
6077 _ACEOF
6078 if ac_fn_c_try_run "$LINENO"; then :
6079
6080 else
6081 ac_cv_header_stdc=no
6082 fi
6083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6084 conftest.$ac_objext conftest.beam conftest.$ac_ext
6085 fi
6086
6087 fi
6088 fi
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6090 $as_echo "$ac_cv_header_stdc" >&6; }
6091 if test $ac_cv_header_stdc = yes; then
6092
6093 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6094
6095 fi
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6098 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6099 if test "${ac_cv_header_time+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <sys/types.h>
6105 #include <sys/time.h>
6106 #include <time.h>
6107
6108 int
6109 main ()
6110 {
6111 if ((struct tm *) 0)
6112 return 0;
6113 ;
6114 return 0;
6115 }
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"; then :
6118 ac_cv_header_time=yes
6119 else
6120 ac_cv_header_time=no
6121 fi
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 fi
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6125 $as_echo "$ac_cv_header_time" >&6; }
6126 if test $ac_cv_header_time = yes; then
6127
6128 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6129
6130 fi
6131
6132 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6133 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6134 ac_have_decl=1
6135 else
6136 ac_have_decl=0
6137 fi
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6141 _ACEOF
6142
6143 if test $ac_cv_have_decl_sys_siglist != yes; then
6144 # For Tru64, at least:
6145 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6146 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6147 ac_have_decl=1
6148 else
6149 ac_have_decl=0
6150 fi
6151
6152 cat >>confdefs.h <<_ACEOF
6153 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6154 _ACEOF
6155
6156 if test $ac_cv_have_decl___sys_siglist = yes; then
6157
6158 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6159
6160 fi
6161 fi
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6163 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6164 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 #include <sys/types.h>
6170 #include <sys/wait.h>
6171 #ifndef WEXITSTATUS
6172 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6173 #endif
6174 #ifndef WIFEXITED
6175 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6176 #endif
6177
6178 int
6179 main ()
6180 {
6181 int s;
6182 wait (&s);
6183 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6184 ;
6185 return 0;
6186 }
6187 _ACEOF
6188 if ac_fn_c_try_compile "$LINENO"; then :
6189 ac_cv_header_sys_wait_h=yes
6190 else
6191 ac_cv_header_sys_wait_h=no
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6196 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6197 if test $ac_cv_header_sys_wait_h = yes; then
6198
6199 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6200
6201 fi
6202
6203
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6205 $as_echo_n "checking for struct utimbuf... " >&6; }
6206 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 #ifdef TIME_WITH_SYS_TIME
6212 #include <sys/time.h>
6213 #include <time.h>
6214 #else
6215 #ifdef HAVE_SYS_TIME_H
6216 #include <sys/time.h>
6217 #else
6218 #include <time.h>
6219 #endif
6220 #endif
6221 #ifdef HAVE_UTIME_H
6222 #include <utime.h>
6223 #endif
6224 int
6225 main ()
6226 {
6227 static struct utimbuf x; x.actime = x.modtime;
6228 ;
6229 return 0;
6230 }
6231 _ACEOF
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 emacs_cv_struct_utimbuf=yes
6234 else
6235 emacs_cv_struct_utimbuf=no
6236 fi
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6240 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6241 if test $emacs_cv_struct_utimbuf = yes; then
6242
6243 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6244
6245 fi
6246
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6248 $as_echo_n "checking return type of signal handlers... " >&6; }
6249 if test "${ac_cv_type_signal+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 #include <sys/types.h>
6255 #include <signal.h>
6256
6257 int
6258 main ()
6259 {
6260 return *(signal (0, 0)) (0) == 1;
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"; then :
6266 ac_cv_type_signal=int
6267 else
6268 ac_cv_type_signal=void
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271 fi
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6273 $as_echo "$ac_cv_type_signal" >&6; }
6274
6275 cat >>confdefs.h <<_ACEOF
6276 #define RETSIGTYPE $ac_cv_type_signal
6277 _ACEOF
6278
6279
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6282 $as_echo_n "checking for speed_t... " >&6; }
6283 if test "${emacs_cv_speed_t+set}" = set; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <termios.h>
6289 int
6290 main ()
6291 {
6292 speed_t x = 1;
6293 ;
6294 return 0;
6295 }
6296 _ACEOF
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 emacs_cv_speed_t=yes
6299 else
6300 emacs_cv_speed_t=no
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6305 $as_echo "$emacs_cv_speed_t" >&6; }
6306 if test $emacs_cv_speed_t = yes; then
6307
6308 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6309
6310 fi
6311
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6313 $as_echo_n "checking for struct timeval... " >&6; }
6314 if test "${emacs_cv_struct_timeval+set}" = set; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 #ifdef TIME_WITH_SYS_TIME
6320 #include <sys/time.h>
6321 #include <time.h>
6322 #else
6323 #ifdef HAVE_SYS_TIME_H
6324 #include <sys/time.h>
6325 #else
6326 #include <time.h>
6327 #endif
6328 #endif
6329 int
6330 main ()
6331 {
6332 static struct timeval x; x.tv_sec = x.tv_usec;
6333 ;
6334 return 0;
6335 }
6336 _ACEOF
6337 if ac_fn_c_try_compile "$LINENO"; then :
6338 emacs_cv_struct_timeval=yes
6339 else
6340 emacs_cv_struct_timeval=no
6341 fi
6342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 fi
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6345 $as_echo "$emacs_cv_struct_timeval" >&6; }
6346 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6347 if test $emacs_cv_struct_timeval = yes; then
6348
6349 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6350
6351 fi
6352
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6354 $as_echo_n "checking for struct exception... " >&6; }
6355 if test "${emacs_cv_struct_exception+set}" = set; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 #include <math.h>
6361 int
6362 main ()
6363 {
6364 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_c_try_compile "$LINENO"; then :
6370 emacs_cv_struct_exception=yes
6371 else
6372 emacs_cv_struct_exception=no
6373 fi
6374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 fi
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6377 $as_echo "$emacs_cv_struct_exception" >&6; }
6378 HAVE_EXCEPTION=$emacs_cv_struct_exception
6379 if test $emacs_cv_struct_exception != yes; then
6380
6381 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6382
6383 fi
6384
6385 for ac_header in sys/socket.h
6386 do :
6387 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6388 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6389 cat >>confdefs.h <<_ACEOF
6390 #define HAVE_SYS_SOCKET_H 1
6391 _ACEOF
6392
6393 fi
6394
6395 done
6396
6397 for ac_header in net/if.h
6398 do :
6399 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6400 #if HAVE_SYS_SOCKET_H
6401 #include <sys/socket.h>
6402 #endif
6403 "
6404 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6405 cat >>confdefs.h <<_ACEOF
6406 #define HAVE_NET_IF_H 1
6407 _ACEOF
6408
6409 fi
6410
6411 done
6412
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6415 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6416 if test "${ac_cv_struct_tm+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 #include <sys/types.h>
6422 #include <time.h>
6423
6424 int
6425 main ()
6426 {
6427 struct tm tm;
6428 int *p = &tm.tm_sec;
6429 return !p;
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 ac_cv_struct_tm=time.h
6436 else
6437 ac_cv_struct_tm=sys/time.h
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6442 $as_echo "$ac_cv_struct_tm" >&6; }
6443 if test $ac_cv_struct_tm = sys/time.h; then
6444
6445 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6446
6447 fi
6448
6449 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6450 #include <$ac_cv_struct_tm>
6451
6452 "
6453 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6454
6455 cat >>confdefs.h <<_ACEOF
6456 #define HAVE_STRUCT_TM_TM_ZONE 1
6457 _ACEOF
6458
6459
6460 fi
6461
6462 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6463
6464 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6465
6466 else
6467 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6468 "
6469 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6470 ac_have_decl=1
6471 else
6472 ac_have_decl=0
6473 fi
6474
6475 cat >>confdefs.h <<_ACEOF
6476 #define HAVE_DECL_TZNAME $ac_have_decl
6477 _ACEOF
6478
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6480 $as_echo_n "checking for tzname... " >&6; }
6481 if test "${ac_cv_var_tzname+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 #include <time.h>
6487 #if !HAVE_DECL_TZNAME
6488 extern char *tzname[];
6489 #endif
6490
6491 int
6492 main ()
6493 {
6494 return tzname[0][0];
6495 ;
6496 return 0;
6497 }
6498 _ACEOF
6499 if ac_fn_c_try_link "$LINENO"; then :
6500 ac_cv_var_tzname=yes
6501 else
6502 ac_cv_var_tzname=no
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext \
6505 conftest$ac_exeext conftest.$ac_ext
6506 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6508 $as_echo "$ac_cv_var_tzname" >&6; }
6509 if test $ac_cv_var_tzname = yes; then
6510
6511 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6512
6513 fi
6514 fi
6515
6516 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6517 "
6518 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6519
6520 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6521
6522 fi
6523
6524 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6525 #if HAVE_SYS_SOCKET_H
6526 #include <sys/socket.h>
6527 #endif
6528 #if HAVE_NET_IF_H
6529 #include <net/if.h>
6530 #endif
6531 "
6532 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6533
6534 cat >>confdefs.h <<_ACEOF
6535 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6536 _ACEOF
6537
6538
6539 fi
6540 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6541 #if HAVE_SYS_SOCKET_H
6542 #include <sys/socket.h>
6543 #endif
6544 #if HAVE_NET_IF_H
6545 #include <net/if.h>
6546 #endif
6547 "
6548 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6549
6550 cat >>confdefs.h <<_ACEOF
6551 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6552 _ACEOF
6553
6554
6555 fi
6556 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6557 #if HAVE_SYS_SOCKET_H
6558 #include <sys/socket.h>
6559 #endif
6560 #if HAVE_NET_IF_H
6561 #include <net/if.h>
6562 #endif
6563 "
6564 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6565
6566 cat >>confdefs.h <<_ACEOF
6567 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6568 _ACEOF
6569
6570
6571 fi
6572 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6573 #if HAVE_SYS_SOCKET_H
6574 #include <sys/socket.h>
6575 #endif
6576 #if HAVE_NET_IF_H
6577 #include <net/if.h>
6578 #endif
6579 "
6580 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6581
6582 cat >>confdefs.h <<_ACEOF
6583 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6584 _ACEOF
6585
6586
6587 fi
6588 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6589 #if HAVE_SYS_SOCKET_H
6590 #include <sys/socket.h>
6591 #endif
6592 #if HAVE_NET_IF_H
6593 #include <net/if.h>
6594 #endif
6595 "
6596 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6597
6598 cat >>confdefs.h <<_ACEOF
6599 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6600 _ACEOF
6601
6602
6603 fi
6604
6605
6606
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6608 $as_echo_n "checking for function prototypes... " >&6; }
6609 if test "$ac_cv_prog_cc_c89" != no; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6611 $as_echo "yes" >&6; }
6612
6613 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6614
6615
6616 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6617
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6624 $as_echo_n "checking for working volatile... " >&6; }
6625 if test "${ac_cv_c_volatile+set}" = set; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630
6631 int
6632 main ()
6633 {
6634
6635 volatile int x;
6636 int * volatile y = (int *) 0;
6637 return !x && !y;
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 if ac_fn_c_try_compile "$LINENO"; then :
6643 ac_cv_c_volatile=yes
6644 else
6645 ac_cv_c_volatile=no
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6650 $as_echo "$ac_cv_c_volatile" >&6; }
6651 if test $ac_cv_c_volatile = no; then
6652
6653 $as_echo "#define volatile /**/" >>confdefs.h
6654
6655 fi
6656
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6658 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6659 if test "${ac_cv_c_const+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664
6665 int
6666 main ()
6667 {
6668 /* FIXME: Include the comments suggested by Paul. */
6669 #ifndef __cplusplus
6670 /* Ultrix mips cc rejects this. */
6671 typedef int charset[2];
6672 const charset cs;
6673 /* SunOS 4.1.1 cc rejects this. */
6674 char const *const *pcpcc;
6675 char **ppc;
6676 /* NEC SVR4.0.2 mips cc rejects this. */
6677 struct point {int x, y;};
6678 static struct point const zero = {0,0};
6679 /* AIX XL C 1.02.0.0 rejects this.
6680 It does not let you subtract one const X* pointer from another in
6681 an arm of an if-expression whose if-part is not a constant
6682 expression */
6683 const char *g = "string";
6684 pcpcc = &g + (g ? g-g : 0);
6685 /* HPUX 7.0 cc rejects these. */
6686 ++pcpcc;
6687 ppc = (char**) pcpcc;
6688 pcpcc = (char const *const *) ppc;
6689 { /* SCO 3.2v4 cc rejects this. */
6690 char *t;
6691 char const *s = 0 ? (char *) 0 : (char const *) 0;
6692
6693 *t++ = 0;
6694 if (s) return 0;
6695 }
6696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6697 int x[] = {25, 17};
6698 const int *foo = &x[0];
6699 ++foo;
6700 }
6701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6702 typedef const int *iptr;
6703 iptr p = 0;
6704 ++p;
6705 }
6706 { /* AIX XL C 1.02.0.0 rejects this saying
6707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6708 struct s { int j; const int *ap[3]; };
6709 struct s *b; b->j = 5;
6710 }
6711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6712 const int foo = 10;
6713 if (!foo) return 0;
6714 }
6715 return !cs[0] && !zero.x;
6716 #endif
6717
6718 ;
6719 return 0;
6720 }
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"; then :
6723 ac_cv_c_const=yes
6724 else
6725 ac_cv_c_const=no
6726 fi
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728 fi
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6730 $as_echo "$ac_cv_c_const" >&6; }
6731 if test $ac_cv_c_const = no; then
6732
6733 $as_echo "#define const /**/" >>confdefs.h
6734
6735 fi
6736
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6738 $as_echo_n "checking for void * support... " >&6; }
6739 if test "${emacs_cv_void_star+set}" = set; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744
6745 int
6746 main ()
6747 {
6748 void * foo;
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_compile "$LINENO"; then :
6754 emacs_cv_void_star=yes
6755 else
6756 emacs_cv_void_star=no
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 fi
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6761 $as_echo "$emacs_cv_void_star" >&6; }
6762 if test $emacs_cv_void_star = yes; then
6763 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6764
6765 else
6766 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6767
6768 fi
6769
6770
6771
6772
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6774 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6775 set x ${MAKE-make}
6776 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6777 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 cat >conftest.make <<\_ACEOF
6781 SHELL = /bin/sh
6782 all:
6783 @echo '@@@%%%=$(MAKE)=@@@%%%'
6784 _ACEOF
6785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6786 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6787 *@@@%%%=?*=@@@%%%*)
6788 eval ac_cv_prog_make_${ac_make}_set=yes;;
6789 *)
6790 eval ac_cv_prog_make_${ac_make}_set=no;;
6791 esac
6792 rm -f conftest.make
6793 fi
6794 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6796 $as_echo "yes" >&6; }
6797 SET_MAKE=
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 SET_MAKE="MAKE=${MAKE-make}"
6802 fi
6803
6804
6805 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6807 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6808 HAVE_GNU_MAKE=no
6809 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6810 if test "x$testval" != x; then
6811 HAVE_GNU_MAKE=yes
6812 else
6813 ac_enable_autodepend=no
6814 fi
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6816 $as_echo "$HAVE_GNU_MAKE" >&6; }
6817 if test $HAVE_GNU_MAKE = yes; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6819 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6820 SAVE_CFLAGS="$CFLAGS"
6821 CFLAGS="$CFLAGS -MMD -MF deps.d"
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824
6825 int
6826 main ()
6827 {
6828
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834
6835 else
6836 ac_enable_autodepend=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 CFLAGS="$SAVE_CFLAGS"
6840 test -f deps.d || ac_enable_autodepend=no
6841 rm -rf deps.d
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6843 $as_echo "$ac_enable_autodepend" >&6; }
6844 fi
6845 if test $ac_enable_autodepend = yes; then
6846
6847 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6848
6849 fi
6850 fi
6851
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6853 $as_echo_n "checking for long file names... " >&6; }
6854 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 ac_cv_sys_long_file_names=yes
6858 # Test for long file names in all the places we know might matter:
6859 # . the current directory, where building will happen
6860 # $prefix/lib where we will be installing things
6861 # $exec_prefix/lib likewise
6862 # $TMPDIR if set, where it might want to write temporary files
6863 # /tmp where it might want to write temporary files
6864 # /var/tmp likewise
6865 # /usr/tmp likewise
6866 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6867 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6868 # in the usual case where exec_prefix is '${prefix}'.
6869 case $ac_dir in #(
6870 . | /* | ?:[\\/]*) ;; #(
6871 *) continue;;
6872 esac
6873 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6874 ac_xdir=$ac_dir/cf$$
6875 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6876 ac_tf1=$ac_xdir/conftest9012345
6877 ac_tf2=$ac_xdir/conftest9012346
6878 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6879 ac_cv_sys_long_file_names=no
6880 rm -f -r "$ac_xdir" 2>/dev/null
6881 test $ac_cv_sys_long_file_names = no && break
6882 done
6883 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6885 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6886 if test $ac_cv_sys_long_file_names = yes; then
6887
6888 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6889
6890 fi
6891
6892
6893 #### Choose a window system.
6894
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6896 $as_echo_n "checking for X... " >&6; }
6897
6898
6899 # Check whether --with-x was given.
6900 if test "${with_x+set}" = set; then :
6901 withval=$with_x;
6902 fi
6903
6904 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6905 if test "x$with_x" = xno; then
6906 # The user explicitly disabled X.
6907 have_x=disabled
6908 else
6909 case $x_includes,$x_libraries in #(
6910 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6911 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 # One or both of the vars are not set, and there is no cached value.
6915 ac_x_includes=no ac_x_libraries=no
6916 rm -f -r conftest.dir
6917 if mkdir conftest.dir; then
6918 cd conftest.dir
6919 cat >Imakefile <<'_ACEOF'
6920 incroot:
6921 @echo incroot='${INCROOT}'
6922 usrlibdir:
6923 @echo usrlibdir='${USRLIBDIR}'
6924 libdir:
6925 @echo libdir='${LIBDIR}'
6926 _ACEOF
6927 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6929 for ac_var in incroot usrlibdir libdir; do
6930 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6931 done
6932 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6933 for ac_extension in a so sl dylib la dll; do
6934 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6935 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6936 ac_im_usrlibdir=$ac_im_libdir; break
6937 fi
6938 done
6939 # Screen out bogus values from the imake configuration. They are
6940 # bogus both because they are the default anyway, and because
6941 # using them would break gcc on systems where it needs fixed includes.
6942 case $ac_im_incroot in
6943 /usr/include) ac_x_includes= ;;
6944 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6945 esac
6946 case $ac_im_usrlibdir in
6947 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6948 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6949 esac
6950 fi
6951 cd ..
6952 rm -f -r conftest.dir
6953 fi
6954
6955 # Standard set of common directories for X headers.
6956 # Check X11 before X11Rn because it is often a symlink to the current release.
6957 ac_x_header_dirs='
6958 /usr/X11/include
6959 /usr/X11R7/include
6960 /usr/X11R6/include
6961 /usr/X11R5/include
6962 /usr/X11R4/include
6963
6964 /usr/include/X11
6965 /usr/include/X11R7
6966 /usr/include/X11R6
6967 /usr/include/X11R5
6968 /usr/include/X11R4
6969
6970 /usr/local/X11/include
6971 /usr/local/X11R7/include
6972 /usr/local/X11R6/include
6973 /usr/local/X11R5/include
6974 /usr/local/X11R4/include
6975
6976 /usr/local/include/X11
6977 /usr/local/include/X11R7
6978 /usr/local/include/X11R6
6979 /usr/local/include/X11R5
6980 /usr/local/include/X11R4
6981
6982 /usr/X386/include
6983 /usr/x386/include
6984 /usr/XFree86/include/X11
6985
6986 /usr/include
6987 /usr/local/include
6988 /usr/unsupported/include
6989 /usr/athena/include
6990 /usr/local/x11r5/include
6991 /usr/lpp/Xamples/include
6992
6993 /usr/openwin/include
6994 /usr/openwin/share/include'
6995
6996 if test "$ac_x_includes" = no; then
6997 # Guess where to find include files, by looking for Xlib.h.
6998 # First, try using that file with no special directory specified.
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7001 #include <X11/Xlib.h>
7002 _ACEOF
7003 if ac_fn_c_try_cpp "$LINENO"; then :
7004 # We can compile using X headers with no special include directory.
7005 ac_x_includes=
7006 else
7007 for ac_dir in $ac_x_header_dirs; do
7008 if test -r "$ac_dir/X11/Xlib.h"; then
7009 ac_x_includes=$ac_dir
7010 break
7011 fi
7012 done
7013 fi
7014 rm -f conftest.err conftest.$ac_ext
7015 fi # $ac_x_includes = no
7016
7017 if test "$ac_x_libraries" = no; then
7018 # Check for the libraries.
7019 # See if we find them without any special options.
7020 # Don't add to $LIBS permanently.
7021 ac_save_LIBS=$LIBS
7022 LIBS="-lX11 $LIBS"
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 #include <X11/Xlib.h>
7026 int
7027 main ()
7028 {
7029 XrmInitialize ()
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"; then :
7035 LIBS=$ac_save_LIBS
7036 # We can link X programs with no special library path.
7037 ac_x_libraries=
7038 else
7039 LIBS=$ac_save_LIBS
7040 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7041 do
7042 # Don't even attempt the hair of trying to link an X program!
7043 for ac_extension in a so sl dylib la dll; do
7044 if test -r "$ac_dir/libX11.$ac_extension"; then
7045 ac_x_libraries=$ac_dir
7046 break 2
7047 fi
7048 done
7049 done
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053 fi # $ac_x_libraries = no
7054
7055 case $ac_x_includes,$ac_x_libraries in #(
7056 no,* | *,no | *\'*)
7057 # Didn't find X, or a directory has "'" in its name.
7058 ac_cv_have_x="have_x=no";; #(
7059 *)
7060 # Record where we found X for the cache.
7061 ac_cv_have_x="have_x=yes\
7062 ac_x_includes='$ac_x_includes'\
7063 ac_x_libraries='$ac_x_libraries'"
7064 esac
7065 fi
7066 ;; #(
7067 *) have_x=yes;;
7068 esac
7069 eval "$ac_cv_have_x"
7070 fi # $with_x != no
7071
7072 if test "$have_x" != yes; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7074 $as_echo "$have_x" >&6; }
7075 no_x=yes
7076 else
7077 # If each of the values was on the command line, it overrides each guess.
7078 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7079 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7080 # Update the cache value to reflect the command line values.
7081 ac_cv_have_x="have_x=yes\
7082 ac_x_includes='$x_includes'\
7083 ac_x_libraries='$x_libraries'"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7085 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7086 fi
7087
7088 if test "$no_x" = yes; then
7089 window_system=none
7090 else
7091 window_system=x11
7092 fi
7093
7094 ## Workaround for bug in autoconf <= 2.62.
7095 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7096 ## No need to do anything special for these standard directories.
7097 ## This is an experiment, take it out if it causes problems.
7098 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7099
7100 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7101
7102 fi
7103
7104 if test "${x_libraries}" != NONE; then
7105 if test -n "${x_libraries}"; then
7106 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7107 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7108 fi
7109 x_default_search_path=""
7110 x_search_path=${x_libraries}
7111 if test -z "${x_search_path}"; then
7112 x_search_path=/usr/lib
7113 fi
7114 for x_library in `echo ${x_search_path}: | \
7115 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7116 x_search_path="\
7117 ${x_library}/X11/%L/%T/%N%C%S:\
7118 ${x_library}/X11/%l/%T/%N%C%S:\
7119 ${x_library}/X11/%T/%N%C%S:\
7120 ${x_library}/X11/%L/%T/%N%S:\
7121 ${x_library}/X11/%l/%T/%N%S:\
7122 ${x_library}/X11/%T/%N%S"
7123 if test x"${x_default_search_path}" = x; then
7124 x_default_search_path=${x_search_path}
7125 else
7126 x_default_search_path="${x_search_path}:${x_default_search_path}"
7127 fi
7128 done
7129 fi
7130 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7131 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7132 fi
7133
7134 if test x"${x_includes}" = x; then
7135 bitmapdir=/usr/include/X11/bitmaps
7136 else
7137 # accumulate include directories that have X11 bitmap subdirectories
7138 bmd_acc="dummyval"
7139 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7140 if test -d "${bmd}/X11/bitmaps"; then
7141 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7142 fi
7143 if test -d "${bmd}/bitmaps"; then
7144 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7145 fi
7146 done
7147 if test ${bmd_acc} != "dummyval"; then
7148 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7149 fi
7150 fi
7151
7152 HAVE_NS=no
7153 NS_IMPL_COCOA=no
7154 NS_IMPL_GNUSTEP=no
7155 tmp_CPPFLAGS="$CPPFLAGS"
7156 tmp_CFLAGS="$CFLAGS"
7157 CPPFLAGS="$CPPFLAGS -x objective-c"
7158 CFLAGS="$CFLAGS -x objective-c"
7159 if test "${with_ns}" != no; then
7160 if test "${opsys}" = darwin; then
7161 NS_IMPL_COCOA=yes
7162 ns_appdir=`pwd`/nextstep/Emacs.app
7163 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
7164 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
7165 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7166 elif test -f $GNUSTEP_CONFIG_FILE; then
7167 NS_IMPL_GNUSTEP=yes
7168 ns_appdir=`pwd`/nextstep/Emacs.app
7169 ns_appbindir=`pwd`/nextstep/Emacs.app
7170 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
7171 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7172 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7173 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7174 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7175 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7176 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7177 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7178 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7179 fi
7180 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7181 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7182 HAVE_NS=yes
7183 else
7184 as_fn_error "\`--with-ns' was specified, but the include
7185 files are missing or cannot be compiled." "$LINENO" 5
7186 fi
7187
7188
7189 NS_HAVE_NSINTEGER=yes
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <Foundation/NSObjCRuntime.h>
7193 int
7194 main ()
7195 {
7196 NSInteger i;
7197 ;
7198 return 0;
7199 }
7200 _ACEOF
7201 if ac_fn_c_try_compile "$LINENO"; then :
7202 ns_have_nsinteger=yes
7203 else
7204 ns_have_nsinteger=no
7205 fi
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 if test $ns_have_nsinteger = no; then
7208 NS_HAVE_NSINTEGER=no
7209 fi
7210 fi
7211 if test "${HAVE_NS}" = yes; then
7212 window_system=nextstep
7213 with_xft=no
7214 # set up packaging dirs
7215 exec_prefix=${ns_appbindir}
7216 libexecdir=${ns_appbindir}/libexec
7217 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7218 prefix=${ns_appresdir}
7219 fi
7220 fi
7221 CFLAGS="$tmp_CFLAGS"
7222 CPPFLAGS="$tmp_CPPFLAGS"
7223
7224 case "${window_system}" in
7225 x11 )
7226 HAVE_X_WINDOWS=yes
7227 HAVE_X11=yes
7228 case "${with_x_toolkit}" in
7229 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7230 motif ) USE_X_TOOLKIT=MOTIF ;;
7231 gtk ) with_gtk=yes
7232 USE_X_TOOLKIT=none ;;
7233 no ) USE_X_TOOLKIT=none ;;
7234 * ) USE_X_TOOLKIT=maybe ;;
7235 esac
7236 ;;
7237 nextstep | none )
7238 HAVE_X_WINDOWS=no
7239 HAVE_X11=no
7240 USE_X_TOOLKIT=none
7241 ;;
7242 esac
7243
7244 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7245 # Extract the first word of "X", so it can be a program name with args.
7246 set dummy X; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$HAVE_XSERVER"; then
7253 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_prog_HAVE_XSERVER="true"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7271 fi
7272 fi
7273 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7274 if test -n "$HAVE_XSERVER"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7276 $as_echo "$HAVE_XSERVER" >&6; }
7277 else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282
7283 if test "$HAVE_XSERVER" = true ||
7284 test -n "$DISPLAY" ||
7285 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7286 as_fn_error "You seem to be running X, but no X development libraries
7287 were found. You should install the relevant development files for X
7288 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7289 sure you have development files for image handling, i.e.
7290 tiff, gif, jpeg, png and xpm.
7291 If you are sure you want Emacs compiled without X window support, pass
7292 --without-x
7293 to configure." "$LINENO" 5
7294 fi
7295 fi
7296
7297 ### If we're using X11, we should use the X menu package.
7298 HAVE_MENUS=no
7299 case ${HAVE_X11} in
7300 yes ) HAVE_MENUS=yes ;;
7301 esac
7302
7303 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7304 # Assume not, until told otherwise.
7305 GNU_MALLOC=yes
7306 doug_lea_malloc=yes
7307 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7308 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7309
7310 else
7311 doug_lea_malloc=no
7312 fi
7313
7314 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7315 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7316
7317 else
7318 doug_lea_malloc=no
7319 fi
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7322 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7323 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7328 extern void (* __after_morecore_hook)();
7329 int
7330 main ()
7331 {
7332 __after_morecore_hook = 0
7333 ;
7334 return 0;
7335 }
7336 _ACEOF
7337 if ac_fn_c_try_link "$LINENO"; then :
7338 emacs_cv_var___after_morecore_hook=yes
7339 else
7340 emacs_cv_var___after_morecore_hook=no
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext \
7343 conftest$ac_exeext conftest.$ac_ext
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7346 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7347 if test $emacs_cv_var___after_morecore_hook = no; then
7348 doug_lea_malloc=no
7349 fi
7350 if test "${system_malloc}" = "yes"; then
7351 GNU_MALLOC=no
7352 GNU_MALLOC_reason="
7353 (The GNU allocators don't work with this system configuration.)"
7354 fi
7355 if test "$doug_lea_malloc" = "yes" ; then
7356 if test "$GNU_MALLOC" = yes ; then
7357 GNU_MALLOC_reason="
7358 (Using Doug Lea's new malloc from the GNU C Library.)"
7359 fi
7360
7361 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7362
7363 fi
7364
7365 if test x"${REL_ALLOC}" = x; then
7366 REL_ALLOC=${GNU_MALLOC}
7367 fi
7368
7369
7370
7371
7372
7373 for ac_header in $ac_header_list
7374 do :
7375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7376 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7377 "
7378 eval as_val=\$$as_ac_Header
7379 if test "x$as_val" = x""yes; then :
7380 cat >>confdefs.h <<_ACEOF
7381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7382 _ACEOF
7383
7384 fi
7385
7386 done
7387
7388
7389
7390
7391
7392
7393
7394
7395 for ac_func in getpagesize
7396 do :
7397 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7398 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7399 cat >>confdefs.h <<_ACEOF
7400 #define HAVE_GETPAGESIZE 1
7401 _ACEOF
7402
7403 fi
7404 done
7405
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7407 $as_echo_n "checking for working mmap... " >&6; }
7408 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test "$cross_compiling" = yes; then :
7412 ac_cv_func_mmap_fixed_mapped=no
7413 else
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 $ac_includes_default
7417 /* malloc might have been renamed as rpl_malloc. */
7418 #undef malloc
7419
7420 /* Thanks to Mike Haertel and Jim Avera for this test.
7421 Here is a matrix of mmap possibilities:
7422 mmap private not fixed
7423 mmap private fixed at somewhere currently unmapped
7424 mmap private fixed at somewhere already mapped
7425 mmap shared not fixed
7426 mmap shared fixed at somewhere currently unmapped
7427 mmap shared fixed at somewhere already mapped
7428 For private mappings, we should verify that changes cannot be read()
7429 back from the file, nor mmap's back from the file at a different
7430 address. (There have been systems where private was not correctly
7431 implemented like the infamous i386 svr4.0, and systems where the
7432 VM page cache was not coherent with the file system buffer cache
7433 like early versions of FreeBSD and possibly contemporary NetBSD.)
7434 For shared mappings, we should conversely verify that changes get
7435 propagated back to all the places they're supposed to be.
7436
7437 Grep wants private fixed already mapped.
7438 The main things grep needs to know about mmap are:
7439 * does it exist and is it safe to write into the mmap'd area
7440 * how to use it (BSD variants) */
7441
7442 #include <fcntl.h>
7443 #include <sys/mman.h>
7444
7445 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7446 char *malloc ();
7447 #endif
7448
7449 /* This mess was copied from the GNU getpagesize.h. */
7450 #ifndef HAVE_GETPAGESIZE
7451 # ifdef _SC_PAGESIZE
7452 # define getpagesize() sysconf(_SC_PAGESIZE)
7453 # else /* no _SC_PAGESIZE */
7454 # ifdef HAVE_SYS_PARAM_H
7455 # include <sys/param.h>
7456 # ifdef EXEC_PAGESIZE
7457 # define getpagesize() EXEC_PAGESIZE
7458 # else /* no EXEC_PAGESIZE */
7459 # ifdef NBPG
7460 # define getpagesize() NBPG * CLSIZE
7461 # ifndef CLSIZE
7462 # define CLSIZE 1
7463 # endif /* no CLSIZE */
7464 # else /* no NBPG */
7465 # ifdef NBPC
7466 # define getpagesize() NBPC
7467 # else /* no NBPC */
7468 # ifdef PAGESIZE
7469 # define getpagesize() PAGESIZE
7470 # endif /* PAGESIZE */
7471 # endif /* no NBPC */
7472 # endif /* no NBPG */
7473 # endif /* no EXEC_PAGESIZE */
7474 # else /* no HAVE_SYS_PARAM_H */
7475 # define getpagesize() 8192 /* punt totally */
7476 # endif /* no HAVE_SYS_PARAM_H */
7477 # endif /* no _SC_PAGESIZE */
7478
7479 #endif /* no HAVE_GETPAGESIZE */
7480
7481 int
7482 main ()
7483 {
7484 char *data, *data2, *data3;
7485 const char *cdata2;
7486 int i, pagesize;
7487 int fd, fd2;
7488
7489 pagesize = getpagesize ();
7490
7491 /* First, make a file with some known garbage in it. */
7492 data = (char *) malloc (pagesize);
7493 if (!data)
7494 return 1;
7495 for (i = 0; i < pagesize; ++i)
7496 *(data + i) = rand ();
7497 umask (0);
7498 fd = creat ("conftest.mmap", 0600);
7499 if (fd < 0)
7500 return 2;
7501 if (write (fd, data, pagesize) != pagesize)
7502 return 3;
7503 close (fd);
7504
7505 /* Next, check that the tail of a page is zero-filled. File must have
7506 non-zero length, otherwise we risk SIGBUS for entire page. */
7507 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7508 if (fd2 < 0)
7509 return 4;
7510 cdata2 = "";
7511 if (write (fd2, cdata2, 1) != 1)
7512 return 5;
7513 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7514 if (data2 == MAP_FAILED)
7515 return 6;
7516 for (i = 0; i < pagesize; ++i)
7517 if (*(data2 + i))
7518 return 7;
7519 close (fd2);
7520 if (munmap (data2, pagesize))
7521 return 8;
7522
7523 /* Next, try to mmap the file at a fixed address which already has
7524 something else allocated at it. If we can, also make sure that
7525 we see the same garbage. */
7526 fd = open ("conftest.mmap", O_RDWR);
7527 if (fd < 0)
7528 return 9;
7529 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7530 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7531 return 10;
7532 for (i = 0; i < pagesize; ++i)
7533 if (*(data + i) != *(data2 + i))
7534 return 11;
7535
7536 /* Finally, make sure that changes to the mapped area do not
7537 percolate back to the file as seen by read(). (This is a bug on
7538 some variants of i386 svr4.0.) */
7539 for (i = 0; i < pagesize; ++i)
7540 *(data2 + i) = *(data2 + i) + 1;
7541 data3 = (char *) malloc (pagesize);
7542 if (!data3)
7543 return 12;
7544 if (read (fd, data3, pagesize) != pagesize)
7545 return 13;
7546 for (i = 0; i < pagesize; ++i)
7547 if (*(data + i) != *(data3 + i))
7548 return 14;
7549 close (fd);
7550 return 0;
7551 }
7552 _ACEOF
7553 if ac_fn_c_try_run "$LINENO"; then :
7554 ac_cv_func_mmap_fixed_mapped=yes
7555 else
7556 ac_cv_func_mmap_fixed_mapped=no
7557 fi
7558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7559 conftest.$ac_objext conftest.beam conftest.$ac_ext
7560 fi
7561
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7564 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7565 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7566
7567 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7568
7569 fi
7570 rm -f conftest.mmap conftest.txt
7571
7572 if test $use_mmap_for_buffers = yes; then
7573 REL_ALLOC=no
7574 fi
7575
7576 LIBS="$libsrc_libs $LIBS"
7577
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7579 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7580 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 ac_check_lib_save_LIBS=$LIBS
7584 LIBS="-ldnet $LIBS"
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587
7588 /* Override any GCC internal prototype to avoid an error.
7589 Use char because int might match the return type of a GCC
7590 builtin and then its argument prototype would still apply. */
7591 #ifdef __cplusplus
7592 extern "C"
7593 #endif
7594 char dnet_ntoa ();
7595 int
7596 main ()
7597 {
7598 return dnet_ntoa ();
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 if ac_fn_c_try_link "$LINENO"; then :
7604 ac_cv_lib_dnet_dnet_ntoa=yes
7605 else
7606 ac_cv_lib_dnet_dnet_ntoa=no
7607 fi
7608 rm -f core conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7613 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7614 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7615 cat >>confdefs.h <<_ACEOF
7616 #define HAVE_LIBDNET 1
7617 _ACEOF
7618
7619 LIBS="-ldnet $LIBS"
7620
7621 fi
7622
7623
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7625 $as_echo_n "checking for main in -lXbsd... " >&6; }
7626 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 ac_check_lib_save_LIBS=$LIBS
7630 LIBS="-lXbsd $LIBS"
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633
7634
7635 int
7636 main ()
7637 {
7638 return main ();
7639 ;
7640 return 0;
7641 }
7642 _ACEOF
7643 if ac_fn_c_try_link "$LINENO"; then :
7644 ac_cv_lib_Xbsd_main=yes
7645 else
7646 ac_cv_lib_Xbsd_main=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 LIBS=$ac_check_lib_save_LIBS
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7653 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7654 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7655 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7656 fi
7657
7658
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7660 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7661 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 ac_check_lib_save_LIBS=$LIBS
7665 LIBS="-lpthreads $LIBS"
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668
7669 /* Override any GCC internal prototype to avoid an error.
7670 Use char because int might match the return type of a GCC
7671 builtin and then its argument prototype would still apply. */
7672 #ifdef __cplusplus
7673 extern "C"
7674 #endif
7675 char cma_open ();
7676 int
7677 main ()
7678 {
7679 return cma_open ();
7680 ;
7681 return 0;
7682 }
7683 _ACEOF
7684 if ac_fn_c_try_link "$LINENO"; then :
7685 ac_cv_lib_pthreads_cma_open=yes
7686 else
7687 ac_cv_lib_pthreads_cma_open=no
7688 fi
7689 rm -f core conftest.err conftest.$ac_objext \
7690 conftest$ac_exeext conftest.$ac_ext
7691 LIBS=$ac_check_lib_save_LIBS
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7694 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7695 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7696 cat >>confdefs.h <<_ACEOF
7697 #define HAVE_LIBPTHREADS 1
7698 _ACEOF
7699
7700 LIBS="-lpthreads $LIBS"
7701
7702 fi
7703
7704
7705
7706 case ${host_os} in
7707 aix*)
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7709 $as_echo_n "checking for -bbigtoc option... " >&6; }
7710 if test "${gdb_cv_bigtoc+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713
7714 case $GCC in
7715 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7716 *) gdb_cv_bigtoc=-bbigtoc ;;
7717 esac
7718
7719 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722
7723 int
7724 main ()
7725 {
7726 int i;
7727 ;
7728 return 0;
7729 }
7730 _ACEOF
7731 if ac_fn_c_try_link "$LINENO"; then :
7732
7733 else
7734 gdb_cv_bigtoc=
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7738
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7741 $as_echo "$gdb_cv_bigtoc" >&6; }
7742 ;;
7743 esac
7744
7745 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7746 # used for the tests that follow. We set them back to REAL_CFLAGS and
7747 # REAL_CPPFLAGS later on.
7748
7749 REAL_CPPFLAGS="$CPPFLAGS"
7750
7751 if test "${HAVE_X11}" = "yes"; then
7752 DEFS="$C_SWITCH_X_SITE $DEFS"
7753 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7754 LIBS="$LIBX $LIBS"
7755 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7756 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7757
7758 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7759 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7760 # but it's more convenient here to set LD_RUN_PATH
7761 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7762 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7763 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7764 export LD_RUN_PATH
7765 fi
7766
7767 if test "${opsys}" = "gnu-linux"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7769 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772
7773 int
7774 main ()
7775 {
7776 XOpenDisplay ("foo");
7777 ;
7778 return 0;
7779 }
7780 _ACEOF
7781 if ac_fn_c_try_link "$LINENO"; then :
7782 xlinux_first_failure=no
7783 else
7784 xlinux_first_failure=yes
7785 fi
7786 rm -f core conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7788 if test "${xlinux_first_failure}" = "yes"; then
7789 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7790 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7791 OLD_CPPFLAGS="$CPPFLAGS"
7792 OLD_LIBS="$LIBS"
7793 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7794 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7795 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7796 LIBS="$LIBS -b i486-linuxaout"
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799
7800 int
7801 main ()
7802 {
7803 XOpenDisplay ("foo");
7804 ;
7805 return 0;
7806 }
7807 _ACEOF
7808 if ac_fn_c_try_link "$LINENO"; then :
7809 xlinux_second_failure=no
7810 else
7811 xlinux_second_failure=yes
7812 fi
7813 rm -f core conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7815 if test "${xlinux_second_failure}" = "yes"; then
7816 # If we get the same failure with -b, there is no use adding -b.
7817 # So take it out. This plays safe.
7818 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7819 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7820 CPPFLAGS="$OLD_CPPFLAGS"
7821 LIBS="$OLD_LIBS"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7826 $as_echo "yes" >&6; }
7827 fi
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832 fi
7833
7834 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7835 # header files included from there.
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7837 $as_echo_n "checking for Xkb... " >&6; }
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840 #include <X11/Xlib.h>
7841 #include <X11/XKBlib.h>
7842 int
7843 main ()
7844 {
7845 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_link "$LINENO"; then :
7851 emacs_xkb=yes
7852 else
7853 emacs_xkb=no
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7858 $as_echo "$emacs_xkb" >&6; }
7859 if test $emacs_xkb = yes; then
7860
7861 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7862
7863 fi
7864
7865 for ac_func in XrmSetDatabase XScreenResourceString \
7866 XScreenNumberOfScreen XSetWMProtocols
7867 do :
7868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7870 eval as_val=\$$as_ac_var
7871 if test "x$as_val" = x""yes; then :
7872 cat >>confdefs.h <<_ACEOF
7873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7874 _ACEOF
7875
7876 fi
7877 done
7878
7879 fi
7880
7881 if test "${window_system}" = "x11"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7883 $as_echo_n "checking X11 version 6... " >&6; }
7884 if test "${emacs_cv_x11_version_6+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7889 #include <X11/Xlib.h>
7890 int
7891 main ()
7892 {
7893 #if XlibSpecificationRelease < 6
7894 fail;
7895 #endif
7896
7897 ;
7898 return 0;
7899 }
7900 _ACEOF
7901 if ac_fn_c_try_link "$LINENO"; then :
7902 emacs_cv_x11_version_6=yes
7903 else
7904 emacs_cv_x11_version_6=no
7905 fi
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 fi
7909
7910 if test $emacs_cv_x11_version_6 = yes; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7912 $as_echo "6 or newer" >&6; }
7913
7914 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7915
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7918 $as_echo "before 6" >&6; }
7919 fi
7920 fi
7921
7922
7923 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7924 HAVE_RSVG=no
7925 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
7926 if test "${with_rsvg}" != "no"; then
7927 RSVG_REQUIRED=2.11.0
7928 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
7929
7930
7931 succeeded=no
7932
7933 # Extract the first word of "pkg-config", so it can be a program name with args.
7934 set dummy pkg-config; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 case $PKG_CONFIG in
7941 [\\/]* | ?:[\\/]*)
7942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7943 ;;
7944 *)
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7961 ;;
7962 esac
7963 fi
7964 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7965 if test -n "$PKG_CONFIG"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7967 $as_echo "$PKG_CONFIG" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974
7975 if test "$PKG_CONFIG" = "no" ; then
7976 :
7977 else
7978 PKG_CONFIG_MIN_VERSION=0.9.0
7979 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
7981 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
7982
7983 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7985 $as_echo "yes" >&6; }
7986 succeeded=yes
7987
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
7989 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
7990 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
7992 $as_echo "$RSVG_CFLAGS" >&6; }
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
7995 $as_echo_n "checking RSVG_LIBS... " >&6; }
7996 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
7998 $as_echo "$RSVG_LIBS" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 RSVG_CFLAGS=""
8003 RSVG_LIBS=""
8004 ## If we have a custom action on failure, don't print errors, but
8005 ## do set a variable so people can do so.
8006 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8007
8008 fi
8009
8010
8011
8012 else
8013 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8014 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8015 fi
8016 fi
8017
8018 if test $succeeded = yes; then
8019 :
8020 else
8021 :
8022 fi
8023
8024
8025
8026
8027 if test ".${RSVG_CFLAGS}" != "."; then
8028 HAVE_RSVG=yes
8029
8030 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8031
8032 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8033 LIBS="$RSVG_LIBS $LIBS"
8034 fi
8035 fi
8036 fi
8037
8038
8039 HAVE_GTK=no
8040 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8041 GLIB_REQUIRED=2.6
8042 GTK_REQUIRED=2.6
8043 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8044
8045
8046 succeeded=no
8047
8048 # Extract the first word of "pkg-config", so it can be a program name with args.
8049 set dummy pkg-config; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 case $PKG_CONFIG in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8058 ;;
8059 *)
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH
8062 do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071 done
8072 done
8073 IFS=$as_save_IFS
8074
8075 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8076 ;;
8077 esac
8078 fi
8079 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8080 if test -n "$PKG_CONFIG"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8082 $as_echo "$PKG_CONFIG" >&6; }
8083 else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087
8088
8089
8090 if test "$PKG_CONFIG" = "no" ; then
8091 pkg_check_gtk=no
8092 else
8093 PKG_CONFIG_MIN_VERSION=0.9.0
8094 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8096 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8097
8098 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8100 $as_echo "yes" >&6; }
8101 succeeded=yes
8102
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8104 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8105 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8107 $as_echo "$GTK_CFLAGS" >&6; }
8108
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8110 $as_echo_n "checking GTK_LIBS... " >&6; }
8111 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8113 $as_echo "$GTK_LIBS" >&6; }
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 GTK_CFLAGS=""
8118 GTK_LIBS=""
8119 ## If we have a custom action on failure, don't print errors, but
8120 ## do set a variable so people can do so.
8121 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8122
8123 fi
8124
8125
8126
8127 else
8128 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8129 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8130 fi
8131 fi
8132
8133 if test $succeeded = yes; then
8134 pkg_check_gtk=yes
8135 else
8136 pkg_check_gtk=no
8137 fi
8138
8139 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8140 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8141 fi
8142 fi
8143
8144
8145 if test x"$pkg_check_gtk" = xyes; then
8146
8147
8148
8149 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8150 CFLAGS="$CFLAGS $GTK_CFLAGS"
8151 LIBS="$GTK_LIBS $LIBS"
8152 GTK_COMPILES=no
8153 for ac_func in gtk_main
8154 do :
8155 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8156 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8157 cat >>confdefs.h <<_ACEOF
8158 #define HAVE_GTK_MAIN 1
8159 _ACEOF
8160 GTK_COMPILES=yes
8161 fi
8162 done
8163
8164 if test "${GTK_COMPILES}" != "yes"; then
8165 if test "$USE_X_TOOLKIT" != "maybe"; then
8166 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8167 fi
8168 else
8169 HAVE_GTK=yes
8170
8171 $as_echo "#define USE_GTK 1" >>confdefs.h
8172
8173 USE_X_TOOLKIT=none
8174 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8175 :
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8178 closing open displays. This is no problem if you just use
8179 one display, but if you use more than one and close one of them
8180 Emacs may crash." >&5
8181 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8182 closing open displays. This is no problem if you just use
8183 one display, but if you use more than one and close one of them
8184 Emacs may crash." >&2;}
8185 sleep 3
8186 fi
8187 fi
8188
8189 fi
8190
8191
8192 if test "${HAVE_GTK}" = "yes"; then
8193
8194 if test "$with_toolkit_scroll_bars" != no; then
8195 with_toolkit_scroll_bars=yes
8196 fi
8197
8198 HAVE_GTK_MULTIDISPLAY=no
8199 for ac_func in gdk_display_open
8200 do :
8201 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8202 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8203 cat >>confdefs.h <<_ACEOF
8204 #define HAVE_GDK_DISPLAY_OPEN 1
8205 _ACEOF
8206 HAVE_GTK_MULTIDISPLAY=yes
8207 fi
8208 done
8209
8210 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8211
8212 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8213
8214 fi
8215
8216 HAVE_GTK_FILE_SELECTION=no
8217 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8218 #include <gtk/gtk.h>
8219 "
8220 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8221 HAVE_GTK_FILE_SELECTION=yes
8222 else
8223 HAVE_GTK_FILE_SELECTION=no
8224 fi
8225
8226 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8227 for ac_func in gtk_file_selection_new
8228 do :
8229 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8230 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8231 cat >>confdefs.h <<_ACEOF
8232 #define HAVE_GTK_FILE_SELECTION_NEW 1
8233 _ACEOF
8234 HAVE_GTK_FILE_SELECTION=yes
8235 else
8236 HAVE_GTK_FILE_SELECTION=no
8237 fi
8238 done
8239
8240 fi
8241
8242 HAVE_GTK_FILE_CHOOSER=no
8243 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8244 #include <gtk/gtk.h>
8245 "
8246 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8247 HAVE_GTK_FILE_CHOOSER=yes
8248 else
8249 HAVE_GTK_FILE_CHOOSER=no
8250 fi
8251
8252 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8253 for ac_func in gtk_file_chooser_dialog_new
8254 do :
8255 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8256 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8257 cat >>confdefs.h <<_ACEOF
8258 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8259 _ACEOF
8260 HAVE_GTK_FILE_CHOOSER=yes
8261 else
8262 HAVE_GTK_FILE_CHOOSER=no
8263 fi
8264 done
8265
8266 fi
8267
8268 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8269 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8270
8271 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8272
8273 fi
8274
8275 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8276 HAVE_GTK_AND_PTHREAD=no
8277 for ac_header in pthread.h
8278 do :
8279 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8280 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8281 cat >>confdefs.h <<_ACEOF
8282 #define HAVE_PTHREAD_H 1
8283 _ACEOF
8284
8285 fi
8286
8287 done
8288
8289 if test "$ac_cv_header_pthread_h"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8291 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8292 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 ac_check_lib_save_LIBS=$LIBS
8296 LIBS="-lpthread $LIBS"
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299
8300 /* Override any GCC internal prototype to avoid an error.
8301 Use char because int might match the return type of a GCC
8302 builtin and then its argument prototype would still apply. */
8303 #ifdef __cplusplus
8304 extern "C"
8305 #endif
8306 char pthread_self ();
8307 int
8308 main ()
8309 {
8310 return pthread_self ();
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 if ac_fn_c_try_link "$LINENO"; then :
8316 ac_cv_lib_pthread_pthread_self=yes
8317 else
8318 ac_cv_lib_pthread_pthread_self=no
8319 fi
8320 rm -f core conftest.err conftest.$ac_objext \
8321 conftest$ac_exeext conftest.$ac_ext
8322 LIBS=$ac_check_lib_save_LIBS
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8325 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8326 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8327 HAVE_GTK_AND_PTHREAD=yes
8328 fi
8329
8330 fi
8331 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8332 case "${canonical}" in
8333 *-hpux*) ;;
8334 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8335 esac
8336
8337 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8338
8339 fi
8340 fi
8341 fi
8342
8343 HAVE_DBUS=no
8344 if test "${with_dbus}" = "yes"; then
8345
8346 succeeded=no
8347
8348 # Extract the first word of "pkg-config", so it can be a program name with args.
8349 set dummy pkg-config; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 case $PKG_CONFIG in
8356 [\\/]* | ?:[\\/]*)
8357 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8358 ;;
8359 *)
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8370 fi
8371 done
8372 done
8373 IFS=$as_save_IFS
8374
8375 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8376 ;;
8377 esac
8378 fi
8379 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8380 if test -n "$PKG_CONFIG"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8382 $as_echo "$PKG_CONFIG" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8386 fi
8387
8388
8389
8390 if test "$PKG_CONFIG" = "no" ; then
8391 HAVE_DBUS=no
8392 else
8393 PKG_CONFIG_MIN_VERSION=0.9.0
8394 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8396 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8397
8398 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8400 $as_echo "yes" >&6; }
8401 succeeded=yes
8402
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8404 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8405 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8407 $as_echo "$DBUS_CFLAGS" >&6; }
8408
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8410 $as_echo_n "checking DBUS_LIBS... " >&6; }
8411 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8413 $as_echo "$DBUS_LIBS" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 DBUS_CFLAGS=""
8418 DBUS_LIBS=""
8419 ## If we have a custom action on failure, don't print errors, but
8420 ## do set a variable so people can do so.
8421 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8422
8423 fi
8424
8425
8426
8427 else
8428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8430 fi
8431 fi
8432
8433 if test $succeeded = yes; then
8434 HAVE_DBUS=yes
8435 else
8436 HAVE_DBUS=no
8437 fi
8438
8439 if test "$HAVE_DBUS" = yes; then
8440 LIBS="$LIBS $DBUS_LIBS"
8441
8442 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8443
8444 for ac_func in dbus_watch_get_unix_fd
8445 do :
8446 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8447 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8448 cat >>confdefs.h <<_ACEOF
8449 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8450 _ACEOF
8451
8452 fi
8453 done
8454
8455 fi
8456 fi
8457
8458 HAVE_GCONF=no
8459 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8460
8461 succeeded=no
8462
8463 # Extract the first word of "pkg-config", so it can be a program name with args.
8464 set dummy pkg-config; ac_word=$2
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466 $as_echo_n "checking for $ac_word... " >&6; }
8467 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 case $PKG_CONFIG in
8471 [\\/]* | ?:[\\/]*)
8472 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8473 ;;
8474 *)
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8485 fi
8486 done
8487 done
8488 IFS=$as_save_IFS
8489
8490 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8491 ;;
8492 esac
8493 fi
8494 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8495 if test -n "$PKG_CONFIG"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8497 $as_echo "$PKG_CONFIG" >&6; }
8498 else
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8501 fi
8502
8503
8504
8505 if test "$PKG_CONFIG" = "no" ; then
8506 HAVE_GCONF=no
8507 else
8508 PKG_CONFIG_MIN_VERSION=0.9.0
8509 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8511 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8512
8513 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8515 $as_echo "yes" >&6; }
8516 succeeded=yes
8517
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8519 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8520 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8522 $as_echo "$GCONF_CFLAGS" >&6; }
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8525 $as_echo_n "checking GCONF_LIBS... " >&6; }
8526 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8528 $as_echo "$GCONF_LIBS" >&6; }
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8532 GCONF_CFLAGS=""
8533 GCONF_LIBS=""
8534 ## If we have a custom action on failure, don't print errors, but
8535 ## do set a variable so people can do so.
8536 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8537
8538 fi
8539
8540
8541
8542 else
8543 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8544 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8545 fi
8546 fi
8547
8548 if test $succeeded = yes; then
8549 HAVE_GCONF=yes
8550 else
8551 HAVE_GCONF=no
8552 fi
8553
8554 if test "$HAVE_GCONF" = yes; then
8555
8556 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8557
8558 fi
8559 fi
8560
8561 HAVE_XAW3D=no
8562 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8563 if test "$with_xaw3d" != no; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8565 $as_echo_n "checking for xaw3d... " >&6; }
8566 if test "${emacs_cv_xaw3d+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571
8572 #include <X11/Intrinsic.h>
8573 #include <X11/Xaw3d/Simple.h>
8574 int
8575 main ()
8576 {
8577
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 emacs_cv_xaw3d=yes
8584 else
8585 emacs_cv_xaw3d=no
8586 fi
8587 rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589 fi
8590
8591 else
8592 emacs_cv_xaw3d=no
8593 fi
8594 if test $emacs_cv_xaw3d = yes; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8596 $as_echo "yes; using Lucid toolkit" >&6; }
8597 USE_X_TOOLKIT=LUCID
8598 HAVE_XAW3D=yes
8599
8600 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8601
8602 else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8606 $as_echo_n "checking for libXaw... " >&6; }
8607 if test "${emacs_cv_xaw+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612
8613 #include <X11/Intrinsic.h>
8614 #include <X11/Xaw/Simple.h>
8615 int
8616 main ()
8617 {
8618
8619 ;
8620 return 0;
8621 }
8622 _ACEOF
8623 if ac_fn_c_try_link "$LINENO"; then :
8624 emacs_cv_xaw=yes
8625 else
8626 emacs_cv_xaw=no
8627 fi
8628 rm -f core conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8630 fi
8631
8632 if test $emacs_cv_xaw = yes; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8634 $as_echo "yes; using Lucid toolkit" >&6; }
8635 USE_X_TOOLKIT=LUCID
8636 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8637 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8638 else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8640 $as_echo "no; do not use toolkit by default" >&6; }
8641 USE_X_TOOLKIT=none
8642 fi
8643 fi
8644 fi
8645
8646 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8647
8648 if test "${USE_X_TOOLKIT}" != "none"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8650 $as_echo_n "checking X11 toolkit version... " >&6; }
8651 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 #include <X11/Intrinsic.h>
8657 int
8658 main ()
8659 {
8660 #if XtSpecificationRelease < 6
8661 fail;
8662 #endif
8663
8664 ;
8665 return 0;
8666 }
8667 _ACEOF
8668 if ac_fn_c_try_link "$LINENO"; then :
8669 emacs_cv_x11_toolkit_version_6=yes
8670 else
8671 emacs_cv_x11_toolkit_version_6=no
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 fi
8676
8677 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8678 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8680 $as_echo "6 or newer" >&6; }
8681
8682 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8683
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8686 $as_echo "before 6" >&6; }
8687 fi
8688
8689 OLDLIBS="$LIBS"
8690 if test x$HAVE_X11XTR6 = xyes; then
8691 LIBS="-lXt -lSM -lICE $LIBS"
8692 else
8693 LIBS="-lXt $LIBS"
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8696 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8697 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 ac_check_lib_save_LIBS=$LIBS
8701 LIBS="-lXmu $LIBS"
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704
8705 /* Override any GCC internal prototype to avoid an error.
8706 Use char because int might match the return type of a GCC
8707 builtin and then its argument prototype would still apply. */
8708 #ifdef __cplusplus
8709 extern "C"
8710 #endif
8711 char XmuConvertStandardSelection ();
8712 int
8713 main ()
8714 {
8715 return XmuConvertStandardSelection ();
8716 ;
8717 return 0;
8718 }
8719 _ACEOF
8720 if ac_fn_c_try_link "$LINENO"; then :
8721 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8722 else
8723 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 LIBS=$ac_check_lib_save_LIBS
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8730 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8731 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_LIBXMU 1
8734 _ACEOF
8735
8736 LIBS="-lXmu $LIBS"
8737
8738 fi
8739
8740 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8741 fi
8742
8743 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8744 if test "${HAVE_X11}" = "yes"; then
8745 if test "${USE_X_TOOLKIT}" != "none"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8747 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8748 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 ac_check_lib_save_LIBS=$LIBS
8752 LIBS="-lXext $LIBS"
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755
8756 /* Override any GCC internal prototype to avoid an error.
8757 Use char because int might match the return type of a GCC
8758 builtin and then its argument prototype would still apply. */
8759 #ifdef __cplusplus
8760 extern "C"
8761 #endif
8762 char XShapeQueryExtension ();
8763 int
8764 main ()
8765 {
8766 return XShapeQueryExtension ();
8767 ;
8768 return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772 ac_cv_lib_Xext_XShapeQueryExtension=yes
8773 else
8774 ac_cv_lib_Xext_XShapeQueryExtension=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 LIBS=$ac_check_lib_save_LIBS
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8781 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8782 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8783 cat >>confdefs.h <<_ACEOF
8784 #define HAVE_LIBXEXT 1
8785 _ACEOF
8786
8787 LIBS="-lXext $LIBS"
8788
8789 fi
8790
8791 fi
8792 fi
8793
8794 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8796 $as_echo_n "checking for Motif version 2.1... " >&6; }
8797 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 #include <Xm/Xm.h>
8803 int
8804 main ()
8805 {
8806 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8807 int x = 5;
8808 #else
8809 Motif version prior to 2.1.
8810 #endif
8811 ;
8812 return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_compile "$LINENO"; then :
8816 emacs_cv_motif_version_2_1=yes
8817 else
8818 emacs_cv_motif_version_2_1=no
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 fi
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8823 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8824 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8825 if test $emacs_cv_motif_version_2_1 = yes; then
8826 HAVE_LIBXP=no
8827
8828 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8829
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8831 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8832 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 ac_check_lib_save_LIBS=$LIBS
8836 LIBS="-lXp $LIBS"
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839
8840 /* Override any GCC internal prototype to avoid an error.
8841 Use char because int might match the return type of a GCC
8842 builtin and then its argument prototype would still apply. */
8843 #ifdef __cplusplus
8844 extern "C"
8845 #endif
8846 char XpCreateContext ();
8847 int
8848 main ()
8849 {
8850 return XpCreateContext ();
8851 ;
8852 return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_c_try_link "$LINENO"; then :
8856 ac_cv_lib_Xp_XpCreateContext=yes
8857 else
8858 ac_cv_lib_Xp_XpCreateContext=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext conftest.$ac_ext
8862 LIBS=$ac_check_lib_save_LIBS
8863 fi
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8865 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8866 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
8867 HAVE_LIBXP=yes
8868 fi
8869
8870 if test ${HAVE_LIBXP} = yes; then
8871
8872 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8873
8874 fi
8875 else
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8877 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8878 if test "${emacs_cv_lesstif+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 # We put this in CFLAGS temporarily to precede other -I options
8882 # that might be in CFLAGS temporarily.
8883 # We put this in CPPFLAGS where it precedes the other -I options.
8884 OLD_CPPFLAGS=$CPPFLAGS
8885 OLD_CFLAGS=$CFLAGS
8886 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8887 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8890 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8891 int
8892 main ()
8893 {
8894 int x = 5;
8895 ;
8896 return 0;
8897 }
8898 _ACEOF
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 emacs_cv_lesstif=yes
8901 else
8902 emacs_cv_lesstif=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8907 $as_echo "$emacs_cv_lesstif" >&6; }
8908 if test $emacs_cv_lesstif = yes; then
8909 # Make sure this -I option remains in CPPFLAGS after it is set
8910 # back to REAL_CPPFLAGS.
8911 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8912 # have those other -I options anyway. Ultimately, having this
8913 # directory ultimately in CPPFLAGS will be enough.
8914 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8915 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8916 else
8917 CFLAGS=$OLD_CFLAGS
8918 CPPFLAGS=$OLD_CPPFLAGS
8919 fi
8920 fi
8921 fi
8922
8923
8924 USE_TOOLKIT_SCROLL_BARS=no
8925 if test "${with_toolkit_scroll_bars}" != "no"; then
8926 if test "${USE_X_TOOLKIT}" != "none"; then
8927 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8928 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8929
8930 HAVE_XAW3D=no
8931 USE_TOOLKIT_SCROLL_BARS=yes
8932 elif test "${HAVE_XAW3D}" = "yes"; then
8933 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8934
8935 USE_TOOLKIT_SCROLL_BARS=yes
8936 fi
8937 elif test "${HAVE_GTK}" = "yes"; then
8938 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8939
8940 USE_TOOLKIT_SCROLL_BARS=yes
8941 elif test "${HAVE_NS}" = "yes"; then
8942 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8943
8944 USE_TOOLKIT_SCROLL_BARS=yes
8945 fi
8946 fi
8947
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950
8951 #include <X11/Xlib.h>
8952 #include <X11/Xresource.h>
8953 int
8954 main ()
8955 {
8956 XIMProc callback;
8957 ;
8958 return 0;
8959 }
8960 _ACEOF
8961 if ac_fn_c_try_compile "$LINENO"; then :
8962 HAVE_XIM=yes
8963
8964 $as_echo "#define HAVE_XIM 1" >>confdefs.h
8965
8966 else
8967 HAVE_XIM=no
8968 fi
8969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970
8971
8972 if test "${with_xim}" != "no"; then
8973
8974 $as_echo "#define USE_XIM 1" >>confdefs.h
8975
8976 fi
8977
8978
8979 if test "${HAVE_XIM}" != "no"; then
8980 late_CFLAGS=$CFLAGS
8981 if test "$GCC" = yes; then
8982 CFLAGS="$CFLAGS --pedantic-errors"
8983 fi
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986
8987 #include <X11/Xlib.h>
8988 #include <X11/Xresource.h>
8989 int
8990 main ()
8991 {
8992 Display *display;
8993 XrmDatabase db;
8994 char *res_name;
8995 char *res_class;
8996 XIMProc callback;
8997 XPointer *client_data;
8998 #ifndef __GNUC__
8999 /* If we're not using GCC, it's probably not XFree86, and this is
9000 probably right, but we can't use something like --pedantic-errors. */
9001 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9002 char*, XIMProc, XPointer*);
9003 #endif
9004 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9005 client_data);
9006 ;
9007 return 0;
9008 }
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"; then :
9011 emacs_cv_arg6_star=yes
9012 fi
9013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 if test "$emacs_cv_arg6_star" = yes; then
9015 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9016
9017 else
9018 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9019
9020 fi
9021 CFLAGS=$late_CFLAGS
9022 fi
9023
9024 ### Start of font-backend (under any platform) section.
9025 # (nothing here yet -- this is a placeholder)
9026 ### End of font-backend (under any platform) section.
9027
9028 ### Start of font-backend (under X11) section.
9029 if test "${HAVE_X11}" = "yes"; then
9030
9031 succeeded=no
9032
9033 # Extract the first word of "pkg-config", so it can be a program name with args.
9034 set dummy pkg-config; ac_word=$2
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036 $as_echo_n "checking for $ac_word... " >&6; }
9037 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 case $PKG_CONFIG in
9041 [\\/]* | ?:[\\/]*)
9042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9043 ;;
9044 *)
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9047 do
9048 IFS=$as_save_IFS
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9052 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 break 2
9055 fi
9056 done
9057 done
9058 IFS=$as_save_IFS
9059
9060 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9061 ;;
9062 esac
9063 fi
9064 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9065 if test -n "$PKG_CONFIG"; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9067 $as_echo "$PKG_CONFIG" >&6; }
9068 else
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9071 fi
9072
9073
9074
9075 if test "$PKG_CONFIG" = "no" ; then
9076 HAVE_FC=no
9077 else
9078 PKG_CONFIG_MIN_VERSION=0.9.0
9079 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9081 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9082
9083 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9085 $as_echo "yes" >&6; }
9086 succeeded=yes
9087
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9089 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9090 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9092 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9093
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9095 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9096 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9098 $as_echo "$FONTCONFIG_LIBS" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9102 FONTCONFIG_CFLAGS=""
9103 FONTCONFIG_LIBS=""
9104 ## If we have a custom action on failure, don't print errors, but
9105 ## do set a variable so people can do so.
9106 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9107
9108 fi
9109
9110
9111
9112 else
9113 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9114 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9115 fi
9116 fi
9117
9118 if test $succeeded = yes; then
9119 HAVE_FC=yes
9120 else
9121 HAVE_FC=no
9122 fi
9123
9124
9125 ## Use -lXft if available, unless `--with-xft=no'.
9126 HAVE_XFT=maybe
9127 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9128 with_xft="no";
9129 fi
9130 if test "x${with_xft}" != "xno"; then
9131
9132
9133 succeeded=no
9134
9135 # Extract the first word of "pkg-config", so it can be a program name with args.
9136 set dummy pkg-config; ac_word=$2
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138 $as_echo_n "checking for $ac_word... " >&6; }
9139 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 case $PKG_CONFIG in
9143 [\\/]* | ?:[\\/]*)
9144 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9145 ;;
9146 *)
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in $PATH
9149 do
9150 IFS=$as_save_IFS
9151 test -z "$as_dir" && as_dir=.
9152 for ac_exec_ext in '' $ac_executable_extensions; do
9153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9156 break 2
9157 fi
9158 done
9159 done
9160 IFS=$as_save_IFS
9161
9162 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9163 ;;
9164 esac
9165 fi
9166 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9167 if test -n "$PKG_CONFIG"; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9169 $as_echo "$PKG_CONFIG" >&6; }
9170 else
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9173 fi
9174
9175
9176
9177 if test "$PKG_CONFIG" = "no" ; then
9178 HAVE_XFT=no
9179 else
9180 PKG_CONFIG_MIN_VERSION=0.9.0
9181 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9183 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9184
9185 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9187 $as_echo "yes" >&6; }
9188 succeeded=yes
9189
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9191 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9192 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9194 $as_echo "$XFT_CFLAGS" >&6; }
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9197 $as_echo_n "checking XFT_LIBS... " >&6; }
9198 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9200 $as_echo "$XFT_LIBS" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9204 XFT_CFLAGS=""
9205 XFT_LIBS=""
9206 ## If we have a custom action on failure, don't print errors, but
9207 ## do set a variable so people can do so.
9208 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9209
9210 fi
9211
9212
9213
9214 else
9215 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9216 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9217 fi
9218 fi
9219
9220 if test $succeeded = yes; then
9221 :
9222 else
9223 HAVE_XFT=no
9224 fi
9225
9226 ## Because xftfont.c uses XRenderQueryExtension, we also
9227 ## need to link to -lXrender.
9228 HAVE_XRENDER=no
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9230 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9231 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 ac_check_lib_save_LIBS=$LIBS
9235 LIBS="-lXrender $LIBS"
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238
9239 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
9242 #ifdef __cplusplus
9243 extern "C"
9244 #endif
9245 char XRenderQueryExtension ();
9246 int
9247 main ()
9248 {
9249 return XRenderQueryExtension ();
9250 ;
9251 return 0;
9252 }
9253 _ACEOF
9254 if ac_fn_c_try_link "$LINENO"; then :
9255 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9256 else
9257 ac_cv_lib_Xrender_XRenderQueryExtension=no
9258 fi
9259 rm -f core conftest.err conftest.$ac_objext \
9260 conftest$ac_exeext conftest.$ac_ext
9261 LIBS=$ac_check_lib_save_LIBS
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9264 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9265 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9266 HAVE_XRENDER=yes
9267 fi
9268
9269 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9270 OLD_CPPFLAGS="$CPPFLAGS"
9271 OLD_CFLAGS="$CFLAGS"
9272 OLD_LIBS="$LIBS"
9273 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9274 CFLAGS="$CFLAGS $XFT_CFLAGS"
9275 XFT_LIBS="-lXrender $XFT_LIBS"
9276 LIBS="$XFT_LIBS $LIBS"
9277 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9278 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9280 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9281 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9282 $as_echo_n "(cached) " >&6
9283 else
9284 ac_check_lib_save_LIBS=$LIBS
9285 LIBS="-lXft $XFT_LIBS $LIBS"
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288
9289 /* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 char XftFontOpen ();
9296 int
9297 main ()
9298 {
9299 return XftFontOpen ();
9300 ;
9301 return 0;
9302 }
9303 _ACEOF
9304 if ac_fn_c_try_link "$LINENO"; then :
9305 ac_cv_lib_Xft_XftFontOpen=yes
9306 else
9307 ac_cv_lib_Xft_XftFontOpen=no
9308 fi
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9314 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9315 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9316 HAVE_XFT=yes
9317 fi
9318
9319 fi
9320
9321
9322
9323 if test "${HAVE_XFT}" = "yes"; then
9324
9325 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9326
9327
9328 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9329 else
9330 CPPFLAGS="$OLD_CPPFLAGS"
9331 CFLAGS="$OLD_CFLAGS"
9332 LIBS="$OLD_LIBS"
9333 fi # "${HAVE_XFT}" = "yes"
9334 fi # "$HAVE_XFT" != no
9335 fi # "x${with_xft}" != "xno"
9336
9337 if test "$HAVE_XFT" != "yes"; then
9338 HAVE_XFT=no
9339 fi
9340
9341
9342 HAVE_FREETYPE=no
9343 ## We used to allow building with FreeType and without Xft.
9344 ## However, the ftx font backend driver is not in good shape.
9345 if test "${HAVE_XFT}" = "yes"; then
9346 HAVE_FREETYPE=yes
9347 FONTCONFIG_CFLAGS=
9348 FONTCONFIG_LIBS=
9349 fi
9350
9351 HAVE_LIBOTF=no
9352 if test "${HAVE_FREETYPE}" = "yes"; then
9353
9354 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9355
9356 if test "${with_libotf}" != "no"; then
9357
9358 succeeded=no
9359
9360 # Extract the first word of "pkg-config", so it can be a program name with args.
9361 set dummy pkg-config; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 case $PKG_CONFIG in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9370 ;;
9371 *)
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9374 do
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9382 fi
9383 done
9384 done
9385 IFS=$as_save_IFS
9386
9387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9388 ;;
9389 esac
9390 fi
9391 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9392 if test -n "$PKG_CONFIG"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9394 $as_echo "$PKG_CONFIG" >&6; }
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9398 fi
9399
9400
9401
9402 if test "$PKG_CONFIG" = "no" ; then
9403 HAVE_LIBOTF=no
9404 else
9405 PKG_CONFIG_MIN_VERSION=0.9.0
9406 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9408 $as_echo_n "checking for libotf... " >&6; }
9409
9410 if $PKG_CONFIG --exists "libotf" 2>&5; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9412 $as_echo "yes" >&6; }
9413 succeeded=yes
9414
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9416 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9417 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9419 $as_echo "$LIBOTF_CFLAGS" >&6; }
9420
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9422 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9423 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9425 $as_echo "$LIBOTF_LIBS" >&6; }
9426 else
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9429 LIBOTF_CFLAGS=""
9430 LIBOTF_LIBS=""
9431 ## If we have a custom action on failure, don't print errors, but
9432 ## do set a variable so people can do so.
9433 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9434
9435 fi
9436
9437
9438
9439 else
9440 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9441 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9442 fi
9443 fi
9444
9445 if test $succeeded = yes; then
9446 HAVE_LIBOTF=yes
9447 else
9448 HAVE_LIBOTF=no
9449 fi
9450
9451 if test "$HAVE_LIBOTF" = "yes"; then
9452
9453 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9454
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9456 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9457 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 ac_check_lib_save_LIBS=$LIBS
9461 LIBS="-lotf $LIBS"
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 char OTF_get_variation_glyphs ();
9472 int
9473 main ()
9474 {
9475 return OTF_get_variation_glyphs ();
9476 ;
9477 return 0;
9478 }
9479 _ACEOF
9480 if ac_fn_c_try_link "$LINENO"; then :
9481 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9482 else
9483 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9484 fi
9485 rm -f core conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9490 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9491 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9492 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9493 else
9494 HAVE_OTF_GET_VARIATION_GLYPHS=no
9495 fi
9496
9497 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9498
9499 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9500
9501 fi
9502 fi
9503 fi
9504 fi
9505
9506 HAVE_M17N_FLT=no
9507 if test "${HAVE_LIBOTF}" = yes; then
9508 if test "${with_m17n_flt}" != "no"; then
9509
9510 succeeded=no
9511
9512 # Extract the first word of "pkg-config", so it can be a program name with args.
9513 set dummy pkg-config; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 case $PKG_CONFIG in
9520 [\\/]* | ?:[\\/]*)
9521 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9522 ;;
9523 *)
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525 for as_dir in $PATH
9526 do
9527 IFS=$as_save_IFS
9528 test -z "$as_dir" && as_dir=.
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9531 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9533 break 2
9534 fi
9535 done
9536 done
9537 IFS=$as_save_IFS
9538
9539 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9540 ;;
9541 esac
9542 fi
9543 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9544 if test -n "$PKG_CONFIG"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9546 $as_echo "$PKG_CONFIG" >&6; }
9547 else
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9550 fi
9551
9552
9553
9554 if test "$PKG_CONFIG" = "no" ; then
9555 HAVE_M17N_FLT=no
9556 else
9557 PKG_CONFIG_MIN_VERSION=0.9.0
9558 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9560 $as_echo_n "checking for m17n-flt... " >&6; }
9561
9562 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9564 $as_echo "yes" >&6; }
9565 succeeded=yes
9566
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9568 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9569 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9571 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9572
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9574 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9575 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9577 $as_echo "$M17N_FLT_LIBS" >&6; }
9578 else
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9581 M17N_FLT_CFLAGS=""
9582 M17N_FLT_LIBS=""
9583 ## If we have a custom action on failure, don't print errors, but
9584 ## do set a variable so people can do so.
9585 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9586
9587 fi
9588
9589
9590
9591 else
9592 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9593 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9594 fi
9595 fi
9596
9597 if test $succeeded = yes; then
9598 HAVE_M17N_FLT=yes
9599 else
9600 HAVE_M17N_FLT=no
9601 fi
9602
9603 if test "$HAVE_M17N_FLT" = "yes"; then
9604
9605 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9606
9607 fi
9608 fi
9609 fi
9610 else
9611 HAVE_XFT=no
9612 HAVE_FREETYPE=no
9613 HAVE_LIBOTF=no
9614 HAVE_M17N_FLT=no
9615 fi
9616 ### End of font-backend (under X11) section.
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627 ### Use -lXpm if available, unless `--with-xpm=no'.
9628 HAVE_XPM=no
9629 if test "${HAVE_X11}" = "yes"; then
9630 if test "${with_xpm}" != "no"; then
9631 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9632 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9634 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9635 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 ac_check_lib_save_LIBS=$LIBS
9639 LIBS="-lXpm -lX11 $LIBS"
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char XpmReadFileToPixmap ();
9650 int
9651 main ()
9652 {
9653 return XpmReadFileToPixmap ();
9654 ;
9655 return 0;
9656 }
9657 _ACEOF
9658 if ac_fn_c_try_link "$LINENO"; then :
9659 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9660 else
9661 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665 LIBS=$ac_check_lib_save_LIBS
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9668 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9669 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
9670 HAVE_XPM=yes
9671 fi
9672
9673 fi
9674
9675
9676 if test "${HAVE_XPM}" = "yes"; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9678 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681 #include "X11/xpm.h"
9682 #ifndef XpmReturnAllocPixels
9683 no_return_alloc_pixels
9684 #endif
9685
9686 _ACEOF
9687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9688 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
9689 HAVE_XPM=no
9690 else
9691 HAVE_XPM=yes
9692 fi
9693 rm -f conftest*
9694
9695
9696 if test "${HAVE_XPM}" = "yes"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 $as_echo "yes" >&6; }
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9702 fi
9703 fi
9704 fi
9705
9706 if test "${HAVE_XPM}" = "yes"; then
9707
9708 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9709
9710 fi
9711 fi
9712
9713 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9714 HAVE_JPEG=no
9715 if test "${HAVE_X11}" = "yes"; then
9716 if test "${with_jpeg}" != "no"; then
9717 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9718 if test "x$ac_cv_header_jerror_h" = x""yes; then :
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9720 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9721 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 ac_check_lib_save_LIBS=$LIBS
9725 LIBS="-ljpeg $LIBS"
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728
9729 /* Override any GCC internal prototype to avoid an error.
9730 Use char because int might match the return type of a GCC
9731 builtin and then its argument prototype would still apply. */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 char jpeg_destroy_compress ();
9736 int
9737 main ()
9738 {
9739 return jpeg_destroy_compress ();
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 if ac_fn_c_try_link "$LINENO"; then :
9745 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9746 else
9747 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 LIBS=$ac_check_lib_save_LIBS
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9754 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9755 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
9756 HAVE_JPEG=yes
9757 fi
9758
9759 fi
9760
9761
9762 fi
9763
9764 if test "${HAVE_JPEG}" = "yes"; then
9765 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9766
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include <jpeglib.h>
9770 version=JPEG_LIB_VERSION
9771
9772 _ACEOF
9773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9774 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
9775 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9776
9777 else
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9779 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9780 HAVE_JPEG=no
9781 fi
9782 rm -f conftest*
9783
9784 fi
9785 fi
9786
9787 ### Use -lpng if available, unless `--with-png=no'.
9788 HAVE_PNG=no
9789 if test "${HAVE_X11}" = "yes"; then
9790 if test "${with_png}" != "no"; then
9791 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9792 # in /usr/include/libpng.
9793 for ac_header in png.h libpng/png.h
9794 do :
9795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9797 eval as_val=\$$as_ac_Header
9798 if test "x$as_val" = x""yes; then :
9799 cat >>confdefs.h <<_ACEOF
9800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9801 _ACEOF
9802
9803 fi
9804
9805 done
9806
9807 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9809 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9810 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9812 else
9813 ac_check_lib_save_LIBS=$LIBS
9814 LIBS="-lpng -lz -lm $LIBS"
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817
9818 /* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 char png_get_channels ();
9825 int
9826 main ()
9827 {
9828 return png_get_channels ();
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 if ac_fn_c_try_link "$LINENO"; then :
9834 ac_cv_lib_png_png_get_channels=yes
9835 else
9836 ac_cv_lib_png_png_get_channels=no
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9841 fi
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9843 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9844 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
9845 HAVE_PNG=yes
9846 fi
9847
9848 fi
9849 fi
9850
9851 if test "${HAVE_PNG}" = "yes"; then
9852
9853 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9854
9855 fi
9856 fi
9857
9858 ### Use -ltiff if available, unless `--with-tiff=no'.
9859 HAVE_TIFF=no
9860 if test "${HAVE_X11}" = "yes"; then
9861 if test "${with_tiff}" != "no"; then
9862 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9863 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
9864 tifflibs="-lz -lm"
9865 # At least one tiff package requires the jpeg library.
9866 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9868 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9869 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-ltiff $tifflibs $LIBS"
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876
9877 /* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 char TIFFGetVersion ();
9884 int
9885 main ()
9886 {
9887 return TIFFGetVersion ();
9888 ;
9889 return 0;
9890 }
9891 _ACEOF
9892 if ac_fn_c_try_link "$LINENO"; then :
9893 ac_cv_lib_tiff_TIFFGetVersion=yes
9894 else
9895 ac_cv_lib_tiff_TIFFGetVersion=no
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9900 fi
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9902 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9903 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
9904 HAVE_TIFF=yes
9905 fi
9906
9907 fi
9908
9909
9910 fi
9911
9912 if test "${HAVE_TIFF}" = "yes"; then
9913
9914 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
9915
9916 fi
9917 fi
9918
9919 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
9920 HAVE_GIF=no
9921 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9922 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
9923 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
9924 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9925 # Earlier versions can crash Emacs.
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
9927 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9928 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 ac_check_lib_save_LIBS=$LIBS
9932 LIBS="-lgif $LIBS"
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9935
9936 /* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
9939 #ifdef __cplusplus
9940 extern "C"
9941 #endif
9942 char EGifPutExtensionLast ();
9943 int
9944 main ()
9945 {
9946 return EGifPutExtensionLast ();
9947 ;
9948 return 0;
9949 }
9950 _ACEOF
9951 if ac_fn_c_try_link "$LINENO"; then :
9952 ac_cv_lib_gif_EGifPutExtensionLast=yes
9953 else
9954 ac_cv_lib_gif_EGifPutExtensionLast=no
9955 fi
9956 rm -f core conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LIBS=$ac_check_lib_save_LIBS
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
9961 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
9962 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
9963 HAVE_GIF=yes
9964 else
9965 try_libungif=yes
9966 fi
9967
9968 fi
9969
9970
9971
9972 if test "$HAVE_GIF" = yes; then
9973 ac_gif_lib_name="-lgif"
9974 fi
9975
9976 # If gif_lib.h but no libgif, try libungif.
9977 if test x"$try_libungif" = xyes; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
9979 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
9980 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 ac_check_lib_save_LIBS=$LIBS
9984 LIBS="-lungif $LIBS"
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9987
9988 /* Override any GCC internal prototype to avoid an error.
9989 Use char because int might match the return type of a GCC
9990 builtin and then its argument prototype would still apply. */
9991 #ifdef __cplusplus
9992 extern "C"
9993 #endif
9994 char EGifPutExtensionLast ();
9995 int
9996 main ()
9997 {
9998 return EGifPutExtensionLast ();
9999 ;
10000 return 0;
10001 }
10002 _ACEOF
10003 if ac_fn_c_try_link "$LINENO"; then :
10004 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10005 else
10006 ac_cv_lib_ungif_EGifPutExtensionLast=no
10007 fi
10008 rm -f core conftest.err conftest.$ac_objext \
10009 conftest$ac_exeext conftest.$ac_ext
10010 LIBS=$ac_check_lib_save_LIBS
10011 fi
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10013 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10014 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10015 HAVE_GIF=yes
10016 fi
10017
10018
10019 if test "$HAVE_GIF" = yes; then
10020
10021 $as_echo "#define LIBGIF -lungif" >>confdefs.h
10022
10023 ac_gif_lib_name="-lungif"
10024 fi
10025 fi
10026
10027 if test "${HAVE_GIF}" = "yes"; then
10028
10029 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10030
10031 fi
10032 fi
10033
10034 if test "${HAVE_X11}" = "yes"; then
10035 MISSING=""
10036 WITH_NO=""
10037 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10038 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10039 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10040 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10041 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10042 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10043 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10044 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10045 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10046 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10047
10048 if test "X${MISSING}" != X; then
10049 as_fn_error "The following required libraries were not found:
10050 $MISSING
10051 Maybe some development libraries/packages are missing?
10052 If you don't want to link with them give
10053 $WITH_NO
10054 as options to configure" "$LINENO" 5
10055 fi
10056 fi
10057
10058 ### Use -lgpm if available, unless `--with-gpm=no'.
10059 HAVE_GPM=no
10060 if test "${with_gpm}" != "no"; then
10061 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10062 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10064 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10065 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-lgpm $LIBS"
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072
10073 /* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 char Gpm_Open ();
10080 int
10081 main ()
10082 {
10083 return Gpm_Open ();
10084 ;
10085 return 0;
10086 }
10087 _ACEOF
10088 if ac_fn_c_try_link "$LINENO"; then :
10089 ac_cv_lib_gpm_Gpm_Open=yes
10090 else
10091 ac_cv_lib_gpm_Gpm_Open=no
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10096 fi
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10098 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10099 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10100 HAVE_GPM=yes
10101 fi
10102
10103 fi
10104
10105
10106 fi
10107
10108 if test "${HAVE_GPM}" = "yes"; then
10109
10110 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10111
10112 fi
10113
10114 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10115 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10116
10117 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10118
10119 fi
10120
10121
10122
10123 ### Use NeXTstep API to implement GUI.
10124 if test "${HAVE_NS}" = "yes"; then
10125
10126 $as_echo "#define HAVE_NS 1" >>confdefs.h
10127
10128 if test "${NS_IMPL_COCOA}" = "yes"; then
10129
10130 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10131
10132 GNU_OBJC_CFLAGS=
10133 fi
10134 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10135
10136 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10137
10138 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10139 fi
10140 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10141
10142 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10143
10144 fi
10145 # We also have mouse menus.
10146 HAVE_MENUS=yes
10147 OTHER_FILES=ns-app
10148 fi
10149
10150
10151 ### Use session management (-lSM -lICE) if available
10152 HAVE_X_SM=no
10153 if test "${HAVE_X11}" = "yes"; then
10154 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10155 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10157 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10158 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 ac_check_lib_save_LIBS=$LIBS
10162 LIBS="-lSM -lICE $LIBS"
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165
10166 /* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 char SmcOpenConnection ();
10173 int
10174 main ()
10175 {
10176 return SmcOpenConnection ();
10177 ;
10178 return 0;
10179 }
10180 _ACEOF
10181 if ac_fn_c_try_link "$LINENO"; then :
10182 ac_cv_lib_SM_SmcOpenConnection=yes
10183 else
10184 ac_cv_lib_SM_SmcOpenConnection=no
10185 fi
10186 rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10189 fi
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10191 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10192 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10193 HAVE_X_SM=yes
10194 fi
10195
10196 fi
10197
10198
10199
10200 if test "${HAVE_X_SM}" = "yes"; then
10201
10202 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10203
10204 case "$LIBS" in
10205 *-lSM*) ;;
10206 *) LIBS="-lSM -lICE $LIBS" ;;
10207 esac
10208 fi
10209 fi
10210
10211 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10213 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10214 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 #include <netdb.h>
10220 int
10221 main ()
10222 {
10223 return h_errno;
10224 ;
10225 return 0;
10226 }
10227 _ACEOF
10228 if ac_fn_c_try_link "$LINENO"; then :
10229 emacs_cv_netdb_declares_h_errno=yes
10230 else
10231 emacs_cv_netdb_declares_h_errno=no
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 fi
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10237 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10238 if test $emacs_cv_netdb_declares_h_errno = yes; then
10239
10240 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10241
10242 fi
10243
10244 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10245 # for constant arguments. Useless!
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10247 $as_echo_n "checking for working alloca.h... " >&6; }
10248 if test "${ac_cv_working_alloca_h+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 #include <alloca.h>
10254 int
10255 main ()
10256 {
10257 char *p = (char *) alloca (2 * sizeof (int));
10258 if (p) return 0;
10259 ;
10260 return 0;
10261 }
10262 _ACEOF
10263 if ac_fn_c_try_link "$LINENO"; then :
10264 ac_cv_working_alloca_h=yes
10265 else
10266 ac_cv_working_alloca_h=no
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 fi
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10272 $as_echo "$ac_cv_working_alloca_h" >&6; }
10273 if test $ac_cv_working_alloca_h = yes; then
10274
10275 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10276
10277 fi
10278
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10280 $as_echo_n "checking for alloca... " >&6; }
10281 if test "${ac_cv_func_alloca_works+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 #ifdef __GNUC__
10287 # define alloca __builtin_alloca
10288 #else
10289 # ifdef _MSC_VER
10290 # include <malloc.h>
10291 # define alloca _alloca
10292 # else
10293 # ifdef HAVE_ALLOCA_H
10294 # include <alloca.h>
10295 # else
10296 # ifdef _AIX
10297 #pragma alloca
10298 # else
10299 # ifndef alloca /* predefined by HP cc +Olibcalls */
10300 char *alloca ();
10301 # endif
10302 # endif
10303 # endif
10304 # endif
10305 #endif
10306
10307 int
10308 main ()
10309 {
10310 char *p = (char *) alloca (1);
10311 if (p) return 0;
10312 ;
10313 return 0;
10314 }
10315 _ACEOF
10316 if ac_fn_c_try_link "$LINENO"; then :
10317 ac_cv_func_alloca_works=yes
10318 else
10319 ac_cv_func_alloca_works=no
10320 fi
10321 rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10323 fi
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10325 $as_echo "$ac_cv_func_alloca_works" >&6; }
10326
10327 if test $ac_cv_func_alloca_works = yes; then
10328
10329 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10330
10331 else
10332 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10333 # that cause trouble. Some versions do not even contain alloca or
10334 # contain a buggy version. If you still want to use their alloca,
10335 # use ar to extract alloca.o from them instead of compiling alloca.c.
10336
10337 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10338
10339 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10340
10341
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10343 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10344 if test "${ac_cv_os_cray+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 #if defined CRAY && ! defined CRAY2
10350 webecray
10351 #else
10352 wenotbecray
10353 #endif
10354
10355 _ACEOF
10356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10357 $EGREP "webecray" >/dev/null 2>&1; then :
10358 ac_cv_os_cray=yes
10359 else
10360 ac_cv_os_cray=no
10361 fi
10362 rm -f conftest*
10363
10364 fi
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10366 $as_echo "$ac_cv_os_cray" >&6; }
10367 if test $ac_cv_os_cray = yes; then
10368 for ac_func in _getb67 GETB67 getb67; do
10369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10371 eval as_val=\$$as_ac_var
10372 if test "x$as_val" = x""yes; then :
10373
10374 cat >>confdefs.h <<_ACEOF
10375 #define CRAY_STACKSEG_END $ac_func
10376 _ACEOF
10377
10378 break
10379 fi
10380
10381 done
10382 fi
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10385 $as_echo_n "checking stack direction for C alloca... " >&6; }
10386 if test "${ac_cv_c_stack_direction+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 if test "$cross_compiling" = yes; then :
10390 ac_cv_c_stack_direction=0
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 int
10396 find_stack_direction ()
10397 {
10398 static char *addr = 0;
10399 auto char dummy;
10400 if (addr == 0)
10401 {
10402 addr = &dummy;
10403 return find_stack_direction ();
10404 }
10405 else
10406 return (&dummy > addr) ? 1 : -1;
10407 }
10408
10409 int
10410 main ()
10411 {
10412 return find_stack_direction () < 0;
10413 }
10414 _ACEOF
10415 if ac_fn_c_try_run "$LINENO"; then :
10416 ac_cv_c_stack_direction=1
10417 else
10418 ac_cv_c_stack_direction=-1
10419 fi
10420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10421 conftest.$ac_objext conftest.beam conftest.$ac_ext
10422 fi
10423
10424 fi
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10426 $as_echo "$ac_cv_c_stack_direction" >&6; }
10427 cat >>confdefs.h <<_ACEOF
10428 #define STACK_DIRECTION $ac_cv_c_stack_direction
10429 _ACEOF
10430
10431
10432 fi
10433
10434
10435 if test x"$ac_cv_func_alloca_works" != xyes; then
10436 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10437 fi
10438
10439 # fmod, logb, and frexp are found in -lm on most systems.
10440 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10442 $as_echo_n "checking for sqrt in -lm... " >&6; }
10443 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 ac_check_lib_save_LIBS=$LIBS
10447 LIBS="-lm $LIBS"
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450
10451 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10454 #ifdef __cplusplus
10455 extern "C"
10456 #endif
10457 char sqrt ();
10458 int
10459 main ()
10460 {
10461 return sqrt ();
10462 ;
10463 return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then :
10467 ac_cv_lib_m_sqrt=yes
10468 else
10469 ac_cv_lib_m_sqrt=no
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10473 LIBS=$ac_check_lib_save_LIBS
10474 fi
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10476 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10477 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10478 cat >>confdefs.h <<_ACEOF
10479 #define HAVE_LIBM 1
10480 _ACEOF
10481
10482 LIBS="-lm $LIBS"
10483
10484 fi
10485
10486
10487 # Check for mail-locking functions in a "mail" library. Probably this should
10488 # have the same check as for liblockfile below.
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10490 $as_echo_n "checking for maillock in -lmail... " >&6; }
10491 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-lmail $LIBS"
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10498
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 char maillock ();
10506 int
10507 main ()
10508 {
10509 return maillock ();
10510 ;
10511 return 0;
10512 }
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515 ac_cv_lib_mail_maillock=yes
10516 else
10517 ac_cv_lib_mail_maillock=no
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10524 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10525 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10526 cat >>confdefs.h <<_ACEOF
10527 #define HAVE_LIBMAIL 1
10528 _ACEOF
10529
10530 LIBS="-lmail $LIBS"
10531
10532 fi
10533
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10535 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10536 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-llockfile $LIBS"
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10543
10544 /* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
10547 #ifdef __cplusplus
10548 extern "C"
10549 #endif
10550 char maillock ();
10551 int
10552 main ()
10553 {
10554 return maillock ();
10555 ;
10556 return 0;
10557 }
10558 _ACEOF
10559 if ac_fn_c_try_link "$LINENO"; then :
10560 ac_cv_lib_lockfile_maillock=yes
10561 else
10562 ac_cv_lib_lockfile_maillock=no
10563 fi
10564 rm -f core conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
10566 LIBS=$ac_check_lib_save_LIBS
10567 fi
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10569 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10570 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10571 cat >>confdefs.h <<_ACEOF
10572 #define HAVE_LIBLOCKFILE 1
10573 _ACEOF
10574
10575 LIBS="-llockfile $LIBS"
10576
10577 fi
10578
10579 # If we have the shared liblockfile, assume we must use it for mail
10580 # locking (e.g. Debian). If we couldn't link against liblockfile
10581 # (no liblockfile.a installed), ensure that we don't need to.
10582 if test "$ac_cv_lib_lockfile_maillock" = no; then
10583 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10584 set dummy liblockfile.so; ac_word=$2
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10586 $as_echo_n "checking for $ac_word... " >&6; }
10587 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 if test -n "$liblockfile"; then
10591 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10592 else
10593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10595 for as_dir in $as_dummy
10596 do
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10601 ac_cv_prog_liblockfile="yes"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10604 fi
10605 done
10606 done
10607 IFS=$as_save_IFS
10608
10609 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10610 fi
10611 fi
10612 liblockfile=$ac_cv_prog_liblockfile
10613 if test -n "$liblockfile"; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10615 $as_echo "$liblockfile" >&6; }
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10619 fi
10620
10621
10622 if test $ac_cv_prog_liblockfile = yes; then
10623 as_fn_error "Shared liblockfile found but can't link against it.
10624 This probably means that movemail could lose mail.
10625 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10626 else :
10627 fi
10628 fi
10629 for ac_func in touchlock
10630 do :
10631 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
10632 if test "x$ac_cv_func_touchlock" = x""yes; then :
10633 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_TOUCHLOCK 1
10635 _ACEOF
10636
10637 fi
10638 done
10639
10640 for ac_header in maillock.h
10641 do :
10642 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10643 if test "x$ac_cv_header_maillock_h" = x""yes; then :
10644 cat >>confdefs.h <<_ACEOF
10645 #define HAVE_MAILLOCK_H 1
10646 _ACEOF
10647
10648 fi
10649
10650 done
10651
10652
10653 for ac_func in gethostname getdomainname dup2 \
10654 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10655 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10656 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10657 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10658 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10659 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10660 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10661 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10662 cfmakeraw cfsetspeed
10663 do :
10664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10666 eval as_val=\$$as_ac_var
10667 if test "x$as_val" = x""yes; then :
10668 cat >>confdefs.h <<_ACEOF
10669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10670 _ACEOF
10671
10672 fi
10673 done
10674
10675
10676 for ac_header in sys/un.h
10677 do :
10678 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10679 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
10680 cat >>confdefs.h <<_ACEOF
10681 #define HAVE_SYS_UN_H 1
10682 _ACEOF
10683
10684 fi
10685
10686 done
10687
10688
10689
10690
10691
10692
10693
10694 for ac_func in $ac_func_list
10695 do :
10696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10698 eval as_val=\$$as_ac_var
10699 if test "x$as_val" = x""yes; then :
10700 cat >>confdefs.h <<_ACEOF
10701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10702 _ACEOF
10703
10704 fi
10705 done
10706
10707
10708
10709
10710
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10712 $as_echo_n "checking for working mktime... " >&6; }
10713 if test "${ac_cv_func_working_mktime+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 if test "$cross_compiling" = yes; then :
10717 ac_cv_func_working_mktime=no
10718 else
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 /* Test program from Paul Eggert and Tony Leneis. */
10722 #ifdef TIME_WITH_SYS_TIME
10723 # include <sys/time.h>
10724 # include <time.h>
10725 #else
10726 # ifdef HAVE_SYS_TIME_H
10727 # include <sys/time.h>
10728 # else
10729 # include <time.h>
10730 # endif
10731 #endif
10732
10733 #include <limits.h>
10734 #include <stdlib.h>
10735
10736 #ifdef HAVE_UNISTD_H
10737 # include <unistd.h>
10738 #endif
10739
10740 #ifndef HAVE_ALARM
10741 # define alarm(X) /* empty */
10742 #endif
10743
10744 /* Work around redefinition to rpl_putenv by other config tests. */
10745 #undef putenv
10746
10747 static time_t time_t_max;
10748 static time_t time_t_min;
10749
10750 /* Values we'll use to set the TZ environment variable. */
10751 static char *tz_strings[] = {
10752 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10753 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10754 };
10755 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10756
10757 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10758 Based on a problem report from Andreas Jaeger. */
10759 static int
10760 spring_forward_gap ()
10761 {
10762 /* glibc (up to about 1998-10-07) failed this test. */
10763 struct tm tm;
10764
10765 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10766 instead of "TZ=America/Vancouver" in order to detect the bug even
10767 on systems that don't support the Olson extension, or don't have the
10768 full zoneinfo tables installed. */
10769 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10770
10771 tm.tm_year = 98;
10772 tm.tm_mon = 3;
10773 tm.tm_mday = 5;
10774 tm.tm_hour = 2;
10775 tm.tm_min = 0;
10776 tm.tm_sec = 0;
10777 tm.tm_isdst = -1;
10778 return mktime (&tm) != (time_t) -1;
10779 }
10780
10781 static int
10782 mktime_test1 (now)
10783 time_t now;
10784 {
10785 struct tm *lt;
10786 return ! (lt = localtime (&now)) || mktime (lt) == now;
10787 }
10788
10789 static int
10790 mktime_test (now)
10791 time_t now;
10792 {
10793 return (mktime_test1 (now)
10794 && mktime_test1 ((time_t) (time_t_max - now))
10795 && mktime_test1 ((time_t) (time_t_min + now)));
10796 }
10797
10798 static int
10799 irix_6_4_bug ()
10800 {
10801 /* Based on code from Ariel Faigon. */
10802 struct tm tm;
10803 tm.tm_year = 96;
10804 tm.tm_mon = 3;
10805 tm.tm_mday = 0;
10806 tm.tm_hour = 0;
10807 tm.tm_min = 0;
10808 tm.tm_sec = 0;
10809 tm.tm_isdst = -1;
10810 mktime (&tm);
10811 return tm.tm_mon == 2 && tm.tm_mday == 31;
10812 }
10813
10814 static int
10815 bigtime_test (j)
10816 int j;
10817 {
10818 struct tm tm;
10819 time_t now;
10820 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10821 now = mktime (&tm);
10822 if (now != (time_t) -1)
10823 {
10824 struct tm *lt = localtime (&now);
10825 if (! (lt
10826 && lt->tm_year == tm.tm_year
10827 && lt->tm_mon == tm.tm_mon
10828 && lt->tm_mday == tm.tm_mday
10829 && lt->tm_hour == tm.tm_hour
10830 && lt->tm_min == tm.tm_min
10831 && lt->tm_sec == tm.tm_sec
10832 && lt->tm_yday == tm.tm_yday
10833 && lt->tm_wday == tm.tm_wday
10834 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10835 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10836 return 0;
10837 }
10838 return 1;
10839 }
10840
10841 static int
10842 year_2050_test ()
10843 {
10844 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10845 ignoring leap seconds. */
10846 unsigned long int answer = 2527315200UL;
10847
10848 struct tm tm;
10849 time_t t;
10850 tm.tm_year = 2050 - 1900;
10851 tm.tm_mon = 2 - 1;
10852 tm.tm_mday = 1;
10853 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10854 tm.tm_isdst = -1;
10855
10856 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10857 instead of "TZ=America/Vancouver" in order to detect the bug even
10858 on systems that don't support the Olson extension, or don't have the
10859 full zoneinfo tables installed. */
10860 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10861
10862 t = mktime (&tm);
10863
10864 /* Check that the result is either a failure, or close enough
10865 to the correct answer that we can assume the discrepancy is
10866 due to leap seconds. */
10867 return (t == (time_t) -1
10868 || (0 < t && answer - 120 <= t && t <= answer + 120));
10869 }
10870
10871 int
10872 main ()
10873 {
10874 time_t t, delta;
10875 int i, j;
10876
10877 /* This test makes some buggy mktime implementations loop.
10878 Give up after 60 seconds; a mktime slower than that
10879 isn't worth using anyway. */
10880 alarm (60);
10881
10882 for (;;)
10883 {
10884 t = (time_t_max << 1) + 1;
10885 if (t <= time_t_max)
10886 break;
10887 time_t_max = t;
10888 }
10889 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10890
10891 delta = time_t_max / 997; /* a suitable prime number */
10892 for (i = 0; i < N_STRINGS; i++)
10893 {
10894 if (tz_strings[i])
10895 putenv (tz_strings[i]);
10896
10897 for (t = 0; t <= time_t_max - delta; t += delta)
10898 if (! mktime_test (t))
10899 return 1;
10900 if (! (mktime_test ((time_t) 1)
10901 && mktime_test ((time_t) (60 * 60))
10902 && mktime_test ((time_t) (60 * 60 * 24))))
10903 return 1;
10904
10905 for (j = 1; ; j <<= 1)
10906 if (! bigtime_test (j))
10907 return 1;
10908 else if (INT_MAX / 2 < j)
10909 break;
10910 if (! bigtime_test (INT_MAX))
10911 return 1;
10912 }
10913 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10914 }
10915 _ACEOF
10916 if ac_fn_c_try_run "$LINENO"; then :
10917 ac_cv_func_working_mktime=yes
10918 else
10919 ac_cv_func_working_mktime=no
10920 fi
10921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10922 conftest.$ac_objext conftest.beam conftest.$ac_ext
10923 fi
10924
10925 fi
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10927 $as_echo "$ac_cv_func_working_mktime" >&6; }
10928 if test $ac_cv_func_working_mktime = no; then
10929 case " $LIBOBJS " in
10930 *" mktime.$ac_objext "* ) ;;
10931 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10932 ;;
10933 esac
10934
10935 fi
10936
10937 if test "$ac_cv_func_working_mktime" = no; then
10938
10939 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
10940
10941 fi
10942
10943 ac_have_func=no # yes means we've found a way to get the load average.
10944
10945 # Make sure getloadavg.c is where it belongs, at configure-time.
10946 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10947 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10948
10949 ac_save_LIBS=$LIBS
10950
10951 # Check for getloadavg, but be sure not to touch the cache variable.
10952 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10953 if test "x$ac_cv_func_getloadavg" = x""yes; then :
10954 exit 0
10955 else
10956 exit 1
10957 fi
10958 ) && ac_have_func=yes
10959
10960 # On HPUX9, an unprivileged user can get load averages through this function.
10961 for ac_func in pstat_getdynamic
10962 do :
10963 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10964 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_PSTAT_GETDYNAMIC 1
10967 _ACEOF
10968
10969 fi
10970 done
10971
10972
10973 # Solaris has libkstat which does not require root.
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
10975 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10976 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 ac_check_lib_save_LIBS=$LIBS
10980 LIBS="-lkstat $LIBS"
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char kstat_open ();
10991 int
10992 main ()
10993 {
10994 return kstat_open ();
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_link "$LINENO"; then :
11000 ac_cv_lib_kstat_kstat_open=yes
11001 else
11002 ac_cv_lib_kstat_kstat_open=no
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006 LIBS=$ac_check_lib_save_LIBS
11007 fi
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11009 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11010 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11011 cat >>confdefs.h <<_ACEOF
11012 #define HAVE_LIBKSTAT 1
11013 _ACEOF
11014
11015 LIBS="-lkstat $LIBS"
11016
11017 fi
11018
11019 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11020
11021 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11022 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11023 # to get the right answer into the cache.
11024 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11025 if test $ac_have_func = no; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11027 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11028 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-lelf $LIBS"
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 char elf_begin ();
11043 int
11044 main ()
11045 {
11046 return elf_begin ();
11047 ;
11048 return 0;
11049 }
11050 _ACEOF
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_lib_elf_elf_begin=yes
11053 else
11054 ac_cv_lib_elf_elf_begin=no
11055 fi
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS=$ac_check_lib_save_LIBS
11059 fi
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11061 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11062 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11063 LIBS="-lelf $LIBS"
11064 fi
11065
11066 fi
11067 if test $ac_have_func = no; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11069 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11070 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 ac_check_lib_save_LIBS=$LIBS
11074 LIBS="-lkvm $LIBS"
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11077
11078 /* Override any GCC internal prototype to avoid an error.
11079 Use char because int might match the return type of a GCC
11080 builtin and then its argument prototype would still apply. */
11081 #ifdef __cplusplus
11082 extern "C"
11083 #endif
11084 char kvm_open ();
11085 int
11086 main ()
11087 {
11088 return kvm_open ();
11089 ;
11090 return 0;
11091 }
11092 _ACEOF
11093 if ac_fn_c_try_link "$LINENO"; then :
11094 ac_cv_lib_kvm_kvm_open=yes
11095 else
11096 ac_cv_lib_kvm_kvm_open=no
11097 fi
11098 rm -f core conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100 LIBS=$ac_check_lib_save_LIBS
11101 fi
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11103 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11104 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11105 LIBS="-lkvm $LIBS"
11106 fi
11107
11108 # Check for the 4.4BSD definition of getloadavg.
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11110 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11111 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 ac_check_lib_save_LIBS=$LIBS
11115 LIBS="-lutil $LIBS"
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11118
11119 /* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11122 #ifdef __cplusplus
11123 extern "C"
11124 #endif
11125 char getloadavg ();
11126 int
11127 main ()
11128 {
11129 return getloadavg ();
11130 ;
11131 return 0;
11132 }
11133 _ACEOF
11134 if ac_fn_c_try_link "$LINENO"; then :
11135 ac_cv_lib_util_getloadavg=yes
11136 else
11137 ac_cv_lib_util_getloadavg=no
11138 fi
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 LIBS=$ac_check_lib_save_LIBS
11142 fi
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11144 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11145 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11146 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11147 fi
11148
11149 fi
11150
11151 if test $ac_have_func = no; then
11152 # There is a commonly available library for RS/6000 AIX.
11153 # Since it is not a standard part of AIX, it might be installed locally.
11154 ac_getloadavg_LIBS=$LIBS
11155 LIBS="-L/usr/local/lib $LIBS"
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11157 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11158 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 ac_check_lib_save_LIBS=$LIBS
11162 LIBS="-lgetloadavg $LIBS"
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11165
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char getloadavg ();
11173 int
11174 main ()
11175 {
11176 return getloadavg ();
11177 ;
11178 return 0;
11179 }
11180 _ACEOF
11181 if ac_fn_c_try_link "$LINENO"; then :
11182 ac_cv_lib_getloadavg_getloadavg=yes
11183 else
11184 ac_cv_lib_getloadavg_getloadavg=no
11185 fi
11186 rm -f core conftest.err conftest.$ac_objext \
11187 conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11189 fi
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11191 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11192 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11193 LIBS="-lgetloadavg $LIBS"
11194 else
11195 LIBS=$ac_getloadavg_LIBS
11196 fi
11197
11198 fi
11199
11200 # Make sure it is really in the library, if we think we found it,
11201 # otherwise set up the replacement function.
11202 for ac_func in getloadavg
11203 do :
11204 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11205 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_GETLOADAVG 1
11208 _ACEOF
11209
11210 else
11211 case " $LIBOBJS " in
11212 *" getloadavg.$ac_objext "* ) ;;
11213 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11214 ;;
11215 esac
11216
11217
11218 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11219
11220 # Figure out what our getloadavg.c needs.
11221 ac_have_func=no
11222 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11223 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11224 ac_have_func=yes
11225
11226 $as_echo "#define DGUX 1" >>confdefs.h
11227
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11229 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11230 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 ac_check_lib_save_LIBS=$LIBS
11234 LIBS="-ldgc $LIBS"
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11241 #ifdef __cplusplus
11242 extern "C"
11243 #endif
11244 char dg_sys_info ();
11245 int
11246 main ()
11247 {
11248 return dg_sys_info ();
11249 ;
11250 return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_link "$LINENO"; then :
11254 ac_cv_lib_dgc_dg_sys_info=yes
11255 else
11256 ac_cv_lib_dgc_dg_sys_info=no
11257 fi
11258 rm -f core conftest.err conftest.$ac_objext \
11259 conftest$ac_exeext conftest.$ac_ext
11260 LIBS=$ac_check_lib_save_LIBS
11261 fi
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11263 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11264 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11265 cat >>confdefs.h <<_ACEOF
11266 #define HAVE_LIBDGC 1
11267 _ACEOF
11268
11269 LIBS="-ldgc $LIBS"
11270
11271 fi
11272
11273 fi
11274
11275
11276
11277 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11278 if test "x$ac_cv_header_locale_h" = x""yes; then :
11279
11280 fi
11281
11282
11283 for ac_func in setlocale
11284 do :
11285 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11286 if test "x$ac_cv_func_setlocale" = x""yes; then :
11287 cat >>confdefs.h <<_ACEOF
11288 #define HAVE_SETLOCALE 1
11289 _ACEOF
11290
11291 fi
11292 done
11293
11294
11295 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11296 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11297 # Irix 4.0.5F has the header but not the library.
11298 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11299 ac_have_func=yes
11300
11301 $as_echo "#define SVR4 1" >>confdefs.h
11302
11303 fi
11304
11305 if test $ac_have_func = no; then
11306 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11307 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11308 ac_have_func=yes
11309
11310 $as_echo "#define UMAX 1" >>confdefs.h
11311
11312
11313 $as_echo "#define UMAX4_3 1" >>confdefs.h
11314
11315 fi
11316
11317
11318 fi
11319
11320 if test $ac_have_func = no; then
11321 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11322 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11323 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11324
11325 fi
11326
11327
11328 fi
11329
11330 if test $ac_have_func = no; then
11331 for ac_header in mach/mach.h
11332 do :
11333 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11334 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11335 cat >>confdefs.h <<_ACEOF
11336 #define HAVE_MACH_MACH_H 1
11337 _ACEOF
11338
11339 fi
11340
11341 done
11342
11343 fi
11344
11345 for ac_header in nlist.h
11346 do :
11347 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11348 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11349 cat >>confdefs.h <<_ACEOF
11350 #define HAVE_NLIST_H 1
11351 _ACEOF
11352 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11353 "
11354 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11355
11356 cat >>confdefs.h <<_ACEOF
11357 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11358 _ACEOF
11359
11360
11361 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11362
11363 fi
11364
11365
11366 fi
11367
11368 done
11369
11370 fi
11371 done
11372
11373
11374 # Some definitions of getloadavg require that the program be installed setgid.
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11376 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11377 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11383 #ifdef LDAV_PRIVILEGED
11384 Yowza Am I SETGID yet
11385 #endif
11386 _ACEOF
11387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11388 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11389 ac_cv_func_getloadavg_setgid=yes
11390 else
11391 ac_cv_func_getloadavg_setgid=no
11392 fi
11393 rm -f conftest*
11394
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11397 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11398 if test $ac_cv_func_getloadavg_setgid = yes; then
11399 NEED_SETGID=true
11400
11401 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11402
11403 else
11404 NEED_SETGID=false
11405 fi
11406
11407 if test $ac_cv_func_getloadavg_setgid = yes; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11409 $as_echo_n "checking group of /dev/kmem... " >&6; }
11410 if test "${ac_cv_group_kmem+set}" = set; then :
11411 $as_echo_n "(cached) " >&6
11412 else
11413 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11414 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11415 # If we got an error (system does not support symlinks), try without -L.
11416 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11417 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11418 | sed -ne 's/[ ][ ]*/ /g;
11419 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11420 / /s/.* //;p;'`
11421
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11424 $as_echo "$ac_cv_group_kmem" >&6; }
11425 KMEM_GROUP=$ac_cv_group_kmem
11426 fi
11427 if test "x$ac_save_LIBS" = x; then
11428 GETLOADAVG_LIBS=$LIBS
11429 else
11430 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11431 fi
11432 LIBS=$ac_save_LIBS
11433
11434
11435
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11437 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11438 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 while :; do
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 #include <sys/types.h> /* for off_t */
11445 #include <stdio.h>
11446 int
11447 main ()
11448 {
11449 int (*fp) (FILE *, off_t, int) = fseeko;
11450 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11451 ;
11452 return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_sys_largefile_source=no; break
11457 fi
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 #define _LARGEFILE_SOURCE 1
11463 #include <sys/types.h> /* for off_t */
11464 #include <stdio.h>
11465 int
11466 main ()
11467 {
11468 int (*fp) (FILE *, off_t, int) = fseeko;
11469 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11470 ;
11471 return 0;
11472 }
11473 _ACEOF
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_sys_largefile_source=1; break
11476 fi
11477 rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479 ac_cv_sys_largefile_source=unknown
11480 break
11481 done
11482 fi
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11484 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11485 case $ac_cv_sys_largefile_source in #(
11486 no | unknown) ;;
11487 *)
11488 cat >>confdefs.h <<_ACEOF
11489 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11490 _ACEOF
11491 ;;
11492 esac
11493 rm -rf conftest*
11494
11495 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11496 # in glibc 2.1.3, but that breaks too many other things.
11497 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11498 if test $ac_cv_sys_largefile_source != unknown; then
11499
11500 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11501
11502 fi
11503
11504
11505 # Configure getopt.
11506 # getopt.m4 serial 10
11507
11508 # The getopt module assume you want GNU getopt, with getopt_long etc,
11509 # rather than vanilla POSIX getopt. This means your your code should
11510 # always include <getopt.h> for the getopt prototypes.
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522 # Prerequisites of lib/getopt*.
11523
11524
11525
11526
11527 GETOPT_H=
11528 for ac_header in getopt.h
11529 do :
11530 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11531 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11532 cat >>confdefs.h <<_ACEOF
11533 #define HAVE_GETOPT_H 1
11534 _ACEOF
11535
11536 else
11537 GETOPT_H=getopt.h
11538 fi
11539
11540 done
11541
11542 if test -z "$GETOPT_H"; then
11543 for ac_func in getopt_long_only
11544 do :
11545 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11546 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11547 cat >>confdefs.h <<_ACEOF
11548 #define HAVE_GETOPT_LONG_ONLY 1
11549 _ACEOF
11550
11551 else
11552 GETOPT_H=getopt.h
11553 fi
11554 done
11555
11556 fi
11557
11558 if test -z "$GETOPT_H"; then
11559 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11560 "
11561 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11562 GETOPT_H=getopt.h
11563 fi
11564
11565 fi
11566
11567 if test -z "$GETOPT_H"; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11569 $as_echo_n "checking for working GNU getopt function... " >&6; }
11570 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 if test "$cross_compiling" = yes; then :
11574 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11575 "
11576 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11577 gl_cv_func_gnu_getopt=no
11578 else
11579 gl_cv_func_gnu_getopt=yes
11580 fi
11581
11582 else
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585 #include <getopt.h>
11586 int
11587 main ()
11588 {
11589
11590 char *myargv[3];
11591 myargv[0] = "conftest";
11592 myargv[1] = "-+";
11593 myargv[2] = 0;
11594 return getopt (2, myargv, "+a") != '?';
11595
11596 ;
11597 return 0;
11598 }
11599 _ACEOF
11600 if ac_fn_c_try_run "$LINENO"; then :
11601 gl_cv_func_gnu_getopt=yes
11602 else
11603 gl_cv_func_gnu_getopt=no
11604 fi
11605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11606 conftest.$ac_objext conftest.beam conftest.$ac_ext
11607 fi
11608
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11611 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11612 if test "$gl_cv_func_gnu_getopt" = "no"; then
11613 GETOPT_H=getopt.h
11614 fi
11615 fi
11616
11617
11618
11619 if test -n "$GETOPT_H"; then :
11620
11621
11622 GETOPT_H=getopt.h
11623
11624 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11625
11626
11627
11628 :
11629 GETOPTOBJS='getopt.o getopt1.o'
11630
11631 fi
11632
11633
11634
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11636 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11637 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 # Use it with a single arg.
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643 $ac_includes_default
11644 int
11645 main ()
11646 {
11647 getpgrp (0);
11648 ;
11649 return 0;
11650 }
11651 _ACEOF
11652 if ac_fn_c_try_compile "$LINENO"; then :
11653 ac_cv_func_getpgrp_void=no
11654 else
11655 ac_cv_func_getpgrp_void=yes
11656 fi
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658
11659 fi
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11661 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11662 if test $ac_cv_func_getpgrp_void = yes; then
11663
11664 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11665
11666 fi
11667
11668
11669 for ac_func in strftime
11670 do :
11671 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11672 if test "x$ac_cv_func_strftime" = x""yes; then :
11673 cat >>confdefs.h <<_ACEOF
11674 #define HAVE_STRFTIME 1
11675 _ACEOF
11676
11677 else
11678 # strftime is in -lintl on SCO UNIX.
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11680 $as_echo_n "checking for strftime in -lintl... " >&6; }
11681 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 ac_check_lib_save_LIBS=$LIBS
11685 LIBS="-lintl $LIBS"
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11688
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11692 #ifdef __cplusplus
11693 extern "C"
11694 #endif
11695 char strftime ();
11696 int
11697 main ()
11698 {
11699 return strftime ();
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 if ac_fn_c_try_link "$LINENO"; then :
11705 ac_cv_lib_intl_strftime=yes
11706 else
11707 ac_cv_lib_intl_strftime=no
11708 fi
11709 rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711 LIBS=$ac_check_lib_save_LIBS
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11714 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11715 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11716 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11717
11718 LIBS="-lintl $LIBS"
11719 fi
11720
11721 fi
11722 done
11723
11724
11725 # UNIX98 PTYs.
11726 for ac_func in grantpt
11727 do :
11728 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
11729 if test "x$ac_cv_func_grantpt" = x""yes; then :
11730 cat >>confdefs.h <<_ACEOF
11731 #define HAVE_GRANTPT 1
11732 _ACEOF
11733
11734 fi
11735 done
11736
11737
11738 # PTY-related GNU extensions.
11739 for ac_func in getpt
11740 do :
11741 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
11742 if test "x$ac_cv_func_getpt" = x""yes; then :
11743 cat >>confdefs.h <<_ACEOF
11744 #define HAVE_GETPT 1
11745 _ACEOF
11746
11747 fi
11748 done
11749
11750
11751 # Check this now, so that we will NOT find the above functions in ncurses.
11752 # That is because we have not set up to link ncurses in lib-src.
11753 # It's better to believe a function is not available
11754 # than to expect to find it in ncurses.
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
11756 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11757 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 ac_check_lib_save_LIBS=$LIBS
11761 LIBS="-lncurses $LIBS"
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764
11765 /* Override any GCC internal prototype to avoid an error.
11766 Use char because int might match the return type of a GCC
11767 builtin and then its argument prototype would still apply. */
11768 #ifdef __cplusplus
11769 extern "C"
11770 #endif
11771 char tparm ();
11772 int
11773 main ()
11774 {
11775 return tparm ();
11776 ;
11777 return 0;
11778 }
11779 _ACEOF
11780 if ac_fn_c_try_link "$LINENO"; then :
11781 ac_cv_lib_ncurses_tparm=yes
11782 else
11783 ac_cv_lib_ncurses_tparm=no
11784 fi
11785 rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11788 fi
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
11790 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11791 if test "x$ac_cv_lib_ncurses_tparm" = x""yes; then :
11792 cat >>confdefs.h <<_ACEOF
11793 #define HAVE_LIBNCURSES 1
11794 _ACEOF
11795
11796 LIBS="-lncurses $LIBS"
11797
11798 fi
11799
11800
11801 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11802
11803 resolv=no
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806 #include <netinet/in.h>
11807 #include <arpa/nameser.h>
11808 #include <resolv.h>
11809 int
11810 main ()
11811 {
11812 return res_init();
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 if ac_fn_c_try_link "$LINENO"; then :
11818 have_res_init=yes
11819 else
11820 have_res_init=no
11821 fi
11822 rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
11824 if test "$have_res_init" = no; then
11825 OLIBS="$LIBS"
11826 LIBS="$LIBS -lresolv"
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11828 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #include <netinet/in.h>
11832 #include <arpa/nameser.h>
11833 #include <resolv.h>
11834 int
11835 main ()
11836 {
11837 return res_init();
11838 ;
11839 return 0;
11840 }
11841 _ACEOF
11842 if ac_fn_c_try_link "$LINENO"; then :
11843 have_res_init=yes
11844 else
11845 have_res_init=no
11846 fi
11847 rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11850 $as_echo "$have_res_init" >&6; }
11851 if test "$have_res_init" = yes ; then
11852 resolv=yes
11853 fi
11854 LIBS="$OLIBS"
11855 fi
11856
11857 if test "$have_res_init" = yes; then
11858
11859 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11860
11861 fi
11862
11863 # Do we need the Hesiod library to provide the support routines?
11864 if test "$with_hesiod" != no ; then
11865 # Don't set $LIBS here -- see comments above.
11866 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
11867 if test "x$ac_cv_func_res_send" = x""yes; then :
11868
11869 else
11870 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
11871 if test "x$ac_cv_func___res_send" = x""yes; then :
11872
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
11875 $as_echo_n "checking for res_send in -lresolv... " >&6; }
11876 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-lresolv $LIBS"
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char res_send ();
11891 int
11892 main ()
11893 {
11894 return res_send ();
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 ac_cv_lib_resolv_res_send=yes
11901 else
11902 ac_cv_lib_resolv_res_send=no
11903 fi
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
11909 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
11910 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
11911 resolv=yes
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
11914 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
11915 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 ac_check_lib_save_LIBS=$LIBS
11919 LIBS="-lresolv $LIBS"
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char __res_send ();
11930 int
11931 main ()
11932 {
11933 return __res_send ();
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 if ac_fn_c_try_link "$LINENO"; then :
11939 ac_cv_lib_resolv___res_send=yes
11940 else
11941 ac_cv_lib_resolv___res_send=no
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
11948 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
11949 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
11950 resolv=yes
11951 fi
11952
11953 fi
11954
11955 fi
11956
11957 fi
11958
11959 if test "$resolv" = yes ; then
11960 RESOLVLIB=-lresolv
11961 else
11962 RESOLVLIB=
11963 fi
11964 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
11965 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
11966
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
11969 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
11970 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 ac_check_lib_save_LIBS=$LIBS
11974 LIBS="-lhesiod $RESOLVLIB $LIBS"
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11977
11978 /* Override any GCC internal prototype to avoid an error.
11979 Use char because int might match the return type of a GCC
11980 builtin and then its argument prototype would still apply. */
11981 #ifdef __cplusplus
11982 extern "C"
11983 #endif
11984 char hes_getmailhost ();
11985 int
11986 main ()
11987 {
11988 return hes_getmailhost ();
11989 ;
11990 return 0;
11991 }
11992 _ACEOF
11993 if ac_fn_c_try_link "$LINENO"; then :
11994 ac_cv_lib_hesiod_hes_getmailhost=yes
11995 else
11996 ac_cv_lib_hesiod_hes_getmailhost=no
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000 LIBS=$ac_check_lib_save_LIBS
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12003 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12004 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12005
12006 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12007
12008 else
12009 :
12010 fi
12011
12012 fi
12013
12014 fi
12015
12016 # Do we need libresolv (due to res_init or Hesiod)?
12017 if test "$resolv" = yes ; then
12018
12019 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12020
12021 fi
12022
12023 # These tell us which Kerberos-related libraries to use.
12024 if test "${with_kerberos}" != no; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12026 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12027 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
12029 else
12030 ac_check_lib_save_LIBS=$LIBS
12031 LIBS="-lcom_err $LIBS"
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12034
12035 /* Override any GCC internal prototype to avoid an error.
12036 Use char because int might match the return type of a GCC
12037 builtin and then its argument prototype would still apply. */
12038 #ifdef __cplusplus
12039 extern "C"
12040 #endif
12041 char com_err ();
12042 int
12043 main ()
12044 {
12045 return com_err ();
12046 ;
12047 return 0;
12048 }
12049 _ACEOF
12050 if ac_fn_c_try_link "$LINENO"; then :
12051 ac_cv_lib_com_err_com_err=yes
12052 else
12053 ac_cv_lib_com_err_com_err=no
12054 fi
12055 rm -f core conftest.err conftest.$ac_objext \
12056 conftest$ac_exeext conftest.$ac_ext
12057 LIBS=$ac_check_lib_save_LIBS
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12060 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12061 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_LIBCOM_ERR 1
12064 _ACEOF
12065
12066 LIBS="-lcom_err $LIBS"
12067
12068 fi
12069
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12071 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12072 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 ac_check_lib_save_LIBS=$LIBS
12076 LIBS="-lk5crypto $LIBS"
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12083 #ifdef __cplusplus
12084 extern "C"
12085 #endif
12086 char mit_des_cbc_encrypt ();
12087 int
12088 main ()
12089 {
12090 return mit_des_cbc_encrypt ();
12091 ;
12092 return 0;
12093 }
12094 _ACEOF
12095 if ac_fn_c_try_link "$LINENO"; then :
12096 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12097 else
12098 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12099 fi
12100 rm -f core conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12103 fi
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12105 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12106 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12107 cat >>confdefs.h <<_ACEOF
12108 #define HAVE_LIBK5CRYPTO 1
12109 _ACEOF
12110
12111 LIBS="-lk5crypto $LIBS"
12112
12113 fi
12114
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12116 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12117 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lcrypto $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char mit_des_cbc_encrypt ();
12132 int
12133 main ()
12134 {
12135 return mit_des_cbc_encrypt ();
12136 ;
12137 return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12142 else
12143 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12150 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12151 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12152 cat >>confdefs.h <<_ACEOF
12153 #define HAVE_LIBCRYPTO 1
12154 _ACEOF
12155
12156 LIBS="-lcrypto $LIBS"
12157
12158 fi
12159
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12161 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12162 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 ac_check_lib_save_LIBS=$LIBS
12166 LIBS="-lkrb5 $LIBS"
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169
12170 /* Override any GCC internal prototype to avoid an error.
12171 Use char because int might match the return type of a GCC
12172 builtin and then its argument prototype would still apply. */
12173 #ifdef __cplusplus
12174 extern "C"
12175 #endif
12176 char krb5_init_context ();
12177 int
12178 main ()
12179 {
12180 return krb5_init_context ();
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_c_try_link "$LINENO"; then :
12186 ac_cv_lib_krb5_krb5_init_context=yes
12187 else
12188 ac_cv_lib_krb5_krb5_init_context=no
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12192 LIBS=$ac_check_lib_save_LIBS
12193 fi
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12195 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12196 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12197 cat >>confdefs.h <<_ACEOF
12198 #define HAVE_LIBKRB5 1
12199 _ACEOF
12200
12201 LIBS="-lkrb5 $LIBS"
12202
12203 fi
12204
12205 if test "${with_kerberos5}" = no; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12207 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12208 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-ldes425 $LIBS"
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215
12216 /* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12219 #ifdef __cplusplus
12220 extern "C"
12221 #endif
12222 char des_cbc_encrypt ();
12223 int
12224 main ()
12225 {
12226 return des_cbc_encrypt ();
12227 ;
12228 return 0;
12229 }
12230 _ACEOF
12231 if ac_fn_c_try_link "$LINENO"; then :
12232 ac_cv_lib_des425_des_cbc_encrypt=yes
12233 else
12234 ac_cv_lib_des425_des_cbc_encrypt=no
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12239 fi
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12241 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12242 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_LIBDES425 1
12245 _ACEOF
12246
12247 LIBS="-ldes425 $LIBS"
12248
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12251 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12252 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-ldes $LIBS"
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char des_cbc_encrypt ();
12267 int
12268 main ()
12269 {
12270 return des_cbc_encrypt ();
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_des_des_cbc_encrypt=yes
12277 else
12278 ac_cv_lib_des_des_cbc_encrypt=no
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12285 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12286 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12287 cat >>confdefs.h <<_ACEOF
12288 #define HAVE_LIBDES 1
12289 _ACEOF
12290
12291 LIBS="-ldes $LIBS"
12292
12293 fi
12294
12295 fi
12296
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12298 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12299 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 ac_check_lib_save_LIBS=$LIBS
12303 LIBS="-lkrb4 $LIBS"
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12306
12307 /* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12310 #ifdef __cplusplus
12311 extern "C"
12312 #endif
12313 char krb_get_cred ();
12314 int
12315 main ()
12316 {
12317 return krb_get_cred ();
12318 ;
12319 return 0;
12320 }
12321 _ACEOF
12322 if ac_fn_c_try_link "$LINENO"; then :
12323 ac_cv_lib_krb4_krb_get_cred=yes
12324 else
12325 ac_cv_lib_krb4_krb_get_cred=no
12326 fi
12327 rm -f core conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12330 fi
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12332 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12333 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_LIBKRB4 1
12336 _ACEOF
12337
12338 LIBS="-lkrb4 $LIBS"
12339
12340 else
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12342 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12343 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 ac_check_lib_save_LIBS=$LIBS
12347 LIBS="-lkrb $LIBS"
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350
12351 /* Override any GCC internal prototype to avoid an error.
12352 Use char because int might match the return type of a GCC
12353 builtin and then its argument prototype would still apply. */
12354 #ifdef __cplusplus
12355 extern "C"
12356 #endif
12357 char krb_get_cred ();
12358 int
12359 main ()
12360 {
12361 return krb_get_cred ();
12362 ;
12363 return 0;
12364 }
12365 _ACEOF
12366 if ac_fn_c_try_link "$LINENO"; then :
12367 ac_cv_lib_krb_krb_get_cred=yes
12368 else
12369 ac_cv_lib_krb_krb_get_cred=no
12370 fi
12371 rm -f core conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12376 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12377 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12378 cat >>confdefs.h <<_ACEOF
12379 #define HAVE_LIBKRB 1
12380 _ACEOF
12381
12382 LIBS="-lkrb $LIBS"
12383
12384 fi
12385
12386 fi
12387
12388 fi
12389
12390 if test "${with_kerberos5}" != no; then
12391 for ac_header in krb5.h
12392 do :
12393 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12394 if test "x$ac_cv_header_krb5_h" = x""yes; then :
12395 cat >>confdefs.h <<_ACEOF
12396 #define HAVE_KRB5_H 1
12397 _ACEOF
12398 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12399 "
12400 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
12401
12402 cat >>confdefs.h <<_ACEOF
12403 #define HAVE_KRB5_ERROR_TEXT 1
12404 _ACEOF
12405
12406
12407 fi
12408 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12409 "
12410 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
12411
12412 cat >>confdefs.h <<_ACEOF
12413 #define HAVE_KRB5_ERROR_E_TEXT 1
12414 _ACEOF
12415
12416
12417 fi
12418
12419 fi
12420
12421 done
12422
12423 else
12424 for ac_header in des.h
12425 do :
12426 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12427 if test "x$ac_cv_header_des_h" = x""yes; then :
12428 cat >>confdefs.h <<_ACEOF
12429 #define HAVE_DES_H 1
12430 _ACEOF
12431
12432 else
12433 for ac_header in kerberosIV/des.h
12434 do :
12435 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12436 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_KERBEROSIV_DES_H 1
12439 _ACEOF
12440
12441 else
12442 for ac_header in kerberos/des.h
12443 do :
12444 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12445 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
12446 cat >>confdefs.h <<_ACEOF
12447 #define HAVE_KERBEROS_DES_H 1
12448 _ACEOF
12449
12450 fi
12451
12452 done
12453
12454 fi
12455
12456 done
12457
12458 fi
12459
12460 done
12461
12462 for ac_header in krb.h
12463 do :
12464 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12465 if test "x$ac_cv_header_krb_h" = x""yes; then :
12466 cat >>confdefs.h <<_ACEOF
12467 #define HAVE_KRB_H 1
12468 _ACEOF
12469
12470 else
12471 for ac_header in kerberosIV/krb.h
12472 do :
12473 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12474 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
12475 cat >>confdefs.h <<_ACEOF
12476 #define HAVE_KERBEROSIV_KRB_H 1
12477 _ACEOF
12478
12479 else
12480 for ac_header in kerberos/krb.h
12481 do :
12482 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12483 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_KERBEROS_KRB_H 1
12486 _ACEOF
12487
12488 fi
12489
12490 done
12491
12492 fi
12493
12494 done
12495
12496 fi
12497
12498 done
12499
12500 fi
12501 for ac_header in com_err.h
12502 do :
12503 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12504 if test "x$ac_cv_header_com_err_h" = x""yes; then :
12505 cat >>confdefs.h <<_ACEOF
12506 #define HAVE_COM_ERR_H 1
12507 _ACEOF
12508
12509 fi
12510
12511 done
12512
12513 fi
12514
12515 # Solaris requires -lintl if you want strerror (which calls dgettext)
12516 # to return localized messages.
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12518 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12519 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-lintl $LIBS"
12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h. */
12526
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char dgettext ();
12534 int
12535 main ()
12536 {
12537 return dgettext ();
12538 ;
12539 return 0;
12540 }
12541 _ACEOF
12542 if ac_fn_c_try_link "$LINENO"; then :
12543 ac_cv_lib_intl_dgettext=yes
12544 else
12545 ac_cv_lib_intl_dgettext=no
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549 LIBS=$ac_check_lib_save_LIBS
12550 fi
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12552 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12553 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
12554 cat >>confdefs.h <<_ACEOF
12555 #define HAVE_LIBINTL 1
12556 _ACEOF
12557
12558 LIBS="-lintl $LIBS"
12559
12560 fi
12561
12562
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12564 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12565 if test "${emacs_cv_localtime_cache+set}" = set; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 if test x$ac_cv_func_tzset = xyes; then
12569 if test "$cross_compiling" = yes; then :
12570 # If we have tzset, assume the worst when cross-compiling.
12571 emacs_cv_localtime_cache=yes
12572 else
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 #include <time.h>
12576 extern char **environ;
12577 unset_TZ ()
12578 {
12579 char **from, **to;
12580 for (to = from = environ; (*to = *from); from++)
12581 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12582 to++;
12583 }
12584 char TZ_GMT0[] = "TZ=GMT0";
12585 char TZ_PST8[] = "TZ=PST8";
12586 main()
12587 {
12588 time_t now = time ((time_t *) 0);
12589 int hour_GMT0, hour_unset;
12590 if (putenv (TZ_GMT0) != 0)
12591 exit (1);
12592 hour_GMT0 = localtime (&now)->tm_hour;
12593 unset_TZ ();
12594 hour_unset = localtime (&now)->tm_hour;
12595 if (putenv (TZ_PST8) != 0)
12596 exit (1);
12597 if (localtime (&now)->tm_hour == hour_GMT0)
12598 exit (1);
12599 unset_TZ ();
12600 if (localtime (&now)->tm_hour != hour_unset)
12601 exit (1);
12602 exit (0);
12603 }
12604 _ACEOF
12605 if ac_fn_c_try_run "$LINENO"; then :
12606 emacs_cv_localtime_cache=no
12607 else
12608 emacs_cv_localtime_cache=yes
12609 fi
12610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12611 conftest.$ac_objext conftest.beam conftest.$ac_ext
12612 fi
12613
12614 else
12615 # If we lack tzset, report that localtime does not cache TZ,
12616 # since we can't invalidate the cache if we don't have tzset.
12617 emacs_cv_localtime_cache=no
12618 fi
12619 fi
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12621 $as_echo "$emacs_cv_localtime_cache" >&6; }
12622 if test $emacs_cv_localtime_cache = yes; then
12623
12624 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12625
12626 fi
12627
12628 if test "x$HAVE_TIMEVAL" = xyes; then
12629 for ac_func in gettimeofday
12630 do :
12631 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12632 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
12633 cat >>confdefs.h <<_ACEOF
12634 #define HAVE_GETTIMEOFDAY 1
12635 _ACEOF
12636
12637 fi
12638 done
12639
12640 if test $ac_cv_func_gettimeofday = yes; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12642 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12643 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12644 $as_echo_n "(cached) " >&6
12645 else
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648
12649 #ifdef TIME_WITH_SYS_TIME
12650 #include <sys/time.h>
12651 #include <time.h>
12652 #else
12653 #ifdef HAVE_SYS_TIME_H
12654 #include <sys/time.h>
12655 #else
12656 #include <time.h>
12657 #endif
12658 #endif
12659 int
12660 main ()
12661 {
12662 struct timeval time;
12663 gettimeofday (&time, 0);
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 if ac_fn_c_try_compile "$LINENO"; then :
12669 emacs_cv_gettimeofday_two_arguments=yes
12670 else
12671 emacs_cv_gettimeofday_two_arguments=no
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 fi
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12676 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12677 if test $emacs_cv_gettimeofday_two_arguments = no; then
12678
12679 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12680
12681 fi
12682 fi
12683 fi
12684
12685 ok_so_far=yes
12686 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
12687 if test "x$ac_cv_func_socket" = x""yes; then :
12688
12689 else
12690 ok_so_far=no
12691 fi
12692
12693 if test $ok_so_far = yes; then
12694 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12695 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12696
12697 else
12698 ok_so_far=no
12699 fi
12700
12701
12702 fi
12703 if test $ok_so_far = yes; then
12704 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12705 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12706
12707 else
12708 ok_so_far=no
12709 fi
12710
12711
12712 fi
12713 if test $ok_so_far = yes; then
12714
12715 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12716
12717 fi
12718
12719 for ac_header in sys/ioctl.h
12720 do :
12721 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12722 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
12723 cat >>confdefs.h <<_ACEOF
12724 #define HAVE_SYS_IOCTL_H 1
12725 _ACEOF
12726
12727 fi
12728
12729 done
12730
12731
12732 if test -f /usr/lpp/X11/bin/smt.exp; then
12733
12734 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12735
12736 fi
12737
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12739 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12740 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12742 $as_echo "yes" >&6; }
12743
12744 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12745
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12749 fi
12750
12751 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12752 if test "x$ac_cv_type_pid_t" = x""yes; then :
12753
12754 else
12755
12756 cat >>confdefs.h <<_ACEOF
12757 #define pid_t int
12758 _ACEOF
12759
12760 fi
12761
12762 for ac_header in vfork.h
12763 do :
12764 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12765 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12766 cat >>confdefs.h <<_ACEOF
12767 #define HAVE_VFORK_H 1
12768 _ACEOF
12769
12770 fi
12771
12772 done
12773
12774 for ac_func in fork vfork
12775 do :
12776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12778 eval as_val=\$$as_ac_var
12779 if test "x$as_val" = x""yes; then :
12780 cat >>confdefs.h <<_ACEOF
12781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12782 _ACEOF
12783
12784 fi
12785 done
12786
12787 if test "x$ac_cv_func_fork" = xyes; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12789 $as_echo_n "checking for working fork... " >&6; }
12790 if test "${ac_cv_func_fork_works+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 if test "$cross_compiling" = yes; then :
12794 ac_cv_func_fork_works=cross
12795 else
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 $ac_includes_default
12799 int
12800 main ()
12801 {
12802
12803 /* By Ruediger Kuhlmann. */
12804 return fork () < 0;
12805
12806 ;
12807 return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_run "$LINENO"; then :
12811 ac_cv_func_fork_works=yes
12812 else
12813 ac_cv_func_fork_works=no
12814 fi
12815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12816 conftest.$ac_objext conftest.beam conftest.$ac_ext
12817 fi
12818
12819 fi
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12821 $as_echo "$ac_cv_func_fork_works" >&6; }
12822
12823 else
12824 ac_cv_func_fork_works=$ac_cv_func_fork
12825 fi
12826 if test "x$ac_cv_func_fork_works" = xcross; then
12827 case $host in
12828 *-*-amigaos* | *-*-msdosdjgpp*)
12829 # Override, as these systems have only a dummy fork() stub
12830 ac_cv_func_fork_works=no
12831 ;;
12832 *)
12833 ac_cv_func_fork_works=yes
12834 ;;
12835 esac
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12837 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12838 fi
12839 ac_cv_func_vfork_works=$ac_cv_func_vfork
12840 if test "x$ac_cv_func_vfork" = xyes; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12842 $as_echo_n "checking for working vfork... " >&6; }
12843 if test "${ac_cv_func_vfork_works+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 if test "$cross_compiling" = yes; then :
12847 ac_cv_func_vfork_works=cross
12848 else
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 /* Thanks to Paul Eggert for this test. */
12852 $ac_includes_default
12853 #include <sys/wait.h>
12854 #ifdef HAVE_VFORK_H
12855 # include <vfork.h>
12856 #endif
12857 /* On some sparc systems, changes by the child to local and incoming
12858 argument registers are propagated back to the parent. The compiler
12859 is told about this with #include <vfork.h>, but some compilers
12860 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12861 static variable whose address is put into a register that is
12862 clobbered by the vfork. */
12863 static void
12864 #ifdef __cplusplus
12865 sparc_address_test (int arg)
12866 # else
12867 sparc_address_test (arg) int arg;
12868 #endif
12869 {
12870 static pid_t child;
12871 if (!child) {
12872 child = vfork ();
12873 if (child < 0) {
12874 perror ("vfork");
12875 _exit(2);
12876 }
12877 if (!child) {
12878 arg = getpid();
12879 write(-1, "", 0);
12880 _exit (arg);
12881 }
12882 }
12883 }
12884
12885 int
12886 main ()
12887 {
12888 pid_t parent = getpid ();
12889 pid_t child;
12890
12891 sparc_address_test (0);
12892
12893 child = vfork ();
12894
12895 if (child == 0) {
12896 /* Here is another test for sparc vfork register problems. This
12897 test uses lots of local variables, at least as many local
12898 variables as main has allocated so far including compiler
12899 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12900 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12901 reuse the register of parent for one of the local variables,
12902 since it will think that parent can't possibly be used any more
12903 in this routine. Assigning to the local variable will thus
12904 munge parent in the parent process. */
12905 pid_t
12906 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12907 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12908 /* Convince the compiler that p..p7 are live; otherwise, it might
12909 use the same hardware register for all 8 local variables. */
12910 if (p != p1 || p != p2 || p != p3 || p != p4
12911 || p != p5 || p != p6 || p != p7)
12912 _exit(1);
12913
12914 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12915 from child file descriptors. If the child closes a descriptor
12916 before it execs or exits, this munges the parent's descriptor
12917 as well. Test for this by closing stdout in the child. */
12918 _exit(close(fileno(stdout)) != 0);
12919 } else {
12920 int status;
12921 struct stat st;
12922
12923 while (wait(&status) != child)
12924 ;
12925 return (
12926 /* Was there some problem with vforking? */
12927 child < 0
12928
12929 /* Did the child fail? (This shouldn't happen.) */
12930 || status
12931
12932 /* Did the vfork/compiler bug occur? */
12933 || parent != getpid()
12934
12935 /* Did the file descriptor bug occur? */
12936 || fstat(fileno(stdout), &st) != 0
12937 );
12938 }
12939 }
12940 _ACEOF
12941 if ac_fn_c_try_run "$LINENO"; then :
12942 ac_cv_func_vfork_works=yes
12943 else
12944 ac_cv_func_vfork_works=no
12945 fi
12946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12947 conftest.$ac_objext conftest.beam conftest.$ac_ext
12948 fi
12949
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12952 $as_echo "$ac_cv_func_vfork_works" >&6; }
12953
12954 fi;
12955 if test "x$ac_cv_func_fork_works" = xcross; then
12956 ac_cv_func_vfork_works=$ac_cv_func_vfork
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12958 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12959 fi
12960
12961 if test "x$ac_cv_func_vfork_works" = xyes; then
12962
12963 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12964
12965 else
12966
12967 $as_echo "#define vfork fork" >>confdefs.h
12968
12969 fi
12970 if test "x$ac_cv_func_fork_works" = xyes; then
12971
12972 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12973
12974 fi
12975
12976
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12978 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12979 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12984 #include <langinfo.h>
12985 int
12986 main ()
12987 {
12988 char* cs = nl_langinfo(CODESET);
12989 ;
12990 return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_c_try_link "$LINENO"; then :
12994 emacs_cv_langinfo_codeset=yes
12995 else
12996 emacs_cv_langinfo_codeset=no
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext conftest.$ac_ext
13000
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13003 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13004 if test $emacs_cv_langinfo_codeset = yes; then
13005
13006 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13007
13008 fi
13009
13010 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13011 if test "x$ac_cv_type_size_t" = x""yes; then :
13012
13013 cat >>confdefs.h <<_ACEOF
13014 #define HAVE_SIZE_T 1
13015 _ACEOF
13016
13017
13018 fi
13019
13020
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13022 $as_echo_n "checking for mbstate_t... " >&6; }
13023 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 $ac_includes_default
13029 # include <wchar.h>
13030 int
13031 main ()
13032 {
13033 mbstate_t x; return sizeof x;
13034 ;
13035 return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039 ac_cv_type_mbstate_t=yes
13040 else
13041 ac_cv_type_mbstate_t=no
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044 fi
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13046 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13047 if test $ac_cv_type_mbstate_t = yes; then
13048
13049 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13050
13051 else
13052
13053 $as_echo "#define mbstate_t int" >>confdefs.h
13054
13055 fi
13056
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13058 $as_echo_n "checking for C restrict keyword... " >&6; }
13059 if test "${emacs_cv_c_restrict+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 void fred (int *restrict x);
13065 int
13066 main ()
13067 {
13068
13069 ;
13070 return 0;
13071 }
13072 _ACEOF
13073 if ac_fn_c_try_compile "$LINENO"; then :
13074 emacs_cv_c_restrict=yes
13075 else
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13078 void fred (int *__restrict x);
13079 int
13080 main ()
13081 {
13082
13083 ;
13084 return 0;
13085 }
13086 _ACEOF
13087 if ac_fn_c_try_compile "$LINENO"; then :
13088 emacs_cv_c_restrict=__restrict
13089 else
13090 emacs_cv_c_restrict=no
13091 fi
13092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093 fi
13094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13097 $as_echo "$emacs_cv_c_restrict" >&6; }
13098 case "$emacs_cv_c_restrict" in
13099 yes) emacs_restrict=restrict;;
13100 no) emacs_restrict="";;
13101 *) emacs_restrict="$emacs_cv_c_restrict";;
13102 esac
13103 if test "$emacs_restrict" != __restrict; then
13104
13105 cat >>confdefs.h <<_ACEOF
13106 #define __restrict $emacs_restrict
13107 _ACEOF
13108
13109 fi
13110
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13112 $as_echo_n "checking for C restricted array declarations... " >&6; }
13113 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 void fred (int x[__restrict]);
13119 int
13120 main ()
13121 {
13122
13123 ;
13124 return 0;
13125 }
13126 _ACEOF
13127 if ac_fn_c_try_compile "$LINENO"; then :
13128 emacs_cv_c_restrict_arr=yes
13129 else
13130 emacs_cv_c_restrict_arr=no
13131 fi
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133 fi
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13135 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13136 if test "$emacs_cv_c_restrict_arr" = yes; then
13137
13138 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13139
13140 fi
13141
13142
13143
13144 # Set up the CFLAGS for real compilation, so we can substitute it.
13145 CFLAGS="$REAL_CFLAGS"
13146 CPPFLAGS="$REAL_CPPFLAGS"
13147
13148 #### Find out which version of Emacs this is.
13149 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13150 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13151 if test x"${version}" = x; then
13152 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13153 fi
13154 if test x"${version}" != x"$PACKAGE_VERSION"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13156 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13157 fi
13158
13159 ### Specify what sort of things we'll be editing into Makefile and config.h.
13160 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205 cat >>confdefs.h <<_ACEOF
13206 #define EMACS_CONFIGURATION "${canonical}"
13207 _ACEOF
13208
13209
13210 cat >>confdefs.h <<_ACEOF
13211 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13212 _ACEOF
13213
13214
13215 cat >>confdefs.h <<_ACEOF
13216 #define config_machfile "${machfile}"
13217 _ACEOF
13218
13219
13220 cat >>confdefs.h <<_ACEOF
13221 #define config_opsysfile "${opsysfile}"
13222 _ACEOF
13223
13224
13225 cat >>confdefs.h <<_ACEOF
13226 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13227 _ACEOF
13228
13229
13230 cat >>confdefs.h <<_ACEOF
13231 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13232 _ACEOF
13233
13234
13235 cat >>confdefs.h <<_ACEOF
13236 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13237 _ACEOF
13238
13239
13240 cat >>confdefs.h <<_ACEOF
13241 #define UNEXEC_SRC ${UNEXEC_SRC}
13242 _ACEOF
13243
13244
13245 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13246
13247 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13248
13249 fi
13250 if test "${USE_X_TOOLKIT}" != "none" ; then
13251
13252 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13253
13254 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13255
13256 $as_echo "#define USE_LUCID 1" >>confdefs.h
13257
13258 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13259
13260 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13261
13262 fi
13263 fi
13264 if test "${HAVE_X11}" = "yes" ; then
13265
13266 $as_echo "#define HAVE_X11 1" >>confdefs.h
13267
13268 fi
13269 if test "${HAVE_MENUS}" = "yes" ; then
13270
13271 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13272
13273 fi
13274 if test "${GNU_MALLOC}" = "yes" ; then
13275
13276 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13277
13278 fi
13279 if test "${REL_ALLOC}" = "yes" ; then
13280
13281 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13282
13283 fi
13284
13285
13286
13287
13288 #### Report on what we decided to do.
13289 #### Report GTK as a toolkit, even if it doesn't use Xt.
13290 #### It makes printing result more understandable as using GTK sets
13291 #### toolkit_scroll_bars to yes by default.
13292 if test "${HAVE_GTK}" = "yes"; then
13293 USE_X_TOOLKIT=GTK
13294 fi
13295
13296 echo "
13297 Configured for \`${canonical}'.
13298
13299 Where should the build process find the source code? ${srcdir}
13300 What operating system and machine description files should Emacs use?
13301 \`${opsysfile}' and \`${machfile}'
13302 What compiler should emacs be built with? ${CC} ${CFLAGS}
13303 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13304 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13305 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13306 What window system should Emacs use? ${window_system}
13307 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13308
13309 if test -n "${x_includes}"; then
13310 echo " Where do we find X Windows header files? ${x_includes}"
13311 else
13312 echo " Where do we find X Windows header files? Standard dirs"
13313 fi
13314 if test -n "${x_libraries}"; then
13315 echo " Where do we find X Windows libraries? ${x_libraries}"
13316 else
13317 echo " Where do we find X Windows libraries? Standard dirs"
13318 fi
13319
13320 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13321 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13322 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13323 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13324 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
13325 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13326 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13327 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13328 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13329 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13330
13331 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13332 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13333 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13334 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13335
13336 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13337 echo
13338
13339 if test $USE_XASSERTS = yes; then
13340 echo " Compiling with asserts turned on."
13341 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
13342 fi
13343
13344 echo
13345
13346 if test "$HAVE_NS" = "yes"; then
13347 echo
13348 echo "You must run \"make install\" in order to test the built application.
13349 The installed application will go to nextstep/Emacs.app and can be
13350 run or moved from there."
13351 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13352 echo "The application will be fully self-contained."
13353 else
13354 echo "The lisp resources for the application will be installed under ${prefix}.
13355 You may need to run \"make install\" with sudo. The application will fail
13356 to run if these resources are not installed."
13357 fi
13358 echo
13359 fi
13360
13361 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13362 echo "D-Bus integration has been tested for GNU/Linux only."
13363 echo
13364 fi
13365
13366
13367 # Remove any trailing slashes in these variables.
13368 test "${prefix}" != NONE &&
13369 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13370 test "${exec_prefix}" != NONE &&
13371 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13372
13373 # Now get this: Some word that is part of the ${srcdir} directory name
13374 # or the ${configuration} value might, just might, happen to be an
13375 # identifier like `sun4' or `i386' or something, and be predefined by
13376 # the C preprocessor to some helpful value like 1, or maybe the empty
13377 # string. Needless to say consequent macro substitutions are less
13378 # than conducive to the makefile finding the correct directory.
13379 cpp_undefs="`echo $srcdir $configuration $canonical |
13380 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13381 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13382
13383 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13384 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13385 ## from Makefile.c can correctly provide the arg `-traditional' to the
13386 ## C preprocessor.
13387
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 yes..yes
13391 _ACEOF
13392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13393 $EGREP "yes..yes" >/dev/null 2>&1; then :
13394 CPP_NEED_TRADITIONAL=no
13395 else
13396 CPP_NEED_TRADITIONAL=yes
13397 fi
13398 rm -f conftest*
13399
13400
13401 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
13402
13403 ac_config_commands="$ac_config_commands default"
13404
13405 cat >confcache <<\_ACEOF
13406 # This file is a shell script that caches the results of configure
13407 # tests run on this system so they can be shared between configure
13408 # scripts and configure runs, see configure's option --config-cache.
13409 # It is not useful on other systems. If it contains results you don't
13410 # want to keep, you may remove or edit it.
13411 #
13412 # config.status only pays attention to the cache file if you give it
13413 # the --recheck option to rerun configure.
13414 #
13415 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13417 # following values.
13418
13419 _ACEOF
13420
13421 # The following way of writing the cache mishandles newlines in values,
13422 # but we know of no workaround that is simple, portable, and efficient.
13423 # So, we kill variables containing newlines.
13424 # Ultrix sh set writes to stderr and can't be redirected directly,
13425 # and sets the high bit in the cache file unless we assign to the vars.
13426 (
13427 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13428 eval ac_val=\$$ac_var
13429 case $ac_val in #(
13430 *${as_nl}*)
13431 case $ac_var in #(
13432 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13433 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13434 esac
13435 case $ac_var in #(
13436 _ | IFS | as_nl) ;; #(
13437 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13438 *) { eval $ac_var=; unset $ac_var;} ;;
13439 esac ;;
13440 esac
13441 done
13442
13443 (set) 2>&1 |
13444 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13445 *${as_nl}ac_space=\ *)
13446 # `set' does not quote correctly, so add quotes: double-quote
13447 # substitution turns \\\\ into \\, and sed turns \\ into \.
13448 sed -n \
13449 "s/'/'\\\\''/g;
13450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13451 ;; #(
13452 *)
13453 # `set' quotes correctly as required by POSIX, so do not add quotes.
13454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13455 ;;
13456 esac |
13457 sort
13458 ) |
13459 sed '
13460 /^ac_cv_env_/b end
13461 t clear
13462 :clear
13463 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13464 t end
13465 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13466 :end' >>confcache
13467 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13468 if test -w "$cache_file"; then
13469 test "x$cache_file" != "x/dev/null" &&
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13471 $as_echo "$as_me: updating cache $cache_file" >&6;}
13472 cat confcache >$cache_file
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13475 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13476 fi
13477 fi
13478 rm -f confcache
13479
13480 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13481 # Let make expand exec_prefix.
13482 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13483
13484 DEFS=-DHAVE_CONFIG_H
13485
13486 ac_libobjs=
13487 ac_ltlibobjs=
13488 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13489 # 1. Remove the extension, and $U if already installed.
13490 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13491 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13492 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13493 # will be set to the directory where LIBOBJS objects are built.
13494 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13495 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13496 done
13497 LIBOBJS=$ac_libobjs
13498
13499 LTLIBOBJS=$ac_ltlibobjs
13500
13501
13502
13503 : ${CONFIG_STATUS=./config.status}
13504 ac_write_fail=0
13505 ac_clean_files_save=$ac_clean_files
13506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13508 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13509 as_write_fail=0
13510 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13511 #! $SHELL
13512 # Generated by $as_me.
13513 # Run this file to recreate the current configuration.
13514 # Compiler output produced by configure, useful for debugging
13515 # configure, is in config.log if it exists.
13516
13517 debug=false
13518 ac_cs_recheck=false
13519 ac_cs_silent=false
13520
13521 SHELL=\${CONFIG_SHELL-$SHELL}
13522 export SHELL
13523 _ASEOF
13524 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13525 ## -------------------- ##
13526 ## M4sh Initialization. ##
13527 ## -------------------- ##
13528
13529 # Be more Bourne compatible
13530 DUALCASE=1; export DUALCASE # for MKS sh
13531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13532 emulate sh
13533 NULLCMD=:
13534 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13535 # is contrary to our usage. Disable this feature.
13536 alias -g '${1+"$@"}'='"$@"'
13537 setopt NO_GLOB_SUBST
13538 else
13539 case `(set -o) 2>/dev/null` in #(
13540 *posix*) :
13541 set -o posix ;; #(
13542 *) :
13543 ;;
13544 esac
13545 fi
13546
13547
13548 as_nl='
13549 '
13550 export as_nl
13551 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13552 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13555 # Prefer a ksh shell builtin over an external printf program on Solaris,
13556 # but without wasting forks for bash or zsh.
13557 if test -z "$BASH_VERSION$ZSH_VERSION" \
13558 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13559 as_echo='print -r --'
13560 as_echo_n='print -rn --'
13561 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13562 as_echo='printf %s\n'
13563 as_echo_n='printf %s'
13564 else
13565 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13566 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13567 as_echo_n='/usr/ucb/echo -n'
13568 else
13569 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13570 as_echo_n_body='eval
13571 arg=$1;
13572 case $arg in #(
13573 *"$as_nl"*)
13574 expr "X$arg" : "X\\(.*\\)$as_nl";
13575 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13576 esac;
13577 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13578 '
13579 export as_echo_n_body
13580 as_echo_n='sh -c $as_echo_n_body as_echo'
13581 fi
13582 export as_echo_body
13583 as_echo='sh -c $as_echo_body as_echo'
13584 fi
13585
13586 # The user is always right.
13587 if test "${PATH_SEPARATOR+set}" != set; then
13588 PATH_SEPARATOR=:
13589 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13590 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13591 PATH_SEPARATOR=';'
13592 }
13593 fi
13594
13595
13596 # IFS
13597 # We need space, tab and new line, in precisely that order. Quoting is
13598 # there to prevent editors from complaining about space-tab.
13599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13600 # splitting by setting IFS to empty value.)
13601 IFS=" "" $as_nl"
13602
13603 # Find who we are. Look in the path if we contain no directory separator.
13604 case $0 in #((
13605 *[\\/]* ) as_myself=$0 ;;
13606 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607 for as_dir in $PATH
13608 do
13609 IFS=$as_save_IFS
13610 test -z "$as_dir" && as_dir=.
13611 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13612 done
13613 IFS=$as_save_IFS
13614
13615 ;;
13616 esac
13617 # We did not find ourselves, most probably we were run as `sh COMMAND'
13618 # in which case we are not to be found in the path.
13619 if test "x$as_myself" = x; then
13620 as_myself=$0
13621 fi
13622 if test ! -f "$as_myself"; then
13623 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13624 exit 1
13625 fi
13626
13627 # Unset variables that we do not need and which cause bugs (e.g. in
13628 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13629 # suppresses any "Segmentation fault" message there. '((' could
13630 # trigger a bug in pdksh 5.2.14.
13631 for as_var in BASH_ENV ENV MAIL MAILPATH
13632 do eval test x\${$as_var+set} = xset \
13633 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13634 done
13635 PS1='$ '
13636 PS2='> '
13637 PS4='+ '
13638
13639 # NLS nuisances.
13640 LC_ALL=C
13641 export LC_ALL
13642 LANGUAGE=C
13643 export LANGUAGE
13644
13645 # CDPATH.
13646 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13647
13648
13649 # as_fn_error ERROR [LINENO LOG_FD]
13650 # ---------------------------------
13651 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13652 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13653 # script with status $?, using 1 if that was 0.
13654 as_fn_error ()
13655 {
13656 as_status=$?; test $as_status -eq 0 && as_status=1
13657 if test "$3"; then
13658 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13659 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13660 fi
13661 $as_echo "$as_me: error: $1" >&2
13662 as_fn_exit $as_status
13663 } # as_fn_error
13664
13665
13666 # as_fn_set_status STATUS
13667 # -----------------------
13668 # Set $? to STATUS, without forking.
13669 as_fn_set_status ()
13670 {
13671 return $1
13672 } # as_fn_set_status
13673
13674 # as_fn_exit STATUS
13675 # -----------------
13676 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13677 as_fn_exit ()
13678 {
13679 set +e
13680 as_fn_set_status $1
13681 exit $1
13682 } # as_fn_exit
13683
13684 # as_fn_unset VAR
13685 # ---------------
13686 # Portably unset VAR.
13687 as_fn_unset ()
13688 {
13689 { eval $1=; unset $1;}
13690 }
13691 as_unset=as_fn_unset
13692 # as_fn_append VAR VALUE
13693 # ----------------------
13694 # Append the text in VALUE to the end of the definition contained in VAR. Take
13695 # advantage of any shell optimizations that allow amortized linear growth over
13696 # repeated appends, instead of the typical quadratic growth present in naive
13697 # implementations.
13698 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13699 eval 'as_fn_append ()
13700 {
13701 eval $1+=\$2
13702 }'
13703 else
13704 as_fn_append ()
13705 {
13706 eval $1=\$$1\$2
13707 }
13708 fi # as_fn_append
13709
13710 # as_fn_arith ARG...
13711 # ------------------
13712 # Perform arithmetic evaluation on the ARGs, and store the result in the
13713 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13714 # must be portable across $(()) and expr.
13715 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13716 eval 'as_fn_arith ()
13717 {
13718 as_val=$(( $* ))
13719 }'
13720 else
13721 as_fn_arith ()
13722 {
13723 as_val=`expr "$@" || test $? -eq 1`
13724 }
13725 fi # as_fn_arith
13726
13727
13728 if expr a : '\(a\)' >/dev/null 2>&1 &&
13729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13730 as_expr=expr
13731 else
13732 as_expr=false
13733 fi
13734
13735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13736 as_basename=basename
13737 else
13738 as_basename=false
13739 fi
13740
13741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13742 as_dirname=dirname
13743 else
13744 as_dirname=false
13745 fi
13746
13747 as_me=`$as_basename -- "$0" ||
13748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13749 X"$0" : 'X\(//\)$' \| \
13750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13751 $as_echo X/"$0" |
13752 sed '/^.*\/\([^/][^/]*\)\/*$/{
13753 s//\1/
13754 q
13755 }
13756 /^X\/\(\/\/\)$/{
13757 s//\1/
13758 q
13759 }
13760 /^X\/\(\/\).*/{
13761 s//\1/
13762 q
13763 }
13764 s/.*/./; q'`
13765
13766 # Avoid depending upon Character Ranges.
13767 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13768 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13769 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13770 as_cr_digits='0123456789'
13771 as_cr_alnum=$as_cr_Letters$as_cr_digits
13772
13773 ECHO_C= ECHO_N= ECHO_T=
13774 case `echo -n x` in #(((((
13775 -n*)
13776 case `echo 'xy\c'` in
13777 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13778 xy) ECHO_C='\c';;
13779 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13780 ECHO_T=' ';;
13781 esac;;
13782 *)
13783 ECHO_N='-n';;
13784 esac
13785
13786 rm -f conf$$ conf$$.exe conf$$.file
13787 if test -d conf$$.dir; then
13788 rm -f conf$$.dir/conf$$.file
13789 else
13790 rm -f conf$$.dir
13791 mkdir conf$$.dir 2>/dev/null
13792 fi
13793 if (echo >conf$$.file) 2>/dev/null; then
13794 if ln -s conf$$.file conf$$ 2>/dev/null; then
13795 as_ln_s='ln -s'
13796 # ... but there are two gotchas:
13797 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13798 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13799 # In both cases, we have to default to `cp -p'.
13800 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13801 as_ln_s='cp -p'
13802 elif ln conf$$.file conf$$ 2>/dev/null; then
13803 as_ln_s=ln
13804 else
13805 as_ln_s='cp -p'
13806 fi
13807 else
13808 as_ln_s='cp -p'
13809 fi
13810 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13811 rmdir conf$$.dir 2>/dev/null
13812
13813
13814 # as_fn_mkdir_p
13815 # -------------
13816 # Create "$as_dir" as a directory, including parents if necessary.
13817 as_fn_mkdir_p ()
13818 {
13819
13820 case $as_dir in #(
13821 -*) as_dir=./$as_dir;;
13822 esac
13823 test -d "$as_dir" || eval $as_mkdir_p || {
13824 as_dirs=
13825 while :; do
13826 case $as_dir in #(
13827 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13828 *) as_qdir=$as_dir;;
13829 esac
13830 as_dirs="'$as_qdir' $as_dirs"
13831 as_dir=`$as_dirname -- "$as_dir" ||
13832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833 X"$as_dir" : 'X\(//\)[^/]' \| \
13834 X"$as_dir" : 'X\(//\)$' \| \
13835 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13836 $as_echo X"$as_dir" |
13837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13838 s//\1/
13839 q
13840 }
13841 /^X\(\/\/\)[^/].*/{
13842 s//\1/
13843 q
13844 }
13845 /^X\(\/\/\)$/{
13846 s//\1/
13847 q
13848 }
13849 /^X\(\/\).*/{
13850 s//\1/
13851 q
13852 }
13853 s/.*/./; q'`
13854 test -d "$as_dir" && break
13855 done
13856 test -z "$as_dirs" || eval "mkdir $as_dirs"
13857 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13858
13859
13860 } # as_fn_mkdir_p
13861 if mkdir -p . 2>/dev/null; then
13862 as_mkdir_p='mkdir -p "$as_dir"'
13863 else
13864 test -d ./-p && rmdir ./-p
13865 as_mkdir_p=false
13866 fi
13867
13868 if test -x / >/dev/null 2>&1; then
13869 as_test_x='test -x'
13870 else
13871 if ls -dL / >/dev/null 2>&1; then
13872 as_ls_L_option=L
13873 else
13874 as_ls_L_option=
13875 fi
13876 as_test_x='
13877 eval sh -c '\''
13878 if test -d "$1"; then
13879 test -d "$1/.";
13880 else
13881 case $1 in #(
13882 -*)set "./$1";;
13883 esac;
13884 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13885 ???[sx]*):;;*)false;;esac;fi
13886 '\'' sh
13887 '
13888 fi
13889 as_executable_p=$as_test_x
13890
13891 # Sed expression to map a string onto a valid CPP name.
13892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13893
13894 # Sed expression to map a string onto a valid variable name.
13895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13896
13897
13898 exec 6>&1
13899 ## ----------------------------------- ##
13900 ## Main body of $CONFIG_STATUS script. ##
13901 ## ----------------------------------- ##
13902 _ASEOF
13903 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13904
13905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13906 # Save the log message, to keep $0 and so on meaningful, and to
13907 # report actual input values of CONFIG_FILES etc. instead of their
13908 # values after options handling.
13909 ac_log="
13910 This file was extended by emacs $as_me 23.1.92, which was
13911 generated by GNU Autoconf 2.65. Invocation command line was
13912
13913 CONFIG_FILES = $CONFIG_FILES
13914 CONFIG_HEADERS = $CONFIG_HEADERS
13915 CONFIG_LINKS = $CONFIG_LINKS
13916 CONFIG_COMMANDS = $CONFIG_COMMANDS
13917 $ $0 $@
13918
13919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13920 "
13921
13922 _ACEOF
13923
13924 case $ac_config_files in *"
13925 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13926 esac
13927
13928 case $ac_config_headers in *"
13929 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13930 esac
13931
13932
13933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13934 # Files that config.status was made for.
13935 config_files="$ac_config_files"
13936 config_headers="$ac_config_headers"
13937 config_commands="$ac_config_commands"
13938
13939 _ACEOF
13940
13941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13942 ac_cs_usage="\
13943 \`$as_me' instantiates files and other configuration actions
13944 from templates according to the current configuration. Unless the files
13945 and actions are specified as TAGs, all are instantiated by default.
13946
13947 Usage: $0 [OPTION]... [TAG]...
13948
13949 -h, --help print this help, then exit
13950 -V, --version print version number and configuration settings, then exit
13951 --config print configuration, then exit
13952 -q, --quiet, --silent
13953 do not print progress messages
13954 -d, --debug don't remove temporary files
13955 --recheck update $as_me by reconfiguring in the same conditions
13956 --file=FILE[:TEMPLATE]
13957 instantiate the configuration file FILE
13958 --header=FILE[:TEMPLATE]
13959 instantiate the configuration header FILE
13960
13961 Configuration files:
13962 $config_files
13963
13964 Configuration headers:
13965 $config_headers
13966
13967 Configuration commands:
13968 $config_commands
13969
13970 Report bugs to the package provider."
13971
13972 _ACEOF
13973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13974 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13975 ac_cs_version="\\
13976 emacs config.status 23.1.92
13977 configured by $0, generated by GNU Autoconf 2.65,
13978 with options \\"\$ac_cs_config\\"
13979
13980 Copyright (C) 2009 Free Software Foundation, Inc.
13981 This config.status script is free software; the Free Software Foundation
13982 gives unlimited permission to copy, distribute and modify it."
13983
13984 ac_pwd='$ac_pwd'
13985 srcdir='$srcdir'
13986 INSTALL='$INSTALL'
13987 test -n "\$AWK" || AWK=awk
13988 _ACEOF
13989
13990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13991 # The default lists apply if the user does not specify any file.
13992 ac_need_defaults=:
13993 while test $# != 0
13994 do
13995 case $1 in
13996 --*=*)
13997 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13998 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13999 ac_shift=:
14000 ;;
14001 *)
14002 ac_option=$1
14003 ac_optarg=$2
14004 ac_shift=shift
14005 ;;
14006 esac
14007
14008 case $ac_option in
14009 # Handling of the options.
14010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14011 ac_cs_recheck=: ;;
14012 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14013 $as_echo "$ac_cs_version"; exit ;;
14014 --config | --confi | --conf | --con | --co | --c )
14015 $as_echo "$ac_cs_config"; exit ;;
14016 --debug | --debu | --deb | --de | --d | -d )
14017 debug=: ;;
14018 --file | --fil | --fi | --f )
14019 $ac_shift
14020 case $ac_optarg in
14021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14022 esac
14023 as_fn_append CONFIG_FILES " '$ac_optarg'"
14024 ac_need_defaults=false;;
14025 --header | --heade | --head | --hea )
14026 $ac_shift
14027 case $ac_optarg in
14028 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14029 esac
14030 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14031 ac_need_defaults=false;;
14032 --he | --h)
14033 # Conflict between --help and --header
14034 as_fn_error "ambiguous option: \`$1'
14035 Try \`$0 --help' for more information.";;
14036 --help | --hel | -h )
14037 $as_echo "$ac_cs_usage"; exit ;;
14038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14039 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14040 ac_cs_silent=: ;;
14041
14042 # This is an error.
14043 -*) as_fn_error "unrecognized option: \`$1'
14044 Try \`$0 --help' for more information." ;;
14045
14046 *) as_fn_append ac_config_targets " $1"
14047 ac_need_defaults=false ;;
14048
14049 esac
14050 shift
14051 done
14052
14053 ac_configure_extra_args=
14054
14055 if $ac_cs_silent; then
14056 exec 6>/dev/null
14057 ac_configure_extra_args="$ac_configure_extra_args --silent"
14058 fi
14059
14060 _ACEOF
14061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14062 if \$ac_cs_recheck; then
14063 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14064 shift
14065 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14066 CONFIG_SHELL='$SHELL'
14067 export CONFIG_SHELL
14068 exec "\$@"
14069 fi
14070
14071 _ACEOF
14072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14073 exec 5>>config.log
14074 {
14075 echo
14076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14077 ## Running $as_me. ##
14078 _ASBOX
14079 $as_echo "$ac_log"
14080 } >&5
14081
14082 _ACEOF
14083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14084 #
14085 # INIT-COMMANDS
14086 #
14087 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14088
14089 _ACEOF
14090
14091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14092
14093 # Handling of arguments.
14094 for ac_config_target in $ac_config_targets
14095 do
14096 case $ac_config_target in
14097 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14098 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14099 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14100 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14101 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14102 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14103 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14104 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14105 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14106 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14107 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14108 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14109 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14110
14111 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14112 esac
14113 done
14114
14115
14116 # If the user did not use the arguments to specify the items to instantiate,
14117 # then the envvar interface is used. Set only those that are not.
14118 # We use the long form for the default assignment because of an extremely
14119 # bizarre bug on SunOS 4.1.3.
14120 if $ac_need_defaults; then
14121 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14122 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14123 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14124 fi
14125
14126 # Have a temporary directory for convenience. Make it in the build tree
14127 # simply because there is no reason against having it here, and in addition,
14128 # creating and moving files from /tmp can sometimes cause problems.
14129 # Hook for its removal unless debugging.
14130 # Note that there is a small window in which the directory will not be cleaned:
14131 # after its creation but before its name has been assigned to `$tmp'.
14132 $debug ||
14133 {
14134 tmp=
14135 trap 'exit_status=$?
14136 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14137 ' 0
14138 trap 'as_fn_exit 1' 1 2 13 15
14139 }
14140 # Create a (secure) tmp directory for tmp files.
14141
14142 {
14143 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14144 test -n "$tmp" && test -d "$tmp"
14145 } ||
14146 {
14147 tmp=./conf$$-$RANDOM
14148 (umask 077 && mkdir "$tmp")
14149 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14150
14151 # Set up the scripts for CONFIG_FILES section.
14152 # No need to generate them if there are no CONFIG_FILES.
14153 # This happens for instance with `./config.status config.h'.
14154 if test -n "$CONFIG_FILES"; then
14155
14156
14157 ac_cr=`echo X | tr X '\015'`
14158 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14159 # But we know of no other shell where ac_cr would be empty at this
14160 # point, so we can use a bashism as a fallback.
14161 if test "x$ac_cr" = x; then
14162 eval ac_cr=\$\'\\r\'
14163 fi
14164 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14165 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14166 ac_cs_awk_cr='\r'
14167 else
14168 ac_cs_awk_cr=$ac_cr
14169 fi
14170
14171 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14172 _ACEOF
14173
14174
14175 {
14176 echo "cat >conf$$subs.awk <<_ACEOF" &&
14177 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14178 echo "_ACEOF"
14179 } >conf$$subs.sh ||
14180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14181 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14182 ac_delim='%!_!# '
14183 for ac_last_try in false false false false false :; do
14184 . ./conf$$subs.sh ||
14185 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14186
14187 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14188 if test $ac_delim_n = $ac_delim_num; then
14189 break
14190 elif $ac_last_try; then
14191 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14192 else
14193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14194 fi
14195 done
14196 rm -f conf$$subs.sh
14197
14198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14199 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14200 _ACEOF
14201 sed -n '
14202 h
14203 s/^/S["/; s/!.*/"]=/
14204 p
14205 g
14206 s/^[^!]*!//
14207 :repl
14208 t repl
14209 s/'"$ac_delim"'$//
14210 t delim
14211 :nl
14212 h
14213 s/\(.\{148\}\)..*/\1/
14214 t more1
14215 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14216 p
14217 n
14218 b repl
14219 :more1
14220 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14221 p
14222 g
14223 s/.\{148\}//
14224 t nl
14225 :delim
14226 h
14227 s/\(.\{148\}\)..*/\1/
14228 t more2
14229 s/["\\]/\\&/g; s/^/"/; s/$/"/
14230 p
14231 b
14232 :more2
14233 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14234 p
14235 g
14236 s/.\{148\}//
14237 t delim
14238 ' <conf$$subs.awk | sed '
14239 /^[^""]/{
14240 N
14241 s/\n//
14242 }
14243 ' >>$CONFIG_STATUS || ac_write_fail=1
14244 rm -f conf$$subs.awk
14245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14246 _ACAWK
14247 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14248 for (key in S) S_is_set[key] = 1
14249 FS = "\a"
14250
14251 }
14252 {
14253 line = $ 0
14254 nfields = split(line, field, "@")
14255 substed = 0
14256 len = length(field[1])
14257 for (i = 2; i < nfields; i++) {
14258 key = field[i]
14259 keylen = length(key)
14260 if (S_is_set[key]) {
14261 value = S[key]
14262 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14263 len += length(value) + length(field[++i])
14264 substed = 1
14265 } else
14266 len += 1 + keylen
14267 }
14268
14269 print line
14270 }
14271
14272 _ACAWK
14273 _ACEOF
14274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14275 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14276 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14277 else
14278 cat
14279 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14280 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14281 _ACEOF
14282
14283 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14284 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14285 # trailing colons and then remove the whole line if VPATH becomes empty
14286 # (actually we leave an empty line to preserve line numbers).
14287 if test "x$srcdir" = x.; then
14288 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14289 s/:*\$(srcdir):*/:/
14290 s/:*\${srcdir}:*/:/
14291 s/:*@srcdir@:*/:/
14292 s/^\([^=]*=[ ]*\):*/\1/
14293 s/:*$//
14294 s/^[^=]*=[ ]*$//
14295 }'
14296 fi
14297
14298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14299 fi # test -n "$CONFIG_FILES"
14300
14301 # Set up the scripts for CONFIG_HEADERS section.
14302 # No need to generate them if there are no CONFIG_HEADERS.
14303 # This happens for instance with `./config.status Makefile'.
14304 if test -n "$CONFIG_HEADERS"; then
14305 cat >"$tmp/defines.awk" <<\_ACAWK ||
14306 BEGIN {
14307 _ACEOF
14308
14309 # Transform confdefs.h into an awk script `defines.awk', embedded as
14310 # here-document in config.status, that substitutes the proper values into
14311 # config.h.in to produce config.h.
14312
14313 # Create a delimiter string that does not exist in confdefs.h, to ease
14314 # handling of long lines.
14315 ac_delim='%!_!# '
14316 for ac_last_try in false false :; do
14317 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14318 if test -z "$ac_t"; then
14319 break
14320 elif $ac_last_try; then
14321 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14322 else
14323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14324 fi
14325 done
14326
14327 # For the awk script, D is an array of macro values keyed by name,
14328 # likewise P contains macro parameters if any. Preserve backslash
14329 # newline sequences.
14330
14331 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14332 sed -n '
14333 s/.\{148\}/&'"$ac_delim"'/g
14334 t rset
14335 :rset
14336 s/^[ ]*#[ ]*define[ ][ ]*/ /
14337 t def
14338 d
14339 :def
14340 s/\\$//
14341 t bsnl
14342 s/["\\]/\\&/g
14343 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14344 D["\1"]=" \3"/p
14345 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14346 d
14347 :bsnl
14348 s/["\\]/\\&/g
14349 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14350 D["\1"]=" \3\\\\\\n"\\/p
14351 t cont
14352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14353 t cont
14354 d
14355 :cont
14356 n
14357 s/.\{148\}/&'"$ac_delim"'/g
14358 t clear
14359 :clear
14360 s/\\$//
14361 t bsnlc
14362 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14363 d
14364 :bsnlc
14365 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14366 b cont
14367 ' <confdefs.h | sed '
14368 s/'"$ac_delim"'/"\\\
14369 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14370
14371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14372 for (key in D) D_is_set[key] = 1
14373 FS = "\a"
14374 }
14375 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14376 line = \$ 0
14377 split(line, arg, " ")
14378 if (arg[1] == "#") {
14379 defundef = arg[2]
14380 mac1 = arg[3]
14381 } else {
14382 defundef = substr(arg[1], 2)
14383 mac1 = arg[2]
14384 }
14385 split(mac1, mac2, "(") #)
14386 macro = mac2[1]
14387 prefix = substr(line, 1, index(line, defundef) - 1)
14388 if (D_is_set[macro]) {
14389 # Preserve the white space surrounding the "#".
14390 print prefix "define", macro P[macro] D[macro]
14391 next
14392 } else {
14393 # Replace #undef with comments. This is necessary, for example,
14394 # in the case of _POSIX_SOURCE, which is predefined and required
14395 # on some systems where configure will not decide to define it.
14396 if (defundef == "undef") {
14397 print "/*", prefix defundef, macro, "*/"
14398 next
14399 }
14400 }
14401 }
14402 { print }
14403 _ACAWK
14404 _ACEOF
14405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14406 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14407 fi # test -n "$CONFIG_HEADERS"
14408
14409
14410 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14411 shift
14412 for ac_tag
14413 do
14414 case $ac_tag in
14415 :[FHLC]) ac_mode=$ac_tag; continue;;
14416 esac
14417 case $ac_mode$ac_tag in
14418 :[FHL]*:*);;
14419 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14420 :[FH]-) ac_tag=-:-;;
14421 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14422 esac
14423 ac_save_IFS=$IFS
14424 IFS=:
14425 set x $ac_tag
14426 IFS=$ac_save_IFS
14427 shift
14428 ac_file=$1
14429 shift
14430
14431 case $ac_mode in
14432 :L) ac_source=$1;;
14433 :[FH])
14434 ac_file_inputs=
14435 for ac_f
14436 do
14437 case $ac_f in
14438 -) ac_f="$tmp/stdin";;
14439 *) # Look for the file first in the build tree, then in the source tree
14440 # (if the path is not absolute). The absolute path cannot be DOS-style,
14441 # because $ac_f cannot contain `:'.
14442 test -f "$ac_f" ||
14443 case $ac_f in
14444 [\\/$]*) false;;
14445 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14446 esac ||
14447 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14448 esac
14449 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14450 as_fn_append ac_file_inputs " '$ac_f'"
14451 done
14452
14453 # Let's still pretend it is `configure' which instantiates (i.e., don't
14454 # use $as_me), people would be surprised to read:
14455 # /* config.h. Generated by config.status. */
14456 configure_input='Generated from '`
14457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14458 `' by configure.'
14459 if test x"$ac_file" != x-; then
14460 configure_input="$ac_file. $configure_input"
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14462 $as_echo "$as_me: creating $ac_file" >&6;}
14463 fi
14464 # Neutralize special characters interpreted by sed in replacement strings.
14465 case $configure_input in #(
14466 *\&* | *\|* | *\\* )
14467 ac_sed_conf_input=`$as_echo "$configure_input" |
14468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14469 *) ac_sed_conf_input=$configure_input;;
14470 esac
14471
14472 case $ac_tag in
14473 *:-:* | *:-) cat >"$tmp/stdin" \
14474 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14475 esac
14476 ;;
14477 esac
14478
14479 ac_dir=`$as_dirname -- "$ac_file" ||
14480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14481 X"$ac_file" : 'X\(//\)[^/]' \| \
14482 X"$ac_file" : 'X\(//\)$' \| \
14483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14484 $as_echo X"$ac_file" |
14485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14486 s//\1/
14487 q
14488 }
14489 /^X\(\/\/\)[^/].*/{
14490 s//\1/
14491 q
14492 }
14493 /^X\(\/\/\)$/{
14494 s//\1/
14495 q
14496 }
14497 /^X\(\/\).*/{
14498 s//\1/
14499 q
14500 }
14501 s/.*/./; q'`
14502 as_dir="$ac_dir"; as_fn_mkdir_p
14503 ac_builddir=.
14504
14505 case "$ac_dir" in
14506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14507 *)
14508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14509 # A ".." for each directory in $ac_dir_suffix.
14510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14511 case $ac_top_builddir_sub in
14512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14514 esac ;;
14515 esac
14516 ac_abs_top_builddir=$ac_pwd
14517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14518 # for backward compatibility:
14519 ac_top_builddir=$ac_top_build_prefix
14520
14521 case $srcdir in
14522 .) # We are building in place.
14523 ac_srcdir=.
14524 ac_top_srcdir=$ac_top_builddir_sub
14525 ac_abs_top_srcdir=$ac_pwd ;;
14526 [\\/]* | ?:[\\/]* ) # Absolute name.
14527 ac_srcdir=$srcdir$ac_dir_suffix;
14528 ac_top_srcdir=$srcdir
14529 ac_abs_top_srcdir=$srcdir ;;
14530 *) # Relative name.
14531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14532 ac_top_srcdir=$ac_top_build_prefix$srcdir
14533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14534 esac
14535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14536
14537
14538 case $ac_mode in
14539 :F)
14540 #
14541 # CONFIG_FILE
14542 #
14543
14544 case $INSTALL in
14545 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14546 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14547 esac
14548 _ACEOF
14549
14550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14551 # If the template does not know about datarootdir, expand it.
14552 # FIXME: This hack should be removed a few years after 2.60.
14553 ac_datarootdir_hack=; ac_datarootdir_seen=
14554 ac_sed_dataroot='
14555 /datarootdir/ {
14556 p
14557 q
14558 }
14559 /@datadir@/p
14560 /@docdir@/p
14561 /@infodir@/p
14562 /@localedir@/p
14563 /@mandir@/p'
14564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14565 *datarootdir*) ac_datarootdir_seen=yes;;
14566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14569 _ACEOF
14570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14571 ac_datarootdir_hack='
14572 s&@datadir@&$datadir&g
14573 s&@docdir@&$docdir&g
14574 s&@infodir@&$infodir&g
14575 s&@localedir@&$localedir&g
14576 s&@mandir@&$mandir&g
14577 s&\\\${datarootdir}&$datarootdir&g' ;;
14578 esac
14579 _ACEOF
14580
14581 # Neutralize VPATH when `$srcdir' = `.'.
14582 # Shell code in configure.ac might set extrasub.
14583 # FIXME: do we really want to maintain this feature?
14584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14585 ac_sed_extra="$ac_vpsub
14586 $extrasub
14587 _ACEOF
14588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14589 :t
14590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14591 s|@configure_input@|$ac_sed_conf_input|;t t
14592 s&@top_builddir@&$ac_top_builddir_sub&;t t
14593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14594 s&@srcdir@&$ac_srcdir&;t t
14595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14596 s&@top_srcdir@&$ac_top_srcdir&;t t
14597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14598 s&@builddir@&$ac_builddir&;t t
14599 s&@abs_builddir@&$ac_abs_builddir&;t t
14600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14601 s&@INSTALL@&$ac_INSTALL&;t t
14602 $ac_datarootdir_hack
14603 "
14604 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14605 || as_fn_error "could not create $ac_file" "$LINENO" 5
14606
14607 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14608 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14609 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14611 which seems to be undefined. Please make sure it is defined." >&5
14612 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14613 which seems to be undefined. Please make sure it is defined." >&2;}
14614
14615 rm -f "$tmp/stdin"
14616 case $ac_file in
14617 -) cat "$tmp/out" && rm -f "$tmp/out";;
14618 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14619 esac \
14620 || as_fn_error "could not create $ac_file" "$LINENO" 5
14621 ;;
14622 :H)
14623 #
14624 # CONFIG_HEADER
14625 #
14626 if test x"$ac_file" != x-; then
14627 {
14628 $as_echo "/* $configure_input */" \
14629 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14630 } >"$tmp/config.h" \
14631 || as_fn_error "could not create $ac_file" "$LINENO" 5
14632 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14634 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14635 else
14636 rm -f "$ac_file"
14637 mv "$tmp/config.h" "$ac_file" \
14638 || as_fn_error "could not create $ac_file" "$LINENO" 5
14639 fi
14640 else
14641 $as_echo "/* $configure_input */" \
14642 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14643 || as_fn_error "could not create -" "$LINENO" 5
14644 fi
14645 ;;
14646
14647 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14648 $as_echo "$as_me: executing $ac_file commands" >&6;}
14649 ;;
14650 esac
14651
14652
14653 case $ac_file$ac_mode in
14654 "default":C)
14655
14656 ### Make the necessary directories, if they don't exist.
14657 for dir in etc lisp ; do
14658 test -d ${dir} || mkdir ${dir}
14659 done
14660
14661 # Build src/Makefile from ${srcdir}/src/Makefile.c
14662 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14663 # This must be done after src/config.h is built, since we rely on that file.
14664
14665 echo creating src/epaths.h
14666 ${MAKE-make} epaths-force
14667
14668 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14669 # `..' to `. .' unless invoked with -traditional
14670
14671 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
14672 CPPFLAGS="$CPPFLAGS -traditional"
14673 fi
14674
14675 echo creating lib-src/Makefile
14676 ( cd lib-src
14677 rm -f junk.c junk1.c junk2.c
14678 sed -e '/start of cpp stuff/q' \
14679 < Makefile.c > junk1.c
14680 sed -e '1,/start of cpp stuff/d'\
14681 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14682 < Makefile.c > junk.c
14683 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14684 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14685 cat junk1.c junk2.c > Makefile.new
14686 rm -f junk.c junk1.c junk2.c
14687 chmod 444 Makefile.new
14688 mv -f Makefile.new Makefile
14689 )
14690
14691 echo creating src/Makefile
14692 ( cd src
14693 rm -f junk.c junk1.c junk2.c
14694 sed -e '/start of cpp stuff/q' \
14695 < Makefile.c > junk1.c
14696 sed -e '1,/start of cpp stuff/d'\
14697 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14698 < Makefile.c > junk.c
14699 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14700 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14701 cat junk1.c junk2.c > Makefile.new
14702 rm -f junk.c junk1.c junk2.c
14703 chmod 444 Makefile.new
14704 mv -f Makefile.new Makefile
14705 )
14706
14707 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
14708 echo creating src/.gdbinit
14709 echo source $srcdir/src/.gdbinit > src/.gdbinit
14710 fi
14711
14712 ;;
14713
14714 esac
14715 done # for ac_tag
14716
14717
14718 as_fn_exit 0
14719 _ACEOF
14720 ac_clean_files=$ac_clean_files_save
14721
14722 test $ac_write_fail = 0 ||
14723 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14724
14725
14726 # configure is writing to config.log, and then calls config.status.
14727 # config.status does its own redirection, appending to config.log.
14728 # Unfortunately, on DOS this fails, as config.log is still kept open
14729 # by configure, so config.status won't be able to write to it; its
14730 # output is simply discarded. So we exec the FD to /dev/null,
14731 # effectively closing config.log, so it can be properly (re)opened and
14732 # appended to by config.status. When coming back to configure, we
14733 # need to make the FD available again.
14734 if test "$no_create" != yes; then
14735 ac_cs_success=:
14736 ac_config_status_args=
14737 test "$silent" = yes &&
14738 ac_config_status_args="$ac_config_status_args --quiet"
14739 exec 5>/dev/null
14740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14741 exec 5>>config.log
14742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14743 # would make configure fail if this is the last instruction.
14744 $ac_cs_success || as_fn_exit $?
14745 fi
14746 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14748 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14749 fi
14750
14751