Bump version to 23.2.92.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 23.2.92.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='23.2.92'
553 PACKAGE_STRING='emacs 23.2.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 CRT_DIR
664 MAKEINFO
665 GZIP_PROG
666 INSTALL_INFO
667 RANLIB
668 INSTALL_DATA
669 INSTALL_SCRIPT
670 INSTALL_PROGRAM
671 LN_S
672 EGREP
673 GREP
674 CPP
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 MAINT
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 with_pop
733 with_kerberos
734 with_kerberos5
735 with_hesiod
736 with_sound
737 with_sync_input
738 with_x_toolkit
739 with_xpm
740 with_jpeg
741 with_tiff
742 with_gif
743 with_png
744 with_rsvg
745 with_xft
746 with_libotf
747 with_m17n_flt
748 with_toolkit_scroll_bars
749 with_xaw3d
750 with_xim
751 with_ns
752 with_gpm
753 with_dbus
754 with_gconf
755 with_makeinfo
756 with_gtk
757 with_gcc
758 with_pkg_config_prog
759 with_crt_dir
760 with_gnustep_conf
761 enable_ns_self_contained
762 enable_asserts
763 enable_maintainer_mode
764 enable_locallisppath
765 enable_checking
766 enable_profiling
767 enable_autodepend
768 enable_largefile
769 with_x
770 '
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP
780 XMKMF'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used" >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures emacs 23.2.92 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385 X features:
1386 --x-includes=DIR X include files are in DIR
1387 --x-libraries=DIR X library files are in DIR
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of emacs 23.2.92:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --disable-ns-self-contained
1406 disable self contained build under NeXTstep
1407 --enable-asserts compile code with asserts enabled
1408 --enable-maintainer-mode
1409 enable make rules and dependencies not useful (and
1410 sometimes confusing) to the casual installer
1411 --enable-locallisppath=PATH
1412 directories Emacs should search for lisp files
1413 specific to this site
1414 --enable-checking[=LIST]
1415 enable expensive run-time checks. With LIST, enable
1416 only specific categories of checks. Categories are:
1417 all,yes,no. Flags are: stringbytes, stringoverrun,
1418 stringfreelist, xmallocoverrun, conslist
1419 --enable-profiling build emacs with profiling support. This might not
1420 work on all platforms
1421 --enable-autodepend automatically generate dependencies to .h-files.
1422 Requires GNU Make and Gcc. Enabled if GNU Make and
1423 Gcc is found
1424 --disable-largefile omit support for large files
1425
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --without-pop don't support POP mail retrieval with movemail
1430 --with-kerberos support Kerberos-authenticated POP
1431 --with-kerberos5 support Kerberos version 5 authenticated POP
1432 --with-hesiod support Hesiod to get the POP server host
1433 --without-sound don't compile with sound support
1434 --without-sync-input process async input synchronously
1435 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1436 motif, gtk, no)
1437 --without-xpm don't compile with XPM image support
1438 --without-jpeg don't compile with JPEG image support
1439 --without-tiff don't compile with TIFF image support
1440 --without-gif don't compile with GIF image support
1441 --without-png don't compile with PNG image support
1442 --without-rsvg don't compile with SVG image support
1443 --without-xft don't use XFT for anti aliased fonts
1444 --without-libotf don't use libotf for OpenType font support
1445 --without-m17n-flt don't use m17n-flt for text shaping
1446 --without-toolkit-scroll-bars
1447 don't use Motif or Xaw3d scroll bars
1448 --without-xaw3d don't use Xaw3d
1449 --without-xim don't use X11 XIM
1450 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1451 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1452 console
1453 --without-dbus don't compile with D-Bus support
1454 --without-gconf don't compile with GConf support
1455 --without-makeinfo don't require makeinfo for building manuals
1456
1457 --with-pkg-config-prog=PATH
1458 path to pkg-config for finding GTK and librsvg
1459 --with-crt-dir=DIR directory containing crtn.o etc. This option is only
1460 used on x86-64 and s390x GNU/Linux architectures.
1461 --with-gnustep-conf=PATH
1462 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1463 or /etc/GNUstep/GNUstep.conf
1464 --with-x use the X Window System
1465
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475 XMKMF Path to xmkmf, Makefile generator for X Window System
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to the package provider.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 emacs configure 23.2.92
1544 generated by GNU Autoconf 2.67
1545
1546 Copyright (C) 2010 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_c_try_compile
1594
1595 # ac_fn_c_try_link LINENO
1596 # -----------------------
1597 # Try to link conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_link ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest$ac_exeext
1602 if { { ac_try="$ac_link"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest$ac_exeext && {
1621 test "$cross_compiling" = yes ||
1622 $as_test_x conftest$ac_exeext
1623 }; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633 # interfere with the next link command; also delete a directory that is
1634 # left behind by Apple's compiler. We do this before executing the actions.
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637 as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_link
1640
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_cpp ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } > conftest.i && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_cpp
1677
1678 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1681 # the include files in INCLUDES and setting the cache variable VAR
1682 # accordingly.
1683 ac_fn_c_check_header_mongrel ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if eval "test \"\${$3+set}\"" = set; then :
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval "test \"\${$3+set}\"" = set; then :
1690 $as_echo_n "(cached) " >&6
1691 fi
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 else
1696 # Is the header compilable?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1698 $as_echo_n "checking $2 usability... " >&6; }
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 $4
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 ac_header_compiler=yes
1706 else
1707 ac_header_compiler=no
1708 fi
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1711 $as_echo "$ac_header_compiler" >&6; }
1712
1713 # Is the header present?
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1715 $as_echo_n "checking $2 presence... " >&6; }
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_cpp "$LINENO"; then :
1721 ac_header_preproc=yes
1722 else
1723 ac_header_preproc=no
1724 fi
1725 rm -f conftest.err conftest.i conftest.$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1727 $as_echo "$ac_header_preproc" >&6; }
1728
1729 # So? What about this header?
1730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1731 yes:no: )
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1733 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1735 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 ;;
1737 no:yes:* )
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1739 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1741 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1743 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1745 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1747 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1748 ;;
1749 esac
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval "test \"\${$3+set}\"" = set; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 eval "$3=\$ac_header_compiler"
1756 fi
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 fi
1761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762
1763 } # ac_fn_c_check_header_mongrel
1764
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1769 ac_fn_c_try_run ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783 { { case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_try") 2>&5
1790 ac_status=$?
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; }; }; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: program exited with status $ac_status" >&5
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=$ac_status
1800 fi
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_run
1806
1807 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists and can be compiled using the include files in
1810 # INCLUDES, setting the cache variable VAR accordingly.
1811 ac_fn_c_check_header_compile ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval "test \"\${$3+set}\"" = set; then :
1817 $as_echo_n "(cached) " >&6
1818 else
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $4
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 eval "$3=yes"
1826 else
1827 eval "$3=no"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835
1836 } # ac_fn_c_check_header_compile
1837
1838 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1839 # ----------------------------------------------
1840 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1841 ac_fn_c_check_header_preproc ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval "test \"\${$3+set}\"" = set; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_cpp "$LINENO"; then :
1854 eval "$3=yes"
1855 else
1856 eval "$3=no"
1857 fi
1858 rm -f conftest.err conftest.i conftest.$ac_ext
1859 fi
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864
1865 } # ac_fn_c_check_header_preproc
1866
1867 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1868 # ---------------------------------------------
1869 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1870 # accordingly.
1871 ac_fn_c_check_decl ()
1872 {
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 as_decl_name=`echo $2|sed 's/ *(.*//'`
1875 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1877 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1878 if eval "test \"\${$3+set}\"" = set; then :
1879 $as_echo_n "(cached) " >&6
1880 else
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 $4
1884 int
1885 main ()
1886 {
1887 #ifndef $as_decl_name
1888 #ifdef __cplusplus
1889 (void) $as_decl_use;
1890 #else
1891 (void) $as_decl_name;
1892 #endif
1893 #endif
1894
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 eval "$3=yes"
1901 else
1902 eval "$3=no"
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 fi
1906 eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910
1911 } # ac_fn_c_check_decl
1912
1913 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1914 # ----------------------------------------------------
1915 # Tries to find if the field MEMBER exists in type AGGR, after including
1916 # INCLUDES, setting cache variable VAR accordingly.
1917 ac_fn_c_check_member ()
1918 {
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1921 $as_echo_n "checking for $2.$3... " >&6; }
1922 if eval "test \"\${$4+set}\"" = set; then :
1923 $as_echo_n "(cached) " >&6
1924 else
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 $5
1928 int
1929 main ()
1930 {
1931 static $2 ac_aggr;
1932 if (ac_aggr.$3)
1933 return 0;
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 eval "$4=yes"
1940 else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 $5
1944 int
1945 main ()
1946 {
1947 static $2 ac_aggr;
1948 if (sizeof ac_aggr.$3)
1949 return 0;
1950 ;
1951 return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 eval "$4=yes"
1956 else
1957 eval "$4=no"
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 fi
1963 eval ac_res=\$$4
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967
1968 } # ac_fn_c_check_member
1969
1970 # ac_fn_c_check_func LINENO FUNC VAR
1971 # ----------------------------------
1972 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1973 ac_fn_c_check_func ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval "test \"\${$3+set}\"" = set; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1985 #define $2 innocuous_$2
1986
1987 /* System header to define __stub macros and hopefully few prototypes,
1988 which can conflict with char $2 (); below.
1989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1990 <limits.h> exists even on freestanding compilers. */
1991
1992 #ifdef __STDC__
1993 # include <limits.h>
1994 #else
1995 # include <assert.h>
1996 #endif
1997
1998 #undef $2
1999
2000 /* Override any GCC internal prototype to avoid an error.
2001 Use char because int might match the return type of a GCC
2002 builtin and then its argument prototype would still apply. */
2003 #ifdef __cplusplus
2004 extern "C"
2005 #endif
2006 char $2 ();
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined __stub_$2 || defined __stub___$2
2011 choke me
2012 #endif
2013
2014 int
2015 main ()
2016 {
2017 return $2 ();
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_link "$LINENO"; then :
2023 eval "$3=yes"
2024 else
2025 eval "$3=no"
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext \
2028 conftest$ac_exeext conftest.$ac_ext
2029 fi
2030 eval ac_res=\$$3
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034
2035 } # ac_fn_c_check_func
2036
2037 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2038 # -------------------------------------------
2039 # Tests whether TYPE exists after having included INCLUDES, setting cache
2040 # variable VAR accordingly.
2041 ac_fn_c_check_type ()
2042 {
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval "test \"\${$3+set}\"" = set; then :
2047 $as_echo_n "(cached) " >&6
2048 else
2049 eval "$3=no"
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 $4
2053 int
2054 main ()
2055 {
2056 if (sizeof ($2))
2057 return 0;
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 $4
2066 int
2067 main ()
2068 {
2069 if (sizeof (($2)))
2070 return 0;
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076
2077 else
2078 eval "$3=yes"
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 fi
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 fi
2084 eval ac_res=\$$3
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088
2089 } # ac_fn_c_check_type
2090 cat >config.log <<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2093
2094 It was created by emacs $as_me 23.2.92, which was
2095 generated by GNU Autoconf 2.67. Invocation command line was
2096
2097 $ $0 $@
2098
2099 _ACEOF
2100 exec 5>>config.log
2101 {
2102 cat <<_ASUNAME
2103 ## --------- ##
2104 ## Platform. ##
2105 ## --------- ##
2106
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2112
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2115
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2123
2124 _ASUNAME
2125
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 $as_echo "PATH: $as_dir"
2132 done
2133 IFS=$as_save_IFS
2134
2135 } >&5
2136
2137 cat >&5 <<_ACEOF
2138
2139
2140 ## ----------- ##
2141 ## Core tests. ##
2142 ## ----------- ##
2143
2144 _ACEOF
2145
2146
2147 # Keep a trace of the command line.
2148 # Strip out --no-create and --no-recursion so they do not pile up.
2149 # Strip out --silent because we don't want to record it for future runs.
2150 # Also quote any args containing shell meta-characters.
2151 # Make two passes to allow for proper duplicate-argument suppression.
2152 ac_configure_args=
2153 ac_configure_args0=
2154 ac_configure_args1=
2155 ac_must_keep_next=false
2156 for ac_pass in 1 2
2157 do
2158 for ac_arg
2159 do
2160 case $ac_arg in
2161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2163 | -silent | --silent | --silen | --sile | --sil)
2164 continue ;;
2165 *\'*)
2166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 esac
2168 case $ac_pass in
2169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2170 2)
2171 as_fn_append ac_configure_args1 " '$ac_arg'"
2172 if test $ac_must_keep_next = true; then
2173 ac_must_keep_next=false # Got value, back to normal.
2174 else
2175 case $ac_arg in
2176 *=* | --config-cache | -C | -disable-* | --disable-* \
2177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2179 | -with-* | --with-* | -without-* | --without-* | --x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182 esac
2183 ;;
2184 -* ) ac_must_keep_next=true ;;
2185 esac
2186 fi
2187 as_fn_append ac_configure_args " '$ac_arg'"
2188 ;;
2189 esac
2190 done
2191 done
2192 { ac_configure_args0=; unset ac_configure_args0;}
2193 { ac_configure_args1=; unset ac_configure_args1;}
2194
2195 # When interrupted or exit'd, cleanup temporary files, and complete
2196 # config.log. We remove comments because anyway the quotes in there
2197 # would cause problems or look ugly.
2198 # WARNING: Use '\'' to represent an apostrophe within the trap.
2199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200 trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2202 {
2203 echo
2204
2205 $as_echo "## ---------------- ##
2206 ## Cache variables. ##
2207 ## ---------------- ##"
2208 echo
2209 # The following way of writing the cache mishandles newlines in values,
2210 (
2211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in #(
2214 *${as_nl}*)
2215 case $ac_var in #(
2216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2218 esac
2219 case $ac_var in #(
2220 _ | IFS | as_nl) ;; #(
2221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222 *) { eval $ac_var=; unset $ac_var;} ;;
2223 esac ;;
2224 esac
2225 done
2226 (set) 2>&1 |
2227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228 *${as_nl}ac_space=\ *)
2229 sed -n \
2230 "s/'\''/'\''\\\\'\'''\''/g;
2231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2232 ;; #(
2233 *)
2234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2235 ;;
2236 esac |
2237 sort
2238 )
2239 echo
2240
2241 $as_echo "## ----------------- ##
2242 ## Output variables. ##
2243 ## ----------------- ##"
2244 echo
2245 for ac_var in $ac_subst_vars
2246 do
2247 eval ac_val=\$$ac_var
2248 case $ac_val in
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 esac
2251 $as_echo "$ac_var='\''$ac_val'\''"
2252 done | sort
2253 echo
2254
2255 if test -n "$ac_subst_files"; then
2256 $as_echo "## ------------------- ##
2257 ## File substitutions. ##
2258 ## ------------------- ##"
2259 echo
2260 for ac_var in $ac_subst_files
2261 do
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2269 fi
2270
2271 if test -s confdefs.h; then
2272 $as_echo "## ----------- ##
2273 ## confdefs.h. ##
2274 ## ----------- ##"
2275 echo
2276 cat confdefs.h
2277 echo
2278 fi
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2282 } >&5
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2285 exit $exit_status
2286 ' 0
2287 for ac_signal in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2289 done
2290 ac_signal=0
2291
2292 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2293 rm -f -r conftest* confdefs.h
2294
2295 $as_echo "/* confdefs.h */" > confdefs.h
2296
2297 # Predefined preprocessor variables.
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_NAME "$PACKAGE_NAME"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_STRING "$PACKAGE_STRING"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_URL "$PACKAGE_URL"
2321 _ACEOF
2322
2323
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2326 ac_site_file1=NONE
2327 ac_site_file2=NONE
2328 if test -n "$CONFIG_SITE"; then
2329 # We do not want a PATH search for config.site.
2330 case $CONFIG_SITE in #((
2331 -*) ac_site_file1=./$CONFIG_SITE;;
2332 */*) ac_site_file1=$CONFIG_SITE;;
2333 *) ac_site_file1=./$CONFIG_SITE;;
2334 esac
2335 elif test "x$prefix" != xNONE; then
2336 ac_site_file1=$prefix/share/config.site
2337 ac_site_file2=$prefix/etc/config.site
2338 else
2339 ac_site_file1=$ac_default_prefix/share/config.site
2340 ac_site_file2=$ac_default_prefix/etc/config.site
2341 fi
2342 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2343 do
2344 test "x$ac_site_file" = xNONE && continue
2345 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2349 . "$ac_site_file" \
2350 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $? "failed to load site script $ac_site_file
2353 See \`config.log' for more details" "$LINENO" 5; }
2354 fi
2355 done
2356
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 $as_echo "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2367 fi
2368 else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 $as_echo "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2372 fi
2373
2374 as_fn_append ac_header_list " stdlib.h"
2375 as_fn_append ac_header_list " unistd.h"
2376 as_fn_append ac_header_list " sys/param.h"
2377 as_fn_append ac_header_list " sys/time.h"
2378 as_fn_append ac_func_list " alarm"
2379 # Check that the precious variables saved in the cache have kept the same
2380 # value.
2381 ac_cache_corrupted=false
2382 for ac_var in $ac_precious_vars; do
2383 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2384 eval ac_new_set=\$ac_env_${ac_var}_set
2385 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2386 eval ac_new_val=\$ac_env_${ac_var}_value
2387 case $ac_old_set,$ac_new_set in
2388 set,)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2392 ,set)
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2395 ac_cache_corrupted=: ;;
2396 ,);;
2397 *)
2398 if test "x$ac_old_val" != "x$ac_new_val"; then
2399 # differences in whitespace do not lead to failure.
2400 ac_old_val_w=`echo x $ac_old_val`
2401 ac_new_val_w=`echo x $ac_new_val`
2402 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2404 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2405 ac_cache_corrupted=:
2406 else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2408 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2409 eval $ac_var=\$ac_old_val
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2412 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2414 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2415 fi;;
2416 esac
2417 # Pass precious variables to config.status.
2418 if test "$ac_new_set" = set; then
2419 case $ac_new_val in
2420 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 *) ac_arg=$ac_var=$ac_new_val ;;
2422 esac
2423 case " $ac_configure_args " in
2424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2425 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2426 esac
2427 fi
2428 done
2429 if $ac_cache_corrupted; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2433 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2434 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2435 fi
2436 ## -------------------- ##
2437 ## Main body of script. ##
2438 ## -------------------- ##
2439
2440 ac_ext=c
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445
2446
2447 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2448
2449
2450
2451 test "$program_prefix" != NONE &&
2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456 # Double any \ or $.
2457 # By default was `s,x,x', remove it if useless.
2458 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2460
2461
2462 lispdir='${datadir}/emacs/${version}/lisp'
2463 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2464 '${datadir}/emacs/site-lisp'
2465 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2466 etcdir='${datadir}/emacs/${version}/etc'
2467 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2468 docdir='${datadir}/emacs/${version}/etc'
2469 gamedir='${localstatedir}/games/emacs'
2470
2471 gameuser=games
2472
2473
2474
2475
2476 # Check whether --with-pop was given.
2477 if test "${with_pop+set}" = set; then :
2478 withval=$with_pop;
2479 else
2480 with_pop=yes
2481 fi
2482
2483 if test "$with_pop" = yes; then
2484 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2485
2486 fi
2487
2488
2489 # Check whether --with-kerberos was given.
2490 if test "${with_kerberos+set}" = set; then :
2491 withval=$with_kerberos;
2492 else
2493 with_kerberos=no
2494 fi
2495
2496 if test "$with_kerberos" != no; then
2497 $as_echo "#define KERBEROS 1" >>confdefs.h
2498
2499 fi
2500
2501
2502 # Check whether --with-kerberos5 was given.
2503 if test "${with_kerberos5+set}" = set; then :
2504 withval=$with_kerberos5;
2505 else
2506 with_kerberos5=no
2507 fi
2508
2509 if test "${with_kerberos5}" != no; then
2510 if test "${with_kerberos}" = no; then
2511 with_kerberos=yes
2512 $as_echo "#define KERBEROS 1" >>confdefs.h
2513
2514 fi
2515
2516 $as_echo "#define KERBEROS5 1" >>confdefs.h
2517
2518 fi
2519
2520
2521 # Check whether --with-hesiod was given.
2522 if test "${with_hesiod+set}" = set; then :
2523 withval=$with_hesiod;
2524 else
2525 with_hesiod=no
2526 fi
2527
2528 if test "$with_hesiod" != no; then
2529
2530 $as_echo "#define HESIOD 1" >>confdefs.h
2531
2532 fi
2533
2534
2535 # Check whether --with-sound was given.
2536 if test "${with_sound+set}" = set; then :
2537 withval=$with_sound;
2538 else
2539 with_sound=yes
2540 fi
2541
2542
2543
2544 # Check whether --with-sync-input was given.
2545 if test "${with_sync_input+set}" = set; then :
2546 withval=$with_sync_input;
2547 else
2548 with_sync_input=yes
2549 fi
2550
2551 if test "$with_sync_input" = yes; then
2552
2553 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2554
2555 fi
2556
2557
2558 # Check whether --with-x-toolkit was given.
2559 if test "${with_x_toolkit+set}" = set; then :
2560 withval=$with_x_toolkit; case "${withval}" in
2561 y | ye | yes ) val=gtk ;;
2562 n | no ) val=no ;;
2563 l | lu | luc | luci | lucid ) val=lucid ;;
2564 a | at | ath | athe | athen | athena ) val=athena ;;
2565 m | mo | mot | moti | motif ) val=motif ;;
2566 g | gt | gtk ) val=gtk ;;
2567 * )
2568 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2569 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2570 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2571 ;;
2572 esac
2573 with_x_toolkit=$val
2574
2575 fi
2576
2577
2578
2579 # Check whether --with-xpm was given.
2580 if test "${with_xpm+set}" = set; then :
2581 withval=$with_xpm;
2582 else
2583 with_xpm=yes
2584 fi
2585
2586
2587 # Check whether --with-jpeg was given.
2588 if test "${with_jpeg+set}" = set; then :
2589 withval=$with_jpeg;
2590 else
2591 with_jpeg=yes
2592 fi
2593
2594
2595 # Check whether --with-tiff was given.
2596 if test "${with_tiff+set}" = set; then :
2597 withval=$with_tiff;
2598 else
2599 with_tiff=yes
2600 fi
2601
2602
2603 # Check whether --with-gif was given.
2604 if test "${with_gif+set}" = set; then :
2605 withval=$with_gif;
2606 else
2607 with_gif=yes
2608 fi
2609
2610
2611 # Check whether --with-png was given.
2612 if test "${with_png+set}" = set; then :
2613 withval=$with_png;
2614 else
2615 with_png=yes
2616 fi
2617
2618
2619 # Check whether --with-rsvg was given.
2620 if test "${with_rsvg+set}" = set; then :
2621 withval=$with_rsvg;
2622 else
2623 with_rsvg=yes
2624 fi
2625
2626
2627
2628 # Check whether --with-xft was given.
2629 if test "${with_xft+set}" = set; then :
2630 withval=$with_xft;
2631 else
2632 with_xft=yes
2633 fi
2634
2635
2636 # Check whether --with-libotf was given.
2637 if test "${with_libotf+set}" = set; then :
2638 withval=$with_libotf;
2639 else
2640 with_libotf=yes
2641 fi
2642
2643
2644 # Check whether --with-m17n-flt was given.
2645 if test "${with_m17n_flt+set}" = set; then :
2646 withval=$with_m17n_flt;
2647 else
2648 with_m17n_flt=yes
2649 fi
2650
2651
2652
2653 # Check whether --with-toolkit-scroll-bars was given.
2654 if test "${with_toolkit_scroll_bars+set}" = set; then :
2655 withval=$with_toolkit_scroll_bars;
2656 else
2657 with_toolkit_scroll_bars=yes
2658 fi
2659
2660
2661 # Check whether --with-xaw3d was given.
2662 if test "${with_xaw3d+set}" = set; then :
2663 withval=$with_xaw3d;
2664 else
2665 with_xaw3d=yes
2666 fi
2667
2668
2669 # Check whether --with-xim was given.
2670 if test "${with_xim+set}" = set; then :
2671 withval=$with_xim;
2672 else
2673 with_xim=yes
2674 fi
2675
2676
2677 # Check whether --with-ns was given.
2678 if test "${with_ns+set}" = set; then :
2679 withval=$with_ns;
2680 else
2681 with_ns=no
2682 fi
2683
2684
2685
2686 # Check whether --with-gpm was given.
2687 if test "${with_gpm+set}" = set; then :
2688 withval=$with_gpm;
2689 else
2690 with_gpm=yes
2691 fi
2692
2693
2694 # Check whether --with-dbus was given.
2695 if test "${with_dbus+set}" = set; then :
2696 withval=$with_dbus;
2697 else
2698 with_dbus=yes
2699 fi
2700
2701
2702 # Check whether --with-gconf was given.
2703 if test "${with_gconf+set}" = set; then :
2704 withval=$with_gconf;
2705 else
2706 with_gconf=yes
2707 fi
2708
2709
2710 ## For the times when you want to build Emacs but don't have
2711 ## a suitable makeinfo, and can live without the manuals.
2712
2713 # Check whether --with-makeinfo was given.
2714 if test "${with_makeinfo+set}" = set; then :
2715 withval=$with_makeinfo;
2716 else
2717 with_makeinfo=yes
2718 fi
2719
2720
2721
2722 # Check whether --with-gtk was given.
2723 if test "${with_gtk+set}" = set; then :
2724 withval=$with_gtk; as_fn_error $? "--with-gtk has been removed. Use --with-x-toolkit to
2725 specify a toolkit." "$LINENO" 5
2726 fi
2727
2728
2729
2730 # Check whether --with-gcc was given.
2731 if test "${with_gcc+set}" = set; then :
2732 withval=$with_gcc; as_fn_error $? "--with-gcc has been removed. Set the \`CC' environment
2733 variable to specify a compiler." "$LINENO" 5
2734 fi
2735
2736
2737
2738 # Check whether --with-pkg-config-prog was given.
2739 if test "${with_pkg_config_prog+set}" = set; then :
2740 withval=$with_pkg_config_prog;
2741 fi
2742
2743 if test "X${with_pkg_config_prog}" != X; then
2744 if test "${with_pkg_config_prog}" != yes; then
2745 PKG_CONFIG="${with_pkg_config_prog}"
2746 fi
2747 fi
2748
2749 CRT_DIR=
2750
2751 # Check whether --with-crt-dir was given.
2752 if test "${with_crt_dir+set}" = set; then :
2753 withval=$with_crt_dir;
2754 fi
2755
2756 CRT_DIR="${with_crt_dir}"
2757
2758
2759 # Check whether --with-gnustep-conf was given.
2760 if test "${with_gnustep_conf+set}" = set; then :
2761 withval=$with_gnustep_conf;
2762 fi
2763
2764 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2765 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2766 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2767 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2768
2769 # Check whether --enable-ns-self-contained was given.
2770 if test "${enable_ns_self_contained+set}" = set; then :
2771 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2772 else
2773 EN_NS_SELF_CONTAINED=yes
2774 fi
2775
2776
2777 # Check whether --enable-asserts was given.
2778 if test "${enable_asserts+set}" = set; then :
2779 enableval=$enable_asserts; USE_XASSERTS=$enableval
2780 else
2781 USE_XASSERTS=no
2782 fi
2783
2784
2785 # Check whether --enable-maintainer-mode was given.
2786 if test "${enable_maintainer_mode+set}" = set; then :
2787 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2788 else
2789 USE_MAINTAINER_MODE=no
2790 fi
2791
2792 if test $USE_MAINTAINER_MODE = yes; then
2793 MAINT=
2794 else
2795 MAINT=#
2796 fi
2797
2798
2799 # Check whether --enable-locallisppath was given.
2800 if test "${enable_locallisppath+set}" = set; then :
2801 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2802 locallisppath=
2803 elif test "${enableval}" != "yes"; then
2804 locallisppath=${enableval}
2805 fi
2806 fi
2807
2808
2809 # Check whether --enable-checking was given.
2810 if test "${enable_checking+set}" = set; then :
2811 enableval=$enable_checking; ac_checking_flags="${enableval}"
2812 fi
2813
2814 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2815 for check in $ac_checking_flags
2816 do
2817 case $check in
2818 # these set all the flags to specific states
2819 yes) ac_enable_checking=1 ;;
2820 no) ac_enable_checking= ;
2821 ac_gc_check_stringbytes= ;
2822 ac_gc_check_string_overrun= ;
2823 ac_gc_check_string_free_list= ;
2824 ac_xmalloc_overrun= ;
2825 ac_gc_check_cons_list= ;;
2826 all) ac_enable_checking=1 ;
2827 ac_gc_check_stringbytes=1 ;
2828 ac_gc_check_string_overrun=1 ;
2829 ac_gc_check_string_free_list=1 ;
2830 ac_xmalloc_overrun=1 ;
2831 ac_gc_check_cons_list=1 ;;
2832 # these enable particular checks
2833 stringbytes) ac_gc_check_stringbytes=1 ;;
2834 stringoverrun) ac_gc_check_string_overrun=1 ;;
2835 stringfreelist) ac_gc_check_string_free_list=1 ;;
2836 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2837 conslist) ac_gc_check_cons_list=1 ;;
2838 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
2839 esac
2840 done
2841 IFS="$ac_save_IFS"
2842
2843 if test x$ac_enable_checking != x ; then
2844
2845 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2846
2847 fi
2848 if test x$ac_gc_check_stringbytes != x ; then
2849
2850 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2851
2852 fi
2853 if test x$ac_gc_check_stringoverrun != x ; then
2854
2855 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2856
2857 fi
2858 if test x$ac_gc_check_string_free_list != x ; then
2859
2860 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2861
2862 fi
2863 if test x$ac_xmalloc_overrun != x ; then
2864
2865 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2866
2867 fi
2868 if test x$ac_gc_check_cons_list != x ; then
2869
2870 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2871
2872 fi
2873
2874 # Check whether --enable-profiling was given.
2875 if test "${enable_profiling+set}" = set; then :
2876 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2877 fi
2878
2879 if test x$ac_enable_profiling != x ; then
2880 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2881 PROFILING_LDFLAGS="-pg"
2882 else
2883 PROFILING_CFLAGS=
2884 PROFILING_LDFLAGS=
2885 fi
2886
2887 # Check whether --enable-autodepend was given.
2888 if test "${enable_autodepend+set}" = set; then :
2889 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2890 else
2891 ac_enable_autodepend=yes
2892 fi
2893
2894
2895 #### Make srcdir absolute, if it isn't already. It's important to
2896 #### avoid running the path through pwd unnecessarily, since pwd can
2897 #### give you automounter prefixes, which can go away. We do all this
2898 #### so Emacs can find its files when run uninstalled.
2899 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2900 unset CDPATH
2901 case "${srcdir}" in
2902 /* ) ;;
2903 . )
2904 ## We may be able to use the $PWD environment variable to make this
2905 ## absolute. But sometimes PWD is inaccurate.
2906 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2907 ## but that tested only for a well-formed and valid PWD,
2908 ## it did not object when PWD was well-formed and valid but just wrong.
2909 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2910 then
2911 srcdir="$PWD"
2912 else
2913 srcdir="`(cd ${srcdir}; pwd)`"
2914 fi
2915 ;;
2916 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2917 esac
2918
2919 #### Check if the source directory already has a configured system in it.
2920 if test `pwd` != `(cd ${srcdir} && pwd)` \
2921 && test -f "${srcdir}/src/config.h" ; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2923 as a build directory right now; it has been configured in its own
2924 right. To configure in another directory as well, you MUST
2925 use GNU make. If you do not have GNU make, then you must
2926 now do \`make distclean' in ${srcdir},
2927 and then run $0 again." >&5
2928 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2929 as a build directory right now; it has been configured in its own
2930 right. To configure in another directory as well, you MUST
2931 use GNU make. If you do not have GNU make, then you must
2932 now do \`make distclean' in ${srcdir},
2933 and then run $0 again." >&2;}
2934 fi
2935
2936 #### Given the configuration name, set machfile and opsysfile to the
2937 #### names of the m/*.h and s/*.h files we should use.
2938
2939 ### Canonicalize the configuration name.
2940
2941 ac_aux_dir=
2942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2943 if test -f "$ac_dir/install-sh"; then
2944 ac_aux_dir=$ac_dir
2945 ac_install_sh="$ac_aux_dir/install-sh -c"
2946 break
2947 elif test -f "$ac_dir/install.sh"; then
2948 ac_aux_dir=$ac_dir
2949 ac_install_sh="$ac_aux_dir/install.sh -c"
2950 break
2951 elif test -f "$ac_dir/shtool"; then
2952 ac_aux_dir=$ac_dir
2953 ac_install_sh="$ac_aux_dir/shtool install -c"
2954 break
2955 fi
2956 done
2957 if test -z "$ac_aux_dir"; then
2958 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2959 fi
2960
2961 # These three variables are undocumented and unsupported,
2962 # and are intended to be withdrawn in a future Autoconf release.
2963 # They can cause serious problems if a builder's source tree is in a directory
2964 # whose full name contains unusual characters.
2965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2968
2969
2970 # Make sure we can run config.sub.
2971 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2972 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2975 $as_echo_n "checking build system type... " >&6; }
2976 if test "${ac_cv_build+set}" = set; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 ac_build_alias=$build_alias
2980 test "x$ac_build_alias" = x &&
2981 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2982 test "x$ac_build_alias" = x &&
2983 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2984 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2985 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2986
2987 fi
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2989 $as_echo "$ac_cv_build" >&6; }
2990 case $ac_cv_build in
2991 *-*-*) ;;
2992 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2993 esac
2994 build=$ac_cv_build
2995 ac_save_IFS=$IFS; IFS='-'
2996 set x $ac_cv_build
2997 shift
2998 build_cpu=$1
2999 build_vendor=$2
3000 shift; shift
3001 # Remember, the first character of IFS is used to create $*,
3002 # except with old shells:
3003 build_os=$*
3004 IFS=$ac_save_IFS
3005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3006
3007
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3009 $as_echo_n "checking host system type... " >&6; }
3010 if test "${ac_cv_host+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test "x$host_alias" = x; then
3014 ac_cv_host=$ac_cv_build
3015 else
3016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3017 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3018 fi
3019
3020 fi
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3022 $as_echo "$ac_cv_host" >&6; }
3023 case $ac_cv_host in
3024 *-*-*) ;;
3025 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3026 esac
3027 host=$ac_cv_host
3028 ac_save_IFS=$IFS; IFS='-'
3029 set x $ac_cv_host
3030 shift
3031 host_cpu=$1
3032 host_vendor=$2
3033 shift; shift
3034 # Remember, the first character of IFS is used to create $*,
3035 # except with old shells:
3036 host_os=$*
3037 IFS=$ac_save_IFS
3038 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3039
3040
3041 canonical=$host
3042 configuration=${host_alias-${build_alias-$host}}
3043
3044
3045
3046 ### If you add support for a new configuration, add code to this
3047 ### switch statement to recognize your configuration name and select
3048 ### the appropriate operating system and machine description files.
3049
3050 ### You would hope that you could choose an m/*.h file pretty much
3051 ### based on the machine portion of the configuration name, and an s-
3052 ### file based on the operating system portion. However, it turns out
3053 ### that each m/*.h file is pretty manufacturer-specific - for
3054 ### example mips.h is MIPS
3055 ### So we basically have to have a special case for each
3056 ### configuration name.
3057 ###
3058 ### As far as handling version numbers on operating systems is
3059 ### concerned, make sure things will fail in a fixable way. If
3060 ### /etc/MACHINES doesn't say anything about version numbers, be
3061 ### prepared to handle anything reasonably. If version numbers
3062 ### matter, be sure /etc/MACHINES says something about it.
3063 ###
3064 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3065 ### "System V Release 4"; he writes, "The old convention encouraged
3066 ### confusion between `system' and `release' levels'."
3067
3068 machine='' opsys='' unported=no
3069 case "${canonical}" in
3070
3071 ## FreeBSD ports
3072 *-*-freebsd* )
3073 opsys=freebsd
3074 case "${canonical}" in
3075 alpha*-*-freebsd*) machine=alpha ;;
3076 arm*-*-freebsd*) machine=arm ;;
3077 ia64-*-freebsd*) machine=ia64 ;;
3078 sparc-*-freebsd*) machine=sparc ;;
3079 sparc64-*-freebsd*) machine=sparc ;;
3080 powerpc-*-freebsd*) machine=macppc ;;
3081 i[3456]86-*-freebsd*) machine=intel386 ;;
3082 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
3083 esac
3084 ;;
3085
3086 ## FreeBSD kernel + glibc based userland
3087 *-*-kfreebsd*gnu* )
3088 opsys=gnu-kfreebsd
3089 case "${canonical}" in
3090 alpha*-*-kfreebsd*) machine=alpha ;;
3091 ia64-*-kfreebsd*) machine=ia64 ;;
3092 sparc-*-kfreebsd*) machine=sparc ;;
3093 sparc64-*-kfreebsd*) machine=sparc ;;
3094 powerpc-*-kfreebsd*) machine=macppc ;;
3095 i[3456]86-*-kfreebsd*) machine=intel386 ;;
3096 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
3097 esac
3098 ;;
3099
3100 ## NetBSD ports
3101 *-*-netbsd* )
3102 opsys=netbsd
3103 if test -f /usr/lib/crti.o; then
3104
3105 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3106
3107 fi
3108
3109 case "${canonical}" in
3110 alpha*-*-netbsd*) machine=alpha ;;
3111 i[3456]86-*-netbsd*) machine=intel386 ;;
3112 mips-*-netbsd*) machine=mips ;;
3113 mipsel-*-netbsd*) machine=mips ;;
3114 mipseb-*-netbsd*) machine=mips ;;
3115 powerpc-*-netbsd*) machine=macppc ;;
3116 sparc*-*-netbsd*) machine=sparc ;;
3117 vax-*-netbsd*) machine=vax ;;
3118 arm-*-netbsd*) machine=arm ;;
3119 x86_64-*-netbsd*) machine=amdx86-64 ;;
3120 hppa-*-netbsd*) machine=hp800 ;;
3121 m68k-*-netbsd*) machine=m68k ;;
3122 esac
3123 ;;
3124
3125 ## OpenBSD ports
3126 *-*-openbsd* )
3127 opsys=openbsd
3128 case "${canonical}" in
3129 alpha*-*-openbsd*) machine=alpha ;;
3130 arm-*-openbsd*) machine=arm ;;
3131 i386-*-openbsd*) machine=intel386 ;;
3132 powerpc-*-openbsd*) machine=macppc ;;
3133 sparc*-*-openbsd*) machine=sparc ;;
3134 vax-*-openbsd*) machine=vax ;;
3135 x86_64-*-openbsd*) machine=amdx86-64 ;;
3136 hppa-*-openbsd*) machine=hp800 ;;
3137 esac
3138 ;;
3139
3140 ## LynxOS ports
3141 *-*-lynxos* )
3142 opsys=lynxos
3143 case "${canonical}" in
3144 i[3456]86-*-lynxos*) machine=intel386 ;;
3145 powerpc-*-lynxos*) machine=powerpc ;;
3146 esac
3147 ;;
3148
3149 alpha*-*-linux-gnu* )
3150 machine=alpha opsys=gnu-linux
3151 ;;
3152
3153 arm*-*-linux-gnu* )
3154 machine=arm opsys=gnu-linux
3155 ;;
3156
3157 ## Apple Darwin / Mac OS X
3158 *-apple-darwin* )
3159 case "${canonical}" in
3160 i[3456]86-* ) machine=intel386 ;;
3161 powerpc-* ) machine=macppc ;;
3162 x86_64-* ) machine=amdx86-64 ;;
3163 * ) unported=yes ;;
3164 esac
3165 opsys=darwin
3166 # Define CPP as follows to make autoconf work correctly.
3167 CPP="${CC-cc} -E -no-cpp-precomp"
3168 # Use fink packages if available.
3169 if test -d /sw/include && test -d /sw/lib; then
3170 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3171 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3172 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3173 fi
3174 ;;
3175
3176 ## HP 9000 series 700 and 800, running HP/UX
3177 hppa*-hp-hpux10.2* )
3178 machine=hp800 opsys=hpux10-20
3179 ;;
3180 hppa*-hp-hpux1[1-9]* )
3181 machine=hp800 opsys=hpux11
3182 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3183 ;;
3184
3185 hppa*-*-linux-gnu* )
3186 machine=hp800 opsys=gnu-linux
3187 ;;
3188
3189 ## IBM machines
3190 s390-*-linux-gnu* )
3191 machine=ibms390 opsys=gnu-linux
3192 ;;
3193 s390x-*-linux-gnu* )
3194 machine=ibms390x opsys=gnu-linux
3195 ;;
3196 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
3197 machine=ibmrs6000 opsys=aix4-2
3198 ;;
3199 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
3200 machine=ibmrs6000 opsys=aix4-2
3201 ;;
3202 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
3203 machine=ibmrs6000 opsys=aix4-2
3204 ;;
3205 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
3206 machine=ibmrs6000 opsys=aix4-2
3207 ;;
3208
3209 ## Macintosh PowerPC
3210 powerpc*-*-linux-gnu* )
3211 machine=macppc opsys=gnu-linux
3212 ;;
3213
3214 ## Silicon Graphics machines
3215 ## Iris 4D
3216 mips-sgi-irix6.5 )
3217 machine=iris4d opsys=irix6-5
3218 # Without defining _LANGUAGE_C, things get masked out in the headers
3219 # so that, for instance, grepping for `free' in stdlib.h fails and
3220 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3221 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3222 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3223 ;;
3224
3225 ## Suns
3226 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3227 machine=sparc opsys=gnu-linux
3228 ;;
3229
3230 *-sun-solaris* \
3231 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3232 | x86_64-*-solaris2* | x86_64-*-sunos5* \
3233 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
3234 case "${canonical}" in
3235 i[3456]86-*-* ) machine=intel386 ;;
3236 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3237 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3238 sparc* ) machine=sparc ;;
3239 * ) unported=yes ;;
3240 esac
3241 case "${canonical}" in
3242 *-sunos5.3* | *-solaris2.3* )
3243 opsys=sol2-3
3244 NON_GNU_CPP=/usr/ccs/lib/cpp
3245 ;;
3246 *-sunos5.4* | *-solaris2.4* )
3247 opsys=sol2-4
3248 NON_GNU_CPP=/usr/ccs/lib/cpp
3249 RANLIB="ar -ts"
3250 ;;
3251 *-sunos5.5* | *-solaris2.5* )
3252 opsys=sol2-5
3253 NON_GNU_CPP=/usr/ccs/lib/cpp
3254 RANLIB="ar -ts"
3255 ;;
3256 *-sunos5.6* | *-solaris2.6* )
3257 opsys=sol2-6
3258 NON_GNU_CPP=/usr/ccs/lib/cpp
3259 RANLIB="ar -ts"
3260 ;;
3261 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3262 opsys=sol2-6
3263 emacs_check_sunpro_c=yes
3264 NON_GNU_CPP=/usr/ccs/lib/cpp
3265 ;;
3266 *-sunos5* | *-solaris* )
3267 opsys=sol2-10
3268 emacs_check_sunpro_c=yes
3269 NON_GNU_CPP=/usr/ccs/lib/cpp
3270 ;;
3271 esac
3272 ## Watch out for a compiler that we know will not work.
3273 case "${canonical}" in
3274 *-solaris* | *-sunos5* )
3275 if [ "x$CC" = x/usr/ucb/cc ]; then
3276 ## /usr/ucb/cc doesn't work;
3277 ## we should find some other compiler that does work.
3278 unset CC
3279 fi
3280 ;;
3281 *) ;;
3282 esac
3283 ;;
3284
3285 ## IA-64
3286 ia64*-*-linux* )
3287 machine=ia64 opsys=gnu-linux
3288 ;;
3289
3290 ## Intel 386 machines where we don't care about the manufacturer
3291 i[3456]86-*-* )
3292 machine=intel386
3293 case "${canonical}" in
3294 *-cygwin ) opsys=cygwin ;;
3295 *-darwin* ) opsys=darwin
3296 CPP="${CC-cc} -E -no-cpp-precomp"
3297 ;;
3298 *-linux-gnu* ) opsys=gnu-linux ;;
3299 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3300 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3301 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3302 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3303 esac
3304 ;;
3305
3306 ## m68k Linux-based GNU system
3307 m68k-*-linux-gnu* )
3308 machine=m68k opsys=gnu-linux
3309 ;;
3310
3311 ## Mips Linux-based GNU system
3312 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3313 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3314 machine=mips opsys=gnu-linux
3315 ;;
3316
3317 ## AMD x86-64 Linux-based GNU system
3318 x86_64-*-linux-gnu* )
3319 machine=amdx86-64 opsys=gnu-linux
3320 ;;
3321
3322 ## Tensilica Xtensa Linux-based GNU system
3323 xtensa*-*-linux-gnu* )
3324 machine=xtensa opsys=gnu-linux
3325 ;;
3326
3327 ## SuperH Linux-based GNU system
3328 sh[34]*-*-linux-gnu* )
3329 machine=sh3 opsys=gnu-linux
3330 ;;
3331
3332 * )
3333 unported=yes
3334 ;;
3335 esac
3336
3337 ### If the code above didn't choose an operating system, just choose
3338 ### an operating system based on the configuration name. You really
3339 ### only want to use this when you have no idea what the right
3340 ### operating system is; if you know what operating systems a machine
3341 ### runs, it's cleaner to make it explicit in the case statement
3342 ### above.
3343 if test x"${opsys}" = x; then
3344 case "${canonical}" in
3345 *-gnu* ) opsys=gnu ;;
3346 *-sysv4.2uw* ) opsys=unixware ;;
3347 *-sysv5uw* ) opsys=unixware ;;
3348 *-sysv5OpenUNIX* ) opsys=unixware ;;
3349 *-sysv4.1* | *-sysvr4.1* )
3350 NON_GNU_CPP=/usr/lib/cpp
3351 opsys=usg5-4 ;;
3352 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3353 if [ x$NON_GNU_CPP = x ]; then
3354 if [ -f /usr/ccs/lib/cpp ]; then
3355 NON_GNU_CPP=/usr/ccs/lib/cpp
3356 else
3357 NON_GNU_CPP=/lib/cpp
3358 fi
3359 fi
3360 opsys=usg5-4-2 ;;
3361 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3362 * )
3363 unported=yes
3364 ;;
3365 esac
3366 fi
3367
3368
3369
3370 if test $unported = yes; then
3371 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3372 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3373 fi
3374
3375 machfile="m/${machine}.h"
3376 opsysfile="s/${opsys}.h"
3377
3378
3379 #### Choose a compiler.
3380 test -n "$CC" && cc_specified=yes
3381
3382 # Save the value of CFLAGS that the user specified.
3383 SPECIFIED_CFLAGS="$CFLAGS"
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if test "${ac_cv_prog_CC+set}" = set; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428 fi
3429 if test -z "$ac_cv_prog_CC"; then
3430 ac_ct_CC=$CC
3431 # Extract the first word of "gcc", so it can be a program name with args.
3432 set dummy gcc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_ac_ct_CC="gcc"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461 $as_echo "$ac_ct_CC" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467 if test "x$ac_ct_CC" = x; then
3468 CC=""
3469 else
3470 case $cross_compiling:$ac_tool_warned in
3471 yes:)
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3474 ac_tool_warned=yes ;;
3475 esac
3476 CC=$ac_ct_CC
3477 fi
3478 else
3479 CC="$ac_cv_prog_CC"
3480 fi
3481
3482 if test -z "$CC"; then
3483 if test -n "$ac_tool_prefix"; then
3484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3485 set dummy ${ac_tool_prefix}cc; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if test "${ac_cv_prog_CC+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_CC="${ac_tool_prefix}cc"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505 done
3506 done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 CC=$ac_cv_prog_CC
3512 if test -n "$CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3515 else
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 fi
3519
3520
3521 fi
3522 fi
3523 if test -z "$CC"; then
3524 # Extract the first word of "cc", so it can be a program name with args.
3525 set dummy cc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if test "${ac_cv_prog_CC+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3533 else
3534 ac_prog_rejected=no
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3543 ac_prog_rejected=yes
3544 continue
3545 fi
3546 ac_cv_prog_CC="cc"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 if test $ac_prog_rejected = yes; then
3555 # We found a bogon in the path, so make sure we never use it.
3556 set dummy $ac_cv_prog_CC
3557 shift
3558 if test $# != 0; then
3559 # We chose a different compiler from the bogus one.
3560 # However, it has the same basename, so the bogon will be chosen
3561 # first if we set CC to just the basename; use the full file name.
3562 shift
3563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3564 fi
3565 fi
3566 fi
3567 fi
3568 CC=$ac_cv_prog_CC
3569 if test -n "$CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3572 else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577
3578 fi
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 for ac_prog in cl.exe
3582 do
3583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_CC+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 CC=$ac_cv_prog_CC
3611 if test -n "$CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619
3620 test -n "$CC" && break
3621 done
3622 fi
3623 if test -z "$CC"; then
3624 ac_ct_CC=$CC
3625 for ac_prog in cl.exe
3626 do
3627 # Extract the first word of "$ac_prog", so it can be a program name with args.
3628 set dummy $ac_prog; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$ac_ct_CC"; then
3635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_ac_ct_CC="$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655 if test -n "$ac_ct_CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657 $as_echo "$ac_ct_CC" >&6; }
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663
3664 test -n "$ac_ct_CC" && break
3665 done
3666
3667 if test "x$ac_ct_CC" = x; then
3668 CC=""
3669 else
3670 case $cross_compiling:$ac_tool_warned in
3671 yes:)
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674 ac_tool_warned=yes ;;
3675 esac
3676 CC=$ac_ct_CC
3677 fi
3678 fi
3679
3680 fi
3681
3682
3683 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "no acceptable C compiler found in \$PATH
3686 See \`config.log' for more details" "$LINENO" 5; }
3687
3688 # Provide some information about the compiler.
3689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3690 set X $ac_compile
3691 ac_compiler=$2
3692 for ac_option in --version -v -V -qversion; do
3693 { { ac_try="$ac_compiler $ac_option >&5"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3701 ac_status=$?
3702 if test -s conftest.err; then
3703 sed '10a\
3704 ... rest of stderr output deleted ...
3705 10q' conftest.err >conftest.er1
3706 cat conftest.er1 >&5
3707 fi
3708 rm -f conftest.er1 conftest.err
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }
3711 done
3712
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 ac_clean_files_save=$ac_clean_files
3725 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3726 # Try to create an executable without -o first, disregard a.out.
3727 # It will help us diagnose broken compilers, and finding out an intuition
3728 # of exeext.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3730 $as_echo_n "checking whether the C compiler works... " >&6; }
3731 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3732
3733 # The possible output files:
3734 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3735
3736 ac_rmfiles=
3737 for ac_file in $ac_files
3738 do
3739 case $ac_file in
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3742 esac
3743 done
3744 rm -f $ac_rmfiles
3745
3746 if { { ac_try="$ac_link_default"
3747 case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_link_default") 2>&5
3754 ac_status=$?
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; then :
3757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3760 # so that the user can short-circuit this test for compilers unknown to
3761 # Autoconf.
3762 for ac_file in $ac_files ''
3763 do
3764 test -f "$ac_file" || continue
3765 case $ac_file in
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3767 ;;
3768 [ab].out )
3769 # We found the default executable, but exeext='' is most
3770 # certainly right.
3771 break;;
3772 *.* )
3773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3774 then :; else
3775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 fi
3777 # We set ac_cv_exeext here because the later test for it is not
3778 # safe: cross compilers may not add the suffix if given an `-o'
3779 # argument, so we may need to know it at that point already.
3780 # Even if this section looks crufty: it has the advantage of
3781 # actually working.
3782 break;;
3783 * )
3784 break;;
3785 esac
3786 done
3787 test "$ac_cv_exeext" = no && ac_cv_exeext=
3788
3789 else
3790 ac_file=''
3791 fi
3792 if test -z "$ac_file"; then :
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error 77 "C compiler cannot create executables
3801 See \`config.log' for more details" "$LINENO" 5; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804 $as_echo "yes" >&6; }
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3807 $as_echo_n "checking for C compiler default output file name... " >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3809 $as_echo "$ac_file" >&6; }
3810 ac_exeext=$ac_cv_exeext
3811
3812 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3813 ac_clean_files=$ac_clean_files_save
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3815 $as_echo_n "checking for suffix of executables... " >&6; }
3816 if { { ac_try="$ac_link"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_link") 2>&5
3824 ac_status=$?
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3828 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3829 # work properly (i.e., refer to `conftest.exe'), while it won't with
3830 # `rm'.
3831 for ac_file in conftest.exe conftest conftest.*; do
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 break;;
3837 * ) break;;
3838 esac
3839 done
3840 else
3841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3844 See \`config.log' for more details" "$LINENO" 5; }
3845 fi
3846 rm -f conftest conftest$ac_cv_exeext
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3848 $as_echo "$ac_cv_exeext" >&6; }
3849
3850 rm -f conftest.$ac_ext
3851 EXEEXT=$ac_cv_exeext
3852 ac_exeext=$EXEEXT
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855 #include <stdio.h>
3856 int
3857 main ()
3858 {
3859 FILE *f = fopen ("conftest.out", "w");
3860 return ferror (f) || fclose (f) != 0;
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 ac_clean_files="$ac_clean_files conftest.out"
3867 # Check that the compiler produces executables we can run. If not, either
3868 # the compiler is broken, or we cross compile.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3870 $as_echo_n "checking whether we are cross compiling... " >&6; }
3871 if test "$cross_compiling" != yes; then
3872 { { ac_try="$ac_link"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_link") 2>&5
3880 ac_status=$?
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }
3883 if { ac_try='./conftest$ac_cv_exeext'
3884 { { case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_try") 2>&5
3891 ac_status=$?
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; }; then
3894 cross_compiling=no
3895 else
3896 if test "$cross_compiling" = maybe; then
3897 cross_compiling=yes
3898 else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "cannot run C compiled programs.
3902 If you meant to cross compile, use \`--host'.
3903 See \`config.log' for more details" "$LINENO" 5; }
3904 fi
3905 fi
3906 fi
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908 $as_echo "$cross_compiling" >&6; }
3909
3910 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3911 ac_clean_files=$ac_clean_files_save
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3913 $as_echo_n "checking for suffix of object files... " >&6; }
3914 if test "${ac_cv_objext+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919
3920 int
3921 main ()
3922 {
3923
3924 ;
3925 return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.o conftest.obj
3929 if { { ac_try="$ac_compile"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_compile") 2>&5
3937 ac_status=$?
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 for ac_file in conftest.o conftest.obj conftest.*; do
3941 test -f "$ac_file" || continue;
3942 case $ac_file in
3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3945 break;;
3946 esac
3947 done
3948 else
3949 $as_echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $? "cannot compute suffix of object files: cannot compile
3955 See \`config.log' for more details" "$LINENO" 5; }
3956 fi
3957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3960 $as_echo "$ac_cv_objext" >&6; }
3961 OBJEXT=$ac_cv_objext
3962 ac_objext=$OBJEXT
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3964 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3965 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970
3971 int
3972 main ()
3973 {
3974 #ifndef __GNUC__
3975 choke me
3976 #endif
3977
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_compiler_gnu=yes
3984 else
3985 ac_compiler_gnu=no
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3989
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3992 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3993 if test $ac_compiler_gnu = yes; then
3994 GCC=yes
3995 else
3996 GCC=
3997 fi
3998 ac_test_CFLAGS=${CFLAGS+set}
3999 ac_save_CFLAGS=$CFLAGS
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4001 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4002 if test "${ac_cv_prog_cc_g+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 ac_save_c_werror_flag=$ac_c_werror_flag
4006 ac_c_werror_flag=yes
4007 ac_cv_prog_cc_g=no
4008 CFLAGS="-g"
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011
4012 int
4013 main ()
4014 {
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_g=yes
4022 else
4023 CFLAGS=""
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026
4027 int
4028 main ()
4029 {
4030
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036
4037 else
4038 ac_c_werror_flag=$ac_save_c_werror_flag
4039 CFLAGS="-g"
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042
4043 int
4044 main ()
4045 {
4046
4047 ;
4048 return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_cv_prog_cc_g=yes
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 ac_c_werror_flag=$ac_save_c_werror_flag
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4062 $as_echo "$ac_cv_prog_cc_g" >&6; }
4063 if test "$ac_test_CFLAGS" = set; then
4064 CFLAGS=$ac_save_CFLAGS
4065 elif test $ac_cv_prog_cc_g = yes; then
4066 if test "$GCC" = yes; then
4067 CFLAGS="-g -O2"
4068 else
4069 CFLAGS="-g"
4070 fi
4071 else
4072 if test "$GCC" = yes; then
4073 CFLAGS="-O2"
4074 else
4075 CFLAGS=
4076 fi
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4079 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4080 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_cv_prog_cc_c89=no
4084 ac_save_CC=$CC
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <stdarg.h>
4088 #include <stdio.h>
4089 #include <sys/types.h>
4090 #include <sys/stat.h>
4091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4092 struct buf { int x; };
4093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4094 static char *e (p, i)
4095 char **p;
4096 int i;
4097 {
4098 return p[i];
4099 }
4100 static char *f (char * (*g) (char **, int), char **p, ...)
4101 {
4102 char *s;
4103 va_list v;
4104 va_start (v,p);
4105 s = g (p, va_arg (v,int));
4106 va_end (v);
4107 return s;
4108 }
4109
4110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4111 function prototypes and stuff, but not '\xHH' hex character constants.
4112 These don't provoke an error unfortunately, instead are silently treated
4113 as 'x'. The following induces an error, until -std is added to get
4114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4115 array size at least. It's necessary to write '\x00'==0 to get something
4116 that's true only with -std. */
4117 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4118
4119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4120 inside strings and character constants. */
4121 #define FOO(x) 'x'
4122 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4123
4124 int test (int i, double x);
4125 struct s1 {int (*f) (int a);};
4126 struct s2 {int (*f) (double a);};
4127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4128 int argc;
4129 char **argv;
4130 int
4131 main ()
4132 {
4133 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4140 do
4141 CC="$ac_save_CC $ac_arg"
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_prog_cc_c89=$ac_arg
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext
4146 test "x$ac_cv_prog_cc_c89" != "xno" && break
4147 done
4148 rm -f conftest.$ac_ext
4149 CC=$ac_save_CC
4150
4151 fi
4152 # AC_CACHE_VAL
4153 case "x$ac_cv_prog_cc_c89" in
4154 x)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4156 $as_echo "none needed" >&6; } ;;
4157 xno)
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4159 $as_echo "unsupported" >&6; } ;;
4160 *)
4161 CC="$CC $ac_cv_prog_cc_c89"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4163 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4164 esac
4165 if test "x$ac_cv_prog_cc_c89" != xno; then :
4166
4167 fi
4168
4169 ac_ext=c
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174
4175
4176 # On Suns, sometimes $CPP names a directory.
4177 if test -n "$CPP" && test -d "$CPP"; then
4178 CPP=
4179 fi
4180
4181 ## If not using gcc, and on Solaris, and no CPP specified, see if
4182 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4183 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4184 test x"$CPP" = x; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4186 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4187
4188 if test "${emacs_cv_sunpro_c+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193
4194 int
4195 main ()
4196 {
4197 #ifndef __SUNPRO_C
4198 fail;
4199 #endif
4200
4201 ;
4202 return 0;
4203 }
4204 _ACEOF
4205 if ac_fn_c_try_link "$LINENO"; then :
4206 emacs_cv_sunpro_c=yes
4207 else
4208 emacs_cv_sunpro_c=no
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext \
4211 conftest$ac_exeext conftest.$ac_ext
4212 fi
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4215 $as_echo "$emacs_cv_sunpro_c" >&6; }
4216
4217 if test x"$emacs_cv_sunpro_c" = xyes; then
4218 NON_GNU_CPP="$CC -E -Xs"
4219 fi
4220 fi
4221
4222 #### Some systems specify a CPP to use unless we are using GCC.
4223 #### Now that we know whether we are using GCC, we can decide whether
4224 #### to use that one.
4225 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4226 then
4227 CPP="$NON_GNU_CPP"
4228 fi
4229
4230 #### Some systems specify a CC to use unless we are using GCC.
4231 #### Now that we know whether we are using GCC, we can decide whether
4232 #### to use that one.
4233 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4234 test x$cc_specified != xyes
4235 then
4236 CC="$NON_GNU_CC"
4237 fi
4238
4239 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4240 then
4241 CC="$CC $GCC_TEST_OPTIONS"
4242 fi
4243
4244 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4245 then
4246 CC="$CC $NON_GCC_TEST_OPTIONS"
4247 fi
4248
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4255 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4256 # On Suns, sometimes $CPP names a directory.
4257 if test -n "$CPP" && test -d "$CPP"; then
4258 CPP=
4259 fi
4260 if test -z "$CPP"; then
4261 if test "${ac_cv_prog_CPP+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 # Double quotes because CPP needs to be expanded
4265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4266 do
4267 ac_preproc_ok=false
4268 for ac_c_preproc_warn_flag in '' yes
4269 do
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error" is here to catch this case.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #ifdef __STDC__
4279 # include <limits.h>
4280 #else
4281 # include <assert.h>
4282 #endif
4283 Syntax error
4284 _ACEOF
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286
4287 else
4288 # Broken: fails on valid input.
4289 continue
4290 fi
4291 rm -f conftest.err conftest.i conftest.$ac_ext
4292
4293 # OK, works on sane cases. Now check whether nonexistent headers
4294 # can be detected and how.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <ac_nonexistent.h>
4298 _ACEOF
4299 if ac_fn_c_try_cpp "$LINENO"; then :
4300 # Broken: success on invalid input.
4301 continue
4302 else
4303 # Passes both tests.
4304 ac_preproc_ok=:
4305 break
4306 fi
4307 rm -f conftest.err conftest.i conftest.$ac_ext
4308
4309 done
4310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311 rm -f conftest.i conftest.err conftest.$ac_ext
4312 if $ac_preproc_ok; then :
4313 break
4314 fi
4315
4316 done
4317 ac_cv_prog_CPP=$CPP
4318
4319 fi
4320 CPP=$ac_cv_prog_CPP
4321 else
4322 ac_cv_prog_CPP=$CPP
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4325 $as_echo "$CPP" >&6; }
4326 ac_preproc_ok=false
4327 for ac_c_preproc_warn_flag in '' yes
4328 do
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 #ifdef __STDC__
4338 # include <limits.h>
4339 #else
4340 # include <assert.h>
4341 #endif
4342 Syntax error
4343 _ACEOF
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4345
4346 else
4347 # Broken: fails on valid input.
4348 continue
4349 fi
4350 rm -f conftest.err conftest.i conftest.$ac_ext
4351
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #include <ac_nonexistent.h>
4357 _ACEOF
4358 if ac_fn_c_try_cpp "$LINENO"; then :
4359 # Broken: success on invalid input.
4360 continue
4361 else
4362 # Passes both tests.
4363 ac_preproc_ok=:
4364 break
4365 fi
4366 rm -f conftest.err conftest.i conftest.$ac_ext
4367
4368 done
4369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370 rm -f conftest.i conftest.err conftest.$ac_ext
4371 if $ac_preproc_ok; then :
4372
4373 else
4374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4376 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4377 See \`config.log' for more details" "$LINENO" 5; }
4378 fi
4379
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4388 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4389 if test "${ac_cv_path_GREP+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -z "$GREP"; then
4393 ac_path_GREP_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in grep ggrep; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4403 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4404 # Check for GNU ac_path_GREP and select it if it is found.
4405 # Check for GNU $ac_path_GREP
4406 case `"$ac_path_GREP" --version 2>&1` in
4407 *GNU*)
4408 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4409 *)
4410 ac_count=0
4411 $as_echo_n 0123456789 >"conftest.in"
4412 while :
4413 do
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'GREP' >> "conftest.nl"
4418 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420 as_fn_arith $ac_count + 1 && ac_count=$as_val
4421 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_GREP="$ac_path_GREP"
4424 ac_path_GREP_max=$ac_count
4425 fi
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 esac
4431
4432 $ac_path_GREP_found && break 3
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437 if test -z "$ac_cv_path_GREP"; then
4438 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439 fi
4440 else
4441 ac_cv_path_GREP=$GREP
4442 fi
4443
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4446 $as_echo "$ac_cv_path_GREP" >&6; }
4447 GREP="$ac_cv_path_GREP"
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4451 $as_echo_n "checking for egrep... " >&6; }
4452 if test "${ac_cv_path_EGREP+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4456 then ac_cv_path_EGREP="$GREP -E"
4457 else
4458 if test -z "$EGREP"; then
4459 ac_path_EGREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in egrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4470 # Check for GNU ac_path_EGREP and select it if it is found.
4471 # Check for GNU $ac_path_EGREP
4472 case `"$ac_path_EGREP" --version 2>&1` in
4473 *GNU*)
4474 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4475 *)
4476 ac_count=0
4477 $as_echo_n 0123456789 >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo 'EGREP' >> "conftest.nl"
4484 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 as_fn_arith $ac_count + 1 && ac_count=$as_val
4487 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_EGREP="$ac_path_EGREP"
4490 ac_path_EGREP_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496 esac
4497
4498 $ac_path_EGREP_found && break 3
4499 done
4500 done
4501 done
4502 IFS=$as_save_IFS
4503 if test -z "$ac_cv_path_EGREP"; then
4504 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 fi
4506 else
4507 ac_cv_path_EGREP=$EGREP
4508 fi
4509
4510 fi
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4513 $as_echo "$ac_cv_path_EGREP" >&6; }
4514 EGREP="$ac_cv_path_EGREP"
4515
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4518 $as_echo_n "checking for ANSI C header files... " >&6; }
4519 if test "${ac_cv_header_stdc+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <stdlib.h>
4525 #include <stdarg.h>
4526 #include <string.h>
4527 #include <float.h>
4528
4529 int
4530 main ()
4531 {
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_header_stdc=yes
4539 else
4540 ac_cv_header_stdc=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543
4544 if test $ac_cv_header_stdc = yes; then
4545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <string.h>
4549
4550 _ACEOF
4551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4552 $EGREP "memchr" >/dev/null 2>&1; then :
4553
4554 else
4555 ac_cv_header_stdc=no
4556 fi
4557 rm -f conftest*
4558
4559 fi
4560
4561 if test $ac_cv_header_stdc = yes; then
4562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <stdlib.h>
4566
4567 _ACEOF
4568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4569 $EGREP "free" >/dev/null 2>&1; then :
4570
4571 else
4572 ac_cv_header_stdc=no
4573 fi
4574 rm -f conftest*
4575
4576 fi
4577
4578 if test $ac_cv_header_stdc = yes; then
4579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4580 if test "$cross_compiling" = yes; then :
4581 :
4582 else
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <ctype.h>
4586 #include <stdlib.h>
4587 #if ((' ' & 0x0FF) == 0x020)
4588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4590 #else
4591 # define ISLOWER(c) \
4592 (('a' <= (c) && (c) <= 'i') \
4593 || ('j' <= (c) && (c) <= 'r') \
4594 || ('s' <= (c) && (c) <= 'z'))
4595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4596 #endif
4597
4598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4599 int
4600 main ()
4601 {
4602 int i;
4603 for (i = 0; i < 256; i++)
4604 if (XOR (islower (i), ISLOWER (i))
4605 || toupper (i) != TOUPPER (i))
4606 return 2;
4607 return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_run "$LINENO"; then :
4611
4612 else
4613 ac_cv_header_stdc=no
4614 fi
4615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4616 conftest.$ac_objext conftest.beam conftest.$ac_ext
4617 fi
4618
4619 fi
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4622 $as_echo "$ac_cv_header_stdc" >&6; }
4623 if test $ac_cv_header_stdc = yes; then
4624
4625 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4626
4627 fi
4628
4629 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4630 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4631 inttypes.h stdint.h unistd.h
4632 do :
4633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4635 "
4636 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4637 cat >>confdefs.h <<_ACEOF
4638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4639 _ACEOF
4640
4641 fi
4642
4643 done
4644
4645
4646
4647 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4648 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4649 MINIX=yes
4650 else
4651 MINIX=
4652 fi
4653
4654
4655 if test "$MINIX" = yes; then
4656
4657 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4658
4659
4660 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4661
4662
4663 $as_echo "#define _MINIX 1" >>confdefs.h
4664
4665 fi
4666
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4669 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4670 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675
4676 # define __EXTENSIONS__ 1
4677 $ac_includes_default
4678 int
4679 main ()
4680 {
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687 ac_cv_safe_to_define___extensions__=yes
4688 else
4689 ac_cv_safe_to_define___extensions__=no
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4694 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4695 test $ac_cv_safe_to_define___extensions__ = yes &&
4696 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4697
4698 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4699
4700 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4701
4702 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4703
4704 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4705
4706
4707
4708 ### Use -Wno-pointer-sign if the compiler supports it
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4710 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4711 SAVE_CFLAGS="$CFLAGS"
4712 CFLAGS="$CFLAGS -Wno-pointer-sign"
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715
4716 int
4717 main ()
4718 {
4719
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 has_option=yes
4726 else
4727 has_option=no
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 if test $has_option = yes; then
4731 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4734 $as_echo "$has_option" >&6; }
4735 CFLAGS="$SAVE_CFLAGS"
4736 unset has_option
4737 unset SAVE_CFLAGS
4738
4739 ### Use -Wdeclaration-after-statement if the compiler supports it
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4741 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4742 SAVE_CFLAGS="$CFLAGS"
4743 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746
4747 int
4748 main ()
4749 {
4750
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756 has_option=yes
4757 else
4758 has_option=no
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 if test $has_option = yes; then
4762 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4765 $as_echo "$has_option" >&6; }
4766 CFLAGS="$SAVE_CFLAGS"
4767 unset has_option
4768 unset SAVE_CFLAGS
4769
4770 #### Some other nice autoconf tests.
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4773 $as_echo_n "checking whether ln -s works... " >&6; }
4774 LN_S=$as_ln_s
4775 if test "$LN_S" = "ln -s"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777 $as_echo "yes" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4780 $as_echo "no, using $LN_S" >&6; }
4781 fi
4782
4783 ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4789 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4790 # On Suns, sometimes $CPP names a directory.
4791 if test -n "$CPP" && test -d "$CPP"; then
4792 CPP=
4793 fi
4794 if test -z "$CPP"; then
4795 if test "${ac_cv_prog_CPP+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 # Double quotes because CPP needs to be expanded
4799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4800 do
4801 ac_preproc_ok=false
4802 for ac_c_preproc_warn_flag in '' yes
4803 do
4804 # Use a header file that comes with gcc, so configuring glibc
4805 # with a fresh cross-compiler works.
4806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807 # <limits.h> exists even on freestanding compilers.
4808 # On the NeXT, cc -E runs the code through the compiler's parser,
4809 # not just through cpp. "Syntax error" is here to catch this case.
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 #ifdef __STDC__
4813 # include <limits.h>
4814 #else
4815 # include <assert.h>
4816 #endif
4817 Syntax error
4818 _ACEOF
4819 if ac_fn_c_try_cpp "$LINENO"; then :
4820
4821 else
4822 # Broken: fails on valid input.
4823 continue
4824 fi
4825 rm -f conftest.err conftest.i conftest.$ac_ext
4826
4827 # OK, works on sane cases. Now check whether nonexistent headers
4828 # can be detected and how.
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 #include <ac_nonexistent.h>
4832 _ACEOF
4833 if ac_fn_c_try_cpp "$LINENO"; then :
4834 # Broken: success on invalid input.
4835 continue
4836 else
4837 # Passes both tests.
4838 ac_preproc_ok=:
4839 break
4840 fi
4841 rm -f conftest.err conftest.i conftest.$ac_ext
4842
4843 done
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.i conftest.err conftest.$ac_ext
4846 if $ac_preproc_ok; then :
4847 break
4848 fi
4849
4850 done
4851 ac_cv_prog_CPP=$CPP
4852
4853 fi
4854 CPP=$ac_cv_prog_CPP
4855 else
4856 ac_cv_prog_CPP=$CPP
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4859 $as_echo "$CPP" >&6; }
4860 ac_preproc_ok=false
4861 for ac_c_preproc_warn_flag in '' yes
4862 do
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871 #ifdef __STDC__
4872 # include <limits.h>
4873 #else
4874 # include <assert.h>
4875 #endif
4876 Syntax error
4877 _ACEOF
4878 if ac_fn_c_try_cpp "$LINENO"; then :
4879
4880 else
4881 # Broken: fails on valid input.
4882 continue
4883 fi
4884 rm -f conftest.err conftest.i conftest.$ac_ext
4885
4886 # OK, works on sane cases. Now check whether nonexistent headers
4887 # can be detected and how.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #include <ac_nonexistent.h>
4891 _ACEOF
4892 if ac_fn_c_try_cpp "$LINENO"; then :
4893 # Broken: success on invalid input.
4894 continue
4895 else
4896 # Passes both tests.
4897 ac_preproc_ok=:
4898 break
4899 fi
4900 rm -f conftest.err conftest.i conftest.$ac_ext
4901
4902 done
4903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4904 rm -f conftest.i conftest.err conftest.$ac_ext
4905 if $ac_preproc_ok; then :
4906
4907 else
4908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4910 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4911 See \`config.log' for more details" "$LINENO" 5; }
4912 fi
4913
4914 ac_ext=c
4915 ac_cpp='$CPP $CPPFLAGS'
4916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919
4920 # Find a good install program. We prefer a C program (faster),
4921 # so one script is as good as another. But avoid the broken or
4922 # incompatible versions:
4923 # SysV /etc/install, /usr/sbin/install
4924 # SunOS /usr/etc/install
4925 # IRIX /sbin/install
4926 # AIX /bin/install
4927 # AmigaOS /C/install, which installs bootblocks on floppy discs
4928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4931 # OS/2's system install, which has a completely different semantic
4932 # ./install, which can be erroneously created by make from ./install.sh.
4933 # Reject install programs that cannot install multiple files.
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4935 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4936 if test -z "$INSTALL"; then
4937 if test "${ac_cv_path_install+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 # Account for people who put trailing slashes in PATH elements.
4946 case $as_dir/ in #((
4947 ./ | .// | /[cC]/* | \
4948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4949 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4950 /usr/ucb/* ) ;;
4951 *)
4952 # OSF1 and SCO ODT 3.0 have their own names for install.
4953 # Don't use installbsd from OSF since it installs stuff as root
4954 # by default.
4955 for ac_prog in ginstall scoinst install; do
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4958 if test $ac_prog = install &&
4959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4960 # AIX install. It has an incompatible calling convention.
4961 :
4962 elif test $ac_prog = install &&
4963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4964 # program-specific install script used by HP pwplus--don't use.
4965 :
4966 else
4967 rm -rf conftest.one conftest.two conftest.dir
4968 echo one > conftest.one
4969 echo two > conftest.two
4970 mkdir conftest.dir
4971 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4972 test -s conftest.one && test -s conftest.two &&
4973 test -s conftest.dir/conftest.one &&
4974 test -s conftest.dir/conftest.two
4975 then
4976 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4977 break 3
4978 fi
4979 fi
4980 fi
4981 done
4982 done
4983 ;;
4984 esac
4985
4986 done
4987 IFS=$as_save_IFS
4988
4989 rm -rf conftest.one conftest.two conftest.dir
4990
4991 fi
4992 if test "${ac_cv_path_install+set}" = set; then
4993 INSTALL=$ac_cv_path_install
4994 else
4995 # As a last resort, use the slow shell script. Don't cache a
4996 # value for INSTALL within a source directory, because that will
4997 # break other packages using the cache if that directory is
4998 # removed, or if the value is a relative name.
4999 INSTALL=$ac_install_sh
5000 fi
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5003 $as_echo "$INSTALL" >&6; }
5004
5005 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5006 # It thinks the first close brace ends the variable substitution.
5007 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5008
5009 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5010
5011 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5012
5013 if test "x$RANLIB" = x; then
5014 if test -n "$ac_tool_prefix"; then
5015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5016 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$RANLIB"; then
5023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036 done
5037 done
5038 IFS=$as_save_IFS
5039
5040 fi
5041 fi
5042 RANLIB=$ac_cv_prog_RANLIB
5043 if test -n "$RANLIB"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5045 $as_echo "$RANLIB" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049 fi
5050
5051
5052 fi
5053 if test -z "$ac_cv_prog_RANLIB"; then
5054 ac_ct_RANLIB=$RANLIB
5055 # Extract the first word of "ranlib", so it can be a program name with args.
5056 set dummy ranlib; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$ac_ct_RANLIB"; then
5063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_prog_ac_ct_RANLIB="ranlib"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076 done
5077 done
5078 IFS=$as_save_IFS
5079
5080 fi
5081 fi
5082 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5083 if test -n "$ac_ct_RANLIB"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5085 $as_echo "$ac_ct_RANLIB" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089 fi
5090
5091 if test "x$ac_ct_RANLIB" = x; then
5092 RANLIB=":"
5093 else
5094 case $cross_compiling:$ac_tool_warned in
5095 yes:)
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5098 ac_tool_warned=yes ;;
5099 esac
5100 RANLIB=$ac_ct_RANLIB
5101 fi
5102 else
5103 RANLIB="$ac_cv_prog_RANLIB"
5104 fi
5105
5106 fi
5107 # Extract the first word of "install-info", so it can be a program name with args.
5108 set dummy install-info; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 case $INSTALL_INFO in
5115 [\\/]* | ?:[\\/]*)
5116 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5117 ;;
5118 *)
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 ;;
5135 esac
5136 fi
5137 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5138 if test -n "$INSTALL_INFO"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5140 $as_echo "$INSTALL_INFO" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146
5147 # Extract the first word of "install-info", so it can be a program name with args.
5148 set dummy install-info; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 case $INSTALL_INFO in
5155 [\\/]* | ?:[\\/]*)
5156 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5157 ;;
5158 *)
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in /usr/sbin
5161 do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170 done
5171 done
5172 IFS=$as_save_IFS
5173
5174 ;;
5175 esac
5176 fi
5177 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5178 if test -n "$INSTALL_INFO"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5180 $as_echo "$INSTALL_INFO" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187 # Extract the first word of "install-info", so it can be a program name with args.
5188 set dummy install-info; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 case $INSTALL_INFO in
5195 [\\/]* | ?:[\\/]*)
5196 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5197 ;;
5198 *)
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in /sbin
5201 do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5209 fi
5210 done
5211 done
5212 IFS=$as_save_IFS
5213
5214 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5215 ;;
5216 esac
5217 fi
5218 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5219 if test -n "$INSTALL_INFO"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5221 $as_echo "$INSTALL_INFO" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227
5228 # Extract the first word of "gzip", so it can be a program name with args.
5229 set dummy gzip; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 case $GZIP_PROG in
5236 [\\/]* | ?:[\\/]*)
5237 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5238 ;;
5239 *)
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255 ;;
5256 esac
5257 fi
5258 GZIP_PROG=$ac_cv_path_GZIP_PROG
5259 if test -n "$GZIP_PROG"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5261 $as_echo "$GZIP_PROG" >&6; }
5262 else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5265 fi
5266
5267
5268
5269
5270 ## Need makeinfo >= 4.6 (?) to build the manuals.
5271 # Extract the first word of "makeinfo", so it can be a program name with args.
5272 set dummy makeinfo; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 case $MAKEINFO in
5279 [\\/]* | ?:[\\/]*)
5280 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5281 ;;
5282 *)
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5299 ;;
5300 esac
5301 fi
5302 MAKEINFO=$ac_cv_path_MAKEINFO
5303 if test -n "$MAKEINFO"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5305 $as_echo "$MAKEINFO" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312 if test "$MAKEINFO" != "no" && \
5313 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
5314 MAKEINFO=no
5315 fi
5316
5317 ## Makeinfo is unusual. For a released Emacs, the manuals are
5318 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5319 ## therefore in the category of "special tools" not normally required, which
5320 ## configure does not have to check for (eg autoconf itself).
5321 ## In a Bazaar checkout on the other hand, the manuals are not included.
5322 ## So makeinfo is a requirement to build from Bazaar, and configure
5323 ## should test for it as it does for any other build requirement.
5324 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5325 ## with pre-built manuals, from a Bazaar checkout.
5326 if test "$MAKEINFO" = "no"; then
5327 if test "x${with_makeinfo}" = "xno"; then
5328 MAKEINFO=off
5329 elif ! test -e $srcdir/info/emacs; then
5330 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5331 source tree does not seem to have pre-built manuals in the \`info' directory.
5332 Either install a suitable version of makeinfo, or re-run configure
5333 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5334 fi
5335 fi
5336
5337
5338 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5339 then
5340 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5341 fi
5342
5343 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5344 then
5345 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5346 fi
5347
5348
5349 late_LDFLAGS=$LDFLAGS
5350 if test "$GCC" = yes; then
5351 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5352 else
5353 LDFLAGS="$LDFLAGS -znocombreloc"
5354 fi
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5357 $as_echo_n "checking for -znocombreloc... " >&6; }
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 main(){return 0;}
5361 _ACEOF
5362 if ac_fn_c_try_link "$LINENO"; then :
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364 $as_echo "yes" >&6; }
5365 else
5366 LDFLAGS=$late_LDFLAGS
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext \
5371 conftest$ac_exeext conftest.$ac_ext
5372
5373 #### Extract some information from the operating system and machine files.
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5376 - which libraries the lib-src programs will want, and
5377 - whether the GNU malloc routines are usable..." >&5
5378 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5379 - which libraries the lib-src programs will want, and
5380 - whether the GNU malloc routines are usable..." >&6;}
5381
5382 ### First figure out CFLAGS (which we use for running the compiler here)
5383 ### and REAL_CFLAGS (which we use for real compilation).
5384 ### The two are the same except on a few systems, where they are made
5385 ### different to work around various lossages. For example,
5386 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5387 ### as implying static linking.
5388
5389 ### If the CFLAGS env var is specified, we use that value
5390 ### instead of the default.
5391
5392 ### It's not important that this name contain the PID; you can't run
5393 ### two configures in the same directory and have anything work
5394 ### anyway.
5395 tempcname="conftest.c"
5396
5397 echo '
5398 #include "'${srcdir}'/src/'${opsysfile}'"
5399 #include "'${srcdir}'/src/'${machfile}'"
5400 #ifndef LIBS_MACHINE
5401 #define LIBS_MACHINE
5402 #endif
5403 #ifndef LIBS_SYSTEM
5404 #define LIBS_SYSTEM
5405 #endif
5406 #ifndef C_SWITCH_SYSTEM
5407 #define C_SWITCH_SYSTEM
5408 #endif
5409 #ifndef C_SWITCH_MACHINE
5410 #define C_SWITCH_MACHINE
5411 #endif
5412 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5413 configure___ c_switch_system=C_SWITCH_SYSTEM
5414 configure___ c_switch_machine=C_SWITCH_MACHINE
5415
5416 #ifndef LIB_X11_LIB
5417 #define LIB_X11_LIB -lX11
5418 #endif
5419
5420 #ifndef LIBX11_SYSTEM
5421 #define LIBX11_SYSTEM
5422 #endif
5423 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5424
5425 #ifdef UNEXEC
5426 configure___ unexec=UNEXEC
5427 #else
5428 configure___ unexec=unexec.o
5429 #endif
5430
5431 #ifdef SYSTEM_MALLOC
5432 configure___ system_malloc=yes
5433 #else
5434 configure___ system_malloc=no
5435 #endif
5436
5437 #ifdef USE_MMAP_FOR_BUFFERS
5438 configure___ use_mmap_for_buffers=yes
5439 #else
5440 configure___ use_mmap_for_buffers=no
5441 #endif
5442
5443 #ifndef C_DEBUG_SWITCH
5444 #define C_DEBUG_SWITCH -g
5445 #endif
5446
5447 #ifndef C_OPTIMIZE_SWITCH
5448 #ifdef __GNUC__
5449 #define C_OPTIMIZE_SWITCH -O2
5450 #else
5451 #define C_OPTIMIZE_SWITCH -O
5452 #endif
5453 #endif
5454
5455 #ifndef C_WARNINGS_SWITCH
5456 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5457 #endif
5458
5459 #ifndef LD_SWITCH_MACHINE
5460 #define LD_SWITCH_MACHINE
5461 #endif
5462
5463 #ifndef LD_SWITCH_SYSTEM
5464 #define LD_SWITCH_SYSTEM
5465 #endif
5466
5467 #ifndef LD_SWITCH_X_SITE_AUX
5468 #define LD_SWITCH_X_SITE_AUX
5469 #endif
5470
5471 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5472 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5473
5474 #ifdef THIS_IS_CONFIGURE
5475
5476 /* Get the CFLAGS for tests in configure. */
5477 #ifdef __GNUC__
5478 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5479 #else
5480 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5481 #endif
5482
5483 #else /* not THIS_IS_CONFIGURE */
5484
5485 /* Get the CFLAGS for real compilation. */
5486 #ifdef __GNUC__
5487 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5488 #else
5489 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5490 #endif
5491
5492 #endif /* not THIS_IS_CONFIGURE */
5493 ' > ${tempcname}
5494
5495 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5496
5497 # The value of CPP is a quoted variable reference, so we need to do this
5498 # to get its actual value...
5499 CPP=`eval "echo $CPP"`
5500 eval `${CPP} -Isrc ${tempcname} \
5501 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5502 if test "x$SPECIFIED_CFLAGS" = x; then
5503 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5504 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5505 else
5506 REAL_CFLAGS="$CFLAGS"
5507 fi
5508 rm ${tempcname}
5509
5510 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5511
5512 ### Make sure subsequent tests use flags consistent with the build flags.
5513
5514 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5515 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5516 else
5517 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5518 fi
5519
5520
5521
5522 # Check whether --enable-largefile was given.
5523 if test "${enable_largefile+set}" = set; then :
5524 enableval=$enable_largefile;
5525 fi
5526
5527 if test "$enable_largefile" != no; then
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5530 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5531 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 ac_cv_sys_largefile_CC=no
5535 if test "$GCC" != yes; then
5536 ac_save_CC=$CC
5537 while :; do
5538 # IRIX 6.2 and later do not support large files by default,
5539 # so use the C compiler's -n32 option if that helps.
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <sys/types.h>
5543 /* Check that off_t can represent 2**63 - 1 correctly.
5544 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5545 since some C++ compilers masquerading as C compilers
5546 incorrectly reject 9223372036854775807. */
5547 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5548 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5549 && LARGE_OFF_T % 2147483647 == 1)
5550 ? 1 : -1];
5551 int
5552 main ()
5553 {
5554
5555 ;
5556 return 0;
5557 }
5558 _ACEOF
5559 if ac_fn_c_try_compile "$LINENO"; then :
5560 break
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext
5563 CC="$CC -n32"
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 ac_cv_sys_largefile_CC=' -n32'; break
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext
5568 break
5569 done
5570 CC=$ac_save_CC
5571 rm -f conftest.$ac_ext
5572 fi
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5575 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5576 if test "$ac_cv_sys_largefile_CC" != no; then
5577 CC=$CC$ac_cv_sys_largefile_CC
5578 fi
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5581 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5582 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 while :; do
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588 #include <sys/types.h>
5589 /* Check that off_t can represent 2**63 - 1 correctly.
5590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5591 since some C++ compilers masquerading as C compilers
5592 incorrectly reject 9223372036854775807. */
5593 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5595 && LARGE_OFF_T % 2147483647 == 1)
5596 ? 1 : -1];
5597 int
5598 main ()
5599 {
5600
5601 ;
5602 return 0;
5603 }
5604 _ACEOF
5605 if ac_fn_c_try_compile "$LINENO"; then :
5606 ac_cv_sys_file_offset_bits=no; break
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 #define _FILE_OFFSET_BITS 64
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5620 ? 1 : -1];
5621 int
5622 main ()
5623 {
5624
5625 ;
5626 return 0;
5627 }
5628 _ACEOF
5629 if ac_fn_c_try_compile "$LINENO"; then :
5630 ac_cv_sys_file_offset_bits=64; break
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 ac_cv_sys_file_offset_bits=unknown
5634 break
5635 done
5636 fi
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5638 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5639 case $ac_cv_sys_file_offset_bits in #(
5640 no | unknown) ;;
5641 *)
5642 cat >>confdefs.h <<_ACEOF
5643 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5644 _ACEOF
5645 ;;
5646 esac
5647 rm -rf conftest*
5648 if test $ac_cv_sys_file_offset_bits = unknown; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5650 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5651 if test "${ac_cv_sys_large_files+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 while :; do
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 #include <sys/types.h>
5658 /* Check that off_t can represent 2**63 - 1 correctly.
5659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5660 since some C++ compilers masquerading as C compilers
5661 incorrectly reject 9223372036854775807. */
5662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5664 && LARGE_OFF_T % 2147483647 == 1)
5665 ? 1 : -1];
5666 int
5667 main ()
5668 {
5669
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 ac_cv_sys_large_files=no; break
5676 fi
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 #define _LARGE_FILES 1
5681 #include <sys/types.h>
5682 /* Check that off_t can represent 2**63 - 1 correctly.
5683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5684 since some C++ compilers masquerading as C compilers
5685 incorrectly reject 9223372036854775807. */
5686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5688 && LARGE_OFF_T % 2147483647 == 1)
5689 ? 1 : -1];
5690 int
5691 main ()
5692 {
5693
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 if ac_fn_c_try_compile "$LINENO"; then :
5699 ac_cv_sys_large_files=1; break
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 ac_cv_sys_large_files=unknown
5703 break
5704 done
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5707 $as_echo "$ac_cv_sys_large_files" >&6; }
5708 case $ac_cv_sys_large_files in #(
5709 no | unknown) ;;
5710 *)
5711 cat >>confdefs.h <<_ACEOF
5712 #define _LARGE_FILES $ac_cv_sys_large_files
5713 _ACEOF
5714 ;;
5715 esac
5716 rm -rf conftest*
5717 fi
5718 fi
5719
5720
5721 ## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x.
5722 ## Other machine types hard-code the location in src/[ms]/*.h.
5723 case "${canonical}" in
5724 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5725 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5726 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5727 ## For anything else (eg /usr/lib32), it is up the user to specify
5728 ## the location (bug#5655).
5729 ## Test for crtn.o, not just the directory, because sometimes the
5730 ## directory exists but does not have the relevant files (bug#1287).
5731 ## If user specified a crt-dir, use that unconditionally.
5732 if test "X$CRT_DIR" = "X"; then
5733 CRT_DIR=/usr/lib
5734 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5735 fi
5736
5737 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5738 as_fn_error $? "crt*.o not found. Use --with-crt-dir to specify the location." "$LINENO" 5
5739 ;;
5740 esac
5741 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5742
5743
5744
5745
5746
5747 if test "${with_sound}" != "no"; then
5748 # Sound support for GNU/Linux and the free BSDs.
5749 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5750 do :
5751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5752 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5754 cat >>confdefs.h <<_ACEOF
5755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5756 _ACEOF
5757
5758 fi
5759
5760 done
5761
5762 # Emulation library used on NetBSD.
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5764 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5765 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 ac_check_lib_save_LIBS=$LIBS
5769 LIBS="-lossaudio $LIBS"
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772
5773 /* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5776 #ifdef __cplusplus
5777 extern "C"
5778 #endif
5779 char _oss_ioctl ();
5780 int
5781 main ()
5782 {
5783 return _oss_ioctl ();
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_c_try_link "$LINENO"; then :
5789 ac_cv_lib_ossaudio__oss_ioctl=yes
5790 else
5791 ac_cv_lib_ossaudio__oss_ioctl=no
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext \
5794 conftest$ac_exeext conftest.$ac_ext
5795 LIBS=$ac_check_lib_save_LIBS
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5798 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5799 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5800 LIBSOUND=-lossaudio
5801 else
5802 LIBSOUND=
5803 fi
5804
5805
5806
5807 ALSA_REQUIRED=1.0.0
5808 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5809
5810 succeeded=no
5811
5812 # Extract the first word of "pkg-config", so it can be a program name with args.
5813 set dummy pkg-config; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 case $PKG_CONFIG in
5820 [\\/]* | ?:[\\/]*)
5821 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5822 ;;
5823 *)
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5840 ;;
5841 esac
5842 fi
5843 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5844 if test -n "$PKG_CONFIG"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5846 $as_echo "$PKG_CONFIG" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5850 fi
5851
5852
5853
5854 if test "$PKG_CONFIG" = "no" ; then
5855 HAVE_ALSA=no
5856 else
5857 PKG_CONFIG_MIN_VERSION=0.9.0
5858 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5860 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5861
5862 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5864 $as_echo "yes" >&6; }
5865 succeeded=yes
5866
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5868 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5869 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5871 $as_echo "$ALSA_CFLAGS" >&6; }
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5874 $as_echo_n "checking ALSA_LIBS... " >&6; }
5875 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5877 $as_echo "$ALSA_LIBS" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 ALSA_CFLAGS=""
5882 ALSA_LIBS=""
5883 ## If we have a custom action on failure, don't print errors, but
5884 ## do set a variable so people can do so.
5885 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5886
5887 fi
5888
5889
5890
5891 else
5892 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5893 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5894 fi
5895 fi
5896
5897 if test $succeeded = yes; then
5898 HAVE_ALSA=yes
5899 else
5900 HAVE_ALSA=no
5901 fi
5902
5903 if test $HAVE_ALSA = yes; then
5904 SAVE_CFLAGS="$CFLAGS"
5905 SAVE_LDFLAGS="$LDFLAGS"
5906 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5907 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 #include <asoundlib.h>
5911 int
5912 main ()
5913 {
5914 snd_lib_error_set_handler (0);
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 if ac_fn_c_try_compile "$LINENO"; then :
5920 emacs_alsa_normal=yes
5921 else
5922 emacs_alsa_normal=no
5923 fi
5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925 if test "$emacs_alsa_normal" != yes; then
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 #include <alsa/asoundlib.h>
5929 int
5930 main ()
5931 {
5932 snd_lib_error_set_handler (0);
5933 ;
5934 return 0;
5935 }
5936 _ACEOF
5937 if ac_fn_c_try_compile "$LINENO"; then :
5938 emacs_alsa_subdir=yes
5939 else
5940 emacs_alsa_subdir=no
5941 fi
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 if test "$emacs_alsa_subdir" != yes; then
5944 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5945 fi
5946 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5947 fi
5948
5949 CFLAGS="$SAVE_CFLAGS"
5950 LDFLAGS="$SAVE_LDFLAGS"
5951 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5952 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5953
5954 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5955
5956 fi
5957
5958 fi
5959
5960 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5961 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5962 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5963 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5964 sys/utsname.h pwd.h utmp.h
5965 do :
5966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5967 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5969 cat >>confdefs.h <<_ACEOF
5970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5971 _ACEOF
5972
5973 fi
5974
5975 done
5976
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5979 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 #include <sys/personality.h>
5983 int
5984 main ()
5985 {
5986 personality (PER_LINUX32)
5987 ;
5988 return 0;
5989 }
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992 emacs_cv_personality_linux32=yes
5993 else
5994 emacs_cv_personality_linux32=no
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5998 $as_echo "$emacs_cv_personality_linux32" >&6; }
5999
6000 if test $emacs_cv_personality_linux32 = yes; then
6001
6002 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6003
6004 fi
6005
6006 for ac_header in term.h
6007 do :
6008 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6009 if test "x$ac_cv_header_term_h" = x""yes; then :
6010 cat >>confdefs.h <<_ACEOF
6011 #define HAVE_TERM_H 1
6012 _ACEOF
6013
6014 fi
6015
6016 done
6017
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6019 $as_echo_n "checking for ANSI C header files... " >&6; }
6020 if test "${ac_cv_header_stdc+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <stdlib.h>
6026 #include <stdarg.h>
6027 #include <string.h>
6028 #include <float.h>
6029
6030 int
6031 main ()
6032 {
6033
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 if ac_fn_c_try_compile "$LINENO"; then :
6039 ac_cv_header_stdc=yes
6040 else
6041 ac_cv_header_stdc=no
6042 fi
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044
6045 if test $ac_cv_header_stdc = yes; then
6046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 #include <string.h>
6050
6051 _ACEOF
6052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6053 $EGREP "memchr" >/dev/null 2>&1; then :
6054
6055 else
6056 ac_cv_header_stdc=no
6057 fi
6058 rm -f conftest*
6059
6060 fi
6061
6062 if test $ac_cv_header_stdc = yes; then
6063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 #include <stdlib.h>
6067
6068 _ACEOF
6069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6070 $EGREP "free" >/dev/null 2>&1; then :
6071
6072 else
6073 ac_cv_header_stdc=no
6074 fi
6075 rm -f conftest*
6076
6077 fi
6078
6079 if test $ac_cv_header_stdc = yes; then
6080 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6081 if test "$cross_compiling" = yes; then :
6082 :
6083 else
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 #include <ctype.h>
6087 #include <stdlib.h>
6088 #if ((' ' & 0x0FF) == 0x020)
6089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6091 #else
6092 # define ISLOWER(c) \
6093 (('a' <= (c) && (c) <= 'i') \
6094 || ('j' <= (c) && (c) <= 'r') \
6095 || ('s' <= (c) && (c) <= 'z'))
6096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6097 #endif
6098
6099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6100 int
6101 main ()
6102 {
6103 int i;
6104 for (i = 0; i < 256; i++)
6105 if (XOR (islower (i), ISLOWER (i))
6106 || toupper (i) != TOUPPER (i))
6107 return 2;
6108 return 0;
6109 }
6110 _ACEOF
6111 if ac_fn_c_try_run "$LINENO"; then :
6112
6113 else
6114 ac_cv_header_stdc=no
6115 fi
6116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6117 conftest.$ac_objext conftest.beam conftest.$ac_ext
6118 fi
6119
6120 fi
6121 fi
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6123 $as_echo "$ac_cv_header_stdc" >&6; }
6124 if test $ac_cv_header_stdc = yes; then
6125
6126 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6127
6128 fi
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6131 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6132 if test "${ac_cv_header_time+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 #include <sys/types.h>
6138 #include <sys/time.h>
6139 #include <time.h>
6140
6141 int
6142 main ()
6143 {
6144 if ((struct tm *) 0)
6145 return 0;
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 if ac_fn_c_try_compile "$LINENO"; then :
6151 ac_cv_header_time=yes
6152 else
6153 ac_cv_header_time=no
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6158 $as_echo "$ac_cv_header_time" >&6; }
6159 if test $ac_cv_header_time = yes; then
6160
6161 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6162
6163 fi
6164
6165 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6166 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6167 ac_have_decl=1
6168 else
6169 ac_have_decl=0
6170 fi
6171
6172 cat >>confdefs.h <<_ACEOF
6173 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6174 _ACEOF
6175
6176 if test $ac_cv_have_decl_sys_siglist != yes; then
6177 # For Tru64, at least:
6178 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6179 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6180 ac_have_decl=1
6181 else
6182 ac_have_decl=0
6183 fi
6184
6185 cat >>confdefs.h <<_ACEOF
6186 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6187 _ACEOF
6188
6189 if test $ac_cv_have_decl___sys_siglist = yes; then
6190
6191 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6192
6193 fi
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6196 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6197 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6203 #include <sys/wait.h>
6204 #ifndef WEXITSTATUS
6205 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6206 #endif
6207 #ifndef WIFEXITED
6208 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6209 #endif
6210
6211 int
6212 main ()
6213 {
6214 int s;
6215 wait (&s);
6216 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6217 ;
6218 return 0;
6219 }
6220 _ACEOF
6221 if ac_fn_c_try_compile "$LINENO"; then :
6222 ac_cv_header_sys_wait_h=yes
6223 else
6224 ac_cv_header_sys_wait_h=no
6225 fi
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 fi
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6229 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6230 if test $ac_cv_header_sys_wait_h = yes; then
6231
6232 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6233
6234 fi
6235
6236
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6238 $as_echo_n "checking for struct utimbuf... " >&6; }
6239 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 #ifdef TIME_WITH_SYS_TIME
6245 #include <sys/time.h>
6246 #include <time.h>
6247 #else
6248 #ifdef HAVE_SYS_TIME_H
6249 #include <sys/time.h>
6250 #else
6251 #include <time.h>
6252 #endif
6253 #endif
6254 #ifdef HAVE_UTIME_H
6255 #include <utime.h>
6256 #endif
6257 int
6258 main ()
6259 {
6260 static struct utimbuf x; x.actime = x.modtime;
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"; then :
6266 emacs_cv_struct_utimbuf=yes
6267 else
6268 emacs_cv_struct_utimbuf=no
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: $emacs_cv_struct_utimbuf" >&5
6273 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6274 if test $emacs_cv_struct_utimbuf = yes; then
6275
6276 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6277
6278 fi
6279
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6281 $as_echo_n "checking return type of signal handlers... " >&6; }
6282 if test "${ac_cv_type_signal+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 #include <sys/types.h>
6288 #include <signal.h>
6289
6290 int
6291 main ()
6292 {
6293 return *(signal (0, 0)) (0) == 1;
6294 ;
6295 return 0;
6296 }
6297 _ACEOF
6298 if ac_fn_c_try_compile "$LINENO"; then :
6299 ac_cv_type_signal=int
6300 else
6301 ac_cv_type_signal=void
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6306 $as_echo "$ac_cv_type_signal" >&6; }
6307
6308 cat >>confdefs.h <<_ACEOF
6309 #define RETSIGTYPE $ac_cv_type_signal
6310 _ACEOF
6311
6312
6313
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6315 $as_echo_n "checking for speed_t... " >&6; }
6316 if test "${emacs_cv_speed_t+set}" = set; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <termios.h>
6322 int
6323 main ()
6324 {
6325 speed_t x = 1;
6326 ;
6327 return 0;
6328 }
6329 _ACEOF
6330 if ac_fn_c_try_compile "$LINENO"; then :
6331 emacs_cv_speed_t=yes
6332 else
6333 emacs_cv_speed_t=no
6334 fi
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6338 $as_echo "$emacs_cv_speed_t" >&6; }
6339 if test $emacs_cv_speed_t = yes; then
6340
6341 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6342
6343 fi
6344
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6346 $as_echo_n "checking for struct timeval... " >&6; }
6347 if test "${emacs_cv_struct_timeval+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 #ifdef TIME_WITH_SYS_TIME
6353 #include <sys/time.h>
6354 #include <time.h>
6355 #else
6356 #ifdef HAVE_SYS_TIME_H
6357 #include <sys/time.h>
6358 #else
6359 #include <time.h>
6360 #endif
6361 #endif
6362 int
6363 main ()
6364 {
6365 static struct timeval x; x.tv_sec = x.tv_usec;
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_compile "$LINENO"; then :
6371 emacs_cv_struct_timeval=yes
6372 else
6373 emacs_cv_struct_timeval=no
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 fi
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6378 $as_echo "$emacs_cv_struct_timeval" >&6; }
6379 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6380 if test $emacs_cv_struct_timeval = yes; then
6381
6382 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6383
6384 fi
6385
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6387 $as_echo_n "checking for struct exception... " >&6; }
6388 if test "${emacs_cv_struct_exception+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 #include <math.h>
6394 int
6395 main ()
6396 {
6397 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 if ac_fn_c_try_compile "$LINENO"; then :
6403 emacs_cv_struct_exception=yes
6404 else
6405 emacs_cv_struct_exception=no
6406 fi
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6410 $as_echo "$emacs_cv_struct_exception" >&6; }
6411 HAVE_EXCEPTION=$emacs_cv_struct_exception
6412 if test $emacs_cv_struct_exception != yes; then
6413
6414 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6415
6416 fi
6417
6418 for ac_header in sys/socket.h
6419 do :
6420 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6421 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6422 cat >>confdefs.h <<_ACEOF
6423 #define HAVE_SYS_SOCKET_H 1
6424 _ACEOF
6425
6426 fi
6427
6428 done
6429
6430 for ac_header in net/if.h
6431 do :
6432 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6433 #if HAVE_SYS_SOCKET_H
6434 #include <sys/socket.h>
6435 #endif
6436 "
6437 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6438 cat >>confdefs.h <<_ACEOF
6439 #define HAVE_NET_IF_H 1
6440 _ACEOF
6441
6442 fi
6443
6444 done
6445
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6448 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6449 if test "${ac_cv_struct_tm+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <time.h>
6456
6457 int
6458 main ()
6459 {
6460 struct tm tm;
6461 int *p = &tm.tm_sec;
6462 return !p;
6463 ;
6464 return 0;
6465 }
6466 _ACEOF
6467 if ac_fn_c_try_compile "$LINENO"; then :
6468 ac_cv_struct_tm=time.h
6469 else
6470 ac_cv_struct_tm=sys/time.h
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6475 $as_echo "$ac_cv_struct_tm" >&6; }
6476 if test $ac_cv_struct_tm = sys/time.h; then
6477
6478 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6479
6480 fi
6481
6482 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6483 #include <$ac_cv_struct_tm>
6484
6485 "
6486 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6487
6488 cat >>confdefs.h <<_ACEOF
6489 #define HAVE_STRUCT_TM_TM_ZONE 1
6490 _ACEOF
6491
6492
6493 fi
6494
6495 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6496
6497 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6498
6499 else
6500 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6501 "
6502 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6503 ac_have_decl=1
6504 else
6505 ac_have_decl=0
6506 fi
6507
6508 cat >>confdefs.h <<_ACEOF
6509 #define HAVE_DECL_TZNAME $ac_have_decl
6510 _ACEOF
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6513 $as_echo_n "checking for tzname... " >&6; }
6514 if test "${ac_cv_var_tzname+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 #include <time.h>
6520 #if !HAVE_DECL_TZNAME
6521 extern char *tzname[];
6522 #endif
6523
6524 int
6525 main ()
6526 {
6527 return tzname[0][0];
6528 ;
6529 return 0;
6530 }
6531 _ACEOF
6532 if ac_fn_c_try_link "$LINENO"; then :
6533 ac_cv_var_tzname=yes
6534 else
6535 ac_cv_var_tzname=no
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6539 fi
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6541 $as_echo "$ac_cv_var_tzname" >&6; }
6542 if test $ac_cv_var_tzname = yes; then
6543
6544 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6545
6546 fi
6547 fi
6548
6549 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6550 "
6551 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6552
6553 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6554
6555 fi
6556
6557 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6558 #if HAVE_SYS_SOCKET_H
6559 #include <sys/socket.h>
6560 #endif
6561 #if HAVE_NET_IF_H
6562 #include <net/if.h>
6563 #endif
6564 "
6565 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6566
6567 cat >>confdefs.h <<_ACEOF
6568 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6569 _ACEOF
6570
6571
6572 fi
6573 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6574 #if HAVE_SYS_SOCKET_H
6575 #include <sys/socket.h>
6576 #endif
6577 #if HAVE_NET_IF_H
6578 #include <net/if.h>
6579 #endif
6580 "
6581 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6582
6583 cat >>confdefs.h <<_ACEOF
6584 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6585 _ACEOF
6586
6587
6588 fi
6589 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6590 #if HAVE_SYS_SOCKET_H
6591 #include <sys/socket.h>
6592 #endif
6593 #if HAVE_NET_IF_H
6594 #include <net/if.h>
6595 #endif
6596 "
6597 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6598
6599 cat >>confdefs.h <<_ACEOF
6600 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6601 _ACEOF
6602
6603
6604 fi
6605 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6606 #if HAVE_SYS_SOCKET_H
6607 #include <sys/socket.h>
6608 #endif
6609 #if HAVE_NET_IF_H
6610 #include <net/if.h>
6611 #endif
6612 "
6613 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6614
6615 cat >>confdefs.h <<_ACEOF
6616 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6617 _ACEOF
6618
6619
6620 fi
6621 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6622 #if HAVE_SYS_SOCKET_H
6623 #include <sys/socket.h>
6624 #endif
6625 #if HAVE_NET_IF_H
6626 #include <net/if.h>
6627 #endif
6628 "
6629 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6630
6631 cat >>confdefs.h <<_ACEOF
6632 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6633 _ACEOF
6634
6635
6636 fi
6637
6638
6639
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6641 $as_echo_n "checking for function prototypes... " >&6; }
6642 if test "$ac_cv_prog_cc_c89" != no; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6644 $as_echo "yes" >&6; }
6645
6646 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6647
6648
6649 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6650
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6654 fi
6655
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6657 $as_echo_n "checking for working volatile... " >&6; }
6658 if test "${ac_cv_c_volatile+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663
6664 int
6665 main ()
6666 {
6667
6668 volatile int x;
6669 int * volatile y = (int *) 0;
6670 return !x && !y;
6671 ;
6672 return 0;
6673 }
6674 _ACEOF
6675 if ac_fn_c_try_compile "$LINENO"; then :
6676 ac_cv_c_volatile=yes
6677 else
6678 ac_cv_c_volatile=no
6679 fi
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 fi
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6683 $as_echo "$ac_cv_c_volatile" >&6; }
6684 if test $ac_cv_c_volatile = no; then
6685
6686 $as_echo "#define volatile /**/" >>confdefs.h
6687
6688 fi
6689
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6691 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6692 if test "${ac_cv_c_const+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697
6698 int
6699 main ()
6700 {
6701 /* FIXME: Include the comments suggested by Paul. */
6702 #ifndef __cplusplus
6703 /* Ultrix mips cc rejects this. */
6704 typedef int charset[2];
6705 const charset cs;
6706 /* SunOS 4.1.1 cc rejects this. */
6707 char const *const *pcpcc;
6708 char **ppc;
6709 /* NEC SVR4.0.2 mips cc rejects this. */
6710 struct point {int x, y;};
6711 static struct point const zero = {0,0};
6712 /* AIX XL C 1.02.0.0 rejects this.
6713 It does not let you subtract one const X* pointer from another in
6714 an arm of an if-expression whose if-part is not a constant
6715 expression */
6716 const char *g = "string";
6717 pcpcc = &g + (g ? g-g : 0);
6718 /* HPUX 7.0 cc rejects these. */
6719 ++pcpcc;
6720 ppc = (char**) pcpcc;
6721 pcpcc = (char const *const *) ppc;
6722 { /* SCO 3.2v4 cc rejects this. */
6723 char *t;
6724 char const *s = 0 ? (char *) 0 : (char const *) 0;
6725
6726 *t++ = 0;
6727 if (s) return 0;
6728 }
6729 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6730 int x[] = {25, 17};
6731 const int *foo = &x[0];
6732 ++foo;
6733 }
6734 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6735 typedef const int *iptr;
6736 iptr p = 0;
6737 ++p;
6738 }
6739 { /* AIX XL C 1.02.0.0 rejects this saying
6740 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6741 struct s { int j; const int *ap[3]; };
6742 struct s *b; b->j = 5;
6743 }
6744 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6745 const int foo = 10;
6746 if (!foo) return 0;
6747 }
6748 return !cs[0] && !zero.x;
6749 #endif
6750
6751 ;
6752 return 0;
6753 }
6754 _ACEOF
6755 if ac_fn_c_try_compile "$LINENO"; then :
6756 ac_cv_c_const=yes
6757 else
6758 ac_cv_c_const=no
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 fi
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6763 $as_echo "$ac_cv_c_const" >&6; }
6764 if test $ac_cv_c_const = no; then
6765
6766 $as_echo "#define const /**/" >>confdefs.h
6767
6768 fi
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6771 $as_echo_n "checking for void * support... " >&6; }
6772 if test "${emacs_cv_void_star+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777
6778 int
6779 main ()
6780 {
6781 void * foo;
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_compile "$LINENO"; then :
6787 emacs_cv_void_star=yes
6788 else
6789 emacs_cv_void_star=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 fi
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6794 $as_echo "$emacs_cv_void_star" >&6; }
6795 if test $emacs_cv_void_star = yes; then
6796 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6797
6798 else
6799 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6800
6801 fi
6802
6803
6804
6805
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6807 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6808 set x ${MAKE-make}
6809 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6810 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 cat >conftest.make <<\_ACEOF
6814 SHELL = /bin/sh
6815 all:
6816 @echo '@@@%%%=$(MAKE)=@@@%%%'
6817 _ACEOF
6818 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6819 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6820 *@@@%%%=?*=@@@%%%*)
6821 eval ac_cv_prog_make_${ac_make}_set=yes;;
6822 *)
6823 eval ac_cv_prog_make_${ac_make}_set=no;;
6824 esac
6825 rm -f conftest.make
6826 fi
6827 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6829 $as_echo "yes" >&6; }
6830 SET_MAKE=
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 SET_MAKE="MAKE=${MAKE-make}"
6835 fi
6836
6837
6838 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6840 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6841 HAVE_GNU_MAKE=no
6842 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6843 if test "x$testval" != x; then
6844 HAVE_GNU_MAKE=yes
6845 else
6846 ac_enable_autodepend=no
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6849 $as_echo "$HAVE_GNU_MAKE" >&6; }
6850 if test $HAVE_GNU_MAKE = yes; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6852 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6853 SAVE_CFLAGS="$CFLAGS"
6854 CFLAGS="$CFLAGS -MMD -MF deps.d"
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857
6858 int
6859 main ()
6860 {
6861
6862 ;
6863 return 0;
6864 }
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867
6868 else
6869 ac_enable_autodepend=no
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 CFLAGS="$SAVE_CFLAGS"
6873 test -f deps.d || ac_enable_autodepend=no
6874 rm -rf deps.d
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6876 $as_echo "$ac_enable_autodepend" >&6; }
6877 fi
6878 if test $ac_enable_autodepend = yes; then
6879
6880 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6881
6882 fi
6883 fi
6884
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6886 $as_echo_n "checking for long file names... " >&6; }
6887 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 ac_cv_sys_long_file_names=yes
6891 # Test for long file names in all the places we know might matter:
6892 # . the current directory, where building will happen
6893 # $prefix/lib where we will be installing things
6894 # $exec_prefix/lib likewise
6895 # $TMPDIR if set, where it might want to write temporary files
6896 # /tmp where it might want to write temporary files
6897 # /var/tmp likewise
6898 # /usr/tmp likewise
6899 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6900 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6901 # in the usual case where exec_prefix is '${prefix}'.
6902 case $ac_dir in #(
6903 . | /* | ?:[\\/]*) ;; #(
6904 *) continue;;
6905 esac
6906 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6907 ac_xdir=$ac_dir/cf$$
6908 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6909 ac_tf1=$ac_xdir/conftest9012345
6910 ac_tf2=$ac_xdir/conftest9012346
6911 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6912 ac_cv_sys_long_file_names=no
6913 rm -f -r "$ac_xdir" 2>/dev/null
6914 test $ac_cv_sys_long_file_names = no && break
6915 done
6916 fi
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6918 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6919 if test $ac_cv_sys_long_file_names = yes; then
6920
6921 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6922
6923 fi
6924
6925
6926 #### Choose a window system.
6927
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6929 $as_echo_n "checking for X... " >&6; }
6930
6931
6932 # Check whether --with-x was given.
6933 if test "${with_x+set}" = set; then :
6934 withval=$with_x;
6935 fi
6936
6937 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6938 if test "x$with_x" = xno; then
6939 # The user explicitly disabled X.
6940 have_x=disabled
6941 else
6942 case $x_includes,$x_libraries in #(
6943 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6944 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 # One or both of the vars are not set, and there is no cached value.
6948 ac_x_includes=no ac_x_libraries=no
6949 rm -f -r conftest.dir
6950 if mkdir conftest.dir; then
6951 cd conftest.dir
6952 cat >Imakefile <<'_ACEOF'
6953 incroot:
6954 @echo incroot='${INCROOT}'
6955 usrlibdir:
6956 @echo usrlibdir='${USRLIBDIR}'
6957 libdir:
6958 @echo libdir='${LIBDIR}'
6959 _ACEOF
6960 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6961 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6962 for ac_var in incroot usrlibdir libdir; do
6963 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6964 done
6965 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6966 for ac_extension in a so sl dylib la dll; do
6967 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6968 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6969 ac_im_usrlibdir=$ac_im_libdir; break
6970 fi
6971 done
6972 # Screen out bogus values from the imake configuration. They are
6973 # bogus both because they are the default anyway, and because
6974 # using them would break gcc on systems where it needs fixed includes.
6975 case $ac_im_incroot in
6976 /usr/include) ac_x_includes= ;;
6977 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6978 esac
6979 case $ac_im_usrlibdir in
6980 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6981 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6982 esac
6983 fi
6984 cd ..
6985 rm -f -r conftest.dir
6986 fi
6987
6988 # Standard set of common directories for X headers.
6989 # Check X11 before X11Rn because it is often a symlink to the current release.
6990 ac_x_header_dirs='
6991 /usr/X11/include
6992 /usr/X11R7/include
6993 /usr/X11R6/include
6994 /usr/X11R5/include
6995 /usr/X11R4/include
6996
6997 /usr/include/X11
6998 /usr/include/X11R7
6999 /usr/include/X11R6
7000 /usr/include/X11R5
7001 /usr/include/X11R4
7002
7003 /usr/local/X11/include
7004 /usr/local/X11R7/include
7005 /usr/local/X11R6/include
7006 /usr/local/X11R5/include
7007 /usr/local/X11R4/include
7008
7009 /usr/local/include/X11
7010 /usr/local/include/X11R7
7011 /usr/local/include/X11R6
7012 /usr/local/include/X11R5
7013 /usr/local/include/X11R4
7014
7015 /usr/X386/include
7016 /usr/x386/include
7017 /usr/XFree86/include/X11
7018
7019 /usr/include
7020 /usr/local/include
7021 /usr/unsupported/include
7022 /usr/athena/include
7023 /usr/local/x11r5/include
7024 /usr/lpp/Xamples/include
7025
7026 /usr/openwin/include
7027 /usr/openwin/share/include'
7028
7029 if test "$ac_x_includes" = no; then
7030 # Guess where to find include files, by looking for Xlib.h.
7031 # First, try using that file with no special directory specified.
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 #include <X11/Xlib.h>
7035 _ACEOF
7036 if ac_fn_c_try_cpp "$LINENO"; then :
7037 # We can compile using X headers with no special include directory.
7038 ac_x_includes=
7039 else
7040 for ac_dir in $ac_x_header_dirs; do
7041 if test -r "$ac_dir/X11/Xlib.h"; then
7042 ac_x_includes=$ac_dir
7043 break
7044 fi
7045 done
7046 fi
7047 rm -f conftest.err conftest.i conftest.$ac_ext
7048 fi # $ac_x_includes = no
7049
7050 if test "$ac_x_libraries" = no; then
7051 # Check for the libraries.
7052 # See if we find them without any special options.
7053 # Don't add to $LIBS permanently.
7054 ac_save_LIBS=$LIBS
7055 LIBS="-lX11 $LIBS"
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 #include <X11/Xlib.h>
7059 int
7060 main ()
7061 {
7062 XrmInitialize ()
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 if ac_fn_c_try_link "$LINENO"; then :
7068 LIBS=$ac_save_LIBS
7069 # We can link X programs with no special library path.
7070 ac_x_libraries=
7071 else
7072 LIBS=$ac_save_LIBS
7073 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7074 do
7075 # Don't even attempt the hair of trying to link an X program!
7076 for ac_extension in a so sl dylib la dll; do
7077 if test -r "$ac_dir/libX11.$ac_extension"; then
7078 ac_x_libraries=$ac_dir
7079 break 2
7080 fi
7081 done
7082 done
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7086 fi # $ac_x_libraries = no
7087
7088 case $ac_x_includes,$ac_x_libraries in #(
7089 no,* | *,no | *\'*)
7090 # Didn't find X, or a directory has "'" in its name.
7091 ac_cv_have_x="have_x=no";; #(
7092 *)
7093 # Record where we found X for the cache.
7094 ac_cv_have_x="have_x=yes\
7095 ac_x_includes='$ac_x_includes'\
7096 ac_x_libraries='$ac_x_libraries'"
7097 esac
7098 fi
7099 ;; #(
7100 *) have_x=yes;;
7101 esac
7102 eval "$ac_cv_have_x"
7103 fi # $with_x != no
7104
7105 if test "$have_x" != yes; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7107 $as_echo "$have_x" >&6; }
7108 no_x=yes
7109 else
7110 # If each of the values was on the command line, it overrides each guess.
7111 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7112 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7113 # Update the cache value to reflect the command line values.
7114 ac_cv_have_x="have_x=yes\
7115 ac_x_includes='$x_includes'\
7116 ac_x_libraries='$x_libraries'"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7118 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7119 fi
7120
7121 if test "$no_x" = yes; then
7122 window_system=none
7123 else
7124 window_system=x11
7125 fi
7126
7127 ## Workaround for bug in autoconf <= 2.62.
7128 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7129 ## No need to do anything special for these standard directories.
7130 ## This is an experiment, take it out if it causes problems.
7131 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7132
7133 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7134
7135 fi
7136
7137 if test "${x_libraries}" != NONE; then
7138 if test -n "${x_libraries}"; then
7139 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7140 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7141 fi
7142 x_default_search_path=""
7143 x_search_path=${x_libraries}
7144 if test -z "${x_search_path}"; then
7145 x_search_path=/usr/lib
7146 fi
7147 for x_library in `echo ${x_search_path}: | \
7148 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7149 x_search_path="\
7150 ${x_library}/X11/%L/%T/%N%C%S:\
7151 ${x_library}/X11/%l/%T/%N%C%S:\
7152 ${x_library}/X11/%T/%N%C%S:\
7153 ${x_library}/X11/%L/%T/%N%S:\
7154 ${x_library}/X11/%l/%T/%N%S:\
7155 ${x_library}/X11/%T/%N%S"
7156 if test x"${x_default_search_path}" = x; then
7157 x_default_search_path=${x_search_path}
7158 else
7159 x_default_search_path="${x_search_path}:${x_default_search_path}"
7160 fi
7161 done
7162 fi
7163 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7164 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7165 fi
7166
7167 if test x"${x_includes}" = x; then
7168 bitmapdir=/usr/include/X11/bitmaps
7169 else
7170 # accumulate include directories that have X11 bitmap subdirectories
7171 bmd_acc="dummyval"
7172 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7173 if test -d "${bmd}/X11/bitmaps"; then
7174 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7175 fi
7176 if test -d "${bmd}/bitmaps"; then
7177 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7178 fi
7179 done
7180 if test ${bmd_acc} != "dummyval"; then
7181 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7182 fi
7183 fi
7184
7185 HAVE_NS=no
7186 NS_IMPL_COCOA=no
7187 NS_IMPL_GNUSTEP=no
7188 tmp_CPPFLAGS="$CPPFLAGS"
7189 tmp_CFLAGS="$CFLAGS"
7190 CPPFLAGS="$CPPFLAGS -x objective-c"
7191 CFLAGS="$CFLAGS -x objective-c"
7192 if test "${with_ns}" != no; then
7193 if test "${opsys}" = darwin; then
7194 NS_IMPL_COCOA=yes
7195 ns_appdir=`pwd`/nextstep/Emacs.app
7196 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
7197 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
7198 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7199 elif test -f $GNUSTEP_CONFIG_FILE; then
7200 NS_IMPL_GNUSTEP=yes
7201 ns_appdir=`pwd`/nextstep/Emacs.app
7202 ns_appbindir=`pwd`/nextstep/Emacs.app
7203 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
7204 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7205 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7206 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7207 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7208 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7209 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7210 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7211 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7212 fi
7213 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7214 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7215 HAVE_NS=yes
7216 else
7217 as_fn_error $? "\`--with-ns' was specified, but the include
7218 files are missing or cannot be compiled." "$LINENO" 5
7219 fi
7220
7221
7222 NS_HAVE_NSINTEGER=yes
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 #include <Foundation/NSObjCRuntime.h>
7226 int
7227 main ()
7228 {
7229 NSInteger i;
7230 ;
7231 return 0;
7232 }
7233 _ACEOF
7234 if ac_fn_c_try_compile "$LINENO"; then :
7235 ns_have_nsinteger=yes
7236 else
7237 ns_have_nsinteger=no
7238 fi
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 if test $ns_have_nsinteger = no; then
7241 NS_HAVE_NSINTEGER=no
7242 fi
7243 fi
7244 if test "${HAVE_NS}" = yes; then
7245 window_system=nextstep
7246 with_xft=no
7247 # set up packaging dirs
7248 exec_prefix=${ns_appbindir}
7249 libexecdir=${ns_appbindir}/libexec
7250 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7251 prefix=${ns_appresdir}
7252 fi
7253 fi
7254 CFLAGS="$tmp_CFLAGS"
7255 CPPFLAGS="$tmp_CPPFLAGS"
7256
7257 case "${window_system}" in
7258 x11 )
7259 HAVE_X_WINDOWS=yes
7260 HAVE_X11=yes
7261 case "${with_x_toolkit}" in
7262 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7263 motif ) USE_X_TOOLKIT=MOTIF ;;
7264 gtk ) with_gtk=yes
7265 USE_X_TOOLKIT=none ;;
7266 no ) USE_X_TOOLKIT=none ;;
7267 * ) USE_X_TOOLKIT=maybe ;;
7268 esac
7269 ;;
7270 nextstep | none )
7271 HAVE_X_WINDOWS=no
7272 HAVE_X11=no
7273 USE_X_TOOLKIT=none
7274 ;;
7275 esac
7276
7277 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7278 # Extract the first word of "X", so it can be a program name with args.
7279 set dummy X; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$HAVE_XSERVER"; then
7286 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_HAVE_XSERVER="true"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7304 fi
7305 fi
7306 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7307 if test -n "$HAVE_XSERVER"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7309 $as_echo "$HAVE_XSERVER" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314
7315
7316 if test "$HAVE_XSERVER" = true ||
7317 test -n "$DISPLAY" ||
7318 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7319 as_fn_error $? "You seem to be running X, but no X development libraries
7320 were found. You should install the relevant development files for X
7321 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7322 sure you have development files for image handling, i.e.
7323 tiff, gif, jpeg, png and xpm.
7324 If you are sure you want Emacs compiled without X window support, pass
7325 --without-x
7326 to configure." "$LINENO" 5
7327 fi
7328 fi
7329
7330 ### If we're using X11, we should use the X menu package.
7331 HAVE_MENUS=no
7332 case ${HAVE_X11} in
7333 yes ) HAVE_MENUS=yes ;;
7334 esac
7335
7336 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7337 # Assume not, until told otherwise.
7338 GNU_MALLOC=yes
7339 doug_lea_malloc=yes
7340 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7341 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7342
7343 else
7344 doug_lea_malloc=no
7345 fi
7346
7347 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7348 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7349
7350 else
7351 doug_lea_malloc=no
7352 fi
7353
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7355 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7356 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 extern void (* __after_morecore_hook)();
7362 int
7363 main ()
7364 {
7365 __after_morecore_hook = 0
7366 ;
7367 return 0;
7368 }
7369 _ACEOF
7370 if ac_fn_c_try_link "$LINENO"; then :
7371 emacs_cv_var___after_morecore_hook=yes
7372 else
7373 emacs_cv_var___after_morecore_hook=no
7374 fi
7375 rm -f core conftest.err conftest.$ac_objext \
7376 conftest$ac_exeext conftest.$ac_ext
7377 fi
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7379 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7380 if test $emacs_cv_var___after_morecore_hook = no; then
7381 doug_lea_malloc=no
7382 fi
7383 if test "${system_malloc}" = "yes"; then
7384 GNU_MALLOC=no
7385 GNU_MALLOC_reason="
7386 (The GNU allocators don't work with this system configuration.)"
7387 fi
7388 if test "$doug_lea_malloc" = "yes" ; then
7389 if test "$GNU_MALLOC" = yes ; then
7390 GNU_MALLOC_reason="
7391 (Using Doug Lea's new malloc from the GNU C Library.)"
7392 fi
7393
7394 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7395
7396 fi
7397
7398 if test x"${REL_ALLOC}" = x; then
7399 REL_ALLOC=${GNU_MALLOC}
7400 fi
7401
7402
7403
7404
7405
7406 for ac_header in $ac_header_list
7407 do :
7408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7410 "
7411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7412 cat >>confdefs.h <<_ACEOF
7413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7414 _ACEOF
7415
7416 fi
7417
7418 done
7419
7420
7421
7422
7423
7424
7425
7426
7427 for ac_func in getpagesize
7428 do :
7429 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7430 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7431 cat >>confdefs.h <<_ACEOF
7432 #define HAVE_GETPAGESIZE 1
7433 _ACEOF
7434
7435 fi
7436 done
7437
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7439 $as_echo_n "checking for working mmap... " >&6; }
7440 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 if test "$cross_compiling" = yes; then :
7444 ac_cv_func_mmap_fixed_mapped=no
7445 else
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 $ac_includes_default
7449 /* malloc might have been renamed as rpl_malloc. */
7450 #undef malloc
7451
7452 /* Thanks to Mike Haertel and Jim Avera for this test.
7453 Here is a matrix of mmap possibilities:
7454 mmap private not fixed
7455 mmap private fixed at somewhere currently unmapped
7456 mmap private fixed at somewhere already mapped
7457 mmap shared not fixed
7458 mmap shared fixed at somewhere currently unmapped
7459 mmap shared fixed at somewhere already mapped
7460 For private mappings, we should verify that changes cannot be read()
7461 back from the file, nor mmap's back from the file at a different
7462 address. (There have been systems where private was not correctly
7463 implemented like the infamous i386 svr4.0, and systems where the
7464 VM page cache was not coherent with the file system buffer cache
7465 like early versions of FreeBSD and possibly contemporary NetBSD.)
7466 For shared mappings, we should conversely verify that changes get
7467 propagated back to all the places they're supposed to be.
7468
7469 Grep wants private fixed already mapped.
7470 The main things grep needs to know about mmap are:
7471 * does it exist and is it safe to write into the mmap'd area
7472 * how to use it (BSD variants) */
7473
7474 #include <fcntl.h>
7475 #include <sys/mman.h>
7476
7477 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7478 char *malloc ();
7479 #endif
7480
7481 /* This mess was copied from the GNU getpagesize.h. */
7482 #ifndef HAVE_GETPAGESIZE
7483 # ifdef _SC_PAGESIZE
7484 # define getpagesize() sysconf(_SC_PAGESIZE)
7485 # else /* no _SC_PAGESIZE */
7486 # ifdef HAVE_SYS_PARAM_H
7487 # include <sys/param.h>
7488 # ifdef EXEC_PAGESIZE
7489 # define getpagesize() EXEC_PAGESIZE
7490 # else /* no EXEC_PAGESIZE */
7491 # ifdef NBPG
7492 # define getpagesize() NBPG * CLSIZE
7493 # ifndef CLSIZE
7494 # define CLSIZE 1
7495 # endif /* no CLSIZE */
7496 # else /* no NBPG */
7497 # ifdef NBPC
7498 # define getpagesize() NBPC
7499 # else /* no NBPC */
7500 # ifdef PAGESIZE
7501 # define getpagesize() PAGESIZE
7502 # endif /* PAGESIZE */
7503 # endif /* no NBPC */
7504 # endif /* no NBPG */
7505 # endif /* no EXEC_PAGESIZE */
7506 # else /* no HAVE_SYS_PARAM_H */
7507 # define getpagesize() 8192 /* punt totally */
7508 # endif /* no HAVE_SYS_PARAM_H */
7509 # endif /* no _SC_PAGESIZE */
7510
7511 #endif /* no HAVE_GETPAGESIZE */
7512
7513 int
7514 main ()
7515 {
7516 char *data, *data2, *data3;
7517 const char *cdata2;
7518 int i, pagesize;
7519 int fd, fd2;
7520
7521 pagesize = getpagesize ();
7522
7523 /* First, make a file with some known garbage in it. */
7524 data = (char *) malloc (pagesize);
7525 if (!data)
7526 return 1;
7527 for (i = 0; i < pagesize; ++i)
7528 *(data + i) = rand ();
7529 umask (0);
7530 fd = creat ("conftest.mmap", 0600);
7531 if (fd < 0)
7532 return 2;
7533 if (write (fd, data, pagesize) != pagesize)
7534 return 3;
7535 close (fd);
7536
7537 /* Next, check that the tail of a page is zero-filled. File must have
7538 non-zero length, otherwise we risk SIGBUS for entire page. */
7539 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7540 if (fd2 < 0)
7541 return 4;
7542 cdata2 = "";
7543 if (write (fd2, cdata2, 1) != 1)
7544 return 5;
7545 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7546 if (data2 == MAP_FAILED)
7547 return 6;
7548 for (i = 0; i < pagesize; ++i)
7549 if (*(data2 + i))
7550 return 7;
7551 close (fd2);
7552 if (munmap (data2, pagesize))
7553 return 8;
7554
7555 /* Next, try to mmap the file at a fixed address which already has
7556 something else allocated at it. If we can, also make sure that
7557 we see the same garbage. */
7558 fd = open ("conftest.mmap", O_RDWR);
7559 if (fd < 0)
7560 return 9;
7561 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7562 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7563 return 10;
7564 for (i = 0; i < pagesize; ++i)
7565 if (*(data + i) != *(data2 + i))
7566 return 11;
7567
7568 /* Finally, make sure that changes to the mapped area do not
7569 percolate back to the file as seen by read(). (This is a bug on
7570 some variants of i386 svr4.0.) */
7571 for (i = 0; i < pagesize; ++i)
7572 *(data2 + i) = *(data2 + i) + 1;
7573 data3 = (char *) malloc (pagesize);
7574 if (!data3)
7575 return 12;
7576 if (read (fd, data3, pagesize) != pagesize)
7577 return 13;
7578 for (i = 0; i < pagesize; ++i)
7579 if (*(data + i) != *(data3 + i))
7580 return 14;
7581 close (fd);
7582 return 0;
7583 }
7584 _ACEOF
7585 if ac_fn_c_try_run "$LINENO"; then :
7586 ac_cv_func_mmap_fixed_mapped=yes
7587 else
7588 ac_cv_func_mmap_fixed_mapped=no
7589 fi
7590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7591 conftest.$ac_objext conftest.beam conftest.$ac_ext
7592 fi
7593
7594 fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7596 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7597 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7598
7599 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7600
7601 fi
7602 rm -f conftest.mmap conftest.txt
7603
7604 if test $use_mmap_for_buffers = yes; then
7605 REL_ALLOC=no
7606 fi
7607
7608 LIBS="$libsrc_libs $LIBS"
7609
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7611 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7612 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-ldnet $LIBS"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619
7620 /* Override any GCC internal prototype to avoid an error.
7621 Use char because int might match the return type of a GCC
7622 builtin and then its argument prototype would still apply. */
7623 #ifdef __cplusplus
7624 extern "C"
7625 #endif
7626 char dnet_ntoa ();
7627 int
7628 main ()
7629 {
7630 return dnet_ntoa ();
7631 ;
7632 return 0;
7633 }
7634 _ACEOF
7635 if ac_fn_c_try_link "$LINENO"; then :
7636 ac_cv_lib_dnet_dnet_ntoa=yes
7637 else
7638 ac_cv_lib_dnet_dnet_ntoa=no
7639 fi
7640 rm -f core conftest.err conftest.$ac_objext \
7641 conftest$ac_exeext conftest.$ac_ext
7642 LIBS=$ac_check_lib_save_LIBS
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7645 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7646 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7647 cat >>confdefs.h <<_ACEOF
7648 #define HAVE_LIBDNET 1
7649 _ACEOF
7650
7651 LIBS="-ldnet $LIBS"
7652
7653 fi
7654
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7657 $as_echo_n "checking for main in -lXbsd... " >&6; }
7658 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 ac_check_lib_save_LIBS=$LIBS
7662 LIBS="-lXbsd $LIBS"
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665
7666
7667 int
7668 main ()
7669 {
7670 return main ();
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 if ac_fn_c_try_link "$LINENO"; then :
7676 ac_cv_lib_Xbsd_main=yes
7677 else
7678 ac_cv_lib_Xbsd_main=no
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext conftest.$ac_ext
7682 LIBS=$ac_check_lib_save_LIBS
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7685 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7686 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7687 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7688 fi
7689
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7692 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7693 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 ac_check_lib_save_LIBS=$LIBS
7697 LIBS="-lpthreads $LIBS"
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700
7701 /* Override any GCC internal prototype to avoid an error.
7702 Use char because int might match the return type of a GCC
7703 builtin and then its argument prototype would still apply. */
7704 #ifdef __cplusplus
7705 extern "C"
7706 #endif
7707 char cma_open ();
7708 int
7709 main ()
7710 {
7711 return cma_open ();
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 if ac_fn_c_try_link "$LINENO"; then :
7717 ac_cv_lib_pthreads_cma_open=yes
7718 else
7719 ac_cv_lib_pthreads_cma_open=no
7720 fi
7721 rm -f core conftest.err conftest.$ac_objext \
7722 conftest$ac_exeext conftest.$ac_ext
7723 LIBS=$ac_check_lib_save_LIBS
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7726 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7727 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7728 cat >>confdefs.h <<_ACEOF
7729 #define HAVE_LIBPTHREADS 1
7730 _ACEOF
7731
7732 LIBS="-lpthreads $LIBS"
7733
7734 fi
7735
7736
7737
7738 case ${host_os} in
7739 aix*)
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7741 $as_echo_n "checking for -bbigtoc option... " >&6; }
7742 if test "${gdb_cv_bigtoc+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745
7746 case $GCC in
7747 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7748 *) gdb_cv_bigtoc=-bbigtoc ;;
7749 esac
7750
7751 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754
7755 int
7756 main ()
7757 {
7758 int i;
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_link "$LINENO"; then :
7764
7765 else
7766 gdb_cv_bigtoc=
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770
7771 fi
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7773 $as_echo "$gdb_cv_bigtoc" >&6; }
7774 ;;
7775 esac
7776
7777 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7778 # used for the tests that follow. We set them back to REAL_CFLAGS and
7779 # REAL_CPPFLAGS later on.
7780
7781 REAL_CPPFLAGS="$CPPFLAGS"
7782
7783 if test "${HAVE_X11}" = "yes"; then
7784 DEFS="$C_SWITCH_X_SITE $DEFS"
7785 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7786 LIBS="$LIBX $LIBS"
7787 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7788 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7789
7790 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7791 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7792 # but it's more convenient here to set LD_RUN_PATH
7793 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7794 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7795 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7796 export LD_RUN_PATH
7797 fi
7798
7799 if test "${opsys}" = "gnu-linux"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7801 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804
7805 int
7806 main ()
7807 {
7808 XOpenDisplay ("foo");
7809 ;
7810 return 0;
7811 }
7812 _ACEOF
7813 if ac_fn_c_try_link "$LINENO"; then :
7814 xlinux_first_failure=no
7815 else
7816 xlinux_first_failure=yes
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 if test "${xlinux_first_failure}" = "yes"; then
7821 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7822 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7823 OLD_CPPFLAGS="$CPPFLAGS"
7824 OLD_LIBS="$LIBS"
7825 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7826 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7827 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7828 LIBS="$LIBS -b i486-linuxaout"
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831
7832 int
7833 main ()
7834 {
7835 XOpenDisplay ("foo");
7836 ;
7837 return 0;
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_link "$LINENO"; then :
7841 xlinux_second_failure=no
7842 else
7843 xlinux_second_failure=yes
7844 fi
7845 rm -f core conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 if test "${xlinux_second_failure}" = "yes"; then
7848 # If we get the same failure with -b, there is no use adding -b.
7849 # So take it out. This plays safe.
7850 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7851 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7852 CPPFLAGS="$OLD_CPPFLAGS"
7853 LIBS="$OLD_LIBS"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7858 $as_echo "yes" >&6; }
7859 fi
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864 fi
7865
7866 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7867 # header files included from there.
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7869 $as_echo_n "checking for Xkb... " >&6; }
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 #include <X11/Xlib.h>
7873 #include <X11/XKBlib.h>
7874 int
7875 main ()
7876 {
7877 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7878 ;
7879 return 0;
7880 }
7881 _ACEOF
7882 if ac_fn_c_try_link "$LINENO"; then :
7883 emacs_xkb=yes
7884 else
7885 emacs_xkb=no
7886 fi
7887 rm -f core conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7890 $as_echo "$emacs_xkb" >&6; }
7891 if test $emacs_xkb = yes; then
7892
7893 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7894
7895 fi
7896
7897 for ac_func in XrmSetDatabase XScreenResourceString \
7898 XScreenNumberOfScreen XSetWMProtocols
7899 do :
7900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7902 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7903 cat >>confdefs.h <<_ACEOF
7904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7905 _ACEOF
7906
7907 fi
7908 done
7909
7910 fi
7911
7912 if test "${window_system}" = "x11"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7914 $as_echo_n "checking X11 version 6... " >&6; }
7915 if test "${emacs_cv_x11_version_6+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 #include <X11/Xlib.h>
7921 int
7922 main ()
7923 {
7924 #if XlibSpecificationRelease < 6
7925 fail;
7926 #endif
7927
7928 ;
7929 return 0;
7930 }
7931 _ACEOF
7932 if ac_fn_c_try_link "$LINENO"; then :
7933 emacs_cv_x11_version_6=yes
7934 else
7935 emacs_cv_x11_version_6=no
7936 fi
7937 rm -f core conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939 fi
7940
7941 if test $emacs_cv_x11_version_6 = yes; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7943 $as_echo "6 or newer" >&6; }
7944
7945 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7946
7947 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7949 $as_echo "before 6" >&6; }
7950 fi
7951 fi
7952
7953
7954 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7955 HAVE_RSVG=no
7956 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
7957 if test "${with_rsvg}" != "no"; then
7958 RSVG_REQUIRED=2.11.0
7959 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
7960
7961
7962 succeeded=no
7963
7964 # Extract the first word of "pkg-config", so it can be a program name with args.
7965 set dummy pkg-config; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 case $PKG_CONFIG in
7972 [\\/]* | ?:[\\/]*)
7973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7974 ;;
7975 *)
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987 done
7988 done
7989 IFS=$as_save_IFS
7990
7991 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7992 ;;
7993 esac
7994 fi
7995 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7996 if test -n "$PKG_CONFIG"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7998 $as_echo "$PKG_CONFIG" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 fi
8003
8004
8005
8006 if test "$PKG_CONFIG" = "no" ; then
8007 :
8008 else
8009 PKG_CONFIG_MIN_VERSION=0.9.0
8010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8012 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8013
8014 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8016 $as_echo "yes" >&6; }
8017 succeeded=yes
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8020 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8021 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8023 $as_echo "$RSVG_CFLAGS" >&6; }
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8026 $as_echo_n "checking RSVG_LIBS... " >&6; }
8027 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8029 $as_echo "$RSVG_LIBS" >&6; }
8030 else
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 $as_echo "no" >&6; }
8033 RSVG_CFLAGS=""
8034 RSVG_LIBS=""
8035 ## If we have a custom action on failure, don't print errors, but
8036 ## do set a variable so people can do so.
8037 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8038
8039 fi
8040
8041
8042
8043 else
8044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8046 fi
8047 fi
8048
8049 if test $succeeded = yes; then
8050 :
8051 else
8052 :
8053 fi
8054
8055
8056
8057
8058 if test ".${RSVG_CFLAGS}" != "."; then
8059 HAVE_RSVG=yes
8060
8061 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8062
8063 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8064 LIBS="$RSVG_LIBS $LIBS"
8065 fi
8066 fi
8067 fi
8068
8069
8070 HAVE_GTK=no
8071 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8072 GLIB_REQUIRED=2.6
8073 GTK_REQUIRED=2.6
8074 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8075
8076
8077 succeeded=no
8078
8079 # Extract the first word of "pkg-config", so it can be a program name with args.
8080 set dummy pkg-config; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 case $PKG_CONFIG in
8087 [\\/]* | ?:[\\/]*)
8088 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8089 ;;
8090 *)
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8107 ;;
8108 esac
8109 fi
8110 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8111 if test -n "$PKG_CONFIG"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8113 $as_echo "$PKG_CONFIG" >&6; }
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118
8119
8120
8121 if test "$PKG_CONFIG" = "no" ; then
8122 pkg_check_gtk=no
8123 else
8124 PKG_CONFIG_MIN_VERSION=0.9.0
8125 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8127 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8128
8129 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 succeeded=yes
8133
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8135 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8136 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8138 $as_echo "$GTK_CFLAGS" >&6; }
8139
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8141 $as_echo_n "checking GTK_LIBS... " >&6; }
8142 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8144 $as_echo "$GTK_LIBS" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148 GTK_CFLAGS=""
8149 GTK_LIBS=""
8150 ## If we have a custom action on failure, don't print errors, but
8151 ## do set a variable so people can do so.
8152 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8153
8154 fi
8155
8156
8157
8158 else
8159 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8160 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8161 fi
8162 fi
8163
8164 if test $succeeded = yes; then
8165 pkg_check_gtk=yes
8166 else
8167 pkg_check_gtk=no
8168 fi
8169
8170 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8171 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8172 fi
8173 fi
8174
8175
8176 if test x"$pkg_check_gtk" = xyes; then
8177
8178
8179
8180 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8181 CFLAGS="$CFLAGS $GTK_CFLAGS"
8182 LIBS="$GTK_LIBS $LIBS"
8183 GTK_COMPILES=no
8184 for ac_func in gtk_main
8185 do :
8186 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8187 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8188 cat >>confdefs.h <<_ACEOF
8189 #define HAVE_GTK_MAIN 1
8190 _ACEOF
8191 GTK_COMPILES=yes
8192 fi
8193 done
8194
8195 if test "${GTK_COMPILES}" != "yes"; then
8196 if test "$USE_X_TOOLKIT" != "maybe"; then
8197 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8198 fi
8199 else
8200 HAVE_GTK=yes
8201
8202 $as_echo "#define USE_GTK 1" >>confdefs.h
8203
8204 USE_X_TOOLKIT=none
8205 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8206 :
8207 else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8209 closing open displays. This is no problem if you just use
8210 one display, but if you use more than one and close one of them
8211 Emacs may crash." >&5
8212 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8213 closing open displays. This is no problem if you just use
8214 one display, but if you use more than one and close one of them
8215 Emacs may crash." >&2;}
8216 sleep 3
8217 fi
8218 fi
8219
8220 fi
8221
8222
8223 if test "${HAVE_GTK}" = "yes"; then
8224
8225 if test "$with_toolkit_scroll_bars" != no; then
8226 with_toolkit_scroll_bars=yes
8227 fi
8228
8229 HAVE_GTK_MULTIDISPLAY=no
8230 for ac_func in gdk_display_open
8231 do :
8232 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8233 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8234 cat >>confdefs.h <<_ACEOF
8235 #define HAVE_GDK_DISPLAY_OPEN 1
8236 _ACEOF
8237 HAVE_GTK_MULTIDISPLAY=yes
8238 fi
8239 done
8240
8241 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8242
8243 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8244
8245 fi
8246
8247 HAVE_GTK_FILE_SELECTION=no
8248 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8249 #include <gtk/gtk.h>
8250 "
8251 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8252 HAVE_GTK_FILE_SELECTION=yes
8253 else
8254 HAVE_GTK_FILE_SELECTION=no
8255 fi
8256
8257 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8258 for ac_func in gtk_file_selection_new
8259 do :
8260 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8261 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8262 cat >>confdefs.h <<_ACEOF
8263 #define HAVE_GTK_FILE_SELECTION_NEW 1
8264 _ACEOF
8265 HAVE_GTK_FILE_SELECTION=yes
8266 else
8267 HAVE_GTK_FILE_SELECTION=no
8268 fi
8269 done
8270
8271 fi
8272
8273 HAVE_GTK_FILE_CHOOSER=no
8274 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8275 #include <gtk/gtk.h>
8276 "
8277 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8278 HAVE_GTK_FILE_CHOOSER=yes
8279 else
8280 HAVE_GTK_FILE_CHOOSER=no
8281 fi
8282
8283 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8284 for ac_func in gtk_file_chooser_dialog_new
8285 do :
8286 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8287 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8288 cat >>confdefs.h <<_ACEOF
8289 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8290 _ACEOF
8291 HAVE_GTK_FILE_CHOOSER=yes
8292 else
8293 HAVE_GTK_FILE_CHOOSER=no
8294 fi
8295 done
8296
8297 fi
8298
8299 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8300 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8301
8302 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8303
8304 fi
8305
8306 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8307 HAVE_GTK_AND_PTHREAD=no
8308 for ac_header in pthread.h
8309 do :
8310 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8311 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8312 cat >>confdefs.h <<_ACEOF
8313 #define HAVE_PTHREAD_H 1
8314 _ACEOF
8315
8316 fi
8317
8318 done
8319
8320 if test "$ac_cv_header_pthread_h"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8322 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8323 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 ac_check_lib_save_LIBS=$LIBS
8327 LIBS="-lpthread $LIBS"
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330
8331 /* Override any GCC internal prototype to avoid an error.
8332 Use char because int might match the return type of a GCC
8333 builtin and then its argument prototype would still apply. */
8334 #ifdef __cplusplus
8335 extern "C"
8336 #endif
8337 char pthread_self ();
8338 int
8339 main ()
8340 {
8341 return pthread_self ();
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 ac_cv_lib_pthread_pthread_self=yes
8348 else
8349 ac_cv_lib_pthread_pthread_self=no
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 LIBS=$ac_check_lib_save_LIBS
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8356 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8357 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8358 HAVE_GTK_AND_PTHREAD=yes
8359 fi
8360
8361 fi
8362 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8363 case "${canonical}" in
8364 *-hpux*) ;;
8365 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8366 esac
8367
8368 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8369
8370 fi
8371 fi
8372 fi
8373
8374 HAVE_DBUS=no
8375 if test "${with_dbus}" = "yes"; then
8376
8377 succeeded=no
8378
8379 # Extract the first word of "pkg-config", so it can be a program name with args.
8380 set dummy pkg-config; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $PKG_CONFIG in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8389 ;;
8390 *)
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8393 do
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8401 fi
8402 done
8403 done
8404 IFS=$as_save_IFS
8405
8406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8407 ;;
8408 esac
8409 fi
8410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8411 if test -n "$PKG_CONFIG"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8413 $as_echo "$PKG_CONFIG" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418
8419
8420
8421 if test "$PKG_CONFIG" = "no" ; then
8422 HAVE_DBUS=no
8423 else
8424 PKG_CONFIG_MIN_VERSION=0.9.0
8425 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8427 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8428
8429 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8431 $as_echo "yes" >&6; }
8432 succeeded=yes
8433
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8435 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8436 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8438 $as_echo "$DBUS_CFLAGS" >&6; }
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8441 $as_echo_n "checking DBUS_LIBS... " >&6; }
8442 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8444 $as_echo "$DBUS_LIBS" >&6; }
8445 else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 DBUS_CFLAGS=""
8449 DBUS_LIBS=""
8450 ## If we have a custom action on failure, don't print errors, but
8451 ## do set a variable so people can do so.
8452 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8453
8454 fi
8455
8456
8457
8458 else
8459 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8460 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8461 fi
8462 fi
8463
8464 if test $succeeded = yes; then
8465 HAVE_DBUS=yes
8466 else
8467 HAVE_DBUS=no
8468 fi
8469
8470 if test "$HAVE_DBUS" = yes; then
8471 LIBS="$LIBS $DBUS_LIBS"
8472
8473 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8474
8475 for ac_func in dbus_watch_get_unix_fd
8476 do :
8477 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8478 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8481 _ACEOF
8482
8483 fi
8484 done
8485
8486 fi
8487 fi
8488
8489 HAVE_GCONF=no
8490 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8491
8492 succeeded=no
8493
8494 # Extract the first word of "pkg-config", so it can be a program name with args.
8495 set dummy pkg-config; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 case $PKG_CONFIG in
8502 [\\/]* | ?:[\\/]*)
8503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8504 ;;
8505 *)
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8508 do
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8516 fi
8517 done
8518 done
8519 IFS=$as_save_IFS
8520
8521 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8522 ;;
8523 esac
8524 fi
8525 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8526 if test -n "$PKG_CONFIG"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8528 $as_echo "$PKG_CONFIG" >&6; }
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8532 fi
8533
8534
8535
8536 if test "$PKG_CONFIG" = "no" ; then
8537 HAVE_GCONF=no
8538 else
8539 PKG_CONFIG_MIN_VERSION=0.9.0
8540 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8542 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8543
8544 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8546 $as_echo "yes" >&6; }
8547 succeeded=yes
8548
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8550 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8551 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8553 $as_echo "$GCONF_CFLAGS" >&6; }
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8556 $as_echo_n "checking GCONF_LIBS... " >&6; }
8557 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8559 $as_echo "$GCONF_LIBS" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 GCONF_CFLAGS=""
8564 GCONF_LIBS=""
8565 ## If we have a custom action on failure, don't print errors, but
8566 ## do set a variable so people can do so.
8567 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8568
8569 fi
8570
8571
8572
8573 else
8574 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8575 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8576 fi
8577 fi
8578
8579 if test $succeeded = yes; then
8580 HAVE_GCONF=yes
8581 else
8582 HAVE_GCONF=no
8583 fi
8584
8585 if test "$HAVE_GCONF" = yes; then
8586
8587 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8588
8589 for ac_func in g_type_init
8590 do :
8591 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
8592 if test "x$ac_cv_func_g_type_init" = x""yes; then :
8593 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_G_TYPE_INIT 1
8595 _ACEOF
8596
8597 fi
8598 done
8599
8600 fi
8601 fi
8602
8603 HAVE_XAW3D=no
8604 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8605 if test "$with_xaw3d" != no; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8607 $as_echo_n "checking for xaw3d... " >&6; }
8608 if test "${emacs_cv_xaw3d+set}" = set; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613
8614 #include <X11/Intrinsic.h>
8615 #include <X11/Xaw3d/Simple.h>
8616 int
8617 main ()
8618 {
8619
8620 ;
8621 return 0;
8622 }
8623 _ACEOF
8624 if ac_fn_c_try_link "$LINENO"; then :
8625 emacs_cv_xaw3d=yes
8626 else
8627 emacs_cv_xaw3d=no
8628 fi
8629 rm -f core conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631 fi
8632
8633 else
8634 emacs_cv_xaw3d=no
8635 fi
8636 if test $emacs_cv_xaw3d = yes; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8638 $as_echo "yes; using Lucid toolkit" >&6; }
8639 USE_X_TOOLKIT=LUCID
8640 HAVE_XAW3D=yes
8641
8642 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8643
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8648 $as_echo_n "checking for libXaw... " >&6; }
8649 if test "${emacs_cv_xaw+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654
8655 #include <X11/Intrinsic.h>
8656 #include <X11/Xaw/Simple.h>
8657 int
8658 main ()
8659 {
8660
8661 ;
8662 return 0;
8663 }
8664 _ACEOF
8665 if ac_fn_c_try_link "$LINENO"; then :
8666 emacs_cv_xaw=yes
8667 else
8668 emacs_cv_xaw=no
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext \
8671 conftest$ac_exeext conftest.$ac_ext
8672 fi
8673
8674 if test $emacs_cv_xaw = yes; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8676 $as_echo "yes; using Lucid toolkit" >&6; }
8677 USE_X_TOOLKIT=LUCID
8678 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8679 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8682 $as_echo "no; do not use toolkit by default" >&6; }
8683 USE_X_TOOLKIT=none
8684 fi
8685 fi
8686 fi
8687
8688 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8689
8690 if test "${USE_X_TOOLKIT}" != "none"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8692 $as_echo_n "checking X11 toolkit version... " >&6; }
8693 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 #include <X11/Intrinsic.h>
8699 int
8700 main ()
8701 {
8702 #if XtSpecificationRelease < 6
8703 fail;
8704 #endif
8705
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"; then :
8711 emacs_cv_x11_toolkit_version_6=yes
8712 else
8713 emacs_cv_x11_toolkit_version_6=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext \
8716 conftest$ac_exeext conftest.$ac_ext
8717 fi
8718
8719 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8720 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8722 $as_echo "6 or newer" >&6; }
8723
8724 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8725
8726 else
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8728 $as_echo "before 6" >&6; }
8729 fi
8730
8731 OLDLIBS="$LIBS"
8732 if test x$HAVE_X11XTR6 = xyes; then
8733 LIBS="-lXt -lSM -lICE $LIBS"
8734 else
8735 LIBS="-lXt $LIBS"
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8738 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8739 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 ac_check_lib_save_LIBS=$LIBS
8743 LIBS="-lXmu $LIBS"
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746
8747 /* Override any GCC internal prototype to avoid an error.
8748 Use char because int might match the return type of a GCC
8749 builtin and then its argument prototype would still apply. */
8750 #ifdef __cplusplus
8751 extern "C"
8752 #endif
8753 char XmuConvertStandardSelection ();
8754 int
8755 main ()
8756 {
8757 return XmuConvertStandardSelection ();
8758 ;
8759 return 0;
8760 }
8761 _ACEOF
8762 if ac_fn_c_try_link "$LINENO"; then :
8763 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8764 else
8765 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext \
8768 conftest$ac_exeext conftest.$ac_ext
8769 LIBS=$ac_check_lib_save_LIBS
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8772 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8773 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
8774 cat >>confdefs.h <<_ACEOF
8775 #define HAVE_LIBXMU 1
8776 _ACEOF
8777
8778 LIBS="-lXmu $LIBS"
8779
8780 fi
8781
8782 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8783 fi
8784
8785 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8786 if test "${HAVE_X11}" = "yes"; then
8787 if test "${USE_X_TOOLKIT}" != "none"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8789 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8790 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-lXext $LIBS"
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8797
8798 /* Override any GCC internal prototype to avoid an error.
8799 Use char because int might match the return type of a GCC
8800 builtin and then its argument prototype would still apply. */
8801 #ifdef __cplusplus
8802 extern "C"
8803 #endif
8804 char XShapeQueryExtension ();
8805 int
8806 main ()
8807 {
8808 return XShapeQueryExtension ();
8809 ;
8810 return 0;
8811 }
8812 _ACEOF
8813 if ac_fn_c_try_link "$LINENO"; then :
8814 ac_cv_lib_Xext_XShapeQueryExtension=yes
8815 else
8816 ac_cv_lib_Xext_XShapeQueryExtension=no
8817 fi
8818 rm -f core conftest.err conftest.$ac_objext \
8819 conftest$ac_exeext conftest.$ac_ext
8820 LIBS=$ac_check_lib_save_LIBS
8821 fi
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8823 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8824 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8825 cat >>confdefs.h <<_ACEOF
8826 #define HAVE_LIBXEXT 1
8827 _ACEOF
8828
8829 LIBS="-lXext $LIBS"
8830
8831 fi
8832
8833 fi
8834 fi
8835
8836 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8838 $as_echo_n "checking for Motif version 2.1... " >&6; }
8839 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8844 #include <Xm/Xm.h>
8845 int
8846 main ()
8847 {
8848 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8849 int x = 5;
8850 #else
8851 Motif version prior to 2.1.
8852 #endif
8853 ;
8854 return 0;
8855 }
8856 _ACEOF
8857 if ac_fn_c_try_compile "$LINENO"; then :
8858 emacs_cv_motif_version_2_1=yes
8859 else
8860 emacs_cv_motif_version_2_1=no
8861 fi
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 fi
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8865 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8866 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8867 if test $emacs_cv_motif_version_2_1 = yes; then
8868 HAVE_LIBXP=no
8869
8870 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8871
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8873 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8874 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 ac_check_lib_save_LIBS=$LIBS
8878 LIBS="-lXp $LIBS"
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881
8882 /* Override any GCC internal prototype to avoid an error.
8883 Use char because int might match the return type of a GCC
8884 builtin and then its argument prototype would still apply. */
8885 #ifdef __cplusplus
8886 extern "C"
8887 #endif
8888 char XpCreateContext ();
8889 int
8890 main ()
8891 {
8892 return XpCreateContext ();
8893 ;
8894 return 0;
8895 }
8896 _ACEOF
8897 if ac_fn_c_try_link "$LINENO"; then :
8898 ac_cv_lib_Xp_XpCreateContext=yes
8899 else
8900 ac_cv_lib_Xp_XpCreateContext=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 LIBS=$ac_check_lib_save_LIBS
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8907 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8908 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
8909 HAVE_LIBXP=yes
8910 fi
8911
8912 if test ${HAVE_LIBXP} = yes; then
8913
8914 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8915
8916 fi
8917 else
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8919 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8920 if test "${emacs_cv_lesstif+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 # We put this in CFLAGS temporarily to precede other -I options
8924 # that might be in CFLAGS temporarily.
8925 # We put this in CPPFLAGS where it precedes the other -I options.
8926 OLD_CPPFLAGS=$CPPFLAGS
8927 OLD_CFLAGS=$CFLAGS
8928 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8929 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8933 int
8934 main ()
8935 {
8936 int x = 5;
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_compile "$LINENO"; then :
8942 emacs_cv_lesstif=yes
8943 else
8944 emacs_cv_lesstif=no
8945 fi
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8949 $as_echo "$emacs_cv_lesstif" >&6; }
8950 if test $emacs_cv_lesstif = yes; then
8951 # Make sure this -I option remains in CPPFLAGS after it is set
8952 # back to REAL_CPPFLAGS.
8953 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8954 # have those other -I options anyway. Ultimately, having this
8955 # directory ultimately in CPPFLAGS will be enough.
8956 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8957 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8958 else
8959 CFLAGS=$OLD_CFLAGS
8960 CPPFLAGS=$OLD_CPPFLAGS
8961 fi
8962 fi
8963 fi
8964
8965
8966 USE_TOOLKIT_SCROLL_BARS=no
8967 if test "${with_toolkit_scroll_bars}" != "no"; then
8968 if test "${USE_X_TOOLKIT}" != "none"; then
8969 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8970 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8971
8972 HAVE_XAW3D=no
8973 USE_TOOLKIT_SCROLL_BARS=yes
8974 elif test "${HAVE_XAW3D}" = "yes"; then
8975 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8976
8977 USE_TOOLKIT_SCROLL_BARS=yes
8978 fi
8979 elif test "${HAVE_GTK}" = "yes"; then
8980 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8981
8982 USE_TOOLKIT_SCROLL_BARS=yes
8983 elif test "${HAVE_NS}" = "yes"; then
8984 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8985
8986 USE_TOOLKIT_SCROLL_BARS=yes
8987 fi
8988 fi
8989
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992
8993 #include <X11/Xlib.h>
8994 #include <X11/Xresource.h>
8995 int
8996 main ()
8997 {
8998 XIMProc callback;
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_compile "$LINENO"; then :
9004 HAVE_XIM=yes
9005
9006 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9007
9008 else
9009 HAVE_XIM=no
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012
9013
9014 if test "${with_xim}" != "no"; then
9015
9016 $as_echo "#define USE_XIM 1" >>confdefs.h
9017
9018 fi
9019
9020
9021 if test "${HAVE_XIM}" != "no"; then
9022 late_CFLAGS=$CFLAGS
9023 if test "$GCC" = yes; then
9024 CFLAGS="$CFLAGS --pedantic-errors"
9025 fi
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9028
9029 #include <X11/Xlib.h>
9030 #include <X11/Xresource.h>
9031 int
9032 main ()
9033 {
9034 Display *display;
9035 XrmDatabase db;
9036 char *res_name;
9037 char *res_class;
9038 XIMProc callback;
9039 XPointer *client_data;
9040 #ifndef __GNUC__
9041 /* If we're not using GCC, it's probably not XFree86, and this is
9042 probably right, but we can't use something like --pedantic-errors. */
9043 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9044 char*, XIMProc, XPointer*);
9045 #endif
9046 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9047 client_data);
9048 ;
9049 return 0;
9050 }
9051 _ACEOF
9052 if ac_fn_c_try_compile "$LINENO"; then :
9053 emacs_cv_arg6_star=yes
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 if test "$emacs_cv_arg6_star" = yes; then
9057 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9058
9059 else
9060 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9061
9062 fi
9063 CFLAGS=$late_CFLAGS
9064 fi
9065
9066 ### Start of font-backend (under any platform) section.
9067 # (nothing here yet -- this is a placeholder)
9068 ### End of font-backend (under any platform) section.
9069
9070 ### Start of font-backend (under X11) section.
9071 if test "${HAVE_X11}" = "yes"; then
9072
9073 succeeded=no
9074
9075 # Extract the first word of "pkg-config", so it can be a program name with args.
9076 set dummy pkg-config; ac_word=$2
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078 $as_echo_n "checking for $ac_word... " >&6; }
9079 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 case $PKG_CONFIG in
9083 [\\/]* | ?:[\\/]*)
9084 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9085 ;;
9086 *)
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $PATH
9089 do
9090 IFS=$as_save_IFS
9091 test -z "$as_dir" && as_dir=.
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9094 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 break 2
9097 fi
9098 done
9099 done
9100 IFS=$as_save_IFS
9101
9102 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9103 ;;
9104 esac
9105 fi
9106 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9107 if test -n "$PKG_CONFIG"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9109 $as_echo "$PKG_CONFIG" >&6; }
9110 else
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9113 fi
9114
9115
9116
9117 if test "$PKG_CONFIG" = "no" ; then
9118 HAVE_FC=no
9119 else
9120 PKG_CONFIG_MIN_VERSION=0.9.0
9121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9123 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9124
9125 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9127 $as_echo "yes" >&6; }
9128 succeeded=yes
9129
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9131 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9132 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9134 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9137 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9138 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9140 $as_echo "$FONTCONFIG_LIBS" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9144 FONTCONFIG_CFLAGS=""
9145 FONTCONFIG_LIBS=""
9146 ## If we have a custom action on failure, don't print errors, but
9147 ## do set a variable so people can do so.
9148 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9149
9150 fi
9151
9152
9153
9154 else
9155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9157 fi
9158 fi
9159
9160 if test $succeeded = yes; then
9161 HAVE_FC=yes
9162 else
9163 HAVE_FC=no
9164 fi
9165
9166
9167 ## Use -lXft if available, unless `--with-xft=no'.
9168 HAVE_XFT=maybe
9169 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9170 with_xft="no";
9171 fi
9172 if test "x${with_xft}" != "xno"; then
9173
9174
9175 succeeded=no
9176
9177 # Extract the first word of "pkg-config", so it can be a program name with args.
9178 set dummy pkg-config; ac_word=$2
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 $as_echo_n "checking for $ac_word... " >&6; }
9181 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 case $PKG_CONFIG in
9185 [\\/]* | ?:[\\/]*)
9186 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9187 ;;
9188 *)
9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190 for as_dir in $PATH
9191 do
9192 IFS=$as_save_IFS
9193 test -z "$as_dir" && as_dir=.
9194 for ac_exec_ext in '' $ac_executable_extensions; do
9195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9196 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198 break 2
9199 fi
9200 done
9201 done
9202 IFS=$as_save_IFS
9203
9204 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9205 ;;
9206 esac
9207 fi
9208 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9209 if test -n "$PKG_CONFIG"; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9211 $as_echo "$PKG_CONFIG" >&6; }
9212 else
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214 $as_echo "no" >&6; }
9215 fi
9216
9217
9218
9219 if test "$PKG_CONFIG" = "no" ; then
9220 HAVE_XFT=no
9221 else
9222 PKG_CONFIG_MIN_VERSION=0.9.0
9223 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9225 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9226
9227 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9229 $as_echo "yes" >&6; }
9230 succeeded=yes
9231
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9233 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9234 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9236 $as_echo "$XFT_CFLAGS" >&6; }
9237
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9239 $as_echo_n "checking XFT_LIBS... " >&6; }
9240 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9242 $as_echo "$XFT_LIBS" >&6; }
9243 else
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245 $as_echo "no" >&6; }
9246 XFT_CFLAGS=""
9247 XFT_LIBS=""
9248 ## If we have a custom action on failure, don't print errors, but
9249 ## do set a variable so people can do so.
9250 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9251
9252 fi
9253
9254
9255
9256 else
9257 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9258 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9259 fi
9260 fi
9261
9262 if test $succeeded = yes; then
9263 :
9264 else
9265 HAVE_XFT=no
9266 fi
9267
9268 ## Because xftfont.c uses XRenderQueryExtension, we also
9269 ## need to link to -lXrender.
9270 HAVE_XRENDER=no
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9272 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9273 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-lXrender $LIBS"
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280
9281 /* Override any GCC internal prototype to avoid an error.
9282 Use char because int might match the return type of a GCC
9283 builtin and then its argument prototype would still apply. */
9284 #ifdef __cplusplus
9285 extern "C"
9286 #endif
9287 char XRenderQueryExtension ();
9288 int
9289 main ()
9290 {
9291 return XRenderQueryExtension ();
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 if ac_fn_c_try_link "$LINENO"; then :
9297 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9298 else
9299 ac_cv_lib_Xrender_XRenderQueryExtension=no
9300 fi
9301 rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303 LIBS=$ac_check_lib_save_LIBS
9304 fi
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9306 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9307 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9308 HAVE_XRENDER=yes
9309 fi
9310
9311 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9312 OLD_CPPFLAGS="$CPPFLAGS"
9313 OLD_CFLAGS="$CFLAGS"
9314 OLD_LIBS="$LIBS"
9315 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9316 CFLAGS="$CFLAGS $XFT_CFLAGS"
9317 XFT_LIBS="-lXrender $XFT_LIBS"
9318 LIBS="$XFT_LIBS $LIBS"
9319 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9320 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9322 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9323 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 ac_check_lib_save_LIBS=$LIBS
9327 LIBS="-lXft $XFT_LIBS $LIBS"
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330
9331 /* Override any GCC internal prototype to avoid an error.
9332 Use char because int might match the return type of a GCC
9333 builtin and then its argument prototype would still apply. */
9334 #ifdef __cplusplus
9335 extern "C"
9336 #endif
9337 char XftFontOpen ();
9338 int
9339 main ()
9340 {
9341 return XftFontOpen ();
9342 ;
9343 return 0;
9344 }
9345 _ACEOF
9346 if ac_fn_c_try_link "$LINENO"; then :
9347 ac_cv_lib_Xft_XftFontOpen=yes
9348 else
9349 ac_cv_lib_Xft_XftFontOpen=no
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 LIBS=$ac_check_lib_save_LIBS
9354 fi
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9356 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9357 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9358 HAVE_XFT=yes
9359 fi
9360
9361 fi
9362
9363
9364
9365 if test "${HAVE_XFT}" = "yes"; then
9366
9367 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9368
9369
9370 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9371 else
9372 CPPFLAGS="$OLD_CPPFLAGS"
9373 CFLAGS="$OLD_CFLAGS"
9374 LIBS="$OLD_LIBS"
9375 fi # "${HAVE_XFT}" = "yes"
9376 fi # "$HAVE_XFT" != no
9377 fi # "x${with_xft}" != "xno"
9378
9379 if test "$HAVE_XFT" != "yes"; then
9380 HAVE_XFT=no
9381 fi
9382
9383
9384 HAVE_FREETYPE=no
9385 ## We used to allow building with FreeType and without Xft.
9386 ## However, the ftx font backend driver is not in good shape.
9387 if test "${HAVE_XFT}" = "yes"; then
9388 HAVE_FREETYPE=yes
9389 FONTCONFIG_CFLAGS=
9390 FONTCONFIG_LIBS=
9391 fi
9392
9393 HAVE_LIBOTF=no
9394 if test "${HAVE_FREETYPE}" = "yes"; then
9395
9396 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9397
9398 if test "${with_libotf}" != "no"; then
9399
9400 succeeded=no
9401
9402 # Extract the first word of "pkg-config", so it can be a program name with args.
9403 set dummy pkg-config; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 case $PKG_CONFIG in
9410 [\\/]* | ?:[\\/]*)
9411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9412 ;;
9413 *)
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9416 do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9424 fi
9425 done
9426 done
9427 IFS=$as_save_IFS
9428
9429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9430 ;;
9431 esac
9432 fi
9433 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9434 if test -n "$PKG_CONFIG"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9436 $as_echo "$PKG_CONFIG" >&6; }
9437 else
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 $as_echo "no" >&6; }
9440 fi
9441
9442
9443
9444 if test "$PKG_CONFIG" = "no" ; then
9445 HAVE_LIBOTF=no
9446 else
9447 PKG_CONFIG_MIN_VERSION=0.9.0
9448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9450 $as_echo_n "checking for libotf... " >&6; }
9451
9452 if $PKG_CONFIG --exists "libotf" 2>&5; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9454 $as_echo "yes" >&6; }
9455 succeeded=yes
9456
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9458 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9459 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9461 $as_echo "$LIBOTF_CFLAGS" >&6; }
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9464 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9465 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9467 $as_echo "$LIBOTF_LIBS" >&6; }
9468 else
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9471 LIBOTF_CFLAGS=""
9472 LIBOTF_LIBS=""
9473 ## If we have a custom action on failure, don't print errors, but
9474 ## do set a variable so people can do so.
9475 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9476
9477 fi
9478
9479
9480
9481 else
9482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9484 fi
9485 fi
9486
9487 if test $succeeded = yes; then
9488 HAVE_LIBOTF=yes
9489 else
9490 HAVE_LIBOTF=no
9491 fi
9492
9493 if test "$HAVE_LIBOTF" = "yes"; then
9494
9495 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9496
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9498 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9499 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 ac_check_lib_save_LIBS=$LIBS
9503 LIBS="-lotf $LIBS"
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9506
9507 /* Override any GCC internal prototype to avoid an error.
9508 Use char because int might match the return type of a GCC
9509 builtin and then its argument prototype would still apply. */
9510 #ifdef __cplusplus
9511 extern "C"
9512 #endif
9513 char OTF_get_variation_glyphs ();
9514 int
9515 main ()
9516 {
9517 return OTF_get_variation_glyphs ();
9518 ;
9519 return 0;
9520 }
9521 _ACEOF
9522 if ac_fn_c_try_link "$LINENO"; then :
9523 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9524 else
9525 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext \
9528 conftest$ac_exeext conftest.$ac_ext
9529 LIBS=$ac_check_lib_save_LIBS
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9532 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9533 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9534 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9535 else
9536 HAVE_OTF_GET_VARIATION_GLYPHS=no
9537 fi
9538
9539 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9540
9541 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9542
9543 fi
9544 fi
9545 fi
9546 fi
9547
9548 HAVE_M17N_FLT=no
9549 if test "${HAVE_LIBOTF}" = yes; then
9550 if test "${with_m17n_flt}" != "no"; then
9551
9552 succeeded=no
9553
9554 # Extract the first word of "pkg-config", so it can be a program name with args.
9555 set dummy pkg-config; ac_word=$2
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 $as_echo_n "checking for $ac_word... " >&6; }
9558 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 case $PKG_CONFIG in
9562 [\\/]* | ?:[\\/]*)
9563 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9564 ;;
9565 *)
9566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567 for as_dir in $PATH
9568 do
9569 IFS=$as_save_IFS
9570 test -z "$as_dir" && as_dir=.
9571 for ac_exec_ext in '' $ac_executable_extensions; do
9572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9575 break 2
9576 fi
9577 done
9578 done
9579 IFS=$as_save_IFS
9580
9581 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9582 ;;
9583 esac
9584 fi
9585 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9586 if test -n "$PKG_CONFIG"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9588 $as_echo "$PKG_CONFIG" >&6; }
9589 else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593
9594
9595
9596 if test "$PKG_CONFIG" = "no" ; then
9597 HAVE_M17N_FLT=no
9598 else
9599 PKG_CONFIG_MIN_VERSION=0.9.0
9600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9602 $as_echo_n "checking for m17n-flt... " >&6; }
9603
9604 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9606 $as_echo "yes" >&6; }
9607 succeeded=yes
9608
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9610 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9611 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9613 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9614
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9616 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9617 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9619 $as_echo "$M17N_FLT_LIBS" >&6; }
9620 else
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9623 M17N_FLT_CFLAGS=""
9624 M17N_FLT_LIBS=""
9625 ## If we have a custom action on failure, don't print errors, but
9626 ## do set a variable so people can do so.
9627 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9628
9629 fi
9630
9631
9632
9633 else
9634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9636 fi
9637 fi
9638
9639 if test $succeeded = yes; then
9640 HAVE_M17N_FLT=yes
9641 else
9642 HAVE_M17N_FLT=no
9643 fi
9644
9645 if test "$HAVE_M17N_FLT" = "yes"; then
9646
9647 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9648
9649 fi
9650 fi
9651 fi
9652 else
9653 HAVE_XFT=no
9654 HAVE_FREETYPE=no
9655 HAVE_LIBOTF=no
9656 HAVE_M17N_FLT=no
9657 fi
9658 ### End of font-backend (under X11) section.
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669 ### Use -lXpm if available, unless `--with-xpm=no'.
9670 HAVE_XPM=no
9671 if test "${HAVE_X11}" = "yes"; then
9672 if test "${with_xpm}" != "no"; then
9673 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9674 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9676 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9677 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 ac_check_lib_save_LIBS=$LIBS
9681 LIBS="-lXpm -lX11 $LIBS"
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9684
9685 /* Override any GCC internal prototype to avoid an error.
9686 Use char because int might match the return type of a GCC
9687 builtin and then its argument prototype would still apply. */
9688 #ifdef __cplusplus
9689 extern "C"
9690 #endif
9691 char XpmReadFileToPixmap ();
9692 int
9693 main ()
9694 {
9695 return XpmReadFileToPixmap ();
9696 ;
9697 return 0;
9698 }
9699 _ACEOF
9700 if ac_fn_c_try_link "$LINENO"; then :
9701 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9702 else
9703 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9704 fi
9705 rm -f core conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707 LIBS=$ac_check_lib_save_LIBS
9708 fi
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9710 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9711 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
9712 HAVE_XPM=yes
9713 fi
9714
9715 fi
9716
9717
9718 if test "${HAVE_XPM}" = "yes"; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9720 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 #include "X11/xpm.h"
9724 #ifndef XpmReturnAllocPixels
9725 no_return_alloc_pixels
9726 #endif
9727
9728 _ACEOF
9729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9730 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
9731 HAVE_XPM=no
9732 else
9733 HAVE_XPM=yes
9734 fi
9735 rm -f conftest*
9736
9737
9738 if test "${HAVE_XPM}" = "yes"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9740 $as_echo "yes" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9744 fi
9745 fi
9746 fi
9747
9748 if test "${HAVE_XPM}" = "yes"; then
9749
9750 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9751
9752 fi
9753 fi
9754
9755 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9756 HAVE_JPEG=no
9757 if test "${HAVE_X11}" = "yes"; then
9758 if test "${with_jpeg}" != "no"; then
9759 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9760 if test "x$ac_cv_header_jerror_h" = x""yes; then :
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9762 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9763 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 ac_check_lib_save_LIBS=$LIBS
9767 LIBS="-ljpeg $LIBS"
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 char jpeg_destroy_compress ();
9778 int
9779 main ()
9780 {
9781 return jpeg_destroy_compress ();
9782 ;
9783 return 0;
9784 }
9785 _ACEOF
9786 if ac_fn_c_try_link "$LINENO"; then :
9787 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9788 else
9789 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext conftest.$ac_ext
9793 LIBS=$ac_check_lib_save_LIBS
9794 fi
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9796 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9797 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
9798 HAVE_JPEG=yes
9799 fi
9800
9801 fi
9802
9803
9804 fi
9805
9806 if test "${HAVE_JPEG}" = "yes"; then
9807 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9808
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 #include <jpeglib.h>
9812 version=JPEG_LIB_VERSION
9813
9814 _ACEOF
9815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9816 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
9817 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9818
9819 else
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9821 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9822 HAVE_JPEG=no
9823 fi
9824 rm -f conftest*
9825
9826 fi
9827 fi
9828
9829 ### Use -lpng if available, unless `--with-png=no'.
9830 HAVE_PNG=no
9831 if test "${HAVE_X11}" = "yes"; then
9832 if test "${with_png}" != "no"; then
9833 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9834 # in /usr/include/libpng.
9835 for ac_header in png.h libpng/png.h
9836 do :
9837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9838 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9840 cat >>confdefs.h <<_ACEOF
9841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9842 _ACEOF
9843
9844 fi
9845
9846 done
9847
9848 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9850 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9851 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 ac_check_lib_save_LIBS=$LIBS
9855 LIBS="-lpng -lz -lm $LIBS"
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858
9859 /* Override any GCC internal prototype to avoid an error.
9860 Use char because int might match the return type of a GCC
9861 builtin and then its argument prototype would still apply. */
9862 #ifdef __cplusplus
9863 extern "C"
9864 #endif
9865 char png_get_channels ();
9866 int
9867 main ()
9868 {
9869 return png_get_channels ();
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 if ac_fn_c_try_link "$LINENO"; then :
9875 ac_cv_lib_png_png_get_channels=yes
9876 else
9877 ac_cv_lib_png_png_get_channels=no
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9881 LIBS=$ac_check_lib_save_LIBS
9882 fi
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9884 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9885 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
9886 HAVE_PNG=yes
9887 fi
9888
9889 fi
9890 fi
9891
9892 if test "${HAVE_PNG}" = "yes"; then
9893
9894 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9895
9896 fi
9897 fi
9898
9899 ### Use -ltiff if available, unless `--with-tiff=no'.
9900 HAVE_TIFF=no
9901 if test "${HAVE_X11}" = "yes"; then
9902 if test "${with_tiff}" != "no"; then
9903 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9904 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
9905 tifflibs="-lz -lm"
9906 # At least one tiff package requires the jpeg library.
9907 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9909 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9910 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 ac_check_lib_save_LIBS=$LIBS
9914 LIBS="-ltiff $tifflibs $LIBS"
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917
9918 /* Override any GCC internal prototype to avoid an error.
9919 Use char because int might match the return type of a GCC
9920 builtin and then its argument prototype would still apply. */
9921 #ifdef __cplusplus
9922 extern "C"
9923 #endif
9924 char TIFFGetVersion ();
9925 int
9926 main ()
9927 {
9928 return TIFFGetVersion ();
9929 ;
9930 return 0;
9931 }
9932 _ACEOF
9933 if ac_fn_c_try_link "$LINENO"; then :
9934 ac_cv_lib_tiff_TIFFGetVersion=yes
9935 else
9936 ac_cv_lib_tiff_TIFFGetVersion=no
9937 fi
9938 rm -f core conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940 LIBS=$ac_check_lib_save_LIBS
9941 fi
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9943 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9944 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
9945 HAVE_TIFF=yes
9946 fi
9947
9948 fi
9949
9950
9951 fi
9952
9953 if test "${HAVE_TIFF}" = "yes"; then
9954
9955 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
9956
9957 fi
9958 fi
9959
9960 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
9961 HAVE_GIF=no
9962 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9963 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
9964 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
9965 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9966 # Earlier versions can crash Emacs.
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
9968 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9969 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 ac_check_lib_save_LIBS=$LIBS
9973 LIBS="-lgif $LIBS"
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char EGifPutExtensionLast ();
9984 int
9985 main ()
9986 {
9987 return EGifPutExtensionLast ();
9988 ;
9989 return 0;
9990 }
9991 _ACEOF
9992 if ac_fn_c_try_link "$LINENO"; then :
9993 ac_cv_lib_gif_EGifPutExtensionLast=yes
9994 else
9995 ac_cv_lib_gif_EGifPutExtensionLast=no
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10000 fi
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10002 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10003 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10004 HAVE_GIF=yes
10005 else
10006 try_libungif=yes
10007 fi
10008
10009 fi
10010
10011
10012
10013 if test "$HAVE_GIF" = yes; then
10014 ac_gif_lib_name="-lgif"
10015 fi
10016
10017 # If gif_lib.h but no libgif, try libungif.
10018 if test x"$try_libungif" = xyes; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10020 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10021 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 ac_check_lib_save_LIBS=$LIBS
10025 LIBS="-lungif $LIBS"
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char EGifPutExtensionLast ();
10036 int
10037 main ()
10038 {
10039 return EGifPutExtensionLast ();
10040 ;
10041 return 0;
10042 }
10043 _ACEOF
10044 if ac_fn_c_try_link "$LINENO"; then :
10045 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10046 else
10047 ac_cv_lib_ungif_EGifPutExtensionLast=no
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051 LIBS=$ac_check_lib_save_LIBS
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10054 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10055 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10056 HAVE_GIF=yes
10057 fi
10058
10059
10060 if test "$HAVE_GIF" = yes; then
10061
10062 $as_echo "#define LIBGIF -lungif" >>confdefs.h
10063
10064 ac_gif_lib_name="-lungif"
10065 fi
10066 fi
10067
10068 if test "${HAVE_GIF}" = "yes"; then
10069
10070 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10071
10072 fi
10073 fi
10074
10075 if test "${HAVE_X11}" = "yes"; then
10076 MISSING=""
10077 WITH_NO=""
10078 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10079 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10080 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10081 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10082 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10083 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10084 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10085 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10086 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10087 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10088
10089 if test "X${MISSING}" != X; then
10090 as_fn_error $? "The following required libraries were not found:
10091 $MISSING
10092 Maybe some development libraries/packages are missing?
10093 If you don't want to link with them give
10094 $WITH_NO
10095 as options to configure" "$LINENO" 5
10096 fi
10097 fi
10098
10099 ### Use -lgpm if available, unless `--with-gpm=no'.
10100 HAVE_GPM=no
10101 if test "${with_gpm}" != "no"; then
10102 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10103 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10105 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10106 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 ac_check_lib_save_LIBS=$LIBS
10110 LIBS="-lgpm $LIBS"
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 char Gpm_Open ();
10121 int
10122 main ()
10123 {
10124 return Gpm_Open ();
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_c_try_link "$LINENO"; then :
10130 ac_cv_lib_gpm_Gpm_Open=yes
10131 else
10132 ac_cv_lib_gpm_Gpm_Open=no
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10139 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10140 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10141 HAVE_GPM=yes
10142 fi
10143
10144 fi
10145
10146
10147 fi
10148
10149 if test "${HAVE_GPM}" = "yes"; then
10150
10151 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10152
10153 fi
10154
10155 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10156 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10157
10158 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10159
10160 fi
10161
10162
10163
10164 ### Use NeXTstep API to implement GUI.
10165 if test "${HAVE_NS}" = "yes"; then
10166
10167 $as_echo "#define HAVE_NS 1" >>confdefs.h
10168
10169 if test "${NS_IMPL_COCOA}" = "yes"; then
10170
10171 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10172
10173 GNU_OBJC_CFLAGS=
10174 fi
10175 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10176
10177 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10178
10179 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10180 fi
10181 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10182
10183 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10184
10185 fi
10186 # We also have mouse menus.
10187 HAVE_MENUS=yes
10188 OTHER_FILES=ns-app
10189 fi
10190
10191
10192 ### Use session management (-lSM -lICE) if available
10193 HAVE_X_SM=no
10194 if test "${HAVE_X11}" = "yes"; then
10195 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10196 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10198 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10199 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 ac_check_lib_save_LIBS=$LIBS
10203 LIBS="-lSM -lICE $LIBS"
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char SmcOpenConnection ();
10214 int
10215 main ()
10216 {
10217 return SmcOpenConnection ();
10218 ;
10219 return 0;
10220 }
10221 _ACEOF
10222 if ac_fn_c_try_link "$LINENO"; then :
10223 ac_cv_lib_SM_SmcOpenConnection=yes
10224 else
10225 ac_cv_lib_SM_SmcOpenConnection=no
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10230 fi
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10232 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10233 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10234 HAVE_X_SM=yes
10235 fi
10236
10237 fi
10238
10239
10240
10241 if test "${HAVE_X_SM}" = "yes"; then
10242
10243 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10244
10245 case "$LIBS" in
10246 *-lSM*) ;;
10247 *) LIBS="-lSM -lICE $LIBS" ;;
10248 esac
10249 fi
10250 fi
10251
10252 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10254 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10255 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 #include <netdb.h>
10261 int
10262 main ()
10263 {
10264 return h_errno;
10265 ;
10266 return 0;
10267 }
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 emacs_cv_netdb_declares_h_errno=yes
10271 else
10272 emacs_cv_netdb_declares_h_errno=no
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10278 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10279 if test $emacs_cv_netdb_declares_h_errno = yes; then
10280
10281 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10282
10283 fi
10284
10285 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10286 # for constant arguments. Useless!
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10288 $as_echo_n "checking for working alloca.h... " >&6; }
10289 if test "${ac_cv_working_alloca_h+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 #include <alloca.h>
10295 int
10296 main ()
10297 {
10298 char *p = (char *) alloca (2 * sizeof (int));
10299 if (p) return 0;
10300 ;
10301 return 0;
10302 }
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305 ac_cv_working_alloca_h=yes
10306 else
10307 ac_cv_working_alloca_h=no
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10313 $as_echo "$ac_cv_working_alloca_h" >&6; }
10314 if test $ac_cv_working_alloca_h = yes; then
10315
10316 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10317
10318 fi
10319
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10321 $as_echo_n "checking for alloca... " >&6; }
10322 if test "${ac_cv_func_alloca_works+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #ifdef __GNUC__
10328 # define alloca __builtin_alloca
10329 #else
10330 # ifdef _MSC_VER
10331 # include <malloc.h>
10332 # define alloca _alloca
10333 # else
10334 # ifdef HAVE_ALLOCA_H
10335 # include <alloca.h>
10336 # else
10337 # ifdef _AIX
10338 #pragma alloca
10339 # else
10340 # ifndef alloca /* predefined by HP cc +Olibcalls */
10341 char *alloca ();
10342 # endif
10343 # endif
10344 # endif
10345 # endif
10346 #endif
10347
10348 int
10349 main ()
10350 {
10351 char *p = (char *) alloca (1);
10352 if (p) return 0;
10353 ;
10354 return 0;
10355 }
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358 ac_cv_func_alloca_works=yes
10359 else
10360 ac_cv_func_alloca_works=no
10361 fi
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 fi
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10366 $as_echo "$ac_cv_func_alloca_works" >&6; }
10367
10368 if test $ac_cv_func_alloca_works = yes; then
10369
10370 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10371
10372 else
10373 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10374 # that cause trouble. Some versions do not even contain alloca or
10375 # contain a buggy version. If you still want to use their alloca,
10376 # use ar to extract alloca.o from them instead of compiling alloca.c.
10377
10378 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10379
10380 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10381
10382
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10384 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10385 if test "${ac_cv_os_cray+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390 #if defined CRAY && ! defined CRAY2
10391 webecray
10392 #else
10393 wenotbecray
10394 #endif
10395
10396 _ACEOF
10397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10398 $EGREP "webecray" >/dev/null 2>&1; then :
10399 ac_cv_os_cray=yes
10400 else
10401 ac_cv_os_cray=no
10402 fi
10403 rm -f conftest*
10404
10405 fi
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10407 $as_echo "$ac_cv_os_cray" >&6; }
10408 if test $ac_cv_os_cray = yes; then
10409 for ac_func in _getb67 GETB67 getb67; do
10410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10411 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10412 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10413
10414 cat >>confdefs.h <<_ACEOF
10415 #define CRAY_STACKSEG_END $ac_func
10416 _ACEOF
10417
10418 break
10419 fi
10420
10421 done
10422 fi
10423
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10425 $as_echo_n "checking stack direction for C alloca... " >&6; }
10426 if test "${ac_cv_c_stack_direction+set}" = set; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 if test "$cross_compiling" = yes; then :
10430 ac_cv_c_stack_direction=0
10431 else
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 int
10436 find_stack_direction ()
10437 {
10438 static char *addr = 0;
10439 auto char dummy;
10440 if (addr == 0)
10441 {
10442 addr = &dummy;
10443 return find_stack_direction ();
10444 }
10445 else
10446 return (&dummy > addr) ? 1 : -1;
10447 }
10448
10449 int
10450 main ()
10451 {
10452 return find_stack_direction () < 0;
10453 }
10454 _ACEOF
10455 if ac_fn_c_try_run "$LINENO"; then :
10456 ac_cv_c_stack_direction=1
10457 else
10458 ac_cv_c_stack_direction=-1
10459 fi
10460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10461 conftest.$ac_objext conftest.beam conftest.$ac_ext
10462 fi
10463
10464 fi
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10466 $as_echo "$ac_cv_c_stack_direction" >&6; }
10467 cat >>confdefs.h <<_ACEOF
10468 #define STACK_DIRECTION $ac_cv_c_stack_direction
10469 _ACEOF
10470
10471
10472 fi
10473
10474
10475 if test x"$ac_cv_func_alloca_works" != xyes; then
10476 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
10477 fi
10478
10479 # fmod, logb, and frexp are found in -lm on most systems.
10480 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10482 $as_echo_n "checking for sqrt in -lm... " >&6; }
10483 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 ac_check_lib_save_LIBS=$LIBS
10487 LIBS="-lm $LIBS"
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490
10491 /* Override any GCC internal prototype to avoid an error.
10492 Use char because int might match the return type of a GCC
10493 builtin and then its argument prototype would still apply. */
10494 #ifdef __cplusplus
10495 extern "C"
10496 #endif
10497 char sqrt ();
10498 int
10499 main ()
10500 {
10501 return sqrt ();
10502 ;
10503 return 0;
10504 }
10505 _ACEOF
10506 if ac_fn_c_try_link "$LINENO"; then :
10507 ac_cv_lib_m_sqrt=yes
10508 else
10509 ac_cv_lib_m_sqrt=no
10510 fi
10511 rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513 LIBS=$ac_check_lib_save_LIBS
10514 fi
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10516 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10517 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10518 cat >>confdefs.h <<_ACEOF
10519 #define HAVE_LIBM 1
10520 _ACEOF
10521
10522 LIBS="-lm $LIBS"
10523
10524 fi
10525
10526
10527 # Check for mail-locking functions in a "mail" library. Probably this should
10528 # have the same check as for liblockfile below.
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10530 $as_echo_n "checking for maillock in -lmail... " >&6; }
10531 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lmail $LIBS"
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char maillock ();
10546 int
10547 main ()
10548 {
10549 return maillock ();
10550 ;
10551 return 0;
10552 }
10553 _ACEOF
10554 if ac_fn_c_try_link "$LINENO"; then :
10555 ac_cv_lib_mail_maillock=yes
10556 else
10557 ac_cv_lib_mail_maillock=no
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10562 fi
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10564 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10565 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10566 cat >>confdefs.h <<_ACEOF
10567 #define HAVE_LIBMAIL 1
10568 _ACEOF
10569
10570 LIBS="-lmail $LIBS"
10571
10572 fi
10573
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10575 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10576 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-llockfile $LIBS"
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10583
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char maillock ();
10591 int
10592 main ()
10593 {
10594 return maillock ();
10595 ;
10596 return 0;
10597 }
10598 _ACEOF
10599 if ac_fn_c_try_link "$LINENO"; then :
10600 ac_cv_lib_lockfile_maillock=yes
10601 else
10602 ac_cv_lib_lockfile_maillock=no
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 LIBS=$ac_check_lib_save_LIBS
10607 fi
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10609 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10610 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10611 cat >>confdefs.h <<_ACEOF
10612 #define HAVE_LIBLOCKFILE 1
10613 _ACEOF
10614
10615 LIBS="-llockfile $LIBS"
10616
10617 fi
10618
10619 # If we have the shared liblockfile, assume we must use it for mail
10620 # locking (e.g. Debian). If we couldn't link against liblockfile
10621 # (no liblockfile.a installed), ensure that we don't need to.
10622 if test "$ac_cv_lib_lockfile_maillock" = no; then
10623 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10624 set dummy liblockfile.so; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 if test -n "$liblockfile"; then
10631 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10635 for as_dir in $as_dummy
10636 do
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10641 ac_cv_prog_liblockfile="yes"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10644 fi
10645 done
10646 done
10647 IFS=$as_save_IFS
10648
10649 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10650 fi
10651 fi
10652 liblockfile=$ac_cv_prog_liblockfile
10653 if test -n "$liblockfile"; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10655 $as_echo "$liblockfile" >&6; }
10656 else
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10659 fi
10660
10661
10662 if test $ac_cv_prog_liblockfile = yes; then
10663 as_fn_error $? "Shared liblockfile found but can't link against it.
10664 This probably means that movemail could lose mail.
10665 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10666 else :
10667 fi
10668 fi
10669 for ac_func in touchlock
10670 do :
10671 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
10672 if test "x$ac_cv_func_touchlock" = x""yes; then :
10673 cat >>confdefs.h <<_ACEOF
10674 #define HAVE_TOUCHLOCK 1
10675 _ACEOF
10676
10677 fi
10678 done
10679
10680 for ac_header in maillock.h
10681 do :
10682 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10683 if test "x$ac_cv_header_maillock_h" = x""yes; then :
10684 cat >>confdefs.h <<_ACEOF
10685 #define HAVE_MAILLOCK_H 1
10686 _ACEOF
10687
10688 fi
10689
10690 done
10691
10692
10693 for ac_func in gethostname getdomainname dup2 \
10694 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10695 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10696 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10697 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10698 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10699 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10700 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10701 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10702 cfmakeraw cfsetspeed
10703 do :
10704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10706 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10707 cat >>confdefs.h <<_ACEOF
10708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10709 _ACEOF
10710
10711 fi
10712 done
10713
10714
10715 for ac_header in sys/un.h
10716 do :
10717 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10718 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
10719 cat >>confdefs.h <<_ACEOF
10720 #define HAVE_SYS_UN_H 1
10721 _ACEOF
10722
10723 fi
10724
10725 done
10726
10727
10728
10729
10730
10731
10732
10733 for ac_func in $ac_func_list
10734 do :
10735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10737 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10738 cat >>confdefs.h <<_ACEOF
10739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10740 _ACEOF
10741
10742 fi
10743 done
10744
10745
10746
10747
10748
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10750 $as_echo_n "checking for working mktime... " >&6; }
10751 if test "${ac_cv_func_working_mktime+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 if test "$cross_compiling" = yes; then :
10755 ac_cv_func_working_mktime=no
10756 else
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759 /* Test program from Paul Eggert and Tony Leneis. */
10760 #ifdef TIME_WITH_SYS_TIME
10761 # include <sys/time.h>
10762 # include <time.h>
10763 #else
10764 # ifdef HAVE_SYS_TIME_H
10765 # include <sys/time.h>
10766 # else
10767 # include <time.h>
10768 # endif
10769 #endif
10770
10771 #include <limits.h>
10772 #include <stdlib.h>
10773
10774 #ifdef HAVE_UNISTD_H
10775 # include <unistd.h>
10776 #endif
10777
10778 #ifndef HAVE_ALARM
10779 # define alarm(X) /* empty */
10780 #endif
10781
10782 /* Work around redefinition to rpl_putenv by other config tests. */
10783 #undef putenv
10784
10785 static time_t time_t_max;
10786 static time_t time_t_min;
10787
10788 /* Values we'll use to set the TZ environment variable. */
10789 static const char *tz_strings[] = {
10790 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10791 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10792 };
10793 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10794
10795 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10796 Based on a problem report from Andreas Jaeger. */
10797 static int
10798 spring_forward_gap ()
10799 {
10800 /* glibc (up to about 1998-10-07) failed this test. */
10801 struct tm tm;
10802
10803 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10804 instead of "TZ=America/Vancouver" in order to detect the bug even
10805 on systems that don't support the Olson extension, or don't have the
10806 full zoneinfo tables installed. */
10807 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10808
10809 tm.tm_year = 98;
10810 tm.tm_mon = 3;
10811 tm.tm_mday = 5;
10812 tm.tm_hour = 2;
10813 tm.tm_min = 0;
10814 tm.tm_sec = 0;
10815 tm.tm_isdst = -1;
10816 return mktime (&tm) != (time_t) -1;
10817 }
10818
10819 static int
10820 mktime_test1 (time_t now)
10821 {
10822 struct tm *lt;
10823 return ! (lt = localtime (&now)) || mktime (lt) == now;
10824 }
10825
10826 static int
10827 mktime_test (time_t now)
10828 {
10829 return (mktime_test1 (now)
10830 && mktime_test1 ((time_t) (time_t_max - now))
10831 && mktime_test1 ((time_t) (time_t_min + now)));
10832 }
10833
10834 static int
10835 irix_6_4_bug ()
10836 {
10837 /* Based on code from Ariel Faigon. */
10838 struct tm tm;
10839 tm.tm_year = 96;
10840 tm.tm_mon = 3;
10841 tm.tm_mday = 0;
10842 tm.tm_hour = 0;
10843 tm.tm_min = 0;
10844 tm.tm_sec = 0;
10845 tm.tm_isdst = -1;
10846 mktime (&tm);
10847 return tm.tm_mon == 2 && tm.tm_mday == 31;
10848 }
10849
10850 static int
10851 bigtime_test (int j)
10852 {
10853 struct tm tm;
10854 time_t now;
10855 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10856 now = mktime (&tm);
10857 if (now != (time_t) -1)
10858 {
10859 struct tm *lt = localtime (&now);
10860 if (! (lt
10861 && lt->tm_year == tm.tm_year
10862 && lt->tm_mon == tm.tm_mon
10863 && lt->tm_mday == tm.tm_mday
10864 && lt->tm_hour == tm.tm_hour
10865 && lt->tm_min == tm.tm_min
10866 && lt->tm_sec == tm.tm_sec
10867 && lt->tm_yday == tm.tm_yday
10868 && lt->tm_wday == tm.tm_wday
10869 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10870 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10871 return 0;
10872 }
10873 return 1;
10874 }
10875
10876 static int
10877 year_2050_test ()
10878 {
10879 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10880 ignoring leap seconds. */
10881 unsigned long int answer = 2527315200UL;
10882
10883 struct tm tm;
10884 time_t t;
10885 tm.tm_year = 2050 - 1900;
10886 tm.tm_mon = 2 - 1;
10887 tm.tm_mday = 1;
10888 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10889 tm.tm_isdst = -1;
10890
10891 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10892 instead of "TZ=America/Vancouver" in order to detect the bug even
10893 on systems that don't support the Olson extension, or don't have the
10894 full zoneinfo tables installed. */
10895 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10896
10897 t = mktime (&tm);
10898
10899 /* Check that the result is either a failure, or close enough
10900 to the correct answer that we can assume the discrepancy is
10901 due to leap seconds. */
10902 return (t == (time_t) -1
10903 || (0 < t && answer - 120 <= t && t <= answer + 120));
10904 }
10905
10906 int
10907 main ()
10908 {
10909 time_t t, delta;
10910 int i, j;
10911
10912 /* This test makes some buggy mktime implementations loop.
10913 Give up after 60 seconds; a mktime slower than that
10914 isn't worth using anyway. */
10915 alarm (60);
10916
10917 for (;;)
10918 {
10919 t = (time_t_max << 1) + 1;
10920 if (t <= time_t_max)
10921 break;
10922 time_t_max = t;
10923 }
10924 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10925
10926 delta = time_t_max / 997; /* a suitable prime number */
10927 for (i = 0; i < N_STRINGS; i++)
10928 {
10929 if (tz_strings[i])
10930 putenv ((char*) tz_strings[i]);
10931
10932 for (t = 0; t <= time_t_max - delta; t += delta)
10933 if (! mktime_test (t))
10934 return 1;
10935 if (! (mktime_test ((time_t) 1)
10936 && mktime_test ((time_t) (60 * 60))
10937 && mktime_test ((time_t) (60 * 60 * 24))))
10938 return 1;
10939
10940 for (j = 1; ; j <<= 1)
10941 if (! bigtime_test (j))
10942 return 1;
10943 else if (INT_MAX / 2 < j)
10944 break;
10945 if (! bigtime_test (INT_MAX))
10946 return 1;
10947 }
10948 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10949 }
10950 _ACEOF
10951 if ac_fn_c_try_run "$LINENO"; then :
10952 ac_cv_func_working_mktime=yes
10953 else
10954 ac_cv_func_working_mktime=no
10955 fi
10956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10957 conftest.$ac_objext conftest.beam conftest.$ac_ext
10958 fi
10959
10960 fi
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10962 $as_echo "$ac_cv_func_working_mktime" >&6; }
10963 if test $ac_cv_func_working_mktime = no; then
10964 case " $LIBOBJS " in
10965 *" mktime.$ac_objext "* ) ;;
10966 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10967 ;;
10968 esac
10969
10970 fi
10971
10972 if test "$ac_cv_func_working_mktime" = no; then
10973
10974 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
10975
10976 fi
10977
10978 ac_have_func=no # yes means we've found a way to get the load average.
10979
10980 # Make sure getloadavg.c is where it belongs, at configure-time.
10981 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10982 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10983
10984 ac_save_LIBS=$LIBS
10985
10986 # Check for getloadavg, but be sure not to touch the cache variable.
10987 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10988 if test "x$ac_cv_func_getloadavg" = x""yes; then :
10989 exit 0
10990 else
10991 exit 1
10992 fi
10993 ) && ac_have_func=yes
10994
10995 # On HPUX9, an unprivileged user can get load averages through this function.
10996 for ac_func in pstat_getdynamic
10997 do :
10998 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10999 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11000 cat >>confdefs.h <<_ACEOF
11001 #define HAVE_PSTAT_GETDYNAMIC 1
11002 _ACEOF
11003
11004 fi
11005 done
11006
11007
11008 # Solaris has libkstat which does not require root.
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11010 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11011 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 ac_check_lib_save_LIBS=$LIBS
11015 LIBS="-lkstat $LIBS"
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11018
11019 /* Override any GCC internal prototype to avoid an error.
11020 Use char because int might match the return type of a GCC
11021 builtin and then its argument prototype would still apply. */
11022 #ifdef __cplusplus
11023 extern "C"
11024 #endif
11025 char kstat_open ();
11026 int
11027 main ()
11028 {
11029 return kstat_open ();
11030 ;
11031 return 0;
11032 }
11033 _ACEOF
11034 if ac_fn_c_try_link "$LINENO"; then :
11035 ac_cv_lib_kstat_kstat_open=yes
11036 else
11037 ac_cv_lib_kstat_kstat_open=no
11038 fi
11039 rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11041 LIBS=$ac_check_lib_save_LIBS
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11044 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11045 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11046 cat >>confdefs.h <<_ACEOF
11047 #define HAVE_LIBKSTAT 1
11048 _ACEOF
11049
11050 LIBS="-lkstat $LIBS"
11051
11052 fi
11053
11054 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11055
11056 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11057 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11058 # to get the right answer into the cache.
11059 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11060 if test $ac_have_func = no; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11062 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11063 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-lelf $LIBS"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11070
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char elf_begin ();
11078 int
11079 main ()
11080 {
11081 return elf_begin ();
11082 ;
11083 return 0;
11084 }
11085 _ACEOF
11086 if ac_fn_c_try_link "$LINENO"; then :
11087 ac_cv_lib_elf_elf_begin=yes
11088 else
11089 ac_cv_lib_elf_elf_begin=no
11090 fi
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LIBS=$ac_check_lib_save_LIBS
11094 fi
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11096 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11097 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11098 LIBS="-lelf $LIBS"
11099 fi
11100
11101 fi
11102 if test $ac_have_func = no; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11104 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11105 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 ac_check_lib_save_LIBS=$LIBS
11109 LIBS="-lkvm $LIBS"
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char kvm_open ();
11120 int
11121 main ()
11122 {
11123 return kvm_open ();
11124 ;
11125 return 0;
11126 }
11127 _ACEOF
11128 if ac_fn_c_try_link "$LINENO"; then :
11129 ac_cv_lib_kvm_kvm_open=yes
11130 else
11131 ac_cv_lib_kvm_kvm_open=no
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11136 fi
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11138 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11139 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11140 LIBS="-lkvm $LIBS"
11141 fi
11142
11143 # Check for the 4.4BSD definition of getloadavg.
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11145 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11146 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 ac_check_lib_save_LIBS=$LIBS
11150 LIBS="-lutil $LIBS"
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11153
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 char getloadavg ();
11161 int
11162 main ()
11163 {
11164 return getloadavg ();
11165 ;
11166 return 0;
11167 }
11168 _ACEOF
11169 if ac_fn_c_try_link "$LINENO"; then :
11170 ac_cv_lib_util_getloadavg=yes
11171 else
11172 ac_cv_lib_util_getloadavg=no
11173 fi
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11177 fi
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11179 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11180 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11181 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11182 fi
11183
11184 fi
11185
11186 if test $ac_have_func = no; then
11187 # There is a commonly available library for RS/6000 AIX.
11188 # Since it is not a standard part of AIX, it might be installed locally.
11189 ac_getloadavg_LIBS=$LIBS
11190 LIBS="-L/usr/local/lib $LIBS"
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11192 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11193 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 ac_check_lib_save_LIBS=$LIBS
11197 LIBS="-lgetloadavg $LIBS"
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11200
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11204 #ifdef __cplusplus
11205 extern "C"
11206 #endif
11207 char getloadavg ();
11208 int
11209 main ()
11210 {
11211 return getloadavg ();
11212 ;
11213 return 0;
11214 }
11215 _ACEOF
11216 if ac_fn_c_try_link "$LINENO"; then :
11217 ac_cv_lib_getloadavg_getloadavg=yes
11218 else
11219 ac_cv_lib_getloadavg_getloadavg=no
11220 fi
11221 rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223 LIBS=$ac_check_lib_save_LIBS
11224 fi
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11226 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11227 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11228 LIBS="-lgetloadavg $LIBS"
11229 else
11230 LIBS=$ac_getloadavg_LIBS
11231 fi
11232
11233 fi
11234
11235 # Make sure it is really in the library, if we think we found it,
11236 # otherwise set up the replacement function.
11237 for ac_func in getloadavg
11238 do :
11239 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11240 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11241 cat >>confdefs.h <<_ACEOF
11242 #define HAVE_GETLOADAVG 1
11243 _ACEOF
11244
11245 else
11246 case " $LIBOBJS " in
11247 *" getloadavg.$ac_objext "* ) ;;
11248 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11249 ;;
11250 esac
11251
11252
11253 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11254
11255 # Figure out what our getloadavg.c needs.
11256 ac_have_func=no
11257 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11258 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11259 ac_have_func=yes
11260
11261 $as_echo "#define DGUX 1" >>confdefs.h
11262
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11264 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11265 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11266 $as_echo_n "(cached) " >&6
11267 else
11268 ac_check_lib_save_LIBS=$LIBS
11269 LIBS="-ldgc $LIBS"
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272
11273 /* Override any GCC internal prototype to avoid an error.
11274 Use char because int might match the return type of a GCC
11275 builtin and then its argument prototype would still apply. */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 char dg_sys_info ();
11280 int
11281 main ()
11282 {
11283 return dg_sys_info ();
11284 ;
11285 return 0;
11286 }
11287 _ACEOF
11288 if ac_fn_c_try_link "$LINENO"; then :
11289 ac_cv_lib_dgc_dg_sys_info=yes
11290 else
11291 ac_cv_lib_dgc_dg_sys_info=no
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext \
11294 conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11296 fi
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11298 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11299 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_LIBDGC 1
11302 _ACEOF
11303
11304 LIBS="-ldgc $LIBS"
11305
11306 fi
11307
11308 fi
11309
11310
11311
11312 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11313 if test "x$ac_cv_header_locale_h" = x""yes; then :
11314
11315 fi
11316
11317
11318 for ac_func in setlocale
11319 do :
11320 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11321 if test "x$ac_cv_func_setlocale" = x""yes; then :
11322 cat >>confdefs.h <<_ACEOF
11323 #define HAVE_SETLOCALE 1
11324 _ACEOF
11325
11326 fi
11327 done
11328
11329
11330 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11331 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11332 # Irix 4.0.5F has the header but not the library.
11333 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11334 ac_have_func=yes
11335
11336 $as_echo "#define SVR4 1" >>confdefs.h
11337
11338 fi
11339
11340 if test $ac_have_func = no; then
11341 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11342 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11343 ac_have_func=yes
11344
11345 $as_echo "#define UMAX 1" >>confdefs.h
11346
11347
11348 $as_echo "#define UMAX4_3 1" >>confdefs.h
11349
11350 fi
11351
11352
11353 fi
11354
11355 if test $ac_have_func = no; then
11356 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11357 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11358 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11359
11360 fi
11361
11362
11363 fi
11364
11365 if test $ac_have_func = no; then
11366 for ac_header in mach/mach.h
11367 do :
11368 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11369 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11370 cat >>confdefs.h <<_ACEOF
11371 #define HAVE_MACH_MACH_H 1
11372 _ACEOF
11373
11374 fi
11375
11376 done
11377
11378 fi
11379
11380 for ac_header in nlist.h
11381 do :
11382 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11383 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11384 cat >>confdefs.h <<_ACEOF
11385 #define HAVE_NLIST_H 1
11386 _ACEOF
11387 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11388 "
11389 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11390
11391 cat >>confdefs.h <<_ACEOF
11392 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11393 _ACEOF
11394
11395
11396 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11397
11398 fi
11399
11400
11401 fi
11402
11403 done
11404
11405 fi
11406 done
11407
11408
11409 # Some definitions of getloadavg require that the program be installed setgid.
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11411 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11412 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11418 #ifdef LDAV_PRIVILEGED
11419 Yowza Am I SETGID yet
11420 #endif
11421 _ACEOF
11422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11423 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11424 ac_cv_func_getloadavg_setgid=yes
11425 else
11426 ac_cv_func_getloadavg_setgid=no
11427 fi
11428 rm -f conftest*
11429
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11432 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11433 if test $ac_cv_func_getloadavg_setgid = yes; then
11434 NEED_SETGID=true
11435
11436 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11437
11438 else
11439 NEED_SETGID=false
11440 fi
11441
11442 if test $ac_cv_func_getloadavg_setgid = yes; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11444 $as_echo_n "checking group of /dev/kmem... " >&6; }
11445 if test "${ac_cv_group_kmem+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11449 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11450 # If we got an error (system does not support symlinks), try without -L.
11451 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11452 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11453 | sed -ne 's/[ ][ ]*/ /g;
11454 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11455 / /s/.* //;p;'`
11456
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11459 $as_echo "$ac_cv_group_kmem" >&6; }
11460 KMEM_GROUP=$ac_cv_group_kmem
11461 fi
11462 if test "x$ac_save_LIBS" = x; then
11463 GETLOADAVG_LIBS=$LIBS
11464 else
11465 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11466 fi
11467 LIBS=$ac_save_LIBS
11468
11469
11470
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11472 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11473 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 while :; do
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 #include <sys/types.h> /* for off_t */
11480 #include <stdio.h>
11481 int
11482 main ()
11483 {
11484 int (*fp) (FILE *, off_t, int) = fseeko;
11485 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11486 ;
11487 return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_sys_largefile_source=no; break
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11497 #define _LARGEFILE_SOURCE 1
11498 #include <sys/types.h> /* for off_t */
11499 #include <stdio.h>
11500 int
11501 main ()
11502 {
11503 int (*fp) (FILE *, off_t, int) = fseeko;
11504 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11505 ;
11506 return 0;
11507 }
11508 _ACEOF
11509 if ac_fn_c_try_link "$LINENO"; then :
11510 ac_cv_sys_largefile_source=1; break
11511 fi
11512 rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11514 ac_cv_sys_largefile_source=unknown
11515 break
11516 done
11517 fi
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11519 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11520 case $ac_cv_sys_largefile_source in #(
11521 no | unknown) ;;
11522 *)
11523 cat >>confdefs.h <<_ACEOF
11524 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11525 _ACEOF
11526 ;;
11527 esac
11528 rm -rf conftest*
11529
11530 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11531 # in glibc 2.1.3, but that breaks too many other things.
11532 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11533 if test $ac_cv_sys_largefile_source != unknown; then
11534
11535 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11536
11537 fi
11538
11539
11540 # Configure getopt.
11541 # getopt.m4 serial 10
11542
11543 # The getopt module assume you want GNU getopt, with getopt_long etc,
11544 # rather than vanilla POSIX getopt. This means your your code should
11545 # always include <getopt.h> for the getopt prototypes.
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557 # Prerequisites of lib/getopt*.
11558
11559
11560
11561
11562 GETOPT_H=
11563 for ac_header in getopt.h
11564 do :
11565 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11566 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11567 cat >>confdefs.h <<_ACEOF
11568 #define HAVE_GETOPT_H 1
11569 _ACEOF
11570
11571 else
11572 GETOPT_H=getopt.h
11573 fi
11574
11575 done
11576
11577 if test -z "$GETOPT_H"; then
11578 for ac_func in getopt_long_only
11579 do :
11580 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11581 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11582 cat >>confdefs.h <<_ACEOF
11583 #define HAVE_GETOPT_LONG_ONLY 1
11584 _ACEOF
11585
11586 else
11587 GETOPT_H=getopt.h
11588 fi
11589 done
11590
11591 fi
11592
11593 if test -z "$GETOPT_H"; then
11594 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11595 "
11596 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11597 GETOPT_H=getopt.h
11598 fi
11599
11600 fi
11601
11602 if test -z "$GETOPT_H"; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11604 $as_echo_n "checking for working GNU getopt function... " >&6; }
11605 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11608 if test "$cross_compiling" = yes; then :
11609 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11610 "
11611 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11612 gl_cv_func_gnu_getopt=no
11613 else
11614 gl_cv_func_gnu_getopt=yes
11615 fi
11616
11617 else
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11620 #include <getopt.h>
11621 int
11622 main ()
11623 {
11624
11625 char *myargv[3];
11626 myargv[0] = "conftest";
11627 myargv[1] = "-+";
11628 myargv[2] = 0;
11629 return getopt (2, myargv, "+a") != '?';
11630
11631 ;
11632 return 0;
11633 }
11634 _ACEOF
11635 if ac_fn_c_try_run "$LINENO"; then :
11636 gl_cv_func_gnu_getopt=yes
11637 else
11638 gl_cv_func_gnu_getopt=no
11639 fi
11640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11641 conftest.$ac_objext conftest.beam conftest.$ac_ext
11642 fi
11643
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11646 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11647 if test "$gl_cv_func_gnu_getopt" = "no"; then
11648 GETOPT_H=getopt.h
11649 fi
11650 fi
11651
11652
11653
11654 if test -n "$GETOPT_H"; then :
11655
11656
11657 GETOPT_H=getopt.h
11658
11659 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11660
11661
11662
11663 :
11664 GETOPTOBJS='getopt.o getopt1.o'
11665
11666 fi
11667
11668
11669
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11671 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11672 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 # Use it with a single arg.
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11678 $ac_includes_default
11679 int
11680 main ()
11681 {
11682 getpgrp (0);
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 if ac_fn_c_try_compile "$LINENO"; then :
11688 ac_cv_func_getpgrp_void=no
11689 else
11690 ac_cv_func_getpgrp_void=yes
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11696 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11697 if test $ac_cv_func_getpgrp_void = yes; then
11698
11699 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11700
11701 fi
11702
11703
11704 for ac_func in strftime
11705 do :
11706 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11707 if test "x$ac_cv_func_strftime" = x""yes; then :
11708 cat >>confdefs.h <<_ACEOF
11709 #define HAVE_STRFTIME 1
11710 _ACEOF
11711
11712 else
11713 # strftime is in -lintl on SCO UNIX.
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11715 $as_echo_n "checking for strftime in -lintl... " >&6; }
11716 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 ac_check_lib_save_LIBS=$LIBS
11720 LIBS="-lintl $LIBS"
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723
11724 /* Override any GCC internal prototype to avoid an error.
11725 Use char because int might match the return type of a GCC
11726 builtin and then its argument prototype would still apply. */
11727 #ifdef __cplusplus
11728 extern "C"
11729 #endif
11730 char strftime ();
11731 int
11732 main ()
11733 {
11734 return strftime ();
11735 ;
11736 return 0;
11737 }
11738 _ACEOF
11739 if ac_fn_c_try_link "$LINENO"; then :
11740 ac_cv_lib_intl_strftime=yes
11741 else
11742 ac_cv_lib_intl_strftime=no
11743 fi
11744 rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11746 LIBS=$ac_check_lib_save_LIBS
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11749 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11750 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11751 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11752
11753 LIBS="-lintl $LIBS"
11754 fi
11755
11756 fi
11757 done
11758
11759
11760 # UNIX98 PTYs.
11761 for ac_func in grantpt
11762 do :
11763 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
11764 if test "x$ac_cv_func_grantpt" = x""yes; then :
11765 cat >>confdefs.h <<_ACEOF
11766 #define HAVE_GRANTPT 1
11767 _ACEOF
11768
11769 fi
11770 done
11771
11772
11773 # PTY-related GNU extensions.
11774 for ac_func in getpt
11775 do :
11776 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
11777 if test "x$ac_cv_func_getpt" = x""yes; then :
11778 cat >>confdefs.h <<_ACEOF
11779 #define HAVE_GETPT 1
11780 _ACEOF
11781
11782 fi
11783 done
11784
11785
11786 # Check this now, so that we will NOT find the above functions in ncurses.
11787 # That is because we have not set up to link ncurses in lib-src.
11788 # It's better to believe a function is not available
11789 # than to expect to find it in ncurses.
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
11791 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11792 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 ac_check_lib_save_LIBS=$LIBS
11796 LIBS="-lncurses $LIBS"
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11799
11800 /* Override any GCC internal prototype to avoid an error.
11801 Use char because int might match the return type of a GCC
11802 builtin and then its argument prototype would still apply. */
11803 #ifdef __cplusplus
11804 extern "C"
11805 #endif
11806 char tparm ();
11807 int
11808 main ()
11809 {
11810 return tparm ();
11811 ;
11812 return 0;
11813 }
11814 _ACEOF
11815 if ac_fn_c_try_link "$LINENO"; then :
11816 ac_cv_lib_ncurses_tparm=yes
11817 else
11818 ac_cv_lib_ncurses_tparm=no
11819 fi
11820 rm -f core conftest.err conftest.$ac_objext \
11821 conftest$ac_exeext conftest.$ac_ext
11822 LIBS=$ac_check_lib_save_LIBS
11823 fi
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
11825 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11826 if test "x$ac_cv_lib_ncurses_tparm" = x""yes; then :
11827 cat >>confdefs.h <<_ACEOF
11828 #define HAVE_LIBNCURSES 1
11829 _ACEOF
11830
11831 LIBS="-lncurses $LIBS"
11832
11833 fi
11834
11835
11836 case "$opsys" in
11837 netbsd)
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
11839 $as_echo_n "checking for library containing tputs... " >&6; }
11840 if test "${ac_cv_search_tputs+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 ac_func_search_save_LIBS=$LIBS
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11846
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char tputs ();
11854 int
11855 main ()
11856 {
11857 return tputs ();
11858 ;
11859 return 0;
11860 }
11861 _ACEOF
11862 for ac_lib in '' ncurses terminfo termcap; do
11863 if test -z "$ac_lib"; then
11864 ac_res="none required"
11865 else
11866 ac_res=-l$ac_lib
11867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11868 fi
11869 if ac_fn_c_try_link "$LINENO"; then :
11870 ac_cv_search_tputs=$ac_res
11871 fi
11872 rm -f core conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext
11874 if test "${ac_cv_search_tputs+set}" = set; then :
11875 break
11876 fi
11877 done
11878 if test "${ac_cv_search_tputs+set}" = set; then :
11879
11880 else
11881 ac_cv_search_tputs=no
11882 fi
11883 rm conftest.$ac_ext
11884 LIBS=$ac_func_search_save_LIBS
11885 fi
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
11887 $as_echo "$ac_cv_search_tputs" >&6; }
11888 ac_res=$ac_cv_search_tputs
11889 if test "$ac_res" != no; then :
11890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11891
11892 fi
11893
11894 if test $ac_cv_search_tputs = -lterminfo; then
11895
11896 $as_echo "#define TERMINFO 1" >>confdefs.h
11897
11898 fi
11899 ;;
11900 esac
11901
11902 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11903
11904 resolv=no
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11907 #include <netinet/in.h>
11908 #include <arpa/nameser.h>
11909 #include <resolv.h>
11910 int
11911 main ()
11912 {
11913 return res_init();
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919 have_res_init=yes
11920 else
11921 have_res_init=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 if test "$have_res_init" = no; then
11926 OLIBS="$LIBS"
11927 LIBS="$LIBS -lresolv"
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11929 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <netinet/in.h>
11933 #include <arpa/nameser.h>
11934 #include <resolv.h>
11935 int
11936 main ()
11937 {
11938 return res_init();
11939 ;
11940 return 0;
11941 }
11942 _ACEOF
11943 if ac_fn_c_try_link "$LINENO"; then :
11944 have_res_init=yes
11945 else
11946 have_res_init=no
11947 fi
11948 rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11951 $as_echo "$have_res_init" >&6; }
11952 if test "$have_res_init" = yes ; then
11953 resolv=yes
11954 fi
11955 LIBS="$OLIBS"
11956 fi
11957
11958 if test "$have_res_init" = yes; then
11959
11960 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11961
11962 fi
11963
11964 # Do we need the Hesiod library to provide the support routines?
11965 if test "$with_hesiod" != no ; then
11966 # Don't set $LIBS here -- see comments above.
11967 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
11968 if test "x$ac_cv_func_res_send" = x""yes; then :
11969
11970 else
11971 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
11972 if test "x$ac_cv_func___res_send" = x""yes; then :
11973
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
11976 $as_echo_n "checking for res_send in -lresolv... " >&6; }
11977 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-lresolv $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char res_send ();
11992 int
11993 main ()
11994 {
11995 return res_send ();
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_resolv_res_send=yes
12002 else
12003 ac_cv_lib_resolv_res_send=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12010 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12011 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12012 resolv=yes
12013 else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12015 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12016 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 ac_check_lib_save_LIBS=$LIBS
12020 LIBS="-lresolv $LIBS"
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12023
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 char __res_send ();
12031 int
12032 main ()
12033 {
12034 return __res_send ();
12035 ;
12036 return 0;
12037 }
12038 _ACEOF
12039 if ac_fn_c_try_link "$LINENO"; then :
12040 ac_cv_lib_resolv___res_send=yes
12041 else
12042 ac_cv_lib_resolv___res_send=no
12043 fi
12044 rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12049 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12050 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12051 resolv=yes
12052 fi
12053
12054 fi
12055
12056 fi
12057
12058 fi
12059
12060 if test "$resolv" = yes ; then
12061 RESOLVLIB=-lresolv
12062 else
12063 RESOLVLIB=
12064 fi
12065 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12066 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12067
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12070 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12071 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 ac_check_lib_save_LIBS=$LIBS
12075 LIBS="-lhesiod $RESOLVLIB $LIBS"
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078
12079 /* Override any GCC internal prototype to avoid an error.
12080 Use char because int might match the return type of a GCC
12081 builtin and then its argument prototype would still apply. */
12082 #ifdef __cplusplus
12083 extern "C"
12084 #endif
12085 char hes_getmailhost ();
12086 int
12087 main ()
12088 {
12089 return hes_getmailhost ();
12090 ;
12091 return 0;
12092 }
12093 _ACEOF
12094 if ac_fn_c_try_link "$LINENO"; then :
12095 ac_cv_lib_hesiod_hes_getmailhost=yes
12096 else
12097 ac_cv_lib_hesiod_hes_getmailhost=no
12098 fi
12099 rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12102 fi
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12104 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12105 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12106
12107 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12108
12109 else
12110 :
12111 fi
12112
12113 fi
12114
12115 fi
12116
12117 # Do we need libresolv (due to res_init or Hesiod)?
12118 if test "$resolv" = yes ; then
12119
12120 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12121
12122 fi
12123
12124 # These tell us which Kerberos-related libraries to use.
12125 if test "${with_kerberos}" != no; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12127 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12128 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-lcom_err $LIBS"
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char com_err ();
12143 int
12144 main ()
12145 {
12146 return com_err ();
12147 ;
12148 return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"; then :
12152 ac_cv_lib_com_err_com_err=yes
12153 else
12154 ac_cv_lib_com_err_com_err=no
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12161 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12162 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12163 cat >>confdefs.h <<_ACEOF
12164 #define HAVE_LIBCOM_ERR 1
12165 _ACEOF
12166
12167 LIBS="-lcom_err $LIBS"
12168
12169 fi
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12172 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12173 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 ac_check_lib_save_LIBS=$LIBS
12177 LIBS="-lk5crypto $LIBS"
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180
12181 /* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 char mit_des_cbc_encrypt ();
12188 int
12189 main ()
12190 {
12191 return mit_des_cbc_encrypt ();
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 if ac_fn_c_try_link "$LINENO"; then :
12197 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12198 else
12199 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12204 fi
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12206 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12207 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12208 cat >>confdefs.h <<_ACEOF
12209 #define HAVE_LIBK5CRYPTO 1
12210 _ACEOF
12211
12212 LIBS="-lk5crypto $LIBS"
12213
12214 fi
12215
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12217 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12218 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 ac_check_lib_save_LIBS=$LIBS
12222 LIBS="-lcrypto $LIBS"
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225
12226 /* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12229 #ifdef __cplusplus
12230 extern "C"
12231 #endif
12232 char mit_des_cbc_encrypt ();
12233 int
12234 main ()
12235 {
12236 return mit_des_cbc_encrypt ();
12237 ;
12238 return 0;
12239 }
12240 _ACEOF
12241 if ac_fn_c_try_link "$LINENO"; then :
12242 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12243 else
12244 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12245 fi
12246 rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12251 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12252 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12253 cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBCRYPTO 1
12255 _ACEOF
12256
12257 LIBS="-lcrypto $LIBS"
12258
12259 fi
12260
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12262 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12263 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-lkrb5 $LIBS"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 char krb5_init_context ();
12278 int
12279 main ()
12280 {
12281 return krb5_init_context ();
12282 ;
12283 return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"; then :
12287 ac_cv_lib_krb5_krb5_init_context=yes
12288 else
12289 ac_cv_lib_krb5_krb5_init_context=no
12290 fi
12291 rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12294 fi
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12296 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12297 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12298 cat >>confdefs.h <<_ACEOF
12299 #define HAVE_LIBKRB5 1
12300 _ACEOF
12301
12302 LIBS="-lkrb5 $LIBS"
12303
12304 fi
12305
12306 if test "${with_kerberos5}" = no; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12308 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12309 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 ac_check_lib_save_LIBS=$LIBS
12313 LIBS="-ldes425 $LIBS"
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316
12317 /* Override any GCC internal prototype to avoid an error.
12318 Use char because int might match the return type of a GCC
12319 builtin and then its argument prototype would still apply. */
12320 #ifdef __cplusplus
12321 extern "C"
12322 #endif
12323 char des_cbc_encrypt ();
12324 int
12325 main ()
12326 {
12327 return des_cbc_encrypt ();
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_c_try_link "$LINENO"; then :
12333 ac_cv_lib_des425_des_cbc_encrypt=yes
12334 else
12335 ac_cv_lib_des425_des_cbc_encrypt=no
12336 fi
12337 rm -f core conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
12339 LIBS=$ac_check_lib_save_LIBS
12340 fi
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12342 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12343 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12344 cat >>confdefs.h <<_ACEOF
12345 #define HAVE_LIBDES425 1
12346 _ACEOF
12347
12348 LIBS="-ldes425 $LIBS"
12349
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12352 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12353 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 ac_check_lib_save_LIBS=$LIBS
12357 LIBS="-ldes $LIBS"
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12360
12361 /* Override any GCC internal prototype to avoid an error.
12362 Use char because int might match the return type of a GCC
12363 builtin and then its argument prototype would still apply. */
12364 #ifdef __cplusplus
12365 extern "C"
12366 #endif
12367 char des_cbc_encrypt ();
12368 int
12369 main ()
12370 {
12371 return des_cbc_encrypt ();
12372 ;
12373 return 0;
12374 }
12375 _ACEOF
12376 if ac_fn_c_try_link "$LINENO"; then :
12377 ac_cv_lib_des_des_cbc_encrypt=yes
12378 else
12379 ac_cv_lib_des_des_cbc_encrypt=no
12380 fi
12381 rm -f core conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12386 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12387 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12388 cat >>confdefs.h <<_ACEOF
12389 #define HAVE_LIBDES 1
12390 _ACEOF
12391
12392 LIBS="-ldes $LIBS"
12393
12394 fi
12395
12396 fi
12397
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12399 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12400 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-lkrb4 $LIBS"
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char krb_get_cred ();
12415 int
12416 main ()
12417 {
12418 return krb_get_cred ();
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 ac_cv_lib_krb4_krb_get_cred=yes
12425 else
12426 ac_cv_lib_krb4_krb_get_cred=no
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12431 fi
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12433 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12434 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12435 cat >>confdefs.h <<_ACEOF
12436 #define HAVE_LIBKRB4 1
12437 _ACEOF
12438
12439 LIBS="-lkrb4 $LIBS"
12440
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12443 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12444 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 ac_check_lib_save_LIBS=$LIBS
12448 LIBS="-lkrb $LIBS"
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451
12452 /* Override any GCC internal prototype to avoid an error.
12453 Use char because int might match the return type of a GCC
12454 builtin and then its argument prototype would still apply. */
12455 #ifdef __cplusplus
12456 extern "C"
12457 #endif
12458 char krb_get_cred ();
12459 int
12460 main ()
12461 {
12462 return krb_get_cred ();
12463 ;
12464 return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_link "$LINENO"; then :
12468 ac_cv_lib_krb_krb_get_cred=yes
12469 else
12470 ac_cv_lib_krb_krb_get_cred=no
12471 fi
12472 rm -f core conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12477 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12478 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12479 cat >>confdefs.h <<_ACEOF
12480 #define HAVE_LIBKRB 1
12481 _ACEOF
12482
12483 LIBS="-lkrb $LIBS"
12484
12485 fi
12486
12487 fi
12488
12489 fi
12490
12491 if test "${with_kerberos5}" != no; then
12492 for ac_header in krb5.h
12493 do :
12494 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12495 if test "x$ac_cv_header_krb5_h" = x""yes; then :
12496 cat >>confdefs.h <<_ACEOF
12497 #define HAVE_KRB5_H 1
12498 _ACEOF
12499 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12500 "
12501 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
12502
12503 cat >>confdefs.h <<_ACEOF
12504 #define HAVE_KRB5_ERROR_TEXT 1
12505 _ACEOF
12506
12507
12508 fi
12509 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12510 "
12511 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
12512
12513 cat >>confdefs.h <<_ACEOF
12514 #define HAVE_KRB5_ERROR_E_TEXT 1
12515 _ACEOF
12516
12517
12518 fi
12519
12520 fi
12521
12522 done
12523
12524 else
12525 for ac_header in des.h
12526 do :
12527 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12528 if test "x$ac_cv_header_des_h" = x""yes; then :
12529 cat >>confdefs.h <<_ACEOF
12530 #define HAVE_DES_H 1
12531 _ACEOF
12532
12533 else
12534 for ac_header in kerberosIV/des.h
12535 do :
12536 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12537 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
12538 cat >>confdefs.h <<_ACEOF
12539 #define HAVE_KERBEROSIV_DES_H 1
12540 _ACEOF
12541
12542 else
12543 for ac_header in kerberos/des.h
12544 do :
12545 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12546 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
12547 cat >>confdefs.h <<_ACEOF
12548 #define HAVE_KERBEROS_DES_H 1
12549 _ACEOF
12550
12551 fi
12552
12553 done
12554
12555 fi
12556
12557 done
12558
12559 fi
12560
12561 done
12562
12563 for ac_header in krb.h
12564 do :
12565 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12566 if test "x$ac_cv_header_krb_h" = x""yes; then :
12567 cat >>confdefs.h <<_ACEOF
12568 #define HAVE_KRB_H 1
12569 _ACEOF
12570
12571 else
12572 for ac_header in kerberosIV/krb.h
12573 do :
12574 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12575 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
12576 cat >>confdefs.h <<_ACEOF
12577 #define HAVE_KERBEROSIV_KRB_H 1
12578 _ACEOF
12579
12580 else
12581 for ac_header in kerberos/krb.h
12582 do :
12583 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12584 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
12585 cat >>confdefs.h <<_ACEOF
12586 #define HAVE_KERBEROS_KRB_H 1
12587 _ACEOF
12588
12589 fi
12590
12591 done
12592
12593 fi
12594
12595 done
12596
12597 fi
12598
12599 done
12600
12601 fi
12602 for ac_header in com_err.h
12603 do :
12604 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12605 if test "x$ac_cv_header_com_err_h" = x""yes; then :
12606 cat >>confdefs.h <<_ACEOF
12607 #define HAVE_COM_ERR_H 1
12608 _ACEOF
12609
12610 fi
12611
12612 done
12613
12614 fi
12615
12616 # Solaris requires -lintl if you want strerror (which calls dgettext)
12617 # to return localized messages.
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12619 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12620 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 ac_check_lib_save_LIBS=$LIBS
12624 LIBS="-lintl $LIBS"
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627
12628 /* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
12631 #ifdef __cplusplus
12632 extern "C"
12633 #endif
12634 char dgettext ();
12635 int
12636 main ()
12637 {
12638 return dgettext ();
12639 ;
12640 return 0;
12641 }
12642 _ACEOF
12643 if ac_fn_c_try_link "$LINENO"; then :
12644 ac_cv_lib_intl_dgettext=yes
12645 else
12646 ac_cv_lib_intl_dgettext=no
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 LIBS=$ac_check_lib_save_LIBS
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12653 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12654 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
12655 cat >>confdefs.h <<_ACEOF
12656 #define HAVE_LIBINTL 1
12657 _ACEOF
12658
12659 LIBS="-lintl $LIBS"
12660
12661 fi
12662
12663
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12665 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12666 if test "${emacs_cv_localtime_cache+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 if test x$ac_cv_func_tzset = xyes; then
12670 if test "$cross_compiling" = yes; then :
12671 # If we have tzset, assume the worst when cross-compiling.
12672 emacs_cv_localtime_cache=yes
12673 else
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12676 #include <time.h>
12677 extern char **environ;
12678 unset_TZ ()
12679 {
12680 char **from, **to;
12681 for (to = from = environ; (*to = *from); from++)
12682 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12683 to++;
12684 }
12685 char TZ_GMT0[] = "TZ=GMT0";
12686 char TZ_PST8[] = "TZ=PST8";
12687 main()
12688 {
12689 time_t now = time ((time_t *) 0);
12690 int hour_GMT0, hour_unset;
12691 if (putenv (TZ_GMT0) != 0)
12692 exit (1);
12693 hour_GMT0 = localtime (&now)->tm_hour;
12694 unset_TZ ();
12695 hour_unset = localtime (&now)->tm_hour;
12696 if (putenv (TZ_PST8) != 0)
12697 exit (1);
12698 if (localtime (&now)->tm_hour == hour_GMT0)
12699 exit (1);
12700 unset_TZ ();
12701 if (localtime (&now)->tm_hour != hour_unset)
12702 exit (1);
12703 exit (0);
12704 }
12705 _ACEOF
12706 if ac_fn_c_try_run "$LINENO"; then :
12707 emacs_cv_localtime_cache=no
12708 else
12709 emacs_cv_localtime_cache=yes
12710 fi
12711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12712 conftest.$ac_objext conftest.beam conftest.$ac_ext
12713 fi
12714
12715 else
12716 # If we lack tzset, report that localtime does not cache TZ,
12717 # since we can't invalidate the cache if we don't have tzset.
12718 emacs_cv_localtime_cache=no
12719 fi
12720 fi
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12722 $as_echo "$emacs_cv_localtime_cache" >&6; }
12723 if test $emacs_cv_localtime_cache = yes; then
12724
12725 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12726
12727 fi
12728
12729 if test "x$HAVE_TIMEVAL" = xyes; then
12730 for ac_func in gettimeofday
12731 do :
12732 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12733 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
12734 cat >>confdefs.h <<_ACEOF
12735 #define HAVE_GETTIMEOFDAY 1
12736 _ACEOF
12737
12738 fi
12739 done
12740
12741 if test $ac_cv_func_gettimeofday = yes; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12743 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12744 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749
12750 #ifdef TIME_WITH_SYS_TIME
12751 #include <sys/time.h>
12752 #include <time.h>
12753 #else
12754 #ifdef HAVE_SYS_TIME_H
12755 #include <sys/time.h>
12756 #else
12757 #include <time.h>
12758 #endif
12759 #endif
12760 int
12761 main ()
12762 {
12763 struct timeval time;
12764 gettimeofday (&time, 0);
12765 ;
12766 return 0;
12767 }
12768 _ACEOF
12769 if ac_fn_c_try_compile "$LINENO"; then :
12770 emacs_cv_gettimeofday_two_arguments=yes
12771 else
12772 emacs_cv_gettimeofday_two_arguments=no
12773 fi
12774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775 fi
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12777 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12778 if test $emacs_cv_gettimeofday_two_arguments = no; then
12779
12780 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12781
12782 fi
12783 fi
12784 fi
12785
12786 ok_so_far=yes
12787 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
12788 if test "x$ac_cv_func_socket" = x""yes; then :
12789
12790 else
12791 ok_so_far=no
12792 fi
12793
12794 if test $ok_so_far = yes; then
12795 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12796 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12797
12798 else
12799 ok_so_far=no
12800 fi
12801
12802
12803 fi
12804 if test $ok_so_far = yes; then
12805 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12806 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12807
12808 else
12809 ok_so_far=no
12810 fi
12811
12812
12813 fi
12814 if test $ok_so_far = yes; then
12815
12816 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12817
12818 fi
12819
12820 for ac_header in sys/ioctl.h
12821 do :
12822 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12823 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
12824 cat >>confdefs.h <<_ACEOF
12825 #define HAVE_SYS_IOCTL_H 1
12826 _ACEOF
12827
12828 fi
12829
12830 done
12831
12832
12833 if test -f /usr/lpp/X11/bin/smt.exp; then
12834
12835 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12836
12837 fi
12838
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12840 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12841 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; }
12844
12845 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12846
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12850 fi
12851
12852 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12853 if test "x$ac_cv_type_pid_t" = x""yes; then :
12854
12855 else
12856
12857 cat >>confdefs.h <<_ACEOF
12858 #define pid_t int
12859 _ACEOF
12860
12861 fi
12862
12863 for ac_header in vfork.h
12864 do :
12865 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12866 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12867 cat >>confdefs.h <<_ACEOF
12868 #define HAVE_VFORK_H 1
12869 _ACEOF
12870
12871 fi
12872
12873 done
12874
12875 for ac_func in fork vfork
12876 do :
12877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12878 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12879 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12880 cat >>confdefs.h <<_ACEOF
12881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12882 _ACEOF
12883
12884 fi
12885 done
12886
12887 if test "x$ac_cv_func_fork" = xyes; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12889 $as_echo_n "checking for working fork... " >&6; }
12890 if test "${ac_cv_func_fork_works+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 if test "$cross_compiling" = yes; then :
12894 ac_cv_func_fork_works=cross
12895 else
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898 $ac_includes_default
12899 int
12900 main ()
12901 {
12902
12903 /* By Ruediger Kuhlmann. */
12904 return fork () < 0;
12905
12906 ;
12907 return 0;
12908 }
12909 _ACEOF
12910 if ac_fn_c_try_run "$LINENO"; then :
12911 ac_cv_func_fork_works=yes
12912 else
12913 ac_cv_func_fork_works=no
12914 fi
12915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12916 conftest.$ac_objext conftest.beam conftest.$ac_ext
12917 fi
12918
12919 fi
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12921 $as_echo "$ac_cv_func_fork_works" >&6; }
12922
12923 else
12924 ac_cv_func_fork_works=$ac_cv_func_fork
12925 fi
12926 if test "x$ac_cv_func_fork_works" = xcross; then
12927 case $host in
12928 *-*-amigaos* | *-*-msdosdjgpp*)
12929 # Override, as these systems have only a dummy fork() stub
12930 ac_cv_func_fork_works=no
12931 ;;
12932 *)
12933 ac_cv_func_fork_works=yes
12934 ;;
12935 esac
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12937 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12938 fi
12939 ac_cv_func_vfork_works=$ac_cv_func_vfork
12940 if test "x$ac_cv_func_vfork" = xyes; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12942 $as_echo_n "checking for working vfork... " >&6; }
12943 if test "${ac_cv_func_vfork_works+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 if test "$cross_compiling" = yes; then :
12947 ac_cv_func_vfork_works=cross
12948 else
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951 /* Thanks to Paul Eggert for this test. */
12952 $ac_includes_default
12953 #include <sys/wait.h>
12954 #ifdef HAVE_VFORK_H
12955 # include <vfork.h>
12956 #endif
12957 /* On some sparc systems, changes by the child to local and incoming
12958 argument registers are propagated back to the parent. The compiler
12959 is told about this with #include <vfork.h>, but some compilers
12960 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12961 static variable whose address is put into a register that is
12962 clobbered by the vfork. */
12963 static void
12964 #ifdef __cplusplus
12965 sparc_address_test (int arg)
12966 # else
12967 sparc_address_test (arg) int arg;
12968 #endif
12969 {
12970 static pid_t child;
12971 if (!child) {
12972 child = vfork ();
12973 if (child < 0) {
12974 perror ("vfork");
12975 _exit(2);
12976 }
12977 if (!child) {
12978 arg = getpid();
12979 write(-1, "", 0);
12980 _exit (arg);
12981 }
12982 }
12983 }
12984
12985 int
12986 main ()
12987 {
12988 pid_t parent = getpid ();
12989 pid_t child;
12990
12991 sparc_address_test (0);
12992
12993 child = vfork ();
12994
12995 if (child == 0) {
12996 /* Here is another test for sparc vfork register problems. This
12997 test uses lots of local variables, at least as many local
12998 variables as main has allocated so far including compiler
12999 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13000 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13001 reuse the register of parent for one of the local variables,
13002 since it will think that parent can't possibly be used any more
13003 in this routine. Assigning to the local variable will thus
13004 munge parent in the parent process. */
13005 pid_t
13006 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13007 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13008 /* Convince the compiler that p..p7 are live; otherwise, it might
13009 use the same hardware register for all 8 local variables. */
13010 if (p != p1 || p != p2 || p != p3 || p != p4
13011 || p != p5 || p != p6 || p != p7)
13012 _exit(1);
13013
13014 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13015 from child file descriptors. If the child closes a descriptor
13016 before it execs or exits, this munges the parent's descriptor
13017 as well. Test for this by closing stdout in the child. */
13018 _exit(close(fileno(stdout)) != 0);
13019 } else {
13020 int status;
13021 struct stat st;
13022
13023 while (wait(&status) != child)
13024 ;
13025 return (
13026 /* Was there some problem with vforking? */
13027 child < 0
13028
13029 /* Did the child fail? (This shouldn't happen.) */
13030 || status
13031
13032 /* Did the vfork/compiler bug occur? */
13033 || parent != getpid()
13034
13035 /* Did the file descriptor bug occur? */
13036 || fstat(fileno(stdout), &st) != 0
13037 );
13038 }
13039 }
13040 _ACEOF
13041 if ac_fn_c_try_run "$LINENO"; then :
13042 ac_cv_func_vfork_works=yes
13043 else
13044 ac_cv_func_vfork_works=no
13045 fi
13046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13047 conftest.$ac_objext conftest.beam conftest.$ac_ext
13048 fi
13049
13050 fi
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13052 $as_echo "$ac_cv_func_vfork_works" >&6; }
13053
13054 fi;
13055 if test "x$ac_cv_func_fork_works" = xcross; then
13056 ac_cv_func_vfork_works=$ac_cv_func_vfork
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13058 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13059 fi
13060
13061 if test "x$ac_cv_func_vfork_works" = xyes; then
13062
13063 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13064
13065 else
13066
13067 $as_echo "#define vfork fork" >>confdefs.h
13068
13069 fi
13070 if test "x$ac_cv_func_fork_works" = xyes; then
13071
13072 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13073
13074 fi
13075
13076
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13078 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13079 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13084 #include <langinfo.h>
13085 int
13086 main ()
13087 {
13088 char* cs = nl_langinfo(CODESET);
13089 ;
13090 return 0;
13091 }
13092 _ACEOF
13093 if ac_fn_c_try_link "$LINENO"; then :
13094 emacs_cv_langinfo_codeset=yes
13095 else
13096 emacs_cv_langinfo_codeset=no
13097 fi
13098 rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13103 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13104 if test $emacs_cv_langinfo_codeset = yes; then
13105
13106 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13107
13108 fi
13109
13110 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13111 if test "x$ac_cv_type_size_t" = x""yes; then :
13112
13113 cat >>confdefs.h <<_ACEOF
13114 #define HAVE_SIZE_T 1
13115 _ACEOF
13116
13117
13118 fi
13119
13120
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13122 $as_echo_n "checking for mbstate_t... " >&6; }
13123 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 $ac_includes_default
13129 # include <wchar.h>
13130 int
13131 main ()
13132 {
13133 mbstate_t x; return sizeof x;
13134 ;
13135 return 0;
13136 }
13137 _ACEOF
13138 if ac_fn_c_try_compile "$LINENO"; then :
13139 ac_cv_type_mbstate_t=yes
13140 else
13141 ac_cv_type_mbstate_t=no
13142 fi
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 fi
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13146 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13147 if test $ac_cv_type_mbstate_t = yes; then
13148
13149 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13150
13151 else
13152
13153 $as_echo "#define mbstate_t int" >>confdefs.h
13154
13155 fi
13156
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13158 $as_echo_n "checking for C restrict keyword... " >&6; }
13159 if test "${emacs_cv_c_restrict+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164 void fred (int *restrict x);
13165 int
13166 main ()
13167 {
13168
13169 ;
13170 return 0;
13171 }
13172 _ACEOF
13173 if ac_fn_c_try_compile "$LINENO"; then :
13174 emacs_cv_c_restrict=yes
13175 else
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13178 void fred (int *__restrict x);
13179 int
13180 main ()
13181 {
13182
13183 ;
13184 return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_compile "$LINENO"; then :
13188 emacs_cv_c_restrict=__restrict
13189 else
13190 emacs_cv_c_restrict=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13195 fi
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13197 $as_echo "$emacs_cv_c_restrict" >&6; }
13198 case "$emacs_cv_c_restrict" in
13199 yes) emacs_restrict=restrict;;
13200 no) emacs_restrict="";;
13201 *) emacs_restrict="$emacs_cv_c_restrict";;
13202 esac
13203 if test "$emacs_restrict" != __restrict; then
13204
13205 cat >>confdefs.h <<_ACEOF
13206 #define __restrict $emacs_restrict
13207 _ACEOF
13208
13209 fi
13210
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13212 $as_echo_n "checking for C restricted array declarations... " >&6; }
13213 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 void fred (int x[__restrict]);
13219 int
13220 main ()
13221 {
13222
13223 ;
13224 return 0;
13225 }
13226 _ACEOF
13227 if ac_fn_c_try_compile "$LINENO"; then :
13228 emacs_cv_c_restrict_arr=yes
13229 else
13230 emacs_cv_c_restrict_arr=no
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233 fi
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13235 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13236 if test "$emacs_cv_c_restrict_arr" = yes; then
13237
13238 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13239
13240 fi
13241
13242
13243
13244 # Set up the CFLAGS for real compilation, so we can substitute it.
13245 CFLAGS="$REAL_CFLAGS"
13246 CPPFLAGS="$REAL_CPPFLAGS"
13247
13248 ## Hack to detect a buggy GCC version.
13249 if test "x$GCC" = xyes \
13250 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13251 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13252 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13253 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13254 fi
13255
13256 #### Find out which version of Emacs this is.
13257 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13258 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13259 if test x"${version}" = x; then
13260 as_fn_error $? "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13261 fi
13262 if test x"${version}" != x"$PACKAGE_VERSION"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13264 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13265 fi
13266
13267 ### Specify what sort of things we'll be editing into Makefile and config.h.
13268 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313 cat >>confdefs.h <<_ACEOF
13314 #define EMACS_CONFIGURATION "${canonical}"
13315 _ACEOF
13316
13317
13318 cat >>confdefs.h <<_ACEOF
13319 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13320 _ACEOF
13321
13322
13323 cat >>confdefs.h <<_ACEOF
13324 #define config_machfile "${machfile}"
13325 _ACEOF
13326
13327
13328 cat >>confdefs.h <<_ACEOF
13329 #define config_opsysfile "${opsysfile}"
13330 _ACEOF
13331
13332
13333 cat >>confdefs.h <<_ACEOF
13334 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13335 _ACEOF
13336
13337
13338 cat >>confdefs.h <<_ACEOF
13339 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13340 _ACEOF
13341
13342
13343 cat >>confdefs.h <<_ACEOF
13344 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13345 _ACEOF
13346
13347
13348 cat >>confdefs.h <<_ACEOF
13349 #define UNEXEC_SRC ${UNEXEC_SRC}
13350 _ACEOF
13351
13352
13353 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13354
13355 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13356
13357 fi
13358 if test "${USE_X_TOOLKIT}" != "none" ; then
13359
13360 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13361
13362 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13363
13364 $as_echo "#define USE_LUCID 1" >>confdefs.h
13365
13366 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13367
13368 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13369
13370 fi
13371 fi
13372 if test "${HAVE_X11}" = "yes" ; then
13373
13374 $as_echo "#define HAVE_X11 1" >>confdefs.h
13375
13376 fi
13377 if test "${HAVE_MENUS}" = "yes" ; then
13378
13379 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13380
13381 fi
13382 if test "${GNU_MALLOC}" = "yes" ; then
13383
13384 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13385
13386 fi
13387 if test "${REL_ALLOC}" = "yes" ; then
13388
13389 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13390
13391 fi
13392
13393
13394
13395
13396 #### Report on what we decided to do.
13397 #### Report GTK as a toolkit, even if it doesn't use Xt.
13398 #### It makes printing result more understandable as using GTK sets
13399 #### toolkit_scroll_bars to yes by default.
13400 if test "${HAVE_GTK}" = "yes"; then
13401 USE_X_TOOLKIT=GTK
13402 fi
13403
13404 echo "
13405 Configured for \`${canonical}'.
13406
13407 Where should the build process find the source code? ${srcdir}
13408 What operating system and machine description files should Emacs use?
13409 \`${opsysfile}' and \`${machfile}'
13410 What compiler should emacs be built with? ${CC} ${CFLAGS}
13411 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13412 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13413 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13414 What window system should Emacs use? ${window_system}
13415 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13416
13417 if test -n "${x_includes}"; then
13418 echo " Where do we find X Windows header files? ${x_includes}"
13419 else
13420 echo " Where do we find X Windows header files? Standard dirs"
13421 fi
13422 if test -n "${x_libraries}"; then
13423 echo " Where do we find X Windows libraries? ${x_libraries}"
13424 else
13425 echo " Where do we find X Windows libraries? Standard dirs"
13426 fi
13427
13428 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13429 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13430 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13431 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13432 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
13433 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13434 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13435 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13436 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13437 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13438
13439 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13440 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13441 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13442 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13443
13444 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13445 echo
13446
13447 if test $USE_XASSERTS = yes; then
13448 echo " Compiling with asserts turned on."
13449 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
13450 fi
13451
13452 echo
13453
13454 if test "$HAVE_NS" = "yes"; then
13455 echo
13456 echo "You must run \"make install\" in order to test the built application.
13457 The installed application will go to nextstep/Emacs.app and can be
13458 run or moved from there."
13459 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13460 echo "The application will be fully self-contained."
13461 else
13462 echo "The lisp resources for the application will be installed under ${prefix}.
13463 You may need to run \"make install\" with sudo. The application will fail
13464 to run if these resources are not installed."
13465 fi
13466 echo
13467 fi
13468
13469
13470 # Remove any trailing slashes in these variables.
13471 test "${prefix}" != NONE &&
13472 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13473 test "${exec_prefix}" != NONE &&
13474 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13475
13476 # Now get this: Some word that is part of the ${srcdir} directory name
13477 # or the ${configuration} value might, just might, happen to be an
13478 # identifier like `sun4' or `i386' or something, and be predefined by
13479 # the C preprocessor to some helpful value like 1, or maybe the empty
13480 # string. Needless to say consequent macro substitutions are less
13481 # than conducive to the makefile finding the correct directory.
13482 cpp_undefs="`echo $srcdir $configuration $canonical unix |
13483 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13484 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13485
13486 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13487 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13488 ## from Makefile.c can correctly provide the arg `-traditional' to the
13489 ## C preprocessor.
13490
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492 /* end confdefs.h. */
13493 yes..yes
13494 _ACEOF
13495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13496 $EGREP "yes..yes" >/dev/null 2>&1; then :
13497 CPP_NEED_TRADITIONAL=no
13498 else
13499 CPP_NEED_TRADITIONAL=yes
13500 fi
13501 rm -f conftest*
13502
13503
13504 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"
13505
13506 ac_config_commands="$ac_config_commands default"
13507
13508 cat >confcache <<\_ACEOF
13509 # This file is a shell script that caches the results of configure
13510 # tests run on this system so they can be shared between configure
13511 # scripts and configure runs, see configure's option --config-cache.
13512 # It is not useful on other systems. If it contains results you don't
13513 # want to keep, you may remove or edit it.
13514 #
13515 # config.status only pays attention to the cache file if you give it
13516 # the --recheck option to rerun configure.
13517 #
13518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13520 # following values.
13521
13522 _ACEOF
13523
13524 # The following way of writing the cache mishandles newlines in values,
13525 # but we know of no workaround that is simple, portable, and efficient.
13526 # So, we kill variables containing newlines.
13527 # Ultrix sh set writes to stderr and can't be redirected directly,
13528 # and sets the high bit in the cache file unless we assign to the vars.
13529 (
13530 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13531 eval ac_val=\$$ac_var
13532 case $ac_val in #(
13533 *${as_nl}*)
13534 case $ac_var in #(
13535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13537 esac
13538 case $ac_var in #(
13539 _ | IFS | as_nl) ;; #(
13540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13541 *) { eval $ac_var=; unset $ac_var;} ;;
13542 esac ;;
13543 esac
13544 done
13545
13546 (set) 2>&1 |
13547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13548 *${as_nl}ac_space=\ *)
13549 # `set' does not quote correctly, so add quotes: double-quote
13550 # substitution turns \\\\ into \\, and sed turns \\ into \.
13551 sed -n \
13552 "s/'/'\\\\''/g;
13553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13554 ;; #(
13555 *)
13556 # `set' quotes correctly as required by POSIX, so do not add quotes.
13557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13558 ;;
13559 esac |
13560 sort
13561 ) |
13562 sed '
13563 /^ac_cv_env_/b end
13564 t clear
13565 :clear
13566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13567 t end
13568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13569 :end' >>confcache
13570 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13571 if test -w "$cache_file"; then
13572 test "x$cache_file" != "x/dev/null" &&
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13574 $as_echo "$as_me: updating cache $cache_file" >&6;}
13575 cat confcache >$cache_file
13576 else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13578 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13579 fi
13580 fi
13581 rm -f confcache
13582
13583 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13584 # Let make expand exec_prefix.
13585 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13586
13587 DEFS=-DHAVE_CONFIG_H
13588
13589 ac_libobjs=
13590 ac_ltlibobjs=
13591 U=
13592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13593 # 1. Remove the extension, and $U if already installed.
13594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13595 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13597 # will be set to the directory where LIBOBJS objects are built.
13598 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13599 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13600 done
13601 LIBOBJS=$ac_libobjs
13602
13603 LTLIBOBJS=$ac_ltlibobjs
13604
13605
13606
13607 : ${CONFIG_STATUS=./config.status}
13608 ac_write_fail=0
13609 ac_clean_files_save=$ac_clean_files
13610 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13612 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13613 as_write_fail=0
13614 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13615 #! $SHELL
13616 # Generated by $as_me.
13617 # Run this file to recreate the current configuration.
13618 # Compiler output produced by configure, useful for debugging
13619 # configure, is in config.log if it exists.
13620
13621 debug=false
13622 ac_cs_recheck=false
13623 ac_cs_silent=false
13624
13625 SHELL=\${CONFIG_SHELL-$SHELL}
13626 export SHELL
13627 _ASEOF
13628 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13629 ## -------------------- ##
13630 ## M4sh Initialization. ##
13631 ## -------------------- ##
13632
13633 # Be more Bourne compatible
13634 DUALCASE=1; export DUALCASE # for MKS sh
13635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13636 emulate sh
13637 NULLCMD=:
13638 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13639 # is contrary to our usage. Disable this feature.
13640 alias -g '${1+"$@"}'='"$@"'
13641 setopt NO_GLOB_SUBST
13642 else
13643 case `(set -o) 2>/dev/null` in #(
13644 *posix*) :
13645 set -o posix ;; #(
13646 *) :
13647 ;;
13648 esac
13649 fi
13650
13651
13652 as_nl='
13653 '
13654 export as_nl
13655 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13656 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13657 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13658 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13659 # Prefer a ksh shell builtin over an external printf program on Solaris,
13660 # but without wasting forks for bash or zsh.
13661 if test -z "$BASH_VERSION$ZSH_VERSION" \
13662 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13663 as_echo='print -r --'
13664 as_echo_n='print -rn --'
13665 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13666 as_echo='printf %s\n'
13667 as_echo_n='printf %s'
13668 else
13669 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13670 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13671 as_echo_n='/usr/ucb/echo -n'
13672 else
13673 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13674 as_echo_n_body='eval
13675 arg=$1;
13676 case $arg in #(
13677 *"$as_nl"*)
13678 expr "X$arg" : "X\\(.*\\)$as_nl";
13679 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13680 esac;
13681 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13682 '
13683 export as_echo_n_body
13684 as_echo_n='sh -c $as_echo_n_body as_echo'
13685 fi
13686 export as_echo_body
13687 as_echo='sh -c $as_echo_body as_echo'
13688 fi
13689
13690 # The user is always right.
13691 if test "${PATH_SEPARATOR+set}" != set; then
13692 PATH_SEPARATOR=:
13693 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13694 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13695 PATH_SEPARATOR=';'
13696 }
13697 fi
13698
13699
13700 # IFS
13701 # We need space, tab and new line, in precisely that order. Quoting is
13702 # there to prevent editors from complaining about space-tab.
13703 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13704 # splitting by setting IFS to empty value.)
13705 IFS=" "" $as_nl"
13706
13707 # Find who we are. Look in the path if we contain no directory separator.
13708 case $0 in #((
13709 *[\\/]* ) as_myself=$0 ;;
13710 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH
13712 do
13713 IFS=$as_save_IFS
13714 test -z "$as_dir" && as_dir=.
13715 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13716 done
13717 IFS=$as_save_IFS
13718
13719 ;;
13720 esac
13721 # We did not find ourselves, most probably we were run as `sh COMMAND'
13722 # in which case we are not to be found in the path.
13723 if test "x$as_myself" = x; then
13724 as_myself=$0
13725 fi
13726 if test ! -f "$as_myself"; then
13727 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13728 exit 1
13729 fi
13730
13731 # Unset variables that we do not need and which cause bugs (e.g. in
13732 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13733 # suppresses any "Segmentation fault" message there. '((' could
13734 # trigger a bug in pdksh 5.2.14.
13735 for as_var in BASH_ENV ENV MAIL MAILPATH
13736 do eval test x\${$as_var+set} = xset \
13737 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13738 done
13739 PS1='$ '
13740 PS2='> '
13741 PS4='+ '
13742
13743 # NLS nuisances.
13744 LC_ALL=C
13745 export LC_ALL
13746 LANGUAGE=C
13747 export LANGUAGE
13748
13749 # CDPATH.
13750 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13751
13752
13753 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13754 # ----------------------------------------
13755 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13756 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13757 # script with STATUS, using 1 if that was 0.
13758 as_fn_error ()
13759 {
13760 as_status=$1; test $as_status -eq 0 && as_status=1
13761 if test "$4"; then
13762 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13763 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13764 fi
13765 $as_echo "$as_me: error: $2" >&2
13766 as_fn_exit $as_status
13767 } # as_fn_error
13768
13769
13770 # as_fn_set_status STATUS
13771 # -----------------------
13772 # Set $? to STATUS, without forking.
13773 as_fn_set_status ()
13774 {
13775 return $1
13776 } # as_fn_set_status
13777
13778 # as_fn_exit STATUS
13779 # -----------------
13780 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13781 as_fn_exit ()
13782 {
13783 set +e
13784 as_fn_set_status $1
13785 exit $1
13786 } # as_fn_exit
13787
13788 # as_fn_unset VAR
13789 # ---------------
13790 # Portably unset VAR.
13791 as_fn_unset ()
13792 {
13793 { eval $1=; unset $1;}
13794 }
13795 as_unset=as_fn_unset
13796 # as_fn_append VAR VALUE
13797 # ----------------------
13798 # Append the text in VALUE to the end of the definition contained in VAR. Take
13799 # advantage of any shell optimizations that allow amortized linear growth over
13800 # repeated appends, instead of the typical quadratic growth present in naive
13801 # implementations.
13802 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13803 eval 'as_fn_append ()
13804 {
13805 eval $1+=\$2
13806 }'
13807 else
13808 as_fn_append ()
13809 {
13810 eval $1=\$$1\$2
13811 }
13812 fi # as_fn_append
13813
13814 # as_fn_arith ARG...
13815 # ------------------
13816 # Perform arithmetic evaluation on the ARGs, and store the result in the
13817 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13818 # must be portable across $(()) and expr.
13819 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13820 eval 'as_fn_arith ()
13821 {
13822 as_val=$(( $* ))
13823 }'
13824 else
13825 as_fn_arith ()
13826 {
13827 as_val=`expr "$@" || test $? -eq 1`
13828 }
13829 fi # as_fn_arith
13830
13831
13832 if expr a : '\(a\)' >/dev/null 2>&1 &&
13833 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13834 as_expr=expr
13835 else
13836 as_expr=false
13837 fi
13838
13839 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13840 as_basename=basename
13841 else
13842 as_basename=false
13843 fi
13844
13845 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13846 as_dirname=dirname
13847 else
13848 as_dirname=false
13849 fi
13850
13851 as_me=`$as_basename -- "$0" ||
13852 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13853 X"$0" : 'X\(//\)$' \| \
13854 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13855 $as_echo X/"$0" |
13856 sed '/^.*\/\([^/][^/]*\)\/*$/{
13857 s//\1/
13858 q
13859 }
13860 /^X\/\(\/\/\)$/{
13861 s//\1/
13862 q
13863 }
13864 /^X\/\(\/\).*/{
13865 s//\1/
13866 q
13867 }
13868 s/.*/./; q'`
13869
13870 # Avoid depending upon Character Ranges.
13871 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13872 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13873 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13874 as_cr_digits='0123456789'
13875 as_cr_alnum=$as_cr_Letters$as_cr_digits
13876
13877 ECHO_C= ECHO_N= ECHO_T=
13878 case `echo -n x` in #(((((
13879 -n*)
13880 case `echo 'xy\c'` in
13881 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13882 xy) ECHO_C='\c';;
13883 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13884 ECHO_T=' ';;
13885 esac;;
13886 *)
13887 ECHO_N='-n';;
13888 esac
13889
13890 rm -f conf$$ conf$$.exe conf$$.file
13891 if test -d conf$$.dir; then
13892 rm -f conf$$.dir/conf$$.file
13893 else
13894 rm -f conf$$.dir
13895 mkdir conf$$.dir 2>/dev/null
13896 fi
13897 if (echo >conf$$.file) 2>/dev/null; then
13898 if ln -s conf$$.file conf$$ 2>/dev/null; then
13899 as_ln_s='ln -s'
13900 # ... but there are two gotchas:
13901 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13902 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13903 # In both cases, we have to default to `cp -p'.
13904 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13905 as_ln_s='cp -p'
13906 elif ln conf$$.file conf$$ 2>/dev/null; then
13907 as_ln_s=ln
13908 else
13909 as_ln_s='cp -p'
13910 fi
13911 else
13912 as_ln_s='cp -p'
13913 fi
13914 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13915 rmdir conf$$.dir 2>/dev/null
13916
13917
13918 # as_fn_mkdir_p
13919 # -------------
13920 # Create "$as_dir" as a directory, including parents if necessary.
13921 as_fn_mkdir_p ()
13922 {
13923
13924 case $as_dir in #(
13925 -*) as_dir=./$as_dir;;
13926 esac
13927 test -d "$as_dir" || eval $as_mkdir_p || {
13928 as_dirs=
13929 while :; do
13930 case $as_dir in #(
13931 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13932 *) as_qdir=$as_dir;;
13933 esac
13934 as_dirs="'$as_qdir' $as_dirs"
13935 as_dir=`$as_dirname -- "$as_dir" ||
13936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13937 X"$as_dir" : 'X\(//\)[^/]' \| \
13938 X"$as_dir" : 'X\(//\)$' \| \
13939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13940 $as_echo X"$as_dir" |
13941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13942 s//\1/
13943 q
13944 }
13945 /^X\(\/\/\)[^/].*/{
13946 s//\1/
13947 q
13948 }
13949 /^X\(\/\/\)$/{
13950 s//\1/
13951 q
13952 }
13953 /^X\(\/\).*/{
13954 s//\1/
13955 q
13956 }
13957 s/.*/./; q'`
13958 test -d "$as_dir" && break
13959 done
13960 test -z "$as_dirs" || eval "mkdir $as_dirs"
13961 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13962
13963
13964 } # as_fn_mkdir_p
13965 if mkdir -p . 2>/dev/null; then
13966 as_mkdir_p='mkdir -p "$as_dir"'
13967 else
13968 test -d ./-p && rmdir ./-p
13969 as_mkdir_p=false
13970 fi
13971
13972 if test -x / >/dev/null 2>&1; then
13973 as_test_x='test -x'
13974 else
13975 if ls -dL / >/dev/null 2>&1; then
13976 as_ls_L_option=L
13977 else
13978 as_ls_L_option=
13979 fi
13980 as_test_x='
13981 eval sh -c '\''
13982 if test -d "$1"; then
13983 test -d "$1/.";
13984 else
13985 case $1 in #(
13986 -*)set "./$1";;
13987 esac;
13988 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13989 ???[sx]*):;;*)false;;esac;fi
13990 '\'' sh
13991 '
13992 fi
13993 as_executable_p=$as_test_x
13994
13995 # Sed expression to map a string onto a valid CPP name.
13996 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13997
13998 # Sed expression to map a string onto a valid variable name.
13999 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14000
14001
14002 exec 6>&1
14003 ## ----------------------------------- ##
14004 ## Main body of $CONFIG_STATUS script. ##
14005 ## ----------------------------------- ##
14006 _ASEOF
14007 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14008
14009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010 # Save the log message, to keep $0 and so on meaningful, and to
14011 # report actual input values of CONFIG_FILES etc. instead of their
14012 # values after options handling.
14013 ac_log="
14014 This file was extended by emacs $as_me 23.2.92, which was
14015 generated by GNU Autoconf 2.67. Invocation command line was
14016
14017 CONFIG_FILES = $CONFIG_FILES
14018 CONFIG_HEADERS = $CONFIG_HEADERS
14019 CONFIG_LINKS = $CONFIG_LINKS
14020 CONFIG_COMMANDS = $CONFIG_COMMANDS
14021 $ $0 $@
14022
14023 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14024 "
14025
14026 _ACEOF
14027
14028 case $ac_config_files in *"
14029 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14030 esac
14031
14032 case $ac_config_headers in *"
14033 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14034 esac
14035
14036
14037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14038 # Files that config.status was made for.
14039 config_files="$ac_config_files"
14040 config_headers="$ac_config_headers"
14041 config_commands="$ac_config_commands"
14042
14043 _ACEOF
14044
14045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14046 ac_cs_usage="\
14047 \`$as_me' instantiates files and other configuration actions
14048 from templates according to the current configuration. Unless the files
14049 and actions are specified as TAGs, all are instantiated by default.
14050
14051 Usage: $0 [OPTION]... [TAG]...
14052
14053 -h, --help print this help, then exit
14054 -V, --version print version number and configuration settings, then exit
14055 --config print configuration, then exit
14056 -q, --quiet, --silent
14057 do not print progress messages
14058 -d, --debug don't remove temporary files
14059 --recheck update $as_me by reconfiguring in the same conditions
14060 --file=FILE[:TEMPLATE]
14061 instantiate the configuration file FILE
14062 --header=FILE[:TEMPLATE]
14063 instantiate the configuration header FILE
14064
14065 Configuration files:
14066 $config_files
14067
14068 Configuration headers:
14069 $config_headers
14070
14071 Configuration commands:
14072 $config_commands
14073
14074 Report bugs to the package provider."
14075
14076 _ACEOF
14077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14078 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14079 ac_cs_version="\\
14080 emacs config.status 23.2.92
14081 configured by $0, generated by GNU Autoconf 2.67,
14082 with options \\"\$ac_cs_config\\"
14083
14084 Copyright (C) 2010 Free Software Foundation, Inc.
14085 This config.status script is free software; the Free Software Foundation
14086 gives unlimited permission to copy, distribute and modify it."
14087
14088 ac_pwd='$ac_pwd'
14089 srcdir='$srcdir'
14090 INSTALL='$INSTALL'
14091 test -n "\$AWK" || AWK=awk
14092 _ACEOF
14093
14094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14095 # The default lists apply if the user does not specify any file.
14096 ac_need_defaults=:
14097 while test $# != 0
14098 do
14099 case $1 in
14100 --*=?*)
14101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14103 ac_shift=:
14104 ;;
14105 --*=)
14106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14107 ac_optarg=
14108 ac_shift=:
14109 ;;
14110 *)
14111 ac_option=$1
14112 ac_optarg=$2
14113 ac_shift=shift
14114 ;;
14115 esac
14116
14117 case $ac_option in
14118 # Handling of the options.
14119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14120 ac_cs_recheck=: ;;
14121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14122 $as_echo "$ac_cs_version"; exit ;;
14123 --config | --confi | --conf | --con | --co | --c )
14124 $as_echo "$ac_cs_config"; exit ;;
14125 --debug | --debu | --deb | --de | --d | -d )
14126 debug=: ;;
14127 --file | --fil | --fi | --f )
14128 $ac_shift
14129 case $ac_optarg in
14130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14131 '') as_fn_error $? "missing file argument" ;;
14132 esac
14133 as_fn_append CONFIG_FILES " '$ac_optarg'"
14134 ac_need_defaults=false;;
14135 --header | --heade | --head | --hea )
14136 $ac_shift
14137 case $ac_optarg in
14138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14139 esac
14140 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14141 ac_need_defaults=false;;
14142 --he | --h)
14143 # Conflict between --help and --header
14144 as_fn_error $? "ambiguous option: \`$1'
14145 Try \`$0 --help' for more information.";;
14146 --help | --hel | -h )
14147 $as_echo "$ac_cs_usage"; exit ;;
14148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14150 ac_cs_silent=: ;;
14151
14152 # This is an error.
14153 -*) as_fn_error $? "unrecognized option: \`$1'
14154 Try \`$0 --help' for more information." ;;
14155
14156 *) as_fn_append ac_config_targets " $1"
14157 ac_need_defaults=false ;;
14158
14159 esac
14160 shift
14161 done
14162
14163 ac_configure_extra_args=
14164
14165 if $ac_cs_silent; then
14166 exec 6>/dev/null
14167 ac_configure_extra_args="$ac_configure_extra_args --silent"
14168 fi
14169
14170 _ACEOF
14171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14172 if \$ac_cs_recheck; then
14173 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14174 shift
14175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14176 CONFIG_SHELL='$SHELL'
14177 export CONFIG_SHELL
14178 exec "\$@"
14179 fi
14180
14181 _ACEOF
14182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14183 exec 5>>config.log
14184 {
14185 echo
14186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14187 ## Running $as_me. ##
14188 _ASBOX
14189 $as_echo "$ac_log"
14190 } >&5
14191
14192 _ACEOF
14193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14194 #
14195 # INIT-COMMANDS
14196 #
14197 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14198
14199 _ACEOF
14200
14201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14202
14203 # Handling of arguments.
14204 for ac_config_target in $ac_config_targets
14205 do
14206 case $ac_config_target in
14207 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14208 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14209 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14210 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14211 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14212 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14213 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14214 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14215 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14216 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14217 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14218 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14219 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14220
14221 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14222 esac
14223 done
14224
14225
14226 # If the user did not use the arguments to specify the items to instantiate,
14227 # then the envvar interface is used. Set only those that are not.
14228 # We use the long form for the default assignment because of an extremely
14229 # bizarre bug on SunOS 4.1.3.
14230 if $ac_need_defaults; then
14231 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14232 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14234 fi
14235
14236 # Have a temporary directory for convenience. Make it in the build tree
14237 # simply because there is no reason against having it here, and in addition,
14238 # creating and moving files from /tmp can sometimes cause problems.
14239 # Hook for its removal unless debugging.
14240 # Note that there is a small window in which the directory will not be cleaned:
14241 # after its creation but before its name has been assigned to `$tmp'.
14242 $debug ||
14243 {
14244 tmp=
14245 trap 'exit_status=$?
14246 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14247 ' 0
14248 trap 'as_fn_exit 1' 1 2 13 15
14249 }
14250 # Create a (secure) tmp directory for tmp files.
14251
14252 {
14253 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14254 test -n "$tmp" && test -d "$tmp"
14255 } ||
14256 {
14257 tmp=./conf$$-$RANDOM
14258 (umask 077 && mkdir "$tmp")
14259 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14260
14261 # Set up the scripts for CONFIG_FILES section.
14262 # No need to generate them if there are no CONFIG_FILES.
14263 # This happens for instance with `./config.status config.h'.
14264 if test -n "$CONFIG_FILES"; then
14265
14266
14267 ac_cr=`echo X | tr X '\015'`
14268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14269 # But we know of no other shell where ac_cr would be empty at this
14270 # point, so we can use a bashism as a fallback.
14271 if test "x$ac_cr" = x; then
14272 eval ac_cr=\$\'\\r\'
14273 fi
14274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14276 ac_cs_awk_cr='\\r'
14277 else
14278 ac_cs_awk_cr=$ac_cr
14279 fi
14280
14281 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14282 _ACEOF
14283
14284
14285 {
14286 echo "cat >conf$$subs.awk <<_ACEOF" &&
14287 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14288 echo "_ACEOF"
14289 } >conf$$subs.sh ||
14290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14291 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14292 ac_delim='%!_!# '
14293 for ac_last_try in false false false false false :; do
14294 . ./conf$$subs.sh ||
14295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14296
14297 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14298 if test $ac_delim_n = $ac_delim_num; then
14299 break
14300 elif $ac_last_try; then
14301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14302 else
14303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14304 fi
14305 done
14306 rm -f conf$$subs.sh
14307
14308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14309 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14310 _ACEOF
14311 sed -n '
14312 h
14313 s/^/S["/; s/!.*/"]=/
14314 p
14315 g
14316 s/^[^!]*!//
14317 :repl
14318 t repl
14319 s/'"$ac_delim"'$//
14320 t delim
14321 :nl
14322 h
14323 s/\(.\{148\}\)..*/\1/
14324 t more1
14325 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14326 p
14327 n
14328 b repl
14329 :more1
14330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14331 p
14332 g
14333 s/.\{148\}//
14334 t nl
14335 :delim
14336 h
14337 s/\(.\{148\}\)..*/\1/
14338 t more2
14339 s/["\\]/\\&/g; s/^/"/; s/$/"/
14340 p
14341 b
14342 :more2
14343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14344 p
14345 g
14346 s/.\{148\}//
14347 t delim
14348 ' <conf$$subs.awk | sed '
14349 /^[^""]/{
14350 N
14351 s/\n//
14352 }
14353 ' >>$CONFIG_STATUS || ac_write_fail=1
14354 rm -f conf$$subs.awk
14355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14356 _ACAWK
14357 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14358 for (key in S) S_is_set[key] = 1
14359 FS = "\a"
14360
14361 }
14362 {
14363 line = $ 0
14364 nfields = split(line, field, "@")
14365 substed = 0
14366 len = length(field[1])
14367 for (i = 2; i < nfields; i++) {
14368 key = field[i]
14369 keylen = length(key)
14370 if (S_is_set[key]) {
14371 value = S[key]
14372 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14373 len += length(value) + length(field[++i])
14374 substed = 1
14375 } else
14376 len += 1 + keylen
14377 }
14378
14379 print line
14380 }
14381
14382 _ACAWK
14383 _ACEOF
14384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14385 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14387 else
14388 cat
14389 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14390 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14391 _ACEOF
14392
14393 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14394 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14395 # trailing colons and then remove the whole line if VPATH becomes empty
14396 # (actually we leave an empty line to preserve line numbers).
14397 if test "x$srcdir" = x.; then
14398 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14399 h
14400 s///
14401 s/^/:/
14402 s/[ ]*$/:/
14403 s/:\$(srcdir):/:/g
14404 s/:\${srcdir}:/:/g
14405 s/:@srcdir@:/:/g
14406 s/^:*//
14407 s/:*$//
14408 x
14409 s/\(=[ ]*\).*/\1/
14410 G
14411 s/\n//
14412 s/^[^=]*=[ ]*$//
14413 }'
14414 fi
14415
14416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14417 fi # test -n "$CONFIG_FILES"
14418
14419 # Set up the scripts for CONFIG_HEADERS section.
14420 # No need to generate them if there are no CONFIG_HEADERS.
14421 # This happens for instance with `./config.status Makefile'.
14422 if test -n "$CONFIG_HEADERS"; then
14423 cat >"$tmp/defines.awk" <<\_ACAWK ||
14424 BEGIN {
14425 _ACEOF
14426
14427 # Transform confdefs.h into an awk script `defines.awk', embedded as
14428 # here-document in config.status, that substitutes the proper values into
14429 # config.h.in to produce config.h.
14430
14431 # Create a delimiter string that does not exist in confdefs.h, to ease
14432 # handling of long lines.
14433 ac_delim='%!_!# '
14434 for ac_last_try in false false :; do
14435 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14436 if test -z "$ac_t"; then
14437 break
14438 elif $ac_last_try; then
14439 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14440 else
14441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14442 fi
14443 done
14444
14445 # For the awk script, D is an array of macro values keyed by name,
14446 # likewise P contains macro parameters if any. Preserve backslash
14447 # newline sequences.
14448
14449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14450 sed -n '
14451 s/.\{148\}/&'"$ac_delim"'/g
14452 t rset
14453 :rset
14454 s/^[ ]*#[ ]*define[ ][ ]*/ /
14455 t def
14456 d
14457 :def
14458 s/\\$//
14459 t bsnl
14460 s/["\\]/\\&/g
14461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14462 D["\1"]=" \3"/p
14463 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14464 d
14465 :bsnl
14466 s/["\\]/\\&/g
14467 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14468 D["\1"]=" \3\\\\\\n"\\/p
14469 t cont
14470 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14471 t cont
14472 d
14473 :cont
14474 n
14475 s/.\{148\}/&'"$ac_delim"'/g
14476 t clear
14477 :clear
14478 s/\\$//
14479 t bsnlc
14480 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14481 d
14482 :bsnlc
14483 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14484 b cont
14485 ' <confdefs.h | sed '
14486 s/'"$ac_delim"'/"\\\
14487 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14488
14489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14490 for (key in D) D_is_set[key] = 1
14491 FS = "\a"
14492 }
14493 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14494 line = \$ 0
14495 split(line, arg, " ")
14496 if (arg[1] == "#") {
14497 defundef = arg[2]
14498 mac1 = arg[3]
14499 } else {
14500 defundef = substr(arg[1], 2)
14501 mac1 = arg[2]
14502 }
14503 split(mac1, mac2, "(") #)
14504 macro = mac2[1]
14505 prefix = substr(line, 1, index(line, defundef) - 1)
14506 if (D_is_set[macro]) {
14507 # Preserve the white space surrounding the "#".
14508 print prefix "define", macro P[macro] D[macro]
14509 next
14510 } else {
14511 # Replace #undef with comments. This is necessary, for example,
14512 # in the case of _POSIX_SOURCE, which is predefined and required
14513 # on some systems where configure will not decide to define it.
14514 if (defundef == "undef") {
14515 print "/*", prefix defundef, macro, "*/"
14516 next
14517 }
14518 }
14519 }
14520 { print }
14521 _ACAWK
14522 _ACEOF
14523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14524 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14525 fi # test -n "$CONFIG_HEADERS"
14526
14527
14528 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14529 shift
14530 for ac_tag
14531 do
14532 case $ac_tag in
14533 :[FHLC]) ac_mode=$ac_tag; continue;;
14534 esac
14535 case $ac_mode$ac_tag in
14536 :[FHL]*:*);;
14537 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14538 :[FH]-) ac_tag=-:-;;
14539 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14540 esac
14541 ac_save_IFS=$IFS
14542 IFS=:
14543 set x $ac_tag
14544 IFS=$ac_save_IFS
14545 shift
14546 ac_file=$1
14547 shift
14548
14549 case $ac_mode in
14550 :L) ac_source=$1;;
14551 :[FH])
14552 ac_file_inputs=
14553 for ac_f
14554 do
14555 case $ac_f in
14556 -) ac_f="$tmp/stdin";;
14557 *) # Look for the file first in the build tree, then in the source tree
14558 # (if the path is not absolute). The absolute path cannot be DOS-style,
14559 # because $ac_f cannot contain `:'.
14560 test -f "$ac_f" ||
14561 case $ac_f in
14562 [\\/$]*) false;;
14563 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14564 esac ||
14565 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14566 esac
14567 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14568 as_fn_append ac_file_inputs " '$ac_f'"
14569 done
14570
14571 # Let's still pretend it is `configure' which instantiates (i.e., don't
14572 # use $as_me), people would be surprised to read:
14573 # /* config.h. Generated by config.status. */
14574 configure_input='Generated from '`
14575 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14576 `' by configure.'
14577 if test x"$ac_file" != x-; then
14578 configure_input="$ac_file. $configure_input"
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14580 $as_echo "$as_me: creating $ac_file" >&6;}
14581 fi
14582 # Neutralize special characters interpreted by sed in replacement strings.
14583 case $configure_input in #(
14584 *\&* | *\|* | *\\* )
14585 ac_sed_conf_input=`$as_echo "$configure_input" |
14586 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14587 *) ac_sed_conf_input=$configure_input;;
14588 esac
14589
14590 case $ac_tag in
14591 *:-:* | *:-) cat >"$tmp/stdin" \
14592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14593 esac
14594 ;;
14595 esac
14596
14597 ac_dir=`$as_dirname -- "$ac_file" ||
14598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14599 X"$ac_file" : 'X\(//\)[^/]' \| \
14600 X"$ac_file" : 'X\(//\)$' \| \
14601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14602 $as_echo X"$ac_file" |
14603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14604 s//\1/
14605 q
14606 }
14607 /^X\(\/\/\)[^/].*/{
14608 s//\1/
14609 q
14610 }
14611 /^X\(\/\/\)$/{
14612 s//\1/
14613 q
14614 }
14615 /^X\(\/\).*/{
14616 s//\1/
14617 q
14618 }
14619 s/.*/./; q'`
14620 as_dir="$ac_dir"; as_fn_mkdir_p
14621 ac_builddir=.
14622
14623 case "$ac_dir" in
14624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14625 *)
14626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14627 # A ".." for each directory in $ac_dir_suffix.
14628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14629 case $ac_top_builddir_sub in
14630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14632 esac ;;
14633 esac
14634 ac_abs_top_builddir=$ac_pwd
14635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14636 # for backward compatibility:
14637 ac_top_builddir=$ac_top_build_prefix
14638
14639 case $srcdir in
14640 .) # We are building in place.
14641 ac_srcdir=.
14642 ac_top_srcdir=$ac_top_builddir_sub
14643 ac_abs_top_srcdir=$ac_pwd ;;
14644 [\\/]* | ?:[\\/]* ) # Absolute name.
14645 ac_srcdir=$srcdir$ac_dir_suffix;
14646 ac_top_srcdir=$srcdir
14647 ac_abs_top_srcdir=$srcdir ;;
14648 *) # Relative name.
14649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14650 ac_top_srcdir=$ac_top_build_prefix$srcdir
14651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14652 esac
14653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14654
14655
14656 case $ac_mode in
14657 :F)
14658 #
14659 # CONFIG_FILE
14660 #
14661
14662 case $INSTALL in
14663 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14664 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14665 esac
14666 _ACEOF
14667
14668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14669 # If the template does not know about datarootdir, expand it.
14670 # FIXME: This hack should be removed a few years after 2.60.
14671 ac_datarootdir_hack=; ac_datarootdir_seen=
14672 ac_sed_dataroot='
14673 /datarootdir/ {
14674 p
14675 q
14676 }
14677 /@datadir@/p
14678 /@docdir@/p
14679 /@infodir@/p
14680 /@localedir@/p
14681 /@mandir@/p'
14682 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14683 *datarootdir*) ac_datarootdir_seen=yes;;
14684 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14686 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14687 _ACEOF
14688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14689 ac_datarootdir_hack='
14690 s&@datadir@&$datadir&g
14691 s&@docdir@&$docdir&g
14692 s&@infodir@&$infodir&g
14693 s&@localedir@&$localedir&g
14694 s&@mandir@&$mandir&g
14695 s&\\\${datarootdir}&$datarootdir&g' ;;
14696 esac
14697 _ACEOF
14698
14699 # Neutralize VPATH when `$srcdir' = `.'.
14700 # Shell code in configure.ac might set extrasub.
14701 # FIXME: do we really want to maintain this feature?
14702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14703 ac_sed_extra="$ac_vpsub
14704 $extrasub
14705 _ACEOF
14706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14707 :t
14708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14709 s|@configure_input@|$ac_sed_conf_input|;t t
14710 s&@top_builddir@&$ac_top_builddir_sub&;t t
14711 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14712 s&@srcdir@&$ac_srcdir&;t t
14713 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14714 s&@top_srcdir@&$ac_top_srcdir&;t t
14715 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14716 s&@builddir@&$ac_builddir&;t t
14717 s&@abs_builddir@&$ac_abs_builddir&;t t
14718 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14719 s&@INSTALL@&$ac_INSTALL&;t t
14720 $ac_datarootdir_hack
14721 "
14722 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14724
14725 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14726 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14727 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14729 which seems to be undefined. Please make sure it is defined" >&5
14730 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14731 which seems to be undefined. Please make sure it is defined" >&2;}
14732
14733 rm -f "$tmp/stdin"
14734 case $ac_file in
14735 -) cat "$tmp/out" && rm -f "$tmp/out";;
14736 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14737 esac \
14738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14739 ;;
14740 :H)
14741 #
14742 # CONFIG_HEADER
14743 #
14744 if test x"$ac_file" != x-; then
14745 {
14746 $as_echo "/* $configure_input */" \
14747 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14748 } >"$tmp/config.h" \
14749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14750 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14752 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14753 else
14754 rm -f "$ac_file"
14755 mv "$tmp/config.h" "$ac_file" \
14756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14757 fi
14758 else
14759 $as_echo "/* $configure_input */" \
14760 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14761 || as_fn_error $? "could not create -" "$LINENO" 5
14762 fi
14763 ;;
14764
14765 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14766 $as_echo "$as_me: executing $ac_file commands" >&6;}
14767 ;;
14768 esac
14769
14770
14771 case $ac_file$ac_mode in
14772 "default":C)
14773
14774 ### Make the necessary directories, if they don't exist.
14775 for dir in etc lisp ; do
14776 test -d ${dir} || mkdir ${dir}
14777 done
14778
14779 # Build src/Makefile from ${srcdir}/src/Makefile.c
14780 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14781 # This must be done after src/config.h is built, since we rely on that file.
14782
14783 echo creating src/epaths.h
14784 ${MAKE-make} epaths-force
14785
14786 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14787 # `..' to `. .' unless invoked with -traditional
14788
14789 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
14790 CPPFLAGS="$CPPFLAGS -traditional"
14791 fi
14792
14793 echo creating lib-src/Makefile
14794 ( cd lib-src
14795 rm -f junk.c junk1.c junk2.c
14796 sed -e '/start of cpp stuff/q' \
14797 < Makefile.c > junk1.c
14798 sed -e '1,/start of cpp stuff/d'\
14799 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14800 < Makefile.c > junk.c
14801 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14802 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14803 cat junk1.c junk2.c > Makefile.new
14804 rm -f junk.c junk1.c junk2.c
14805 chmod 444 Makefile.new
14806 mv -f Makefile.new Makefile
14807 )
14808
14809 echo creating src/Makefile
14810 ( cd src
14811 rm -f junk.c junk1.c junk2.c
14812 sed -e '/start of cpp stuff/q' \
14813 < Makefile.c > junk1.c
14814 sed -e '1,/start of cpp stuff/d'\
14815 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14816 < Makefile.c > junk.c
14817 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14818 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14819 cat junk1.c junk2.c > Makefile.new
14820 rm -f junk.c junk1.c junk2.c
14821 chmod 444 Makefile.new
14822 mv -f Makefile.new Makefile
14823 )
14824
14825 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
14826 echo creating src/.gdbinit
14827 echo source $srcdir/src/.gdbinit > src/.gdbinit
14828 fi
14829
14830 ;;
14831
14832 esac
14833 done # for ac_tag
14834
14835
14836 as_fn_exit 0
14837 _ACEOF
14838 ac_clean_files=$ac_clean_files_save
14839
14840 test $ac_write_fail = 0 ||
14841 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14842
14843
14844 # configure is writing to config.log, and then calls config.status.
14845 # config.status does its own redirection, appending to config.log.
14846 # Unfortunately, on DOS this fails, as config.log is still kept open
14847 # by configure, so config.status won't be able to write to it; its
14848 # output is simply discarded. So we exec the FD to /dev/null,
14849 # effectively closing config.log, so it can be properly (re)opened and
14850 # appended to by config.status. When coming back to configure, we
14851 # need to make the FD available again.
14852 if test "$no_create" != yes; then
14853 ac_cs_success=:
14854 ac_config_status_args=
14855 test "$silent" = yes &&
14856 ac_config_status_args="$ac_config_status_args --quiet"
14857 exec 5>/dev/null
14858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14859 exec 5>>config.log
14860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14861 # would make configure fail if this is the last instruction.
14862 $ac_cs_success || as_fn_exit 1
14863 fi
14864 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14866 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14867 fi
14868
14869