ChangeLog date fix (no need to merge to trunk)
[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.3.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='23.3.50'
553 PACKAGE_STRING='emacs 23.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 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 M17N_FLT_LIBS
638 M17N_FLT_CFLAGS
639 LIBOTF_LIBS
640 LIBOTF_CFLAGS
641 FREETYPE_LIBS
642 FREETYPE_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.3.50 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.3.50:";;
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.3.50
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.3.50, 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 ia64*-hp-hpux1[1-9]* )
3186 machine=hp800 opsys=hpux11
3187 ;;
3188
3189 hppa*-*-linux-gnu* )
3190 machine=hp800 opsys=gnu-linux
3191 ;;
3192
3193 ## IBM machines
3194 s390-*-linux-gnu* )
3195 machine=ibms390 opsys=gnu-linux
3196 ;;
3197 s390x-*-linux-gnu* )
3198 machine=ibms390x opsys=gnu-linux
3199 ;;
3200 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
3201 machine=ibmrs6000 opsys=aix4-2
3202 ;;
3203 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
3204 machine=ibmrs6000 opsys=aix4-2
3205 ;;
3206 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
3207 machine=ibmrs6000 opsys=aix4-2
3208 ;;
3209 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
3210 machine=ibmrs6000 opsys=aix4-2
3211 ;;
3212
3213 ## Macintosh PowerPC
3214 powerpc*-*-linux-gnu* )
3215 machine=macppc opsys=gnu-linux
3216 ;;
3217
3218 ## Silicon Graphics machines
3219 ## Iris 4D
3220 mips-sgi-irix6.5 )
3221 machine=iris4d opsys=irix6-5
3222 # Without defining _LANGUAGE_C, things get masked out in the headers
3223 # so that, for instance, grepping for `free' in stdlib.h fails and
3224 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3225 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3226 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3227 ;;
3228
3229 ## Suns
3230 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3231 machine=sparc opsys=gnu-linux
3232 ;;
3233
3234 *-sun-solaris* \
3235 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3236 | x86_64-*-solaris2* | x86_64-*-sunos5* \
3237 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
3238 case "${canonical}" in
3239 i[3456]86-*-* ) machine=intel386 ;;
3240 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3241 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3242 sparc* ) machine=sparc ;;
3243 * ) unported=yes ;;
3244 esac
3245 case "${canonical}" in
3246 *-sunos5.3* | *-solaris2.3* )
3247 opsys=sol2-3
3248 NON_GNU_CPP=/usr/ccs/lib/cpp
3249 ;;
3250 *-sunos5.4* | *-solaris2.4* )
3251 opsys=sol2-4
3252 NON_GNU_CPP=/usr/ccs/lib/cpp
3253 RANLIB="ar -ts"
3254 ;;
3255 *-sunos5.5* | *-solaris2.5* )
3256 opsys=sol2-5
3257 NON_GNU_CPP=/usr/ccs/lib/cpp
3258 RANLIB="ar -ts"
3259 ;;
3260 *-sunos5.6* | *-solaris2.6* )
3261 opsys=sol2-6
3262 NON_GNU_CPP=/usr/ccs/lib/cpp
3263 RANLIB="ar -ts"
3264 ;;
3265 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3266 opsys=sol2-6
3267 emacs_check_sunpro_c=yes
3268 NON_GNU_CPP=/usr/ccs/lib/cpp
3269 ;;
3270 *-sunos5* | *-solaris* )
3271 opsys=sol2-10
3272 emacs_check_sunpro_c=yes
3273 NON_GNU_CPP=/usr/ccs/lib/cpp
3274 ;;
3275 esac
3276 ## Watch out for a compiler that we know will not work.
3277 case "${canonical}" in
3278 *-solaris* | *-sunos5* )
3279 if [ "x$CC" = x/usr/ucb/cc ]; then
3280 ## /usr/ucb/cc doesn't work;
3281 ## we should find some other compiler that does work.
3282 unset CC
3283 fi
3284 ;;
3285 *) ;;
3286 esac
3287 ;;
3288
3289 ## IA-64
3290 ia64*-*-linux* )
3291 machine=ia64 opsys=gnu-linux
3292 ;;
3293
3294 ## Intel 386 machines where we don't care about the manufacturer
3295 i[3456]86-*-* )
3296 machine=intel386
3297 case "${canonical}" in
3298 *-cygwin ) opsys=cygwin ;;
3299 *-darwin* ) opsys=darwin
3300 CPP="${CC-cc} -E -no-cpp-precomp"
3301 ;;
3302 *-linux-gnu* ) opsys=gnu-linux ;;
3303 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3304 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3305 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3306 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3307 esac
3308 ;;
3309
3310 ## m68k Linux-based GNU system
3311 m68k-*-linux-gnu* )
3312 machine=m68k opsys=gnu-linux
3313 ;;
3314
3315 ## Mips Linux-based GNU system
3316 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3317 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3318 machine=mips opsys=gnu-linux
3319 ;;
3320
3321 ## AMD x86-64 Linux-based GNU system
3322 x86_64-*-linux-gnu* )
3323 machine=amdx86-64 opsys=gnu-linux
3324 ;;
3325
3326 ## Tensilica Xtensa Linux-based GNU system
3327 xtensa*-*-linux-gnu* )
3328 machine=xtensa opsys=gnu-linux
3329 ;;
3330
3331 ## SuperH Linux-based GNU system
3332 sh[34]*-*-linux-gnu* )
3333 machine=sh3 opsys=gnu-linux
3334 ;;
3335
3336 * )
3337 unported=yes
3338 ;;
3339 esac
3340
3341 ### If the code above didn't choose an operating system, just choose
3342 ### an operating system based on the configuration name. You really
3343 ### only want to use this when you have no idea what the right
3344 ### operating system is; if you know what operating systems a machine
3345 ### runs, it's cleaner to make it explicit in the case statement
3346 ### above.
3347 if test x"${opsys}" = x; then
3348 case "${canonical}" in
3349 *-gnu* ) opsys=gnu ;;
3350 *-sysv4.2uw* ) opsys=unixware ;;
3351 *-sysv5uw* ) opsys=unixware ;;
3352 *-sysv5OpenUNIX* ) opsys=unixware ;;
3353 *-sysv4.1* | *-sysvr4.1* )
3354 NON_GNU_CPP=/usr/lib/cpp
3355 opsys=usg5-4 ;;
3356 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3357 if [ x$NON_GNU_CPP = x ]; then
3358 if [ -f /usr/ccs/lib/cpp ]; then
3359 NON_GNU_CPP=/usr/ccs/lib/cpp
3360 else
3361 NON_GNU_CPP=/lib/cpp
3362 fi
3363 fi
3364 opsys=usg5-4-2 ;;
3365 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3366 * )
3367 unported=yes
3368 ;;
3369 esac
3370 fi
3371
3372
3373
3374 if test $unported = yes; then
3375 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3376 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3377 fi
3378
3379 machfile="m/${machine}.h"
3380 opsysfile="s/${opsys}.h"
3381
3382
3383 #### Choose a compiler.
3384 test -n "$CC" && cc_specified=yes
3385
3386 # Save the value of CFLAGS that the user specified.
3387 SPECIFIED_CFLAGS="$CFLAGS"
3388
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 if test -n "$ac_tool_prefix"; then
3395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3396 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if test "${ac_cv_prog_CC+set}" = set; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432 fi
3433 if test -z "$ac_cv_prog_CC"; then
3434 ac_ct_CC=$CC
3435 # Extract the first word of "gcc", so it can be a program name with args.
3436 set dummy gcc; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$ac_ct_CC"; then
3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_ac_ct_CC="gcc"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456 done
3457 done
3458 IFS=$as_save_IFS
3459
3460 fi
3461 fi
3462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3463 if test -n "$ac_ct_CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3465 $as_echo "$ac_ct_CC" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471 if test "x$ac_ct_CC" = x; then
3472 CC=""
3473 else
3474 case $cross_compiling:$ac_tool_warned in
3475 yes:)
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3478 ac_tool_warned=yes ;;
3479 esac
3480 CC=$ac_ct_CC
3481 fi
3482 else
3483 CC="$ac_cv_prog_CC"
3484 fi
3485
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}cc; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC="${ac_tool_prefix}cc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 fi
3527 if test -z "$CC"; then
3528 # Extract the first word of "cc", so it can be a program name with args.
3529 set dummy cc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_CC+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 ac_prog_rejected=no
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3547 ac_prog_rejected=yes
3548 continue
3549 fi
3550 ac_cv_prog_CC="cc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556 IFS=$as_save_IFS
3557
3558 if test $ac_prog_rejected = yes; then
3559 # We found a bogon in the path, so make sure we never use it.
3560 set dummy $ac_cv_prog_CC
3561 shift
3562 if test $# != 0; then
3563 # We chose a different compiler from the bogus one.
3564 # However, it has the same basename, so the bogon will be chosen
3565 # first if we set CC to just the basename; use the full file name.
3566 shift
3567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3568 fi
3569 fi
3570 fi
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 fi
3580
3581
3582 fi
3583 if test -z "$CC"; then
3584 if test -n "$ac_tool_prefix"; then
3585 for ac_prog in cl.exe
3586 do
3587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 fi
3622
3623
3624 test -n "$CC" && break
3625 done
3626 fi
3627 if test -z "$CC"; then
3628 ac_ct_CC=$CC
3629 for ac_prog in cl.exe
3630 do
3631 # Extract the first word of "$ac_prog", so it can be a program name with args.
3632 set dummy $ac_prog; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$ac_ct_CC"; then
3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_ac_ct_CC="$ac_prog"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 fi
3657 fi
3658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3659 if test -n "$ac_ct_CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3661 $as_echo "$ac_ct_CC" >&6; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 fi
3666
3667
3668 test -n "$ac_ct_CC" && break
3669 done
3670
3671 if test "x$ac_ct_CC" = x; then
3672 CC=""
3673 else
3674 case $cross_compiling:$ac_tool_warned in
3675 yes:)
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3678 ac_tool_warned=yes ;;
3679 esac
3680 CC=$ac_ct_CC
3681 fi
3682 fi
3683
3684 fi
3685
3686
3687 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error $? "no acceptable C compiler found in \$PATH
3690 See \`config.log' for more details" "$LINENO" 5; }
3691
3692 # Provide some information about the compiler.
3693 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3694 set X $ac_compile
3695 ac_compiler=$2
3696 for ac_option in --version -v -V -qversion; do
3697 { { ac_try="$ac_compiler $ac_option >&5"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3705 ac_status=$?
3706 if test -s conftest.err; then
3707 sed '10a\
3708 ... rest of stderr output deleted ...
3709 10q' conftest.err >conftest.er1
3710 cat conftest.er1 >&5
3711 fi
3712 rm -f conftest.er1 conftest.err
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }
3715 done
3716
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719
3720 int
3721 main ()
3722 {
3723
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 ac_clean_files_save=$ac_clean_files
3729 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3730 # Try to create an executable without -o first, disregard a.out.
3731 # It will help us diagnose broken compilers, and finding out an intuition
3732 # of exeext.
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3734 $as_echo_n "checking whether the C compiler works... " >&6; }
3735 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3736
3737 # The possible output files:
3738 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3739
3740 ac_rmfiles=
3741 for ac_file in $ac_files
3742 do
3743 case $ac_file in
3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3745 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3746 esac
3747 done
3748 rm -f $ac_rmfiles
3749
3750 if { { ac_try="$ac_link_default"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link_default") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }; then :
3761 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3762 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3763 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3764 # so that the user can short-circuit this test for compilers unknown to
3765 # Autoconf.
3766 for ac_file in $ac_files ''
3767 do
3768 test -f "$ac_file" || continue
3769 case $ac_file in
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3771 ;;
3772 [ab].out )
3773 # We found the default executable, but exeext='' is most
3774 # certainly right.
3775 break;;
3776 *.* )
3777 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3778 then :; else
3779 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3780 fi
3781 # We set ac_cv_exeext here because the later test for it is not
3782 # safe: cross compilers may not add the suffix if given an `-o'
3783 # argument, so we may need to know it at that point already.
3784 # Even if this section looks crufty: it has the advantage of
3785 # actually working.
3786 break;;
3787 * )
3788 break;;
3789 esac
3790 done
3791 test "$ac_cv_exeext" = no && ac_cv_exeext=
3792
3793 else
3794 ac_file=''
3795 fi
3796 if test -z "$ac_file"; then :
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 $as_echo "no" >&6; }
3799 $as_echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error 77 "C compiler cannot create executables
3805 See \`config.log' for more details" "$LINENO" 5; }
3806 else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808 $as_echo "yes" >&6; }
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3811 $as_echo_n "checking for C compiler default output file name... " >&6; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3813 $as_echo "$ac_file" >&6; }
3814 ac_exeext=$ac_cv_exeext
3815
3816 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3817 ac_clean_files=$ac_clean_files_save
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3819 $as_echo_n "checking for suffix of executables... " >&6; }
3820 if { { ac_try="$ac_link"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_link") 2>&5
3828 ac_status=$?
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }; then :
3831 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3832 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3833 # work properly (i.e., refer to `conftest.exe'), while it won't with
3834 # `rm'.
3835 for ac_file in conftest.exe conftest conftest.*; do
3836 test -f "$ac_file" || continue
3837 case $ac_file in
3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3839 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3840 break;;
3841 * ) break;;
3842 esac
3843 done
3844 else
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3848 See \`config.log' for more details" "$LINENO" 5; }
3849 fi
3850 rm -f conftest conftest$ac_cv_exeext
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3852 $as_echo "$ac_cv_exeext" >&6; }
3853
3854 rm -f conftest.$ac_ext
3855 EXEEXT=$ac_cv_exeext
3856 ac_exeext=$EXEEXT
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #include <stdio.h>
3860 int
3861 main ()
3862 {
3863 FILE *f = fopen ("conftest.out", "w");
3864 return ferror (f) || fclose (f) != 0;
3865
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 ac_clean_files="$ac_clean_files conftest.out"
3871 # Check that the compiler produces executables we can run. If not, either
3872 # the compiler is broken, or we cross compile.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3874 $as_echo_n "checking whether we are cross compiling... " >&6; }
3875 if test "$cross_compiling" != yes; then
3876 { { ac_try="$ac_link"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_link") 2>&5
3884 ac_status=$?
3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; }
3887 if { ac_try='./conftest$ac_cv_exeext'
3888 { { case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_try") 2>&5
3895 ac_status=$?
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }; }; then
3898 cross_compiling=no
3899 else
3900 if test "$cross_compiling" = maybe; then
3901 cross_compiling=yes
3902 else
3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error $? "cannot run C compiled programs.
3906 If you meant to cross compile, use \`--host'.
3907 See \`config.log' for more details" "$LINENO" 5; }
3908 fi
3909 fi
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3912 $as_echo "$cross_compiling" >&6; }
3913
3914 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3915 ac_clean_files=$ac_clean_files_save
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3917 $as_echo_n "checking for suffix of object files... " >&6; }
3918 if test "${ac_cv_objext+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923
3924 int
3925 main ()
3926 {
3927
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.o conftest.obj
3933 if { { ac_try="$ac_compile"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_compile") 2>&5
3941 ac_status=$?
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; then :
3944 for ac_file in conftest.o conftest.obj conftest.*; do
3945 test -f "$ac_file" || continue;
3946 case $ac_file in
3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3949 break;;
3950 esac
3951 done
3952 else
3953 $as_echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error $? "cannot compute suffix of object files: cannot compile
3959 See \`config.log' for more details" "$LINENO" 5; }
3960 fi
3961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3964 $as_echo "$ac_cv_objext" >&6; }
3965 OBJEXT=$ac_cv_objext
3966 ac_objext=$OBJEXT
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3968 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3969 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974
3975 int
3976 main ()
3977 {
3978 #ifndef __GNUC__
3979 choke me
3980 #endif
3981
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_compiler_gnu=yes
3988 else
3989 ac_compiler_gnu=no
3990 fi
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3993
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3996 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3997 if test $ac_compiler_gnu = yes; then
3998 GCC=yes
3999 else
4000 GCC=
4001 fi
4002 ac_test_CFLAGS=${CFLAGS+set}
4003 ac_save_CFLAGS=$CFLAGS
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4005 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4006 if test "${ac_cv_prog_cc_g+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 ac_save_c_werror_flag=$ac_c_werror_flag
4010 ac_c_werror_flag=yes
4011 ac_cv_prog_cc_g=no
4012 CFLAGS="-g"
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015
4016 int
4017 main ()
4018 {
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_prog_cc_g=yes
4026 else
4027 CFLAGS=""
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030
4031 int
4032 main ()
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040
4041 else
4042 ac_c_werror_flag=$ac_save_c_werror_flag
4043 CFLAGS="-g"
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046
4047 int
4048 main ()
4049 {
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_g=yes
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_c_werror_flag=$ac_save_c_werror_flag
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4066 $as_echo "$ac_cv_prog_cc_g" >&6; }
4067 if test "$ac_test_CFLAGS" = set; then
4068 CFLAGS=$ac_save_CFLAGS
4069 elif test $ac_cv_prog_cc_g = yes; then
4070 if test "$GCC" = yes; then
4071 CFLAGS="-g -O2"
4072 else
4073 CFLAGS="-g"
4074 fi
4075 else
4076 if test "$GCC" = yes; then
4077 CFLAGS="-O2"
4078 else
4079 CFLAGS=
4080 fi
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4083 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4084 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_cv_prog_cc_c89=no
4088 ac_save_CC=$CC
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 #include <stdarg.h>
4092 #include <stdio.h>
4093 #include <sys/types.h>
4094 #include <sys/stat.h>
4095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4096 struct buf { int x; };
4097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098 static char *e (p, i)
4099 char **p;
4100 int i;
4101 {
4102 return p[i];
4103 }
4104 static char *f (char * (*g) (char **, int), char **p, ...)
4105 {
4106 char *s;
4107 va_list v;
4108 va_start (v,p);
4109 s = g (p, va_arg (v,int));
4110 va_end (v);
4111 return s;
4112 }
4113
4114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4115 function prototypes and stuff, but not '\xHH' hex character constants.
4116 These don't provoke an error unfortunately, instead are silently treated
4117 as 'x'. The following induces an error, until -std is added to get
4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4119 array size at least. It's necessary to write '\x00'==0 to get something
4120 that's true only with -std. */
4121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
4123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124 inside strings and character constants. */
4125 #define FOO(x) 'x'
4126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127
4128 int test (int i, double x);
4129 struct s1 {int (*f) (int a);};
4130 struct s2 {int (*f) (double a);};
4131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 int argc;
4133 char **argv;
4134 int
4135 main ()
4136 {
4137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144 do
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_c89=$ac_arg
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext
4150 test "x$ac_cv_prog_cc_c89" != "xno" && break
4151 done
4152 rm -f conftest.$ac_ext
4153 CC=$ac_save_CC
4154
4155 fi
4156 # AC_CACHE_VAL
4157 case "x$ac_cv_prog_cc_c89" in
4158 x)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160 $as_echo "none needed" >&6; } ;;
4161 xno)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163 $as_echo "unsupported" >&6; } ;;
4164 *)
4165 CC="$CC $ac_cv_prog_cc_c89"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168 esac
4169 if test "x$ac_cv_prog_cc_c89" != xno; then :
4170
4171 fi
4172
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179
4180 # On Suns, sometimes $CPP names a directory.
4181 if test -n "$CPP" && test -d "$CPP"; then
4182 CPP=
4183 fi
4184
4185 ## If not using gcc, and on Solaris, and no CPP specified, see if
4186 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4187 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4188 test x"$CPP" = x; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4190 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4191
4192 if test "${emacs_cv_sunpro_c+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197
4198 int
4199 main ()
4200 {
4201 #ifndef __SUNPRO_C
4202 fail;
4203 #endif
4204
4205 ;
4206 return 0;
4207 }
4208 _ACEOF
4209 if ac_fn_c_try_link "$LINENO"; then :
4210 emacs_cv_sunpro_c=yes
4211 else
4212 emacs_cv_sunpro_c=no
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext \
4215 conftest$ac_exeext conftest.$ac_ext
4216 fi
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4219 $as_echo "$emacs_cv_sunpro_c" >&6; }
4220
4221 if test x"$emacs_cv_sunpro_c" = xyes; then
4222 NON_GNU_CPP="$CC -E -Xs"
4223 fi
4224 fi
4225
4226 #### Some systems specify a CPP to use unless we are using GCC.
4227 #### Now that we know whether we are using GCC, we can decide whether
4228 #### to use that one.
4229 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4230 then
4231 CPP="$NON_GNU_CPP"
4232 fi
4233
4234 #### Some systems specify a CC to use unless we are using GCC.
4235 #### Now that we know whether we are using GCC, we can decide whether
4236 #### to use that one.
4237 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4238 test x$cc_specified != xyes
4239 then
4240 CC="$NON_GNU_CC"
4241 fi
4242
4243 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4244 then
4245 CC="$CC $GCC_TEST_OPTIONS"
4246 fi
4247
4248 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4249 then
4250 CC="$CC $NON_GCC_TEST_OPTIONS"
4251 fi
4252
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4259 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4260 # On Suns, sometimes $CPP names a directory.
4261 if test -n "$CPP" && test -d "$CPP"; then
4262 CPP=
4263 fi
4264 if test -z "$CPP"; then
4265 if test "${ac_cv_prog_CPP+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 # Double quotes because CPP needs to be expanded
4269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4270 do
4271 ac_preproc_ok=false
4272 for ac_c_preproc_warn_flag in '' yes
4273 do
4274 # Use a header file that comes with gcc, so configuring glibc
4275 # with a fresh cross-compiler works.
4276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277 # <limits.h> exists even on freestanding compilers.
4278 # On the NeXT, cc -E runs the code through the compiler's parser,
4279 # not just through cpp. "Syntax error" is here to catch this case.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #ifdef __STDC__
4283 # include <limits.h>
4284 #else
4285 # include <assert.h>
4286 #endif
4287 Syntax error
4288 _ACEOF
4289 if ac_fn_c_try_cpp "$LINENO"; then :
4290
4291 else
4292 # Broken: fails on valid input.
4293 continue
4294 fi
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297 # OK, works on sane cases. Now check whether nonexistent headers
4298 # can be detected and how.
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #include <ac_nonexistent.h>
4302 _ACEOF
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4304 # Broken: success on invalid input.
4305 continue
4306 else
4307 # Passes both tests.
4308 ac_preproc_ok=:
4309 break
4310 fi
4311 rm -f conftest.err conftest.i conftest.$ac_ext
4312
4313 done
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.i conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then :
4317 break
4318 fi
4319
4320 done
4321 ac_cv_prog_CPP=$CPP
4322
4323 fi
4324 CPP=$ac_cv_prog_CPP
4325 else
4326 ac_cv_prog_CPP=$CPP
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4329 $as_echo "$CPP" >&6; }
4330 ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4332 do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #ifdef __STDC__
4342 # include <limits.h>
4343 #else
4344 # include <assert.h>
4345 #endif
4346 Syntax error
4347 _ACEOF
4348 if ac_fn_c_try_cpp "$LINENO"; then :
4349
4350 else
4351 # Broken: fails on valid input.
4352 continue
4353 fi
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4355
4356 # OK, works on sane cases. Now check whether nonexistent headers
4357 # can be detected and how.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <ac_nonexistent.h>
4361 _ACEOF
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4363 # Broken: success on invalid input.
4364 continue
4365 else
4366 # Passes both tests.
4367 ac_preproc_ok=:
4368 break
4369 fi
4370 rm -f conftest.err conftest.i conftest.$ac_ext
4371
4372 done
4373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4374 rm -f conftest.i conftest.err conftest.$ac_ext
4375 if $ac_preproc_ok; then :
4376
4377 else
4378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4380 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4381 See \`config.log' for more details" "$LINENO" 5; }
4382 fi
4383
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4392 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4393 if test "${ac_cv_path_GREP+set}" = set; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if test -z "$GREP"; then
4397 ac_path_GREP_found=false
4398 # Loop through the user's path and test for each of PROGNAME-LIST
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401 do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_prog in grep ggrep; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4407 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4408 # Check for GNU ac_path_GREP and select it if it is found.
4409 # Check for GNU $ac_path_GREP
4410 case `"$ac_path_GREP" --version 2>&1` in
4411 *GNU*)
4412 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4413 *)
4414 ac_count=0
4415 $as_echo_n 0123456789 >"conftest.in"
4416 while :
4417 do
4418 cat "conftest.in" "conftest.in" >"conftest.tmp"
4419 mv "conftest.tmp" "conftest.in"
4420 cp "conftest.in" "conftest.nl"
4421 $as_echo 'GREP' >> "conftest.nl"
4422 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424 as_fn_arith $ac_count + 1 && ac_count=$as_val
4425 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4426 # Best one so far, save it but keep looking for a better one
4427 ac_cv_path_GREP="$ac_path_GREP"
4428 ac_path_GREP_max=$ac_count
4429 fi
4430 # 10*(2^10) chars as input seems more than enough
4431 test $ac_count -gt 10 && break
4432 done
4433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434 esac
4435
4436 $ac_path_GREP_found && break 3
4437 done
4438 done
4439 done
4440 IFS=$as_save_IFS
4441 if test -z "$ac_cv_path_GREP"; then
4442 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4443 fi
4444 else
4445 ac_cv_path_GREP=$GREP
4446 fi
4447
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4450 $as_echo "$ac_cv_path_GREP" >&6; }
4451 GREP="$ac_cv_path_GREP"
4452
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4455 $as_echo_n "checking for egrep... " >&6; }
4456 if test "${ac_cv_path_EGREP+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4460 then ac_cv_path_EGREP="$GREP -E"
4461 else
4462 if test -z "$EGREP"; then
4463 ac_path_EGREP_found=false
4464 # Loop through the user's path and test for each of PROGNAME-LIST
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_prog in egrep; do
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4473 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4474 # Check for GNU ac_path_EGREP and select it if it is found.
4475 # Check for GNU $ac_path_EGREP
4476 case `"$ac_path_EGREP" --version 2>&1` in
4477 *GNU*)
4478 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4479 *)
4480 ac_count=0
4481 $as_echo_n 0123456789 >"conftest.in"
4482 while :
4483 do
4484 cat "conftest.in" "conftest.in" >"conftest.tmp"
4485 mv "conftest.tmp" "conftest.in"
4486 cp "conftest.in" "conftest.nl"
4487 $as_echo 'EGREP' >> "conftest.nl"
4488 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490 as_fn_arith $ac_count + 1 && ac_count=$as_val
4491 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4492 # Best one so far, save it but keep looking for a better one
4493 ac_cv_path_EGREP="$ac_path_EGREP"
4494 ac_path_EGREP_max=$ac_count
4495 fi
4496 # 10*(2^10) chars as input seems more than enough
4497 test $ac_count -gt 10 && break
4498 done
4499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500 esac
4501
4502 $ac_path_EGREP_found && break 3
4503 done
4504 done
4505 done
4506 IFS=$as_save_IFS
4507 if test -z "$ac_cv_path_EGREP"; then
4508 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4509 fi
4510 else
4511 ac_cv_path_EGREP=$EGREP
4512 fi
4513
4514 fi
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4517 $as_echo "$ac_cv_path_EGREP" >&6; }
4518 EGREP="$ac_cv_path_EGREP"
4519
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4522 $as_echo_n "checking for ANSI C header files... " >&6; }
4523 if test "${ac_cv_header_stdc+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 #include <stdlib.h>
4529 #include <stdarg.h>
4530 #include <string.h>
4531 #include <float.h>
4532
4533 int
4534 main ()
4535 {
4536
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_cv_header_stdc=yes
4543 else
4544 ac_cv_header_stdc=no
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547
4548 if test $ac_cv_header_stdc = yes; then
4549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 #include <string.h>
4553
4554 _ACEOF
4555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556 $EGREP "memchr" >/dev/null 2>&1; then :
4557
4558 else
4559 ac_cv_header_stdc=no
4560 fi
4561 rm -f conftest*
4562
4563 fi
4564
4565 if test $ac_cv_header_stdc = yes; then
4566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 #include <stdlib.h>
4570
4571 _ACEOF
4572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4573 $EGREP "free" >/dev/null 2>&1; then :
4574
4575 else
4576 ac_cv_header_stdc=no
4577 fi
4578 rm -f conftest*
4579
4580 fi
4581
4582 if test $ac_cv_header_stdc = yes; then
4583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4584 if test "$cross_compiling" = yes; then :
4585 :
4586 else
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <ctype.h>
4590 #include <stdlib.h>
4591 #if ((' ' & 0x0FF) == 0x020)
4592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4594 #else
4595 # define ISLOWER(c) \
4596 (('a' <= (c) && (c) <= 'i') \
4597 || ('j' <= (c) && (c) <= 'r') \
4598 || ('s' <= (c) && (c) <= 'z'))
4599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4600 #endif
4601
4602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4603 int
4604 main ()
4605 {
4606 int i;
4607 for (i = 0; i < 256; i++)
4608 if (XOR (islower (i), ISLOWER (i))
4609 || toupper (i) != TOUPPER (i))
4610 return 2;
4611 return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_run "$LINENO"; then :
4615
4616 else
4617 ac_cv_header_stdc=no
4618 fi
4619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4620 conftest.$ac_objext conftest.beam conftest.$ac_ext
4621 fi
4622
4623 fi
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4626 $as_echo "$ac_cv_header_stdc" >&6; }
4627 if test $ac_cv_header_stdc = yes; then
4628
4629 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4630
4631 fi
4632
4633 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4634 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4635 inttypes.h stdint.h unistd.h
4636 do :
4637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4639 "
4640 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4641 cat >>confdefs.h <<_ACEOF
4642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4643 _ACEOF
4644
4645 fi
4646
4647 done
4648
4649
4650
4651 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4652 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4653 MINIX=yes
4654 else
4655 MINIX=
4656 fi
4657
4658
4659 if test "$MINIX" = yes; then
4660
4661 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4662
4663
4664 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4665
4666
4667 $as_echo "#define _MINIX 1" >>confdefs.h
4668
4669 fi
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4673 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4674 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679
4680 # define __EXTENSIONS__ 1
4681 $ac_includes_default
4682 int
4683 main ()
4684 {
4685
4686 ;
4687 return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691 ac_cv_safe_to_define___extensions__=yes
4692 else
4693 ac_cv_safe_to_define___extensions__=no
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4698 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4699 test $ac_cv_safe_to_define___extensions__ = yes &&
4700 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4701
4702 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4703
4704 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4705
4706 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4707
4708 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4709
4710
4711
4712 ### Use -Wno-pointer-sign if the compiler supports it
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4714 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4715 SAVE_CFLAGS="$CFLAGS"
4716 CFLAGS="$CFLAGS -Wno-pointer-sign"
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4719
4720 int
4721 main ()
4722 {
4723
4724 ;
4725 return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729 has_option=yes
4730 else
4731 has_option=no
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 if test $has_option = yes; then
4735 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4738 $as_echo "$has_option" >&6; }
4739 CFLAGS="$SAVE_CFLAGS"
4740 unset has_option
4741 unset SAVE_CFLAGS
4742
4743 ### Use -Wdeclaration-after-statement if the compiler supports it
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4745 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4746 SAVE_CFLAGS="$CFLAGS"
4747 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750
4751 int
4752 main ()
4753 {
4754
4755 ;
4756 return 0;
4757 }
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760 has_option=yes
4761 else
4762 has_option=no
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 if test $has_option = yes; then
4766 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4769 $as_echo "$has_option" >&6; }
4770 CFLAGS="$SAVE_CFLAGS"
4771 unset has_option
4772 unset SAVE_CFLAGS
4773
4774 #### Some other nice autoconf tests.
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4777 $as_echo_n "checking whether ln -s works... " >&6; }
4778 LN_S=$as_ln_s
4779 if test "$LN_S" = "ln -s"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4781 $as_echo "yes" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4784 $as_echo "no, using $LN_S" >&6; }
4785 fi
4786
4787 ac_ext=c
4788 ac_cpp='$CPP $CPPFLAGS'
4789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4793 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4794 # On Suns, sometimes $CPP names a directory.
4795 if test -n "$CPP" && test -d "$CPP"; then
4796 CPP=
4797 fi
4798 if test -z "$CPP"; then
4799 if test "${ac_cv_prog_CPP+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 # Double quotes because CPP needs to be expanded
4803 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4804 do
4805 ac_preproc_ok=false
4806 for ac_c_preproc_warn_flag in '' yes
4807 do
4808 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works.
4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811 # <limits.h> exists even on freestanding compilers.
4812 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 #ifdef __STDC__
4817 # include <limits.h>
4818 #else
4819 # include <assert.h>
4820 #endif
4821 Syntax error
4822 _ACEOF
4823 if ac_fn_c_try_cpp "$LINENO"; then :
4824
4825 else
4826 # Broken: fails on valid input.
4827 continue
4828 fi
4829 rm -f conftest.err conftest.i conftest.$ac_ext
4830
4831 # OK, works on sane cases. Now check whether nonexistent headers
4832 # can be detected and how.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #include <ac_nonexistent.h>
4836 _ACEOF
4837 if ac_fn_c_try_cpp "$LINENO"; then :
4838 # Broken: success on invalid input.
4839 continue
4840 else
4841 # Passes both tests.
4842 ac_preproc_ok=:
4843 break
4844 fi
4845 rm -f conftest.err conftest.i conftest.$ac_ext
4846
4847 done
4848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849 rm -f conftest.i conftest.err conftest.$ac_ext
4850 if $ac_preproc_ok; then :
4851 break
4852 fi
4853
4854 done
4855 ac_cv_prog_CPP=$CPP
4856
4857 fi
4858 CPP=$ac_cv_prog_CPP
4859 else
4860 ac_cv_prog_CPP=$CPP
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4863 $as_echo "$CPP" >&6; }
4864 ac_preproc_ok=false
4865 for ac_c_preproc_warn_flag in '' yes
4866 do
4867 # Use a header file that comes with gcc, so configuring glibc
4868 # with a fresh cross-compiler works.
4869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4870 # <limits.h> exists even on freestanding compilers.
4871 # On the NeXT, cc -E runs the code through the compiler's parser,
4872 # not just through cpp. "Syntax error" is here to catch this case.
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 #ifdef __STDC__
4876 # include <limits.h>
4877 #else
4878 # include <assert.h>
4879 #endif
4880 Syntax error
4881 _ACEOF
4882 if ac_fn_c_try_cpp "$LINENO"; then :
4883
4884 else
4885 # Broken: fails on valid input.
4886 continue
4887 fi
4888 rm -f conftest.err conftest.i conftest.$ac_ext
4889
4890 # OK, works on sane cases. Now check whether nonexistent headers
4891 # can be detected and how.
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #include <ac_nonexistent.h>
4895 _ACEOF
4896 if ac_fn_c_try_cpp "$LINENO"; then :
4897 # Broken: success on invalid input.
4898 continue
4899 else
4900 # Passes both tests.
4901 ac_preproc_ok=:
4902 break
4903 fi
4904 rm -f conftest.err conftest.i conftest.$ac_ext
4905
4906 done
4907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4908 rm -f conftest.i conftest.err conftest.$ac_ext
4909 if $ac_preproc_ok; then :
4910
4911 else
4912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4914 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4915 See \`config.log' for more details" "$LINENO" 5; }
4916 fi
4917
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924 # Find a good install program. We prefer a C program (faster),
4925 # so one script is as good as another. But avoid the broken or
4926 # incompatible versions:
4927 # SysV /etc/install, /usr/sbin/install
4928 # SunOS /usr/etc/install
4929 # IRIX /sbin/install
4930 # AIX /bin/install
4931 # AmigaOS /C/install, which installs bootblocks on floppy discs
4932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4935 # OS/2's system install, which has a completely different semantic
4936 # ./install, which can be erroneously created by make from ./install.sh.
4937 # Reject install programs that cannot install multiple files.
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4939 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4940 if test -z "$INSTALL"; then
4941 if test "${ac_cv_path_install+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 # Account for people who put trailing slashes in PATH elements.
4950 case $as_dir/ in #((
4951 ./ | .// | /[cC]/* | \
4952 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4953 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4954 /usr/ucb/* ) ;;
4955 *)
4956 # OSF1 and SCO ODT 3.0 have their own names for install.
4957 # Don't use installbsd from OSF since it installs stuff as root
4958 # by default.
4959 for ac_prog in ginstall scoinst install; do
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4962 if test $ac_prog = install &&
4963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4964 # AIX install. It has an incompatible calling convention.
4965 :
4966 elif test $ac_prog = install &&
4967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4968 # program-specific install script used by HP pwplus--don't use.
4969 :
4970 else
4971 rm -rf conftest.one conftest.two conftest.dir
4972 echo one > conftest.one
4973 echo two > conftest.two
4974 mkdir conftest.dir
4975 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4976 test -s conftest.one && test -s conftest.two &&
4977 test -s conftest.dir/conftest.one &&
4978 test -s conftest.dir/conftest.two
4979 then
4980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4981 break 3
4982 fi
4983 fi
4984 fi
4985 done
4986 done
4987 ;;
4988 esac
4989
4990 done
4991 IFS=$as_save_IFS
4992
4993 rm -rf conftest.one conftest.two conftest.dir
4994
4995 fi
4996 if test "${ac_cv_path_install+set}" = set; then
4997 INSTALL=$ac_cv_path_install
4998 else
4999 # As a last resort, use the slow shell script. Don't cache a
5000 # value for INSTALL within a source directory, because that will
5001 # break other packages using the cache if that directory is
5002 # removed, or if the value is a relative name.
5003 INSTALL=$ac_install_sh
5004 fi
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5007 $as_echo "$INSTALL" >&6; }
5008
5009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5010 # It thinks the first close brace ends the variable substitution.
5011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5012
5013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5014
5015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5016
5017 if test "x$RANLIB" = x; then
5018 if test -n "$ac_tool_prefix"; then
5019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5020 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -n "$RANLIB"; then
5027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 RANLIB=$ac_cv_prog_RANLIB
5047 if test -n "$RANLIB"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5049 $as_echo "$RANLIB" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055
5056 fi
5057 if test -z "$ac_cv_prog_RANLIB"; then
5058 ac_ct_RANLIB=$RANLIB
5059 # Extract the first word of "ranlib", so it can be a program name with args.
5060 set dummy ranlib; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 if test -n "$ac_ct_RANLIB"; then
5067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_ac_ct_RANLIB="ranlib"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5079 fi
5080 done
5081 done
5082 IFS=$as_save_IFS
5083
5084 fi
5085 fi
5086 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5087 if test -n "$ac_ct_RANLIB"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5089 $as_echo "$ac_ct_RANLIB" >&6; }
5090 else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095 if test "x$ac_ct_RANLIB" = x; then
5096 RANLIB=":"
5097 else
5098 case $cross_compiling:$ac_tool_warned in
5099 yes:)
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5102 ac_tool_warned=yes ;;
5103 esac
5104 RANLIB=$ac_ct_RANLIB
5105 fi
5106 else
5107 RANLIB="$ac_cv_prog_RANLIB"
5108 fi
5109
5110 fi
5111 # Extract the first word of "install-info", so it can be a program name with args.
5112 set dummy install-info; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 case $INSTALL_INFO in
5119 [\\/]* | ?:[\\/]*)
5120 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5121 ;;
5122 *)
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5133 fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138 ;;
5139 esac
5140 fi
5141 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5142 if test -n "$INSTALL_INFO"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5144 $as_echo "$INSTALL_INFO" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151 # Extract the first word of "install-info", so it can be a program name with args.
5152 set dummy install-info; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 case $INSTALL_INFO in
5159 [\\/]* | ?:[\\/]*)
5160 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5161 ;;
5162 *)
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in /usr/sbin
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 ;;
5179 esac
5180 fi
5181 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5182 if test -n "$INSTALL_INFO"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5184 $as_echo "$INSTALL_INFO" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190
5191 # Extract the first word of "install-info", so it can be a program name with args.
5192 set dummy install-info; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 case $INSTALL_INFO in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5201 ;;
5202 *)
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in /sbin
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214 done
5215 done
5216 IFS=$as_save_IFS
5217
5218 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5219 ;;
5220 esac
5221 fi
5222 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5223 if test -n "$INSTALL_INFO"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5225 $as_echo "$INSTALL_INFO" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232 # Extract the first word of "gzip", so it can be a program name with args.
5233 set dummy gzip; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 case $GZIP_PROG in
5240 [\\/]* | ?:[\\/]*)
5241 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5242 ;;
5243 *)
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 ;;
5260 esac
5261 fi
5262 GZIP_PROG=$ac_cv_path_GZIP_PROG
5263 if test -n "$GZIP_PROG"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5265 $as_echo "$GZIP_PROG" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271
5272
5273
5274 ## Need makeinfo >= 4.6 (?) to build the manuals.
5275 # Extract the first word of "makeinfo", so it can be a program name with args.
5276 set dummy makeinfo; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 case $MAKEINFO in
5283 [\\/]* | ?:[\\/]*)
5284 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5285 ;;
5286 *)
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5297 fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5303 ;;
5304 esac
5305 fi
5306 MAKEINFO=$ac_cv_path_MAKEINFO
5307 if test -n "$MAKEINFO"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5309 $as_echo "$MAKEINFO" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315
5316 if test "$MAKEINFO" != "no" && \
5317 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
5318 MAKEINFO=no
5319 fi
5320
5321 ## Makeinfo is unusual. For a released Emacs, the manuals are
5322 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5323 ## therefore in the category of "special tools" not normally required, which
5324 ## configure does not have to check for (eg autoconf itself).
5325 ## In a Bazaar checkout on the other hand, the manuals are not included.
5326 ## So makeinfo is a requirement to build from Bazaar, and configure
5327 ## should test for it as it does for any other build requirement.
5328 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5329 ## with pre-built manuals, from a Bazaar checkout.
5330 if test "$MAKEINFO" = "no"; then
5331 if test "x${with_makeinfo}" = "xno"; then
5332 MAKEINFO=off
5333 elif ! test -e $srcdir/info/emacs; then
5334 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5335 source tree does not seem to have pre-built manuals in the \`info' directory.
5336 Either install a suitable version of makeinfo, or re-run configure
5337 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5338 fi
5339 fi
5340
5341
5342 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5343 then
5344 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5345 fi
5346
5347 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5348 then
5349 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5350 fi
5351
5352
5353 late_LDFLAGS=$LDFLAGS
5354 if test "$GCC" = yes; then
5355 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5356 else
5357 LDFLAGS="$LDFLAGS -znocombreloc"
5358 fi
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5361 $as_echo_n "checking for -znocombreloc... " >&6; }
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 main(){return 0;}
5365 _ACEOF
5366 if ac_fn_c_try_link "$LINENO"; then :
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5368 $as_echo "yes" >&6; }
5369 else
5370 LDFLAGS=$late_LDFLAGS
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374 rm -f core conftest.err conftest.$ac_objext \
5375 conftest$ac_exeext conftest.$ac_ext
5376
5377 #### Extract some information from the operating system and machine files.
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5380 - which libraries the lib-src programs will want, and
5381 - whether the GNU malloc routines are usable..." >&5
5382 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5383 - which libraries the lib-src programs will want, and
5384 - whether the GNU malloc routines are usable..." >&6;}
5385
5386 ### First figure out CFLAGS (which we use for running the compiler here)
5387 ### and REAL_CFLAGS (which we use for real compilation).
5388 ### The two are the same except on a few systems, where they are made
5389 ### different to work around various lossages. For example,
5390 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5391 ### as implying static linking.
5392
5393 ### If the CFLAGS env var is specified, we use that value
5394 ### instead of the default.
5395
5396 ### It's not important that this name contain the PID; you can't run
5397 ### two configures in the same directory and have anything work
5398 ### anyway.
5399 tempcname="conftest.c"
5400
5401 echo '
5402 #include "'${srcdir}'/src/'${opsysfile}'"
5403 #include "'${srcdir}'/src/'${machfile}'"
5404 #ifndef LIBS_MACHINE
5405 #define LIBS_MACHINE
5406 #endif
5407 #ifndef LIBS_SYSTEM
5408 #define LIBS_SYSTEM
5409 #endif
5410 #ifndef C_SWITCH_SYSTEM
5411 #define C_SWITCH_SYSTEM
5412 #endif
5413 #ifndef C_SWITCH_MACHINE
5414 #define C_SWITCH_MACHINE
5415 #endif
5416 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5417 configure___ c_switch_system=C_SWITCH_SYSTEM
5418 configure___ c_switch_machine=C_SWITCH_MACHINE
5419
5420 #ifndef LIB_X11_LIB
5421 #define LIB_X11_LIB -lX11
5422 #endif
5423
5424 #ifndef LIBX11_SYSTEM
5425 #define LIBX11_SYSTEM
5426 #endif
5427 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5428
5429 #ifdef UNEXEC
5430 configure___ unexec=UNEXEC
5431 #else
5432 configure___ unexec=unexec.o
5433 #endif
5434
5435 #ifdef SYSTEM_MALLOC
5436 configure___ system_malloc=yes
5437 #else
5438 configure___ system_malloc=no
5439 #endif
5440
5441 #ifdef USE_MMAP_FOR_BUFFERS
5442 configure___ use_mmap_for_buffers=yes
5443 #else
5444 configure___ use_mmap_for_buffers=no
5445 #endif
5446
5447 #ifndef C_DEBUG_SWITCH
5448 #define C_DEBUG_SWITCH -g
5449 #endif
5450
5451 #ifndef C_OPTIMIZE_SWITCH
5452 #ifdef __GNUC__
5453 #define C_OPTIMIZE_SWITCH -O2
5454 #else
5455 #define C_OPTIMIZE_SWITCH -O
5456 #endif
5457 #endif
5458
5459 #ifndef C_WARNINGS_SWITCH
5460 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5461 #endif
5462
5463 #ifndef LD_SWITCH_MACHINE
5464 #define LD_SWITCH_MACHINE
5465 #endif
5466
5467 #ifndef LD_SWITCH_SYSTEM
5468 #define LD_SWITCH_SYSTEM
5469 #endif
5470
5471 #ifndef LD_SWITCH_X_SITE_AUX
5472 #define LD_SWITCH_X_SITE_AUX
5473 #endif
5474
5475 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5476 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5477
5478 #ifdef THIS_IS_CONFIGURE
5479
5480 /* Get the CFLAGS for tests in configure. */
5481 #ifdef __GNUC__
5482 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5483 #else
5484 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5485 #endif
5486
5487 #else /* not THIS_IS_CONFIGURE */
5488
5489 /* Get the CFLAGS for real compilation. */
5490 #ifdef __GNUC__
5491 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5492 #else
5493 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5494 #endif
5495
5496 #endif /* not THIS_IS_CONFIGURE */
5497 ' > ${tempcname}
5498
5499 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5500
5501 # The value of CPP is a quoted variable reference, so we need to do this
5502 # to get its actual value...
5503 CPP=`eval "echo $CPP"`
5504 eval `${CPP} -Isrc ${tempcname} \
5505 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5506 if test "x$SPECIFIED_CFLAGS" = x; then
5507 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5508 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5509 else
5510 REAL_CFLAGS="$CFLAGS"
5511 fi
5512 rm ${tempcname}
5513
5514 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5515
5516 ### Make sure subsequent tests use flags consistent with the build flags.
5517
5518 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5519 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5520 else
5521 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5522 fi
5523
5524
5525
5526 # Check whether --enable-largefile was given.
5527 if test "${enable_largefile+set}" = set; then :
5528 enableval=$enable_largefile;
5529 fi
5530
5531 if test "$enable_largefile" != no; then
5532
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5534 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5535 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 ac_cv_sys_largefile_CC=no
5539 if test "$GCC" != yes; then
5540 ac_save_CC=$CC
5541 while :; do
5542 # IRIX 6.2 and later do not support large files by default,
5543 # so use the C compiler's -n32 option if that helps.
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #include <sys/types.h>
5547 /* Check that off_t can represent 2**63 - 1 correctly.
5548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5549 since some C++ compilers masquerading as C compilers
5550 incorrectly reject 9223372036854775807. */
5551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5553 && LARGE_OFF_T % 2147483647 == 1)
5554 ? 1 : -1];
5555 int
5556 main ()
5557 {
5558
5559 ;
5560 return 0;
5561 }
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564 break
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext
5567 CC="$CC -n32"
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 ac_cv_sys_largefile_CC=' -n32'; break
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext
5572 break
5573 done
5574 CC=$ac_save_CC
5575 rm -f conftest.$ac_ext
5576 fi
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5579 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5580 if test "$ac_cv_sys_largefile_CC" != no; then
5581 CC=$CC$ac_cv_sys_largefile_CC
5582 fi
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5585 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5586 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 while :; do
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #include <sys/types.h>
5593 /* Check that off_t can represent 2**63 - 1 correctly.
5594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5595 since some C++ compilers masquerading as C compilers
5596 incorrectly reject 9223372036854775807. */
5597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5599 && LARGE_OFF_T % 2147483647 == 1)
5600 ? 1 : -1];
5601 int
5602 main ()
5603 {
5604
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610 ac_cv_sys_file_offset_bits=no; break
5611 fi
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #define _FILE_OFFSET_BITS 64
5616 #include <sys/types.h>
5617 /* Check that off_t can represent 2**63 - 1 correctly.
5618 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5619 since some C++ compilers masquerading as C compilers
5620 incorrectly reject 9223372036854775807. */
5621 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5622 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5623 && LARGE_OFF_T % 2147483647 == 1)
5624 ? 1 : -1];
5625 int
5626 main ()
5627 {
5628
5629 ;
5630 return 0;
5631 }
5632 _ACEOF
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 ac_cv_sys_file_offset_bits=64; break
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 ac_cv_sys_file_offset_bits=unknown
5638 break
5639 done
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5642 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5643 case $ac_cv_sys_file_offset_bits in #(
5644 no | unknown) ;;
5645 *)
5646 cat >>confdefs.h <<_ACEOF
5647 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5648 _ACEOF
5649 ;;
5650 esac
5651 rm -rf conftest*
5652 if test $ac_cv_sys_file_offset_bits = unknown; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5654 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5655 if test "${ac_cv_sys_large_files+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 while :; do
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5662 /* Check that off_t can represent 2**63 - 1 correctly.
5663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5664 since some C++ compilers masquerading as C compilers
5665 incorrectly reject 9223372036854775807. */
5666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5668 && LARGE_OFF_T % 2147483647 == 1)
5669 ? 1 : -1];
5670 int
5671 main ()
5672 {
5673
5674 ;
5675 return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679 ac_cv_sys_large_files=no; break
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 #define _LARGE_FILES 1
5685 #include <sys/types.h>
5686 /* Check that off_t can represent 2**63 - 1 correctly.
5687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5688 since some C++ compilers masquerading as C compilers
5689 incorrectly reject 9223372036854775807. */
5690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5692 && LARGE_OFF_T % 2147483647 == 1)
5693 ? 1 : -1];
5694 int
5695 main ()
5696 {
5697
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703 ac_cv_sys_large_files=1; break
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 ac_cv_sys_large_files=unknown
5707 break
5708 done
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5711 $as_echo "$ac_cv_sys_large_files" >&6; }
5712 case $ac_cv_sys_large_files in #(
5713 no | unknown) ;;
5714 *)
5715 cat >>confdefs.h <<_ACEOF
5716 #define _LARGE_FILES $ac_cv_sys_large_files
5717 _ACEOF
5718 ;;
5719 esac
5720 rm -rf conftest*
5721 fi
5722 fi
5723
5724
5725 ## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x.
5726 ## Other machine types hard-code the location in src/[ms]/*.h.
5727 case "${canonical}" in
5728 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5729 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5730 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5731 ## For anything else (eg /usr/lib32), it is up the user to specify
5732 ## the location (bug#5655).
5733 ## Test for crtn.o, not just the directory, because sometimes the
5734 ## directory exists but does not have the relevant files (bug#1287).
5735 ## If user specified a crt-dir, use that unconditionally.
5736 if test "X$CRT_DIR" = "X"; then
5737 CRT_DIR=/usr/lib
5738 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5739 fi
5740
5741 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5742 as_fn_error $? "crt*.o not found. Use --with-crt-dir to specify the location." "$LINENO" 5
5743 ;;
5744 esac
5745 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5746
5747
5748
5749
5750
5751 if test "${with_sound}" != "no"; then
5752 # Sound support for GNU/Linux and the free BSDs.
5753 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5754 do :
5755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5756 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5757 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5758 cat >>confdefs.h <<_ACEOF
5759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5760 _ACEOF
5761
5762 fi
5763
5764 done
5765
5766 # Emulation library used on NetBSD.
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5768 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5769 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 ac_check_lib_save_LIBS=$LIBS
5773 LIBS="-lossaudio $LIBS"
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776
5777 /* Override any GCC internal prototype to avoid an error.
5778 Use char because int might match the return type of a GCC
5779 builtin and then its argument prototype would still apply. */
5780 #ifdef __cplusplus
5781 extern "C"
5782 #endif
5783 char _oss_ioctl ();
5784 int
5785 main ()
5786 {
5787 return _oss_ioctl ();
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 if ac_fn_c_try_link "$LINENO"; then :
5793 ac_cv_lib_ossaudio__oss_ioctl=yes
5794 else
5795 ac_cv_lib_ossaudio__oss_ioctl=no
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext \
5798 conftest$ac_exeext conftest.$ac_ext
5799 LIBS=$ac_check_lib_save_LIBS
5800 fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5802 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5803 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5804 LIBSOUND=-lossaudio
5805 else
5806 LIBSOUND=
5807 fi
5808
5809
5810
5811 ALSA_REQUIRED=1.0.0
5812 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5813
5814 succeeded=no
5815
5816 # Extract the first word of "pkg-config", so it can be a program name with args.
5817 set dummy pkg-config; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 case $PKG_CONFIG in
5824 [\\/]* | ?:[\\/]*)
5825 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5826 ;;
5827 *)
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5844 ;;
5845 esac
5846 fi
5847 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5848 if test -n "$PKG_CONFIG"; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5850 $as_echo "$PKG_CONFIG" >&6; }
5851 else
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 fi
5855
5856
5857
5858 if test "$PKG_CONFIG" = "no" ; then
5859 HAVE_ALSA=no
5860 else
5861 PKG_CONFIG_MIN_VERSION=0.9.0
5862 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5864 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5865
5866 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5868 $as_echo "yes" >&6; }
5869 succeeded=yes
5870
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5872 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5873 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5875 $as_echo "$ALSA_CFLAGS" >&6; }
5876
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5878 $as_echo_n "checking ALSA_LIBS... " >&6; }
5879 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5881 $as_echo "$ALSA_LIBS" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 ALSA_CFLAGS=""
5886 ALSA_LIBS=""
5887 ## If we have a custom action on failure, don't print errors, but
5888 ## do set a variable so people can do so.
5889 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5890
5891 fi
5892
5893
5894
5895 else
5896 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5897 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5898 fi
5899 fi
5900
5901 if test $succeeded = yes; then
5902 HAVE_ALSA=yes
5903 else
5904 HAVE_ALSA=no
5905 fi
5906
5907 if test $HAVE_ALSA = yes; then
5908 SAVE_CFLAGS="$CFLAGS"
5909 SAVE_LDFLAGS="$LDFLAGS"
5910 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5911 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <asoundlib.h>
5915 int
5916 main ()
5917 {
5918 snd_lib_error_set_handler (0);
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 if ac_fn_c_try_compile "$LINENO"; then :
5924 emacs_alsa_normal=yes
5925 else
5926 emacs_alsa_normal=no
5927 fi
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 if test "$emacs_alsa_normal" != yes; then
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 #include <alsa/asoundlib.h>
5933 int
5934 main ()
5935 {
5936 snd_lib_error_set_handler (0);
5937 ;
5938 return 0;
5939 }
5940 _ACEOF
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942 emacs_alsa_subdir=yes
5943 else
5944 emacs_alsa_subdir=no
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 if test "$emacs_alsa_subdir" != yes; then
5948 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5949 fi
5950 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5951 fi
5952
5953 CFLAGS="$SAVE_CFLAGS"
5954 LDFLAGS="$SAVE_LDFLAGS"
5955 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5956 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5957
5958 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5959
5960 fi
5961
5962 fi
5963
5964 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5965 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5966 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5967 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5968 sys/utsname.h pwd.h utmp.h
5969 do :
5970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5971 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5973 cat >>confdefs.h <<_ACEOF
5974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5975 _ACEOF
5976
5977 fi
5978
5979 done
5980
5981
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5983 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 #include <sys/personality.h>
5987 int
5988 main ()
5989 {
5990 personality (PER_LINUX32)
5991 ;
5992 return 0;
5993 }
5994 _ACEOF
5995 if ac_fn_c_try_compile "$LINENO"; then :
5996 emacs_cv_personality_linux32=yes
5997 else
5998 emacs_cv_personality_linux32=no
5999 fi
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6002 $as_echo "$emacs_cv_personality_linux32" >&6; }
6003
6004 if test $emacs_cv_personality_linux32 = yes; then
6005
6006 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6007
6008 fi
6009
6010 for ac_header in term.h
6011 do :
6012 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6013 if test "x$ac_cv_header_term_h" = x""yes; then :
6014 cat >>confdefs.h <<_ACEOF
6015 #define HAVE_TERM_H 1
6016 _ACEOF
6017
6018 fi
6019
6020 done
6021
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6023 $as_echo_n "checking for ANSI C header files... " >&6; }
6024 if test "${ac_cv_header_stdc+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #include <stdlib.h>
6030 #include <stdarg.h>
6031 #include <string.h>
6032 #include <float.h>
6033
6034 int
6035 main ()
6036 {
6037
6038 ;
6039 return 0;
6040 }
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"; then :
6043 ac_cv_header_stdc=yes
6044 else
6045 ac_cv_header_stdc=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048
6049 if test $ac_cv_header_stdc = yes; then
6050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 #include <string.h>
6054
6055 _ACEOF
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 $EGREP "memchr" >/dev/null 2>&1; then :
6058
6059 else
6060 ac_cv_header_stdc=no
6061 fi
6062 rm -f conftest*
6063
6064 fi
6065
6066 if test $ac_cv_header_stdc = yes; then
6067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <stdlib.h>
6071
6072 _ACEOF
6073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6074 $EGREP "free" >/dev/null 2>&1; then :
6075
6076 else
6077 ac_cv_header_stdc=no
6078 fi
6079 rm -f conftest*
6080
6081 fi
6082
6083 if test $ac_cv_header_stdc = yes; then
6084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6085 if test "$cross_compiling" = yes; then :
6086 :
6087 else
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 #include <ctype.h>
6091 #include <stdlib.h>
6092 #if ((' ' & 0x0FF) == 0x020)
6093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6095 #else
6096 # define ISLOWER(c) \
6097 (('a' <= (c) && (c) <= 'i') \
6098 || ('j' <= (c) && (c) <= 'r') \
6099 || ('s' <= (c) && (c) <= 'z'))
6100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6101 #endif
6102
6103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6104 int
6105 main ()
6106 {
6107 int i;
6108 for (i = 0; i < 256; i++)
6109 if (XOR (islower (i), ISLOWER (i))
6110 || toupper (i) != TOUPPER (i))
6111 return 2;
6112 return 0;
6113 }
6114 _ACEOF
6115 if ac_fn_c_try_run "$LINENO"; then :
6116
6117 else
6118 ac_cv_header_stdc=no
6119 fi
6120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6121 conftest.$ac_objext conftest.beam conftest.$ac_ext
6122 fi
6123
6124 fi
6125 fi
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6127 $as_echo "$ac_cv_header_stdc" >&6; }
6128 if test $ac_cv_header_stdc = yes; then
6129
6130 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6131
6132 fi
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6135 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6136 if test "${ac_cv_header_time+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6141 #include <sys/types.h>
6142 #include <sys/time.h>
6143 #include <time.h>
6144
6145 int
6146 main ()
6147 {
6148 if ((struct tm *) 0)
6149 return 0;
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 if ac_fn_c_try_compile "$LINENO"; then :
6155 ac_cv_header_time=yes
6156 else
6157 ac_cv_header_time=no
6158 fi
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 fi
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6162 $as_echo "$ac_cv_header_time" >&6; }
6163 if test $ac_cv_header_time = yes; then
6164
6165 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6166
6167 fi
6168
6169 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6170 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6171 ac_have_decl=1
6172 else
6173 ac_have_decl=0
6174 fi
6175
6176 cat >>confdefs.h <<_ACEOF
6177 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6178 _ACEOF
6179
6180 if test $ac_cv_have_decl_sys_siglist != yes; then
6181 # For Tru64, at least:
6182 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6183 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6184 ac_have_decl=1
6185 else
6186 ac_have_decl=0
6187 fi
6188
6189 cat >>confdefs.h <<_ACEOF
6190 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6191 _ACEOF
6192
6193 if test $ac_cv_have_decl___sys_siglist = yes; then
6194
6195 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6196
6197 fi
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6200 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6201 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 #include <sys/types.h>
6207 #include <sys/wait.h>
6208 #ifndef WEXITSTATUS
6209 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6210 #endif
6211 #ifndef WIFEXITED
6212 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6213 #endif
6214
6215 int
6216 main ()
6217 {
6218 int s;
6219 wait (&s);
6220 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6221 ;
6222 return 0;
6223 }
6224 _ACEOF
6225 if ac_fn_c_try_compile "$LINENO"; then :
6226 ac_cv_header_sys_wait_h=yes
6227 else
6228 ac_cv_header_sys_wait_h=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 fi
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6233 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6234 if test $ac_cv_header_sys_wait_h = yes; then
6235
6236 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6237
6238 fi
6239
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6242 $as_echo_n "checking for struct utimbuf... " >&6; }
6243 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248 #ifdef TIME_WITH_SYS_TIME
6249 #include <sys/time.h>
6250 #include <time.h>
6251 #else
6252 #ifdef HAVE_SYS_TIME_H
6253 #include <sys/time.h>
6254 #else
6255 #include <time.h>
6256 #endif
6257 #endif
6258 #ifdef HAVE_UTIME_H
6259 #include <utime.h>
6260 #endif
6261 int
6262 main ()
6263 {
6264 static struct utimbuf x; x.actime = x.modtime;
6265 ;
6266 return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_compile "$LINENO"; then :
6270 emacs_cv_struct_utimbuf=yes
6271 else
6272 emacs_cv_struct_utimbuf=no
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6277 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6278 if test $emacs_cv_struct_utimbuf = yes; then
6279
6280 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6281
6282 fi
6283
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6285 $as_echo_n "checking return type of signal handlers... " >&6; }
6286 if test "${ac_cv_type_signal+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 #include <sys/types.h>
6292 #include <signal.h>
6293
6294 int
6295 main ()
6296 {
6297 return *(signal (0, 0)) (0) == 1;
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_compile "$LINENO"; then :
6303 ac_cv_type_signal=int
6304 else
6305 ac_cv_type_signal=void
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6310 $as_echo "$ac_cv_type_signal" >&6; }
6311
6312 cat >>confdefs.h <<_ACEOF
6313 #define RETSIGTYPE $ac_cv_type_signal
6314 _ACEOF
6315
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6319 $as_echo_n "checking for speed_t... " >&6; }
6320 if test "${emacs_cv_speed_t+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 #include <termios.h>
6326 int
6327 main ()
6328 {
6329 speed_t x = 1;
6330 ;
6331 return 0;
6332 }
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335 emacs_cv_speed_t=yes
6336 else
6337 emacs_cv_speed_t=no
6338 fi
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6342 $as_echo "$emacs_cv_speed_t" >&6; }
6343 if test $emacs_cv_speed_t = yes; then
6344
6345 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6346
6347 fi
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6350 $as_echo_n "checking for struct timeval... " >&6; }
6351 if test "${emacs_cv_struct_timeval+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 #ifdef TIME_WITH_SYS_TIME
6357 #include <sys/time.h>
6358 #include <time.h>
6359 #else
6360 #ifdef HAVE_SYS_TIME_H
6361 #include <sys/time.h>
6362 #else
6363 #include <time.h>
6364 #endif
6365 #endif
6366 int
6367 main ()
6368 {
6369 static struct timeval x; x.tv_sec = x.tv_usec;
6370 ;
6371 return 0;
6372 }
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 emacs_cv_struct_timeval=yes
6376 else
6377 emacs_cv_struct_timeval=no
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6382 $as_echo "$emacs_cv_struct_timeval" >&6; }
6383 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6384 if test $emacs_cv_struct_timeval = yes; then
6385
6386 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6387
6388 fi
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6391 $as_echo_n "checking for struct exception... " >&6; }
6392 if test "${emacs_cv_struct_exception+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 #include <math.h>
6398 int
6399 main ()
6400 {
6401 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6402 ;
6403 return 0;
6404 }
6405 _ACEOF
6406 if ac_fn_c_try_compile "$LINENO"; then :
6407 emacs_cv_struct_exception=yes
6408 else
6409 emacs_cv_struct_exception=no
6410 fi
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6414 $as_echo "$emacs_cv_struct_exception" >&6; }
6415 HAVE_EXCEPTION=$emacs_cv_struct_exception
6416 if test $emacs_cv_struct_exception != yes; then
6417
6418 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6419
6420 fi
6421
6422 for ac_header in sys/socket.h
6423 do :
6424 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6425 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6426 cat >>confdefs.h <<_ACEOF
6427 #define HAVE_SYS_SOCKET_H 1
6428 _ACEOF
6429
6430 fi
6431
6432 done
6433
6434 for ac_header in net/if.h
6435 do :
6436 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6437 #if HAVE_SYS_SOCKET_H
6438 #include <sys/socket.h>
6439 #endif
6440 "
6441 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6442 cat >>confdefs.h <<_ACEOF
6443 #define HAVE_NET_IF_H 1
6444 _ACEOF
6445
6446 fi
6447
6448 done
6449
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6452 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6453 if test "${ac_cv_struct_tm+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 #include <sys/types.h>
6459 #include <time.h>
6460
6461 int
6462 main ()
6463 {
6464 struct tm tm;
6465 int *p = &tm.tm_sec;
6466 return !p;
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 ac_cv_struct_tm=time.h
6473 else
6474 ac_cv_struct_tm=sys/time.h
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6479 $as_echo "$ac_cv_struct_tm" >&6; }
6480 if test $ac_cv_struct_tm = sys/time.h; then
6481
6482 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6483
6484 fi
6485
6486 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6487 #include <$ac_cv_struct_tm>
6488
6489 "
6490 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6491
6492 cat >>confdefs.h <<_ACEOF
6493 #define HAVE_STRUCT_TM_TM_ZONE 1
6494 _ACEOF
6495
6496
6497 fi
6498
6499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6500
6501 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6502
6503 else
6504 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6505 "
6506 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6507 ac_have_decl=1
6508 else
6509 ac_have_decl=0
6510 fi
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define HAVE_DECL_TZNAME $ac_have_decl
6514 _ACEOF
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6517 $as_echo_n "checking for tzname... " >&6; }
6518 if test "${ac_cv_var_tzname+set}" = set; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 #include <time.h>
6524 #if !HAVE_DECL_TZNAME
6525 extern char *tzname[];
6526 #endif
6527
6528 int
6529 main ()
6530 {
6531 return tzname[0][0];
6532 ;
6533 return 0;
6534 }
6535 _ACEOF
6536 if ac_fn_c_try_link "$LINENO"; then :
6537 ac_cv_var_tzname=yes
6538 else
6539 ac_cv_var_tzname=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext \
6542 conftest$ac_exeext conftest.$ac_ext
6543 fi
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6545 $as_echo "$ac_cv_var_tzname" >&6; }
6546 if test $ac_cv_var_tzname = yes; then
6547
6548 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6549
6550 fi
6551 fi
6552
6553 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6554 "
6555 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6556
6557 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6558
6559 fi
6560
6561 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6562 #if HAVE_SYS_SOCKET_H
6563 #include <sys/socket.h>
6564 #endif
6565 #if HAVE_NET_IF_H
6566 #include <net/if.h>
6567 #endif
6568 "
6569 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6570
6571 cat >>confdefs.h <<_ACEOF
6572 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6573 _ACEOF
6574
6575
6576 fi
6577 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6578 #if HAVE_SYS_SOCKET_H
6579 #include <sys/socket.h>
6580 #endif
6581 #if HAVE_NET_IF_H
6582 #include <net/if.h>
6583 #endif
6584 "
6585 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6586
6587 cat >>confdefs.h <<_ACEOF
6588 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6589 _ACEOF
6590
6591
6592 fi
6593 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6594 #if HAVE_SYS_SOCKET_H
6595 #include <sys/socket.h>
6596 #endif
6597 #if HAVE_NET_IF_H
6598 #include <net/if.h>
6599 #endif
6600 "
6601 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6602
6603 cat >>confdefs.h <<_ACEOF
6604 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6605 _ACEOF
6606
6607
6608 fi
6609 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6610 #if HAVE_SYS_SOCKET_H
6611 #include <sys/socket.h>
6612 #endif
6613 #if HAVE_NET_IF_H
6614 #include <net/if.h>
6615 #endif
6616 "
6617 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6618
6619 cat >>confdefs.h <<_ACEOF
6620 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6621 _ACEOF
6622
6623
6624 fi
6625 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6626 #if HAVE_SYS_SOCKET_H
6627 #include <sys/socket.h>
6628 #endif
6629 #if HAVE_NET_IF_H
6630 #include <net/if.h>
6631 #endif
6632 "
6633 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6634
6635 cat >>confdefs.h <<_ACEOF
6636 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6637 _ACEOF
6638
6639
6640 fi
6641
6642
6643
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6645 $as_echo_n "checking for function prototypes... " >&6; }
6646 if test "$ac_cv_prog_cc_c89" != no; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6648 $as_echo "yes" >&6; }
6649
6650 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6651
6652
6653 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6654
6655 else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6661 $as_echo_n "checking for working volatile... " >&6; }
6662 if test "${ac_cv_c_volatile+set}" = set; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667
6668 int
6669 main ()
6670 {
6671
6672 volatile int x;
6673 int * volatile y = (int *) 0;
6674 return !x && !y;
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680 ac_cv_c_volatile=yes
6681 else
6682 ac_cv_c_volatile=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6687 $as_echo "$ac_cv_c_volatile" >&6; }
6688 if test $ac_cv_c_volatile = no; then
6689
6690 $as_echo "#define volatile /**/" >>confdefs.h
6691
6692 fi
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6695 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6696 if test "${ac_cv_c_const+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701
6702 int
6703 main ()
6704 {
6705 /* FIXME: Include the comments suggested by Paul. */
6706 #ifndef __cplusplus
6707 /* Ultrix mips cc rejects this. */
6708 typedef int charset[2];
6709 const charset cs;
6710 /* SunOS 4.1.1 cc rejects this. */
6711 char const *const *pcpcc;
6712 char **ppc;
6713 /* NEC SVR4.0.2 mips cc rejects this. */
6714 struct point {int x, y;};
6715 static struct point const zero = {0,0};
6716 /* AIX XL C 1.02.0.0 rejects this.
6717 It does not let you subtract one const X* pointer from another in
6718 an arm of an if-expression whose if-part is not a constant
6719 expression */
6720 const char *g = "string";
6721 pcpcc = &g + (g ? g-g : 0);
6722 /* HPUX 7.0 cc rejects these. */
6723 ++pcpcc;
6724 ppc = (char**) pcpcc;
6725 pcpcc = (char const *const *) ppc;
6726 { /* SCO 3.2v4 cc rejects this. */
6727 char *t;
6728 char const *s = 0 ? (char *) 0 : (char const *) 0;
6729
6730 *t++ = 0;
6731 if (s) return 0;
6732 }
6733 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6734 int x[] = {25, 17};
6735 const int *foo = &x[0];
6736 ++foo;
6737 }
6738 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6739 typedef const int *iptr;
6740 iptr p = 0;
6741 ++p;
6742 }
6743 { /* AIX XL C 1.02.0.0 rejects this saying
6744 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6745 struct s { int j; const int *ap[3]; };
6746 struct s *b; b->j = 5;
6747 }
6748 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6749 const int foo = 10;
6750 if (!foo) return 0;
6751 }
6752 return !cs[0] && !zero.x;
6753 #endif
6754
6755 ;
6756 return 0;
6757 }
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 ac_cv_c_const=yes
6761 else
6762 ac_cv_c_const=no
6763 fi
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6767 $as_echo "$ac_cv_c_const" >&6; }
6768 if test $ac_cv_c_const = no; then
6769
6770 $as_echo "#define const /**/" >>confdefs.h
6771
6772 fi
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6775 $as_echo_n "checking for void * support... " >&6; }
6776 if test "${emacs_cv_void_star+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781
6782 int
6783 main ()
6784 {
6785 void * foo;
6786 ;
6787 return 0;
6788 }
6789 _ACEOF
6790 if ac_fn_c_try_compile "$LINENO"; then :
6791 emacs_cv_void_star=yes
6792 else
6793 emacs_cv_void_star=no
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 fi
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6798 $as_echo "$emacs_cv_void_star" >&6; }
6799 if test $emacs_cv_void_star = yes; then
6800 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6801
6802 else
6803 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6804
6805 fi
6806
6807
6808
6809
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6812 set x ${MAKE-make}
6813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 cat >conftest.make <<\_ACEOF
6818 SHELL = /bin/sh
6819 all:
6820 @echo '@@@%%%=$(MAKE)=@@@%%%'
6821 _ACEOF
6822 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6824 *@@@%%%=?*=@@@%%%*)
6825 eval ac_cv_prog_make_${ac_make}_set=yes;;
6826 *)
6827 eval ac_cv_prog_make_${ac_make}_set=no;;
6828 esac
6829 rm -f conftest.make
6830 fi
6831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6833 $as_echo "yes" >&6; }
6834 SET_MAKE=
6835 else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6838 SET_MAKE="MAKE=${MAKE-make}"
6839 fi
6840
6841
6842 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6844 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6845 HAVE_GNU_MAKE=no
6846 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6847 if test "x$testval" != x; then
6848 HAVE_GNU_MAKE=yes
6849 else
6850 ac_enable_autodepend=no
6851 fi
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6853 $as_echo "$HAVE_GNU_MAKE" >&6; }
6854 if test $HAVE_GNU_MAKE = yes; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6856 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6857 SAVE_CFLAGS="$CFLAGS"
6858 CFLAGS="$CFLAGS -MMD -MF deps.d"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861
6862 int
6863 main ()
6864 {
6865
6866 ;
6867 return 0;
6868 }
6869 _ACEOF
6870 if ac_fn_c_try_compile "$LINENO"; then :
6871
6872 else
6873 ac_enable_autodepend=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 CFLAGS="$SAVE_CFLAGS"
6877 test -f deps.d || ac_enable_autodepend=no
6878 rm -rf deps.d
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6880 $as_echo "$ac_enable_autodepend" >&6; }
6881 fi
6882 if test $ac_enable_autodepend = yes; then
6883
6884 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6885
6886 fi
6887 fi
6888
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6890 $as_echo_n "checking for long file names... " >&6; }
6891 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 ac_cv_sys_long_file_names=yes
6895 # Test for long file names in all the places we know might matter:
6896 # . the current directory, where building will happen
6897 # $prefix/lib where we will be installing things
6898 # $exec_prefix/lib likewise
6899 # $TMPDIR if set, where it might want to write temporary files
6900 # /tmp where it might want to write temporary files
6901 # /var/tmp likewise
6902 # /usr/tmp likewise
6903 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6904 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6905 # in the usual case where exec_prefix is '${prefix}'.
6906 case $ac_dir in #(
6907 . | /* | ?:[\\/]*) ;; #(
6908 *) continue;;
6909 esac
6910 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6911 ac_xdir=$ac_dir/cf$$
6912 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6913 ac_tf1=$ac_xdir/conftest9012345
6914 ac_tf2=$ac_xdir/conftest9012346
6915 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6916 ac_cv_sys_long_file_names=no
6917 rm -f -r "$ac_xdir" 2>/dev/null
6918 test $ac_cv_sys_long_file_names = no && break
6919 done
6920 fi
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6922 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6923 if test $ac_cv_sys_long_file_names = yes; then
6924
6925 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6926
6927 fi
6928
6929
6930 #### Choose a window system.
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6933 $as_echo_n "checking for X... " >&6; }
6934
6935
6936 # Check whether --with-x was given.
6937 if test "${with_x+set}" = set; then :
6938 withval=$with_x;
6939 fi
6940
6941 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6942 if test "x$with_x" = xno; then
6943 # The user explicitly disabled X.
6944 have_x=disabled
6945 else
6946 case $x_includes,$x_libraries in #(
6947 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6948 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 # One or both of the vars are not set, and there is no cached value.
6952 ac_x_includes=no ac_x_libraries=no
6953 rm -f -r conftest.dir
6954 if mkdir conftest.dir; then
6955 cd conftest.dir
6956 cat >Imakefile <<'_ACEOF'
6957 incroot:
6958 @echo incroot='${INCROOT}'
6959 usrlibdir:
6960 @echo usrlibdir='${USRLIBDIR}'
6961 libdir:
6962 @echo libdir='${LIBDIR}'
6963 _ACEOF
6964 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6965 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6966 for ac_var in incroot usrlibdir libdir; do
6967 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6968 done
6969 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6970 for ac_extension in a so sl dylib la dll; do
6971 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6972 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6973 ac_im_usrlibdir=$ac_im_libdir; break
6974 fi
6975 done
6976 # Screen out bogus values from the imake configuration. They are
6977 # bogus both because they are the default anyway, and because
6978 # using them would break gcc on systems where it needs fixed includes.
6979 case $ac_im_incroot in
6980 /usr/include) ac_x_includes= ;;
6981 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6982 esac
6983 case $ac_im_usrlibdir in
6984 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6985 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6986 esac
6987 fi
6988 cd ..
6989 rm -f -r conftest.dir
6990 fi
6991
6992 # Standard set of common directories for X headers.
6993 # Check X11 before X11Rn because it is often a symlink to the current release.
6994 ac_x_header_dirs='
6995 /usr/X11/include
6996 /usr/X11R7/include
6997 /usr/X11R6/include
6998 /usr/X11R5/include
6999 /usr/X11R4/include
7000
7001 /usr/include/X11
7002 /usr/include/X11R7
7003 /usr/include/X11R6
7004 /usr/include/X11R5
7005 /usr/include/X11R4
7006
7007 /usr/local/X11/include
7008 /usr/local/X11R7/include
7009 /usr/local/X11R6/include
7010 /usr/local/X11R5/include
7011 /usr/local/X11R4/include
7012
7013 /usr/local/include/X11
7014 /usr/local/include/X11R7
7015 /usr/local/include/X11R6
7016 /usr/local/include/X11R5
7017 /usr/local/include/X11R4
7018
7019 /usr/X386/include
7020 /usr/x386/include
7021 /usr/XFree86/include/X11
7022
7023 /usr/include
7024 /usr/local/include
7025 /usr/unsupported/include
7026 /usr/athena/include
7027 /usr/local/x11r5/include
7028 /usr/lpp/Xamples/include
7029
7030 /usr/openwin/include
7031 /usr/openwin/share/include'
7032
7033 if test "$ac_x_includes" = no; then
7034 # Guess where to find include files, by looking for Xlib.h.
7035 # First, try using that file with no special directory specified.
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 #include <X11/Xlib.h>
7039 _ACEOF
7040 if ac_fn_c_try_cpp "$LINENO"; then :
7041 # We can compile using X headers with no special include directory.
7042 ac_x_includes=
7043 else
7044 for ac_dir in $ac_x_header_dirs; do
7045 if test -r "$ac_dir/X11/Xlib.h"; then
7046 ac_x_includes=$ac_dir
7047 break
7048 fi
7049 done
7050 fi
7051 rm -f conftest.err conftest.i conftest.$ac_ext
7052 fi # $ac_x_includes = no
7053
7054 if test "$ac_x_libraries" = no; then
7055 # Check for the libraries.
7056 # See if we find them without any special options.
7057 # Don't add to $LIBS permanently.
7058 ac_save_LIBS=$LIBS
7059 LIBS="-lX11 $LIBS"
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 #include <X11/Xlib.h>
7063 int
7064 main ()
7065 {
7066 XrmInitialize ()
7067 ;
7068 return 0;
7069 }
7070 _ACEOF
7071 if ac_fn_c_try_link "$LINENO"; then :
7072 LIBS=$ac_save_LIBS
7073 # We can link X programs with no special library path.
7074 ac_x_libraries=
7075 else
7076 LIBS=$ac_save_LIBS
7077 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7078 do
7079 # Don't even attempt the hair of trying to link an X program!
7080 for ac_extension in a so sl dylib la dll; do
7081 if test -r "$ac_dir/libX11.$ac_extension"; then
7082 ac_x_libraries=$ac_dir
7083 break 2
7084 fi
7085 done
7086 done
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090 fi # $ac_x_libraries = no
7091
7092 case $ac_x_includes,$ac_x_libraries in #(
7093 no,* | *,no | *\'*)
7094 # Didn't find X, or a directory has "'" in its name.
7095 ac_cv_have_x="have_x=no";; #(
7096 *)
7097 # Record where we found X for the cache.
7098 ac_cv_have_x="have_x=yes\
7099 ac_x_includes='$ac_x_includes'\
7100 ac_x_libraries='$ac_x_libraries'"
7101 esac
7102 fi
7103 ;; #(
7104 *) have_x=yes;;
7105 esac
7106 eval "$ac_cv_have_x"
7107 fi # $with_x != no
7108
7109 if test "$have_x" != yes; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7111 $as_echo "$have_x" >&6; }
7112 no_x=yes
7113 else
7114 # If each of the values was on the command line, it overrides each guess.
7115 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7116 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7117 # Update the cache value to reflect the command line values.
7118 ac_cv_have_x="have_x=yes\
7119 ac_x_includes='$x_includes'\
7120 ac_x_libraries='$x_libraries'"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7122 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7123 fi
7124
7125 if test "$no_x" = yes; then
7126 window_system=none
7127 else
7128 window_system=x11
7129 fi
7130
7131 ## Workaround for bug in autoconf <= 2.62.
7132 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7133 ## No need to do anything special for these standard directories.
7134 ## This is an experiment, take it out if it causes problems.
7135 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7136
7137 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7138
7139 fi
7140
7141 if test "${x_libraries}" != NONE; then
7142 if test -n "${x_libraries}"; then
7143 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7144 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7145 fi
7146 x_default_search_path=""
7147 x_search_path=${x_libraries}
7148 if test -z "${x_search_path}"; then
7149 x_search_path=/usr/lib
7150 fi
7151 for x_library in `echo ${x_search_path}: | \
7152 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7153 x_search_path="\
7154 ${x_library}/X11/%L/%T/%N%C%S:\
7155 ${x_library}/X11/%l/%T/%N%C%S:\
7156 ${x_library}/X11/%T/%N%C%S:\
7157 ${x_library}/X11/%L/%T/%N%S:\
7158 ${x_library}/X11/%l/%T/%N%S:\
7159 ${x_library}/X11/%T/%N%S"
7160 if test x"${x_default_search_path}" = x; then
7161 x_default_search_path=${x_search_path}
7162 else
7163 x_default_search_path="${x_search_path}:${x_default_search_path}"
7164 fi
7165 done
7166 fi
7167 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7168 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7169 fi
7170
7171 if test x"${x_includes}" = x; then
7172 bitmapdir=/usr/include/X11/bitmaps
7173 else
7174 # accumulate include directories that have X11 bitmap subdirectories
7175 bmd_acc="dummyval"
7176 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7177 if test -d "${bmd}/X11/bitmaps"; then
7178 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7179 fi
7180 if test -d "${bmd}/bitmaps"; then
7181 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7182 fi
7183 done
7184 if test ${bmd_acc} != "dummyval"; then
7185 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7186 fi
7187 fi
7188
7189 HAVE_NS=no
7190 NS_IMPL_COCOA=no
7191 NS_IMPL_GNUSTEP=no
7192 tmp_CPPFLAGS="$CPPFLAGS"
7193 tmp_CFLAGS="$CFLAGS"
7194 CPPFLAGS="$CPPFLAGS -x objective-c"
7195 CFLAGS="$CFLAGS -x objective-c"
7196 if test "${with_ns}" != no; then
7197 if test "${opsys}" = darwin; then
7198 NS_IMPL_COCOA=yes
7199 ns_appdir=`pwd`/nextstep/Emacs.app
7200 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
7201 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
7202 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7203 elif test -f $GNUSTEP_CONFIG_FILE; then
7204 NS_IMPL_GNUSTEP=yes
7205 ns_appdir=`pwd`/nextstep/Emacs.app
7206 ns_appbindir=`pwd`/nextstep/Emacs.app
7207 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
7208 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7209 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7210 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7211 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7212 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7213 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7214 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7215 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7216 fi
7217 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7218 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7219 HAVE_NS=yes
7220 else
7221 as_fn_error $? "\`--with-ns' was specified, but the include
7222 files are missing or cannot be compiled." "$LINENO" 5
7223 fi
7224
7225
7226 NS_HAVE_NSINTEGER=yes
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 #include <Foundation/NSObjCRuntime.h>
7230 int
7231 main ()
7232 {
7233 NSInteger i;
7234 ;
7235 return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_compile "$LINENO"; then :
7239 ns_have_nsinteger=yes
7240 else
7241 ns_have_nsinteger=no
7242 fi
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 if test $ns_have_nsinteger = no; then
7245 NS_HAVE_NSINTEGER=no
7246 fi
7247 fi
7248 if test "${HAVE_NS}" = yes; then
7249 window_system=nextstep
7250 with_xft=no
7251 # set up packaging dirs
7252 exec_prefix=${ns_appbindir}
7253 libexecdir=${ns_appbindir}/libexec
7254 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7255 prefix=${ns_appresdir}
7256 fi
7257 fi
7258 CFLAGS="$tmp_CFLAGS"
7259 CPPFLAGS="$tmp_CPPFLAGS"
7260
7261 case "${window_system}" in
7262 x11 )
7263 HAVE_X_WINDOWS=yes
7264 HAVE_X11=yes
7265 case "${with_x_toolkit}" in
7266 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7267 motif ) USE_X_TOOLKIT=MOTIF ;;
7268 gtk ) with_gtk=yes
7269 USE_X_TOOLKIT=none ;;
7270 no ) USE_X_TOOLKIT=none ;;
7271 * ) USE_X_TOOLKIT=maybe ;;
7272 esac
7273 ;;
7274 nextstep | none )
7275 HAVE_X_WINDOWS=no
7276 HAVE_X11=no
7277 USE_X_TOOLKIT=none
7278 ;;
7279 esac
7280
7281 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7282 # Extract the first word of "X", so it can be a program name with args.
7283 set dummy X; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 if test -n "$HAVE_XSERVER"; then
7290 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_prog_HAVE_XSERVER="true"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7308 fi
7309 fi
7310 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7311 if test -n "$HAVE_XSERVER"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7313 $as_echo "$HAVE_XSERVER" >&6; }
7314 else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319
7320 if test "$HAVE_XSERVER" = true ||
7321 test -n "$DISPLAY" ||
7322 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7323 as_fn_error $? "You seem to be running X, but no X development libraries
7324 were found. You should install the relevant development files for X
7325 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7326 sure you have development files for image handling, i.e.
7327 tiff, gif, jpeg, png and xpm.
7328 If you are sure you want Emacs compiled without X window support, pass
7329 --without-x
7330 to configure." "$LINENO" 5
7331 fi
7332 fi
7333
7334 ### If we're using X11, we should use the X menu package.
7335 HAVE_MENUS=no
7336 case ${HAVE_X11} in
7337 yes ) HAVE_MENUS=yes ;;
7338 esac
7339
7340 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7341 # Assume not, until told otherwise.
7342 GNU_MALLOC=yes
7343 doug_lea_malloc=yes
7344 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7345 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7346
7347 else
7348 doug_lea_malloc=no
7349 fi
7350
7351 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7352 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7353
7354 else
7355 doug_lea_malloc=no
7356 fi
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7359 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7360 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 extern void (* __after_morecore_hook)();
7366 int
7367 main ()
7368 {
7369 __after_morecore_hook = 0
7370 ;
7371 return 0;
7372 }
7373 _ACEOF
7374 if ac_fn_c_try_link "$LINENO"; then :
7375 emacs_cv_var___after_morecore_hook=yes
7376 else
7377 emacs_cv_var___after_morecore_hook=no
7378 fi
7379 rm -f core conftest.err conftest.$ac_objext \
7380 conftest$ac_exeext conftest.$ac_ext
7381 fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7383 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7384 if test $emacs_cv_var___after_morecore_hook = no; then
7385 doug_lea_malloc=no
7386 fi
7387 if test "${system_malloc}" = "yes"; then
7388 GNU_MALLOC=no
7389 GNU_MALLOC_reason="
7390 (The GNU allocators don't work with this system configuration.)"
7391 fi
7392 if test "$doug_lea_malloc" = "yes" ; then
7393 if test "$GNU_MALLOC" = yes ; then
7394 GNU_MALLOC_reason="
7395 (Using Doug Lea's new malloc from the GNU C Library.)"
7396 fi
7397
7398 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7399
7400 fi
7401
7402 if test x"${REL_ALLOC}" = x; then
7403 REL_ALLOC=${GNU_MALLOC}
7404 fi
7405
7406
7407
7408
7409
7410 for ac_header in $ac_header_list
7411 do :
7412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7413 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7414 "
7415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7416 cat >>confdefs.h <<_ACEOF
7417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7418 _ACEOF
7419
7420 fi
7421
7422 done
7423
7424
7425
7426
7427
7428
7429
7430
7431 for ac_func in getpagesize
7432 do :
7433 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7434 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7435 cat >>confdefs.h <<_ACEOF
7436 #define HAVE_GETPAGESIZE 1
7437 _ACEOF
7438
7439 fi
7440 done
7441
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7443 $as_echo_n "checking for working mmap... " >&6; }
7444 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 if test "$cross_compiling" = yes; then :
7448 ac_cv_func_mmap_fixed_mapped=no
7449 else
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 $ac_includes_default
7453 /* malloc might have been renamed as rpl_malloc. */
7454 #undef malloc
7455
7456 /* Thanks to Mike Haertel and Jim Avera for this test.
7457 Here is a matrix of mmap possibilities:
7458 mmap private not fixed
7459 mmap private fixed at somewhere currently unmapped
7460 mmap private fixed at somewhere already mapped
7461 mmap shared not fixed
7462 mmap shared fixed at somewhere currently unmapped
7463 mmap shared fixed at somewhere already mapped
7464 For private mappings, we should verify that changes cannot be read()
7465 back from the file, nor mmap's back from the file at a different
7466 address. (There have been systems where private was not correctly
7467 implemented like the infamous i386 svr4.0, and systems where the
7468 VM page cache was not coherent with the file system buffer cache
7469 like early versions of FreeBSD and possibly contemporary NetBSD.)
7470 For shared mappings, we should conversely verify that changes get
7471 propagated back to all the places they're supposed to be.
7472
7473 Grep wants private fixed already mapped.
7474 The main things grep needs to know about mmap are:
7475 * does it exist and is it safe to write into the mmap'd area
7476 * how to use it (BSD variants) */
7477
7478 #include <fcntl.h>
7479 #include <sys/mman.h>
7480
7481 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7482 char *malloc ();
7483 #endif
7484
7485 /* This mess was copied from the GNU getpagesize.h. */
7486 #ifndef HAVE_GETPAGESIZE
7487 # ifdef _SC_PAGESIZE
7488 # define getpagesize() sysconf(_SC_PAGESIZE)
7489 # else /* no _SC_PAGESIZE */
7490 # ifdef HAVE_SYS_PARAM_H
7491 # include <sys/param.h>
7492 # ifdef EXEC_PAGESIZE
7493 # define getpagesize() EXEC_PAGESIZE
7494 # else /* no EXEC_PAGESIZE */
7495 # ifdef NBPG
7496 # define getpagesize() NBPG * CLSIZE
7497 # ifndef CLSIZE
7498 # define CLSIZE 1
7499 # endif /* no CLSIZE */
7500 # else /* no NBPG */
7501 # ifdef NBPC
7502 # define getpagesize() NBPC
7503 # else /* no NBPC */
7504 # ifdef PAGESIZE
7505 # define getpagesize() PAGESIZE
7506 # endif /* PAGESIZE */
7507 # endif /* no NBPC */
7508 # endif /* no NBPG */
7509 # endif /* no EXEC_PAGESIZE */
7510 # else /* no HAVE_SYS_PARAM_H */
7511 # define getpagesize() 8192 /* punt totally */
7512 # endif /* no HAVE_SYS_PARAM_H */
7513 # endif /* no _SC_PAGESIZE */
7514
7515 #endif /* no HAVE_GETPAGESIZE */
7516
7517 int
7518 main ()
7519 {
7520 char *data, *data2, *data3;
7521 const char *cdata2;
7522 int i, pagesize;
7523 int fd, fd2;
7524
7525 pagesize = getpagesize ();
7526
7527 /* First, make a file with some known garbage in it. */
7528 data = (char *) malloc (pagesize);
7529 if (!data)
7530 return 1;
7531 for (i = 0; i < pagesize; ++i)
7532 *(data + i) = rand ();
7533 umask (0);
7534 fd = creat ("conftest.mmap", 0600);
7535 if (fd < 0)
7536 return 2;
7537 if (write (fd, data, pagesize) != pagesize)
7538 return 3;
7539 close (fd);
7540
7541 /* Next, check that the tail of a page is zero-filled. File must have
7542 non-zero length, otherwise we risk SIGBUS for entire page. */
7543 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7544 if (fd2 < 0)
7545 return 4;
7546 cdata2 = "";
7547 if (write (fd2, cdata2, 1) != 1)
7548 return 5;
7549 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7550 if (data2 == MAP_FAILED)
7551 return 6;
7552 for (i = 0; i < pagesize; ++i)
7553 if (*(data2 + i))
7554 return 7;
7555 close (fd2);
7556 if (munmap (data2, pagesize))
7557 return 8;
7558
7559 /* Next, try to mmap the file at a fixed address which already has
7560 something else allocated at it. If we can, also make sure that
7561 we see the same garbage. */
7562 fd = open ("conftest.mmap", O_RDWR);
7563 if (fd < 0)
7564 return 9;
7565 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7566 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7567 return 10;
7568 for (i = 0; i < pagesize; ++i)
7569 if (*(data + i) != *(data2 + i))
7570 return 11;
7571
7572 /* Finally, make sure that changes to the mapped area do not
7573 percolate back to the file as seen by read(). (This is a bug on
7574 some variants of i386 svr4.0.) */
7575 for (i = 0; i < pagesize; ++i)
7576 *(data2 + i) = *(data2 + i) + 1;
7577 data3 = (char *) malloc (pagesize);
7578 if (!data3)
7579 return 12;
7580 if (read (fd, data3, pagesize) != pagesize)
7581 return 13;
7582 for (i = 0; i < pagesize; ++i)
7583 if (*(data + i) != *(data3 + i))
7584 return 14;
7585 close (fd);
7586 return 0;
7587 }
7588 _ACEOF
7589 if ac_fn_c_try_run "$LINENO"; then :
7590 ac_cv_func_mmap_fixed_mapped=yes
7591 else
7592 ac_cv_func_mmap_fixed_mapped=no
7593 fi
7594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7595 conftest.$ac_objext conftest.beam conftest.$ac_ext
7596 fi
7597
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7600 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7602
7603 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7604
7605 fi
7606 rm -f conftest.mmap conftest.txt
7607
7608 if test $use_mmap_for_buffers = yes; then
7609 REL_ALLOC=no
7610 fi
7611
7612 LIBS="$libsrc_libs $LIBS"
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7615 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7616 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 ac_check_lib_save_LIBS=$LIBS
7620 LIBS="-ldnet $LIBS"
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623
7624 /* Override any GCC internal prototype to avoid an error.
7625 Use char because int might match the return type of a GCC
7626 builtin and then its argument prototype would still apply. */
7627 #ifdef __cplusplus
7628 extern "C"
7629 #endif
7630 char dnet_ntoa ();
7631 int
7632 main ()
7633 {
7634 return dnet_ntoa ();
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_link "$LINENO"; then :
7640 ac_cv_lib_dnet_dnet_ntoa=yes
7641 else
7642 ac_cv_lib_dnet_dnet_ntoa=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7646 LIBS=$ac_check_lib_save_LIBS
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7649 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7650 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7651 cat >>confdefs.h <<_ACEOF
7652 #define HAVE_LIBDNET 1
7653 _ACEOF
7654
7655 LIBS="-ldnet $LIBS"
7656
7657 fi
7658
7659
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7661 $as_echo_n "checking for main in -lXbsd... " >&6; }
7662 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 ac_check_lib_save_LIBS=$LIBS
7666 LIBS="-lXbsd $LIBS"
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669
7670
7671 int
7672 main ()
7673 {
7674 return main ();
7675 ;
7676 return 0;
7677 }
7678 _ACEOF
7679 if ac_fn_c_try_link "$LINENO"; then :
7680 ac_cv_lib_Xbsd_main=yes
7681 else
7682 ac_cv_lib_Xbsd_main=no
7683 fi
7684 rm -f core conftest.err conftest.$ac_objext \
7685 conftest$ac_exeext conftest.$ac_ext
7686 LIBS=$ac_check_lib_save_LIBS
7687 fi
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7689 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7690 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7691 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7692 fi
7693
7694
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7696 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7697 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 ac_check_lib_save_LIBS=$LIBS
7701 LIBS="-lpthreads $LIBS"
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704
7705 /* Override any GCC internal prototype to avoid an error.
7706 Use char because int might match the return type of a GCC
7707 builtin and then its argument prototype would still apply. */
7708 #ifdef __cplusplus
7709 extern "C"
7710 #endif
7711 char cma_open ();
7712 int
7713 main ()
7714 {
7715 return cma_open ();
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_link "$LINENO"; then :
7721 ac_cv_lib_pthreads_cma_open=yes
7722 else
7723 ac_cv_lib_pthreads_cma_open=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext \
7726 conftest$ac_exeext conftest.$ac_ext
7727 LIBS=$ac_check_lib_save_LIBS
7728 fi
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7730 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7731 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7732 cat >>confdefs.h <<_ACEOF
7733 #define HAVE_LIBPTHREADS 1
7734 _ACEOF
7735
7736 LIBS="-lpthreads $LIBS"
7737
7738 fi
7739
7740
7741
7742 case ${host_os} in
7743 aix*)
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7745 $as_echo_n "checking for -bbigtoc option... " >&6; }
7746 if test "${gdb_cv_bigtoc+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749
7750 case $GCC in
7751 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7752 *) gdb_cv_bigtoc=-bbigtoc ;;
7753 esac
7754
7755 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758
7759 int
7760 main ()
7761 {
7762 int i;
7763 ;
7764 return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_link "$LINENO"; then :
7768
7769 else
7770 gdb_cv_bigtoc=
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774
7775 fi
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7777 $as_echo "$gdb_cv_bigtoc" >&6; }
7778 ;;
7779 esac
7780
7781 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7782 # used for the tests that follow. We set them back to REAL_CFLAGS and
7783 # REAL_CPPFLAGS later on.
7784
7785 REAL_CPPFLAGS="$CPPFLAGS"
7786
7787 if test "${HAVE_X11}" = "yes"; then
7788 DEFS="$C_SWITCH_X_SITE $DEFS"
7789 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7790 LIBS="$LIBX $LIBS"
7791 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7792 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7793
7794 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7795 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7796 # but it's more convenient here to set LD_RUN_PATH
7797 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7798 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7799 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7800 export LD_RUN_PATH
7801 fi
7802
7803 if test "${opsys}" = "gnu-linux"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7805 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808
7809 int
7810 main ()
7811 {
7812 XOpenDisplay ("foo");
7813 ;
7814 return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_link "$LINENO"; then :
7818 xlinux_first_failure=no
7819 else
7820 xlinux_first_failure=yes
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824 if test "${xlinux_first_failure}" = "yes"; then
7825 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7826 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7827 OLD_CPPFLAGS="$CPPFLAGS"
7828 OLD_LIBS="$LIBS"
7829 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7830 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7831 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7832 LIBS="$LIBS -b i486-linuxaout"
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835
7836 int
7837 main ()
7838 {
7839 XOpenDisplay ("foo");
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 if ac_fn_c_try_link "$LINENO"; then :
7845 xlinux_second_failure=no
7846 else
7847 xlinux_second_failure=yes
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851 if test "${xlinux_second_failure}" = "yes"; then
7852 # If we get the same failure with -b, there is no use adding -b.
7853 # So take it out. This plays safe.
7854 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7855 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7856 CPPFLAGS="$OLD_CPPFLAGS"
7857 LIBS="$OLD_LIBS"
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7862 $as_echo "yes" >&6; }
7863 fi
7864 else
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 fi
7868 fi
7869
7870 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7871 # header files included from there.
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7873 $as_echo_n "checking for Xkb... " >&6; }
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 #include <X11/Xlib.h>
7877 #include <X11/XKBlib.h>
7878 int
7879 main ()
7880 {
7881 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7882 ;
7883 return 0;
7884 }
7885 _ACEOF
7886 if ac_fn_c_try_link "$LINENO"; then :
7887 emacs_xkb=yes
7888 else
7889 emacs_xkb=no
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext \
7892 conftest$ac_exeext conftest.$ac_ext
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7894 $as_echo "$emacs_xkb" >&6; }
7895 if test $emacs_xkb = yes; then
7896
7897 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7898
7899 fi
7900
7901 for ac_func in XrmSetDatabase XScreenResourceString \
7902 XScreenNumberOfScreen XSetWMProtocols
7903 do :
7904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7905 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7906 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7907 cat >>confdefs.h <<_ACEOF
7908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7909 _ACEOF
7910
7911 fi
7912 done
7913
7914 fi
7915
7916 if test "${window_system}" = "x11"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7918 $as_echo_n "checking X11 version 6... " >&6; }
7919 if test "${emacs_cv_x11_version_6+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 #include <X11/Xlib.h>
7925 int
7926 main ()
7927 {
7928 #if XlibSpecificationRelease < 6
7929 fail;
7930 #endif
7931
7932 ;
7933 return 0;
7934 }
7935 _ACEOF
7936 if ac_fn_c_try_link "$LINENO"; then :
7937 emacs_cv_x11_version_6=yes
7938 else
7939 emacs_cv_x11_version_6=no
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 fi
7944
7945 if test $emacs_cv_x11_version_6 = yes; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7947 $as_echo "6 or newer" >&6; }
7948
7949 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7950
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7953 $as_echo "before 6" >&6; }
7954 fi
7955 fi
7956
7957
7958 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7959 HAVE_RSVG=no
7960 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
7961 if test "${with_rsvg}" != "no"; then
7962 RSVG_REQUIRED=2.11.0
7963 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
7964
7965
7966 succeeded=no
7967
7968 # Extract the first word of "pkg-config", so it can be a program name with args.
7969 set dummy pkg-config; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 case $PKG_CONFIG in
7976 [\\/]* | ?:[\\/]*)
7977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7978 ;;
7979 *)
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7996 ;;
7997 esac
7998 fi
7999 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8000 if test -n "$PKG_CONFIG"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8002 $as_echo "$PKG_CONFIG" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007
8008
8009
8010 if test "$PKG_CONFIG" = "no" ; then
8011 :
8012 else
8013 PKG_CONFIG_MIN_VERSION=0.9.0
8014 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8016 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8017
8018 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8020 $as_echo "yes" >&6; }
8021 succeeded=yes
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8024 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8025 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8027 $as_echo "$RSVG_CFLAGS" >&6; }
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8030 $as_echo_n "checking RSVG_LIBS... " >&6; }
8031 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8033 $as_echo "$RSVG_LIBS" >&6; }
8034 else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 RSVG_CFLAGS=""
8038 RSVG_LIBS=""
8039 ## If we have a custom action on failure, don't print errors, but
8040 ## do set a variable so people can do so.
8041 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8042
8043 fi
8044
8045
8046
8047 else
8048 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8049 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8050 fi
8051 fi
8052
8053 if test $succeeded = yes; then
8054 :
8055 else
8056 :
8057 fi
8058
8059
8060
8061
8062 if test ".${RSVG_CFLAGS}" != "."; then
8063 HAVE_RSVG=yes
8064
8065 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8066
8067 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8068 LIBS="$RSVG_LIBS $LIBS"
8069 fi
8070 fi
8071 fi
8072
8073
8074 HAVE_GTK=no
8075 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8076 GLIB_REQUIRED=2.6
8077 GTK_REQUIRED=2.6
8078 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8079
8080
8081 succeeded=no
8082
8083 # Extract the first word of "pkg-config", so it can be a program name with args.
8084 set dummy pkg-config; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 case $PKG_CONFIG in
8091 [\\/]* | ?:[\\/]*)
8092 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8093 ;;
8094 *)
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8111 ;;
8112 esac
8113 fi
8114 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8115 if test -n "$PKG_CONFIG"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8117 $as_echo "$PKG_CONFIG" >&6; }
8118 else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124
8125 if test "$PKG_CONFIG" = "no" ; then
8126 pkg_check_gtk=no
8127 else
8128 PKG_CONFIG_MIN_VERSION=0.9.0
8129 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8131 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8132
8133 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8135 $as_echo "yes" >&6; }
8136 succeeded=yes
8137
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8139 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8140 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8142 $as_echo "$GTK_CFLAGS" >&6; }
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8145 $as_echo_n "checking GTK_LIBS... " >&6; }
8146 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8148 $as_echo "$GTK_LIBS" >&6; }
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8152 GTK_CFLAGS=""
8153 GTK_LIBS=""
8154 ## If we have a custom action on failure, don't print errors, but
8155 ## do set a variable so people can do so.
8156 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8157
8158 fi
8159
8160
8161
8162 else
8163 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8164 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8165 fi
8166 fi
8167
8168 if test $succeeded = yes; then
8169 pkg_check_gtk=yes
8170 else
8171 pkg_check_gtk=no
8172 fi
8173
8174 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8175 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8176 fi
8177 fi
8178
8179
8180 if test x"$pkg_check_gtk" = xyes; then
8181
8182
8183
8184 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8185 CFLAGS="$CFLAGS $GTK_CFLAGS"
8186 LIBS="$GTK_LIBS $LIBS"
8187 GTK_COMPILES=no
8188 for ac_func in gtk_main
8189 do :
8190 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8191 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8192 cat >>confdefs.h <<_ACEOF
8193 #define HAVE_GTK_MAIN 1
8194 _ACEOF
8195 GTK_COMPILES=yes
8196 fi
8197 done
8198
8199 if test "${GTK_COMPILES}" != "yes"; then
8200 if test "$USE_X_TOOLKIT" != "maybe"; then
8201 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8202 fi
8203 else
8204 HAVE_GTK=yes
8205
8206 $as_echo "#define USE_GTK 1" >>confdefs.h
8207
8208 USE_X_TOOLKIT=none
8209 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8210 :
8211 else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: 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." >&5
8216 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8217 closing open displays. This is no problem if you just use
8218 one display, but if you use more than one and close one of them
8219 Emacs may crash." >&2;}
8220 sleep 3
8221 fi
8222 fi
8223
8224 fi
8225
8226
8227 if test "${HAVE_GTK}" = "yes"; then
8228
8229 if test "$with_toolkit_scroll_bars" != no; then
8230 with_toolkit_scroll_bars=yes
8231 fi
8232
8233 HAVE_GTK_MULTIDISPLAY=no
8234 for ac_func in gdk_display_open
8235 do :
8236 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8237 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8238 cat >>confdefs.h <<_ACEOF
8239 #define HAVE_GDK_DISPLAY_OPEN 1
8240 _ACEOF
8241 HAVE_GTK_MULTIDISPLAY=yes
8242 fi
8243 done
8244
8245 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8246
8247 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8248
8249 fi
8250
8251 HAVE_GTK_FILE_SELECTION=no
8252 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8253 #include <gtk/gtk.h>
8254 "
8255 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8256 HAVE_GTK_FILE_SELECTION=yes
8257 else
8258 HAVE_GTK_FILE_SELECTION=no
8259 fi
8260
8261 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8262 for ac_func in gtk_file_selection_new
8263 do :
8264 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8265 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8266 cat >>confdefs.h <<_ACEOF
8267 #define HAVE_GTK_FILE_SELECTION_NEW 1
8268 _ACEOF
8269 HAVE_GTK_FILE_SELECTION=yes
8270 else
8271 HAVE_GTK_FILE_SELECTION=no
8272 fi
8273 done
8274
8275 fi
8276
8277 HAVE_GTK_FILE_CHOOSER=no
8278 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8279 #include <gtk/gtk.h>
8280 "
8281 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8282 HAVE_GTK_FILE_CHOOSER=yes
8283 else
8284 HAVE_GTK_FILE_CHOOSER=no
8285 fi
8286
8287 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8288 for ac_func in gtk_file_chooser_dialog_new
8289 do :
8290 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8291 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8292 cat >>confdefs.h <<_ACEOF
8293 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8294 _ACEOF
8295 HAVE_GTK_FILE_CHOOSER=yes
8296 else
8297 HAVE_GTK_FILE_CHOOSER=no
8298 fi
8299 done
8300
8301 fi
8302
8303 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8304 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8305
8306 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8307
8308 fi
8309
8310 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8311 HAVE_GTK_AND_PTHREAD=no
8312 for ac_header in pthread.h
8313 do :
8314 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8315 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8316 cat >>confdefs.h <<_ACEOF
8317 #define HAVE_PTHREAD_H 1
8318 _ACEOF
8319
8320 fi
8321
8322 done
8323
8324 if test "$ac_cv_header_pthread_h"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8326 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8327 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 ac_check_lib_save_LIBS=$LIBS
8331 LIBS="-lpthread $LIBS"
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334
8335 /* Override any GCC internal prototype to avoid an error.
8336 Use char because int might match the return type of a GCC
8337 builtin and then its argument prototype would still apply. */
8338 #ifdef __cplusplus
8339 extern "C"
8340 #endif
8341 char pthread_self ();
8342 int
8343 main ()
8344 {
8345 return pthread_self ();
8346 ;
8347 return 0;
8348 }
8349 _ACEOF
8350 if ac_fn_c_try_link "$LINENO"; then :
8351 ac_cv_lib_pthread_pthread_self=yes
8352 else
8353 ac_cv_lib_pthread_pthread_self=no
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 LIBS=$ac_check_lib_save_LIBS
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8360 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8361 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8362 HAVE_GTK_AND_PTHREAD=yes
8363 fi
8364
8365 fi
8366 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8367 case "${canonical}" in
8368 *-hpux*) ;;
8369 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8370 esac
8371
8372 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8373
8374 fi
8375 fi
8376 fi
8377
8378 HAVE_DBUS=no
8379 if test "${with_dbus}" = "yes"; then
8380
8381 succeeded=no
8382
8383 # Extract the first word of "pkg-config", so it can be a program name with args.
8384 set dummy pkg-config; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 case $PKG_CONFIG in
8391 [\\/]* | ?:[\\/]*)
8392 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8393 ;;
8394 *)
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 break 2
8405 fi
8406 done
8407 done
8408 IFS=$as_save_IFS
8409
8410 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8411 ;;
8412 esac
8413 fi
8414 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8415 if test -n "$PKG_CONFIG"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8417 $as_echo "$PKG_CONFIG" >&6; }
8418 else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8421 fi
8422
8423
8424
8425 if test "$PKG_CONFIG" = "no" ; then
8426 HAVE_DBUS=no
8427 else
8428 PKG_CONFIG_MIN_VERSION=0.9.0
8429 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8431 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8432
8433 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8435 $as_echo "yes" >&6; }
8436 succeeded=yes
8437
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8439 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8440 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8442 $as_echo "$DBUS_CFLAGS" >&6; }
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8445 $as_echo_n "checking DBUS_LIBS... " >&6; }
8446 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8448 $as_echo "$DBUS_LIBS" >&6; }
8449 else
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 DBUS_CFLAGS=""
8453 DBUS_LIBS=""
8454 ## If we have a custom action on failure, don't print errors, but
8455 ## do set a variable so people can do so.
8456 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8457
8458 fi
8459
8460
8461
8462 else
8463 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8464 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8465 fi
8466 fi
8467
8468 if test $succeeded = yes; then
8469 HAVE_DBUS=yes
8470 else
8471 HAVE_DBUS=no
8472 fi
8473
8474 if test "$HAVE_DBUS" = yes; then
8475 LIBS="$LIBS $DBUS_LIBS"
8476
8477 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8478
8479 for ac_func in dbus_watch_get_unix_fd
8480 do :
8481 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8482 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8485 _ACEOF
8486
8487 fi
8488 done
8489
8490 fi
8491 fi
8492
8493 HAVE_GCONF=no
8494 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8495
8496 succeeded=no
8497
8498 # Extract the first word of "pkg-config", so it can be a program name with args.
8499 set dummy pkg-config; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 case $PKG_CONFIG in
8506 [\\/]* | ?:[\\/]*)
8507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8508 ;;
8509 *)
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8520 fi
8521 done
8522 done
8523 IFS=$as_save_IFS
8524
8525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8526 ;;
8527 esac
8528 fi
8529 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8530 if test -n "$PKG_CONFIG"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8532 $as_echo "$PKG_CONFIG" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 fi
8537
8538
8539
8540 if test "$PKG_CONFIG" = "no" ; then
8541 HAVE_GCONF=no
8542 else
8543 PKG_CONFIG_MIN_VERSION=0.9.0
8544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8546 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8547
8548 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8550 $as_echo "yes" >&6; }
8551 succeeded=yes
8552
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8554 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8555 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8557 $as_echo "$GCONF_CFLAGS" >&6; }
8558
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8560 $as_echo_n "checking GCONF_LIBS... " >&6; }
8561 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8563 $as_echo "$GCONF_LIBS" >&6; }
8564 else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8567 GCONF_CFLAGS=""
8568 GCONF_LIBS=""
8569 ## If we have a custom action on failure, don't print errors, but
8570 ## do set a variable so people can do so.
8571 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8572
8573 fi
8574
8575
8576
8577 else
8578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8580 fi
8581 fi
8582
8583 if test $succeeded = yes; then
8584 HAVE_GCONF=yes
8585 else
8586 HAVE_GCONF=no
8587 fi
8588
8589 if test "$HAVE_GCONF" = yes; then
8590
8591 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8592
8593 for ac_func in g_type_init
8594 do :
8595 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
8596 if test "x$ac_cv_func_g_type_init" = x""yes; then :
8597 cat >>confdefs.h <<_ACEOF
8598 #define HAVE_G_TYPE_INIT 1
8599 _ACEOF
8600
8601 fi
8602 done
8603
8604 fi
8605 fi
8606
8607 HAVE_XAW3D=no
8608 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8609 if test "$with_xaw3d" != no; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8611 $as_echo_n "checking for xaw3d... " >&6; }
8612 if test "${emacs_cv_xaw3d+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617
8618 #include <X11/Intrinsic.h>
8619 #include <X11/Xaw3d/Simple.h>
8620 int
8621 main ()
8622 {
8623
8624 ;
8625 return 0;
8626 }
8627 _ACEOF
8628 if ac_fn_c_try_link "$LINENO"; then :
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8630 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
8631 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 ac_check_lib_save_LIBS=$LIBS
8635 LIBS="-lXaw3d $LIBS"
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638
8639 /* Override any GCC internal prototype to avoid an error.
8640 Use char because int might match the return type of a GCC
8641 builtin and then its argument prototype would still apply. */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 char XawScrollbarSetThumb ();
8646 int
8647 main ()
8648 {
8649 return XawScrollbarSetThumb ();
8650 ;
8651 return 0;
8652 }
8653 _ACEOF
8654 if ac_fn_c_try_link "$LINENO"; then :
8655 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8656 else
8657 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8658 fi
8659 rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 LIBS=$ac_check_lib_save_LIBS
8662 fi
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8664 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
8665 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
8666 emacs_cv_xaw3d=yes
8667 else
8668 emacs_cv_xaw3d=no
8669 fi
8670
8671 else
8672 emacs_cv_xaw3d=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 fi
8677
8678 else
8679 emacs_cv_xaw3d=no
8680 fi
8681 if test $emacs_cv_xaw3d = yes; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8683 $as_echo "yes; using Lucid toolkit" >&6; }
8684 USE_X_TOOLKIT=LUCID
8685 HAVE_XAW3D=yes
8686
8687 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8688
8689 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8693 $as_echo_n "checking for libXaw... " >&6; }
8694 if test "${emacs_cv_xaw+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699
8700 #include <X11/Intrinsic.h>
8701 #include <X11/Xaw/Simple.h>
8702 int
8703 main ()
8704 {
8705
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"; then :
8711 emacs_cv_xaw=yes
8712 else
8713 emacs_cv_xaw=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext \
8716 conftest$ac_exeext conftest.$ac_ext
8717 fi
8718
8719 if test $emacs_cv_xaw = yes; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8721 $as_echo "yes; using Lucid toolkit" >&6; }
8722 USE_X_TOOLKIT=LUCID
8723 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8724 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8727 $as_echo "no; do not use toolkit by default" >&6; }
8728 USE_X_TOOLKIT=none
8729 fi
8730 fi
8731 fi
8732
8733 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8734
8735 if test "${USE_X_TOOLKIT}" != "none"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8737 $as_echo_n "checking X11 toolkit version... " >&6; }
8738 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 #include <X11/Intrinsic.h>
8744 int
8745 main ()
8746 {
8747 #if XtSpecificationRelease < 6
8748 fail;
8749 #endif
8750
8751 ;
8752 return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_c_try_link "$LINENO"; then :
8756 emacs_cv_x11_toolkit_version_6=yes
8757 else
8758 emacs_cv_x11_toolkit_version_6=no
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8762 fi
8763
8764 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8765 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8767 $as_echo "6 or newer" >&6; }
8768
8769 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8770
8771 else
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8773 $as_echo "before 6" >&6; }
8774 fi
8775
8776 OLDLIBS="$LIBS"
8777 if test x$HAVE_X11XTR6 = xyes; then
8778 LIBS="-lXt -lSM -lICE $LIBS"
8779 else
8780 LIBS="-lXt $LIBS"
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8783 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8784 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 ac_check_lib_save_LIBS=$LIBS
8788 LIBS="-lXmu $LIBS"
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791
8792 /* Override any GCC internal prototype to avoid an error.
8793 Use char because int might match the return type of a GCC
8794 builtin and then its argument prototype would still apply. */
8795 #ifdef __cplusplus
8796 extern "C"
8797 #endif
8798 char XmuConvertStandardSelection ();
8799 int
8800 main ()
8801 {
8802 return XmuConvertStandardSelection ();
8803 ;
8804 return 0;
8805 }
8806 _ACEOF
8807 if ac_fn_c_try_link "$LINENO"; then :
8808 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8809 else
8810 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814 LIBS=$ac_check_lib_save_LIBS
8815 fi
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8817 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8818 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
8819 cat >>confdefs.h <<_ACEOF
8820 #define HAVE_LIBXMU 1
8821 _ACEOF
8822
8823 LIBS="-lXmu $LIBS"
8824
8825 fi
8826
8827 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8828 fi
8829
8830 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8831 if test "${HAVE_X11}" = "yes"; then
8832 if test "${USE_X_TOOLKIT}" != "none"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8834 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8835 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 ac_check_lib_save_LIBS=$LIBS
8839 LIBS="-lXext $LIBS"
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char XShapeQueryExtension ();
8850 int
8851 main ()
8852 {
8853 return XShapeQueryExtension ();
8854 ;
8855 return 0;
8856 }
8857 _ACEOF
8858 if ac_fn_c_try_link "$LINENO"; then :
8859 ac_cv_lib_Xext_XShapeQueryExtension=yes
8860 else
8861 ac_cv_lib_Xext_XShapeQueryExtension=no
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext \
8864 conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8868 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8869 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8870 cat >>confdefs.h <<_ACEOF
8871 #define HAVE_LIBXEXT 1
8872 _ACEOF
8873
8874 LIBS="-lXext $LIBS"
8875
8876 fi
8877
8878 fi
8879 fi
8880
8881 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8883 $as_echo_n "checking for Motif version 2.1... " >&6; }
8884 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 #include <Xm/Xm.h>
8890 int
8891 main ()
8892 {
8893 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8894 int x = 5;
8895 #else
8896 Motif version prior to 2.1.
8897 #endif
8898 ;
8899 return 0;
8900 }
8901 _ACEOF
8902 if ac_fn_c_try_compile "$LINENO"; then :
8903 emacs_cv_motif_version_2_1=yes
8904 else
8905 emacs_cv_motif_version_2_1=no
8906 fi
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8910 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8911 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8912 if test $emacs_cv_motif_version_2_1 = yes; then
8913 HAVE_LIBXP=no
8914
8915 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8918 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8919 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 ac_check_lib_save_LIBS=$LIBS
8923 LIBS="-lXp $LIBS"
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926
8927 /* Override any GCC internal prototype to avoid an error.
8928 Use char because int might match the return type of a GCC
8929 builtin and then its argument prototype would still apply. */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 char XpCreateContext ();
8934 int
8935 main ()
8936 {
8937 return XpCreateContext ();
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 if ac_fn_c_try_link "$LINENO"; then :
8943 ac_cv_lib_Xp_XpCreateContext=yes
8944 else
8945 ac_cv_lib_Xp_XpCreateContext=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 LIBS=$ac_check_lib_save_LIBS
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8952 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8953 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
8954 HAVE_LIBXP=yes
8955 fi
8956
8957 if test ${HAVE_LIBXP} = yes; then
8958
8959 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8960
8961 fi
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8964 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8965 if test "${emacs_cv_lesstif+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 # We put this in CFLAGS temporarily to precede other -I options
8969 # that might be in CFLAGS temporarily.
8970 # We put this in CPPFLAGS where it precedes the other -I options.
8971 OLD_CPPFLAGS=$CPPFLAGS
8972 OLD_CFLAGS=$CFLAGS
8973 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8974 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8978 int
8979 main ()
8980 {
8981 int x = 5;
8982 ;
8983 return 0;
8984 }
8985 _ACEOF
8986 if ac_fn_c_try_compile "$LINENO"; then :
8987 emacs_cv_lesstif=yes
8988 else
8989 emacs_cv_lesstif=no
8990 fi
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8994 $as_echo "$emacs_cv_lesstif" >&6; }
8995 if test $emacs_cv_lesstif = yes; then
8996 # Make sure this -I option remains in CPPFLAGS after it is set
8997 # back to REAL_CPPFLAGS.
8998 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8999 # have those other -I options anyway. Ultimately, having this
9000 # directory ultimately in CPPFLAGS will be enough.
9001 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9002 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9003 else
9004 CFLAGS=$OLD_CFLAGS
9005 CPPFLAGS=$OLD_CPPFLAGS
9006 fi
9007 fi
9008 fi
9009
9010
9011 USE_TOOLKIT_SCROLL_BARS=no
9012 if test "${with_toolkit_scroll_bars}" != "no"; then
9013 if test "${USE_X_TOOLKIT}" != "none"; then
9014 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9015 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9016
9017 HAVE_XAW3D=no
9018 USE_TOOLKIT_SCROLL_BARS=yes
9019 elif test "${HAVE_XAW3D}" = "yes"; then
9020 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9021
9022 USE_TOOLKIT_SCROLL_BARS=yes
9023 fi
9024 elif test "${HAVE_GTK}" = "yes"; then
9025 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9026
9027 USE_TOOLKIT_SCROLL_BARS=yes
9028 elif test "${HAVE_NS}" = "yes"; then
9029 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9030
9031 USE_TOOLKIT_SCROLL_BARS=yes
9032 fi
9033 fi
9034
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037
9038 #include <X11/Xlib.h>
9039 #include <X11/Xresource.h>
9040 int
9041 main ()
9042 {
9043 XIMProc callback;
9044 ;
9045 return 0;
9046 }
9047 _ACEOF
9048 if ac_fn_c_try_compile "$LINENO"; then :
9049 HAVE_XIM=yes
9050
9051 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9052
9053 else
9054 HAVE_XIM=no
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9057
9058
9059 if test "${with_xim}" != "no"; then
9060
9061 $as_echo "#define USE_XIM 1" >>confdefs.h
9062
9063 fi
9064
9065
9066 if test "${HAVE_XIM}" != "no"; then
9067 late_CFLAGS=$CFLAGS
9068 if test "$GCC" = yes; then
9069 CFLAGS="$CFLAGS --pedantic-errors"
9070 fi
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 #include <X11/Xlib.h>
9075 #include <X11/Xresource.h>
9076 int
9077 main ()
9078 {
9079 Display *display;
9080 XrmDatabase db;
9081 char *res_name;
9082 char *res_class;
9083 XIMProc callback;
9084 XPointer *client_data;
9085 #ifndef __GNUC__
9086 /* If we're not using GCC, it's probably not XFree86, and this is
9087 probably right, but we can't use something like --pedantic-errors. */
9088 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9089 char*, XIMProc, XPointer*);
9090 #endif
9091 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9092 client_data);
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098 emacs_cv_arg6_star=yes
9099 fi
9100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 if test "$emacs_cv_arg6_star" = yes; then
9102 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9103
9104 else
9105 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9106
9107 fi
9108 CFLAGS=$late_CFLAGS
9109 fi
9110
9111 ### Start of font-backend (under any platform) section.
9112 # (nothing here yet -- this is a placeholder)
9113 ### End of font-backend (under any platform) section.
9114
9115 ### Start of font-backend (under X11) section.
9116 if test "${HAVE_X11}" = "yes"; then
9117
9118 succeeded=no
9119
9120 # Extract the first word of "pkg-config", so it can be a program name with args.
9121 set dummy pkg-config; ac_word=$2
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123 $as_echo_n "checking for $ac_word... " >&6; }
9124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 case $PKG_CONFIG in
9128 [\\/]* | ?:[\\/]*)
9129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9130 ;;
9131 *)
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9134 do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9142 fi
9143 done
9144 done
9145 IFS=$as_save_IFS
9146
9147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9148 ;;
9149 esac
9150 fi
9151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9152 if test -n "$PKG_CONFIG"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9154 $as_echo "$PKG_CONFIG" >&6; }
9155 else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9158 fi
9159
9160
9161
9162 if test "$PKG_CONFIG" = "no" ; then
9163 HAVE_FC=no
9164 else
9165 PKG_CONFIG_MIN_VERSION=0.9.0
9166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9168 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9169
9170 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9172 $as_echo "yes" >&6; }
9173 succeeded=yes
9174
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9176 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9177 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9179 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9180
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9182 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9183 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9185 $as_echo "$FONTCONFIG_LIBS" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9189 FONTCONFIG_CFLAGS=""
9190 FONTCONFIG_LIBS=""
9191 ## If we have a custom action on failure, don't print errors, but
9192 ## do set a variable so people can do so.
9193 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9194
9195 fi
9196
9197
9198
9199 else
9200 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9201 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9202 fi
9203 fi
9204
9205 if test $succeeded = yes; then
9206 HAVE_FC=yes
9207 else
9208 HAVE_FC=no
9209 fi
9210
9211
9212 ## Use -lXft if available, unless `--with-xft=no'.
9213 HAVE_XFT=maybe
9214 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9215 with_xft="no";
9216 fi
9217 if test "x${with_xft}" != "xno"; then
9218
9219
9220 succeeded=no
9221
9222 # Extract the first word of "pkg-config", so it can be a program name with args.
9223 set dummy pkg-config; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 case $PKG_CONFIG in
9230 [\\/]* | ?:[\\/]*)
9231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9232 ;;
9233 *)
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9236 do
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9244 fi
9245 done
9246 done
9247 IFS=$as_save_IFS
9248
9249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9250 ;;
9251 esac
9252 fi
9253 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9254 if test -n "$PKG_CONFIG"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9256 $as_echo "$PKG_CONFIG" >&6; }
9257 else
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9260 fi
9261
9262
9263
9264 if test "$PKG_CONFIG" = "no" ; then
9265 HAVE_XFT=no
9266 else
9267 PKG_CONFIG_MIN_VERSION=0.9.0
9268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9270 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9271
9272 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9274 $as_echo "yes" >&6; }
9275 succeeded=yes
9276
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9278 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9279 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9281 $as_echo "$XFT_CFLAGS" >&6; }
9282
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9284 $as_echo_n "checking XFT_LIBS... " >&6; }
9285 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9287 $as_echo "$XFT_LIBS" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9291 XFT_CFLAGS=""
9292 XFT_LIBS=""
9293 ## If we have a custom action on failure, don't print errors, but
9294 ## do set a variable so people can do so.
9295 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9296
9297 fi
9298
9299
9300
9301 else
9302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9304 fi
9305 fi
9306
9307 if test $succeeded = yes; then
9308 :
9309 else
9310 HAVE_XFT=no
9311 fi
9312
9313 ## Because xftfont.c uses XRenderQueryExtension, we also
9314 ## need to link to -lXrender.
9315 HAVE_XRENDER=no
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9317 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9318 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 ac_check_lib_save_LIBS=$LIBS
9322 LIBS="-lXrender $LIBS"
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325
9326 /* Override any GCC internal prototype to avoid an error.
9327 Use char because int might match the return type of a GCC
9328 builtin and then its argument prototype would still apply. */
9329 #ifdef __cplusplus
9330 extern "C"
9331 #endif
9332 char XRenderQueryExtension ();
9333 int
9334 main ()
9335 {
9336 return XRenderQueryExtension ();
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 if ac_fn_c_try_link "$LINENO"; then :
9342 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9343 else
9344 ac_cv_lib_Xrender_XRenderQueryExtension=no
9345 fi
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS=$ac_check_lib_save_LIBS
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9351 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9352 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9353 HAVE_XRENDER=yes
9354 fi
9355
9356 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9357 OLD_CPPFLAGS="$CPPFLAGS"
9358 OLD_CFLAGS="$CFLAGS"
9359 OLD_LIBS="$LIBS"
9360 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9361 CFLAGS="$CFLAGS $XFT_CFLAGS"
9362 XFT_LIBS="-lXrender $XFT_LIBS"
9363 LIBS="$XFT_LIBS $LIBS"
9364 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9365 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9367 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9368 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 ac_check_lib_save_LIBS=$LIBS
9372 LIBS="-lXft $XFT_LIBS $LIBS"
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9375
9376 /* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
9379 #ifdef __cplusplus
9380 extern "C"
9381 #endif
9382 char XftFontOpen ();
9383 int
9384 main ()
9385 {
9386 return XftFontOpen ();
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_link "$LINENO"; then :
9392 ac_cv_lib_Xft_XftFontOpen=yes
9393 else
9394 ac_cv_lib_Xft_XftFontOpen=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 LIBS=$ac_check_lib_save_LIBS
9399 fi
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9401 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9402 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9403 HAVE_XFT=yes
9404 fi
9405
9406 fi
9407
9408
9409
9410 if test "${HAVE_XFT}" = "yes"; then
9411
9412 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9413
9414
9415 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9416 else
9417 CPPFLAGS="$OLD_CPPFLAGS"
9418 CFLAGS="$OLD_CFLAGS"
9419 LIBS="$OLD_LIBS"
9420 fi # "${HAVE_XFT}" = "yes"
9421 fi # "$HAVE_XFT" != no
9422 fi # "x${with_xft}" != "xno"
9423
9424 ## We used to allow building with FreeType and without Xft.
9425 ## However, the ftx font backend driver is not in good shape.
9426 if test "$HAVE_XFT" != "yes"; then
9427 HAVE_XFT=no
9428 HAVE_FREETYPE=no
9429 else
9430
9431 succeeded=no
9432
9433 # Extract the first word of "pkg-config", so it can be a program name with args.
9434 set dummy pkg-config; ac_word=$2
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9436 $as_echo_n "checking for $ac_word... " >&6; }
9437 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 case $PKG_CONFIG in
9441 [\\/]* | ?:[\\/]*)
9442 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9443 ;;
9444 *)
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 for as_dir in $PATH
9447 do
9448 IFS=$as_save_IFS
9449 test -z "$as_dir" && as_dir=.
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9452 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9454 break 2
9455 fi
9456 done
9457 done
9458 IFS=$as_save_IFS
9459
9460 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9461 ;;
9462 esac
9463 fi
9464 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9465 if test -n "$PKG_CONFIG"; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9467 $as_echo "$PKG_CONFIG" >&6; }
9468 else
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9471 fi
9472
9473
9474
9475 if test "$PKG_CONFIG" = "no" ; then
9476 HAVE_FREETYPE=no
9477 else
9478 PKG_CONFIG_MIN_VERSION=0.9.0
9479 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
9481 $as_echo_n "checking for freetype2... " >&6; }
9482
9483 if $PKG_CONFIG --exists "freetype2" 2>&5; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9485 $as_echo "yes" >&6; }
9486 succeeded=yes
9487
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
9489 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
9490 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
9492 $as_echo "$FREETYPE_CFLAGS" >&6; }
9493
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
9495 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
9496 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
9498 $as_echo "$FREETYPE_LIBS" >&6; }
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9502 FREETYPE_CFLAGS=""
9503 FREETYPE_LIBS=""
9504 ## If we have a custom action on failure, don't print errors, but
9505 ## do set a variable so people can do so.
9506 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
9507
9508 fi
9509
9510
9511
9512 else
9513 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9514 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9515 fi
9516 fi
9517
9518 if test $succeeded = yes; then
9519 HAVE_FREETYPE=yes
9520 else
9521 HAVE_FREETYPE=no
9522 fi
9523
9524
9525 test "$HAVE_FREETYPE" = "no" && as_fn_error $? "libxft requires libfreetype" "$LINENO" 5
9526 fi
9527
9528 HAVE_LIBOTF=no
9529 if test "${HAVE_FREETYPE}" = "yes"; then
9530
9531 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9532
9533 if test "${with_libotf}" != "no"; then
9534
9535 succeeded=no
9536
9537 # Extract the first word of "pkg-config", so it can be a program name with args.
9538 set dummy pkg-config; ac_word=$2
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540 $as_echo_n "checking for $ac_word... " >&6; }
9541 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 case $PKG_CONFIG in
9545 [\\/]* | ?:[\\/]*)
9546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9547 ;;
9548 *)
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 for as_dir in $PATH
9551 do
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 break 2
9559 fi
9560 done
9561 done
9562 IFS=$as_save_IFS
9563
9564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9565 ;;
9566 esac
9567 fi
9568 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9569 if test -n "$PKG_CONFIG"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9571 $as_echo "$PKG_CONFIG" >&6; }
9572 else
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9575 fi
9576
9577
9578
9579 if test "$PKG_CONFIG" = "no" ; then
9580 HAVE_LIBOTF=no
9581 else
9582 PKG_CONFIG_MIN_VERSION=0.9.0
9583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9585 $as_echo_n "checking for libotf... " >&6; }
9586
9587 if $PKG_CONFIG --exists "libotf" 2>&5; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9589 $as_echo "yes" >&6; }
9590 succeeded=yes
9591
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9593 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9594 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9596 $as_echo "$LIBOTF_CFLAGS" >&6; }
9597
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9599 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9600 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9602 $as_echo "$LIBOTF_LIBS" >&6; }
9603 else
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9606 LIBOTF_CFLAGS=""
9607 LIBOTF_LIBS=""
9608 ## If we have a custom action on failure, don't print errors, but
9609 ## do set a variable so people can do so.
9610 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9611
9612 fi
9613
9614
9615
9616 else
9617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9619 fi
9620 fi
9621
9622 if test $succeeded = yes; then
9623 HAVE_LIBOTF=yes
9624 else
9625 HAVE_LIBOTF=no
9626 fi
9627
9628 if test "$HAVE_LIBOTF" = "yes"; then
9629
9630 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9631
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9633 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9634 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-lotf $LIBS"
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9645 #ifdef __cplusplus
9646 extern "C"
9647 #endif
9648 char OTF_get_variation_glyphs ();
9649 int
9650 main ()
9651 {
9652 return OTF_get_variation_glyphs ();
9653 ;
9654 return 0;
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"; then :
9658 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9659 else
9660 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9661 fi
9662 rm -f core conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664 LIBS=$ac_check_lib_save_LIBS
9665 fi
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9667 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9668 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9669 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9670 else
9671 HAVE_OTF_GET_VARIATION_GLYPHS=no
9672 fi
9673
9674 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9675
9676 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9677
9678 fi
9679 fi
9680 fi
9681 fi
9682
9683 HAVE_M17N_FLT=no
9684 if test "${HAVE_LIBOTF}" = yes; then
9685 if test "${with_m17n_flt}" != "no"; then
9686
9687 succeeded=no
9688
9689 # Extract the first word of "pkg-config", so it can be a program name with args.
9690 set dummy pkg-config; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 case $PKG_CONFIG in
9697 [\\/]* | ?:[\\/]*)
9698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9699 ;;
9700 *)
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9703 do
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9708 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 break 2
9711 fi
9712 done
9713 done
9714 IFS=$as_save_IFS
9715
9716 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9717 ;;
9718 esac
9719 fi
9720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9721 if test -n "$PKG_CONFIG"; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9723 $as_echo "$PKG_CONFIG" >&6; }
9724 else
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726 $as_echo "no" >&6; }
9727 fi
9728
9729
9730
9731 if test "$PKG_CONFIG" = "no" ; then
9732 HAVE_M17N_FLT=no
9733 else
9734 PKG_CONFIG_MIN_VERSION=0.9.0
9735 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9737 $as_echo_n "checking for m17n-flt... " >&6; }
9738
9739 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9741 $as_echo "yes" >&6; }
9742 succeeded=yes
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9745 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9746 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9748 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9749
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9751 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9752 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9754 $as_echo "$M17N_FLT_LIBS" >&6; }
9755 else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9758 M17N_FLT_CFLAGS=""
9759 M17N_FLT_LIBS=""
9760 ## If we have a custom action on failure, don't print errors, but
9761 ## do set a variable so people can do so.
9762 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9763
9764 fi
9765
9766
9767
9768 else
9769 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9770 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9771 fi
9772 fi
9773
9774 if test $succeeded = yes; then
9775 HAVE_M17N_FLT=yes
9776 else
9777 HAVE_M17N_FLT=no
9778 fi
9779
9780 if test "$HAVE_M17N_FLT" = "yes"; then
9781
9782 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9783
9784 fi
9785 fi
9786 fi
9787 else
9788 HAVE_XFT=no
9789 HAVE_FREETYPE=no
9790 HAVE_LIBOTF=no
9791 HAVE_M17N_FLT=no
9792 fi
9793 ### End of font-backend (under X11) section.
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804 ### Use -lXpm if available, unless `--with-xpm=no'.
9805 HAVE_XPM=no
9806 if test "${HAVE_X11}" = "yes"; then
9807 if test "${with_xpm}" != "no"; then
9808 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9809 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9811 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9812 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 ac_check_lib_save_LIBS=$LIBS
9816 LIBS="-lXpm -lX11 $LIBS"
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 char XpmReadFileToPixmap ();
9827 int
9828 main ()
9829 {
9830 return XpmReadFileToPixmap ();
9831 ;
9832 return 0;
9833 }
9834 _ACEOF
9835 if ac_fn_c_try_link "$LINENO"; then :
9836 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9837 else
9838 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9843 fi
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9845 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9846 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
9847 HAVE_XPM=yes
9848 fi
9849
9850 fi
9851
9852
9853 if test "${HAVE_XPM}" = "yes"; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9855 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 #include "X11/xpm.h"
9859 #ifndef XpmReturnAllocPixels
9860 no_return_alloc_pixels
9861 #endif
9862
9863 _ACEOF
9864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9865 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
9866 HAVE_XPM=no
9867 else
9868 HAVE_XPM=yes
9869 fi
9870 rm -f conftest*
9871
9872
9873 if test "${HAVE_XPM}" = "yes"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9875 $as_echo "yes" >&6; }
9876 else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9879 fi
9880 fi
9881 fi
9882
9883 if test "${HAVE_XPM}" = "yes"; then
9884
9885 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9886
9887 fi
9888 fi
9889
9890 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9891 HAVE_JPEG=no
9892 if test "${HAVE_X11}" = "yes"; then
9893 if test "${with_jpeg}" != "no"; then
9894 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9895 if test "x$ac_cv_header_jerror_h" = x""yes; then :
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9897 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9898 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 ac_check_lib_save_LIBS=$LIBS
9902 LIBS="-ljpeg $LIBS"
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905
9906 /* Override any GCC internal prototype to avoid an error.
9907 Use char because int might match the return type of a GCC
9908 builtin and then its argument prototype would still apply. */
9909 #ifdef __cplusplus
9910 extern "C"
9911 #endif
9912 char jpeg_destroy_compress ();
9913 int
9914 main ()
9915 {
9916 return jpeg_destroy_compress ();
9917 ;
9918 return 0;
9919 }
9920 _ACEOF
9921 if ac_fn_c_try_link "$LINENO"; then :
9922 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9923 else
9924 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9925 fi
9926 rm -f core conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
9928 LIBS=$ac_check_lib_save_LIBS
9929 fi
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9931 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9932 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
9933 HAVE_JPEG=yes
9934 fi
9935
9936 fi
9937
9938
9939 fi
9940
9941 if test "${HAVE_JPEG}" = "yes"; then
9942 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9943
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 #include <jpeglib.h>
9947 version=JPEG_LIB_VERSION
9948
9949 _ACEOF
9950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9951 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
9952 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9953
9954 else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9956 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9957 HAVE_JPEG=no
9958 fi
9959 rm -f conftest*
9960
9961 fi
9962 fi
9963
9964 ### Use -lpng if available, unless `--with-png=no'.
9965 HAVE_PNG=no
9966 if test "${HAVE_X11}" = "yes"; then
9967 if test "${with_png}" != "no"; then
9968 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9969 # in /usr/include/libpng.
9970 for ac_header in png.h libpng/png.h
9971 do :
9972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9973 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9975 cat >>confdefs.h <<_ACEOF
9976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9977 _ACEOF
9978
9979 fi
9980
9981 done
9982
9983 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9985 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9986 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 ac_check_lib_save_LIBS=$LIBS
9990 LIBS="-lpng -lz -lm $LIBS"
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 char png_get_channels ();
10001 int
10002 main ()
10003 {
10004 return png_get_channels ();
10005 ;
10006 return 0;
10007 }
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 ac_cv_lib_png_png_get_channels=yes
10011 else
10012 ac_cv_lib_png_png_get_channels=no
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LIBS=$ac_check_lib_save_LIBS
10017 fi
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10019 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10020 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10021 HAVE_PNG=yes
10022 fi
10023
10024 fi
10025 fi
10026
10027 if test "${HAVE_PNG}" = "yes"; then
10028
10029 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10030
10031 fi
10032 fi
10033
10034 ### Use -ltiff if available, unless `--with-tiff=no'.
10035 HAVE_TIFF=no
10036 if test "${HAVE_X11}" = "yes"; then
10037 if test "${with_tiff}" != "no"; then
10038 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10039 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10040 tifflibs="-lz -lm"
10041 # At least one tiff package requires the jpeg library.
10042 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10044 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10045 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10046 $as_echo_n "(cached) " >&6
10047 else
10048 ac_check_lib_save_LIBS=$LIBS
10049 LIBS="-ltiff $tifflibs $LIBS"
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052
10053 /* Override any GCC internal prototype to avoid an error.
10054 Use char because int might match the return type of a GCC
10055 builtin and then its argument prototype would still apply. */
10056 #ifdef __cplusplus
10057 extern "C"
10058 #endif
10059 char TIFFGetVersion ();
10060 int
10061 main ()
10062 {
10063 return TIFFGetVersion ();
10064 ;
10065 return 0;
10066 }
10067 _ACEOF
10068 if ac_fn_c_try_link "$LINENO"; then :
10069 ac_cv_lib_tiff_TIFFGetVersion=yes
10070 else
10071 ac_cv_lib_tiff_TIFFGetVersion=no
10072 fi
10073 rm -f core conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10075 LIBS=$ac_check_lib_save_LIBS
10076 fi
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10078 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10079 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10080 HAVE_TIFF=yes
10081 fi
10082
10083 fi
10084
10085
10086 fi
10087
10088 if test "${HAVE_TIFF}" = "yes"; then
10089
10090 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10091
10092 fi
10093 fi
10094
10095 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10096 HAVE_GIF=no
10097 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10098 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10099 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10100 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10101 # Earlier versions can crash Emacs.
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10103 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10104 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-lgif $LIBS"
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h. */
10111
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char EGifPutExtensionLast ();
10119 int
10120 main ()
10121 {
10122 return EGifPutExtensionLast ();
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 ac_cv_lib_gif_EGifPutExtensionLast=yes
10129 else
10130 ac_cv_lib_gif_EGifPutExtensionLast=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10137 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10138 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10139 HAVE_GIF=yes
10140 else
10141 try_libungif=yes
10142 fi
10143
10144 fi
10145
10146
10147
10148 if test "$HAVE_GIF" = yes; then
10149 ac_gif_lib_name="-lgif"
10150 fi
10151
10152 # If gif_lib.h but no libgif, try libungif.
10153 if test x"$try_libungif" = xyes; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10155 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10156 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 ac_check_lib_save_LIBS=$LIBS
10160 LIBS="-lungif $LIBS"
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char EGifPutExtensionLast ();
10171 int
10172 main ()
10173 {
10174 return EGifPutExtensionLast ();
10175 ;
10176 return 0;
10177 }
10178 _ACEOF
10179 if ac_fn_c_try_link "$LINENO"; then :
10180 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10181 else
10182 ac_cv_lib_ungif_EGifPutExtensionLast=no
10183 fi
10184 rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186 LIBS=$ac_check_lib_save_LIBS
10187 fi
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10189 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10190 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10191 HAVE_GIF=yes
10192 fi
10193
10194
10195 if test "$HAVE_GIF" = yes; then
10196
10197 $as_echo "#define LIBGIF -lungif" >>confdefs.h
10198
10199 ac_gif_lib_name="-lungif"
10200 fi
10201 fi
10202
10203 if test "${HAVE_GIF}" = "yes"; then
10204
10205 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10206
10207 fi
10208 fi
10209
10210 if test "${HAVE_X11}" = "yes"; then
10211 MISSING=""
10212 WITH_NO=""
10213 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10214 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10215 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10216 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10217 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10218 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10219 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10220 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10221 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10222 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10223
10224 if test "X${MISSING}" != X; then
10225 as_fn_error $? "The following required libraries were not found:
10226 $MISSING
10227 Maybe some development libraries/packages are missing?
10228 If you don't want to link with them give
10229 $WITH_NO
10230 as options to configure" "$LINENO" 5
10231 fi
10232 fi
10233
10234 ### Use -lgpm if available, unless `--with-gpm=no'.
10235 HAVE_GPM=no
10236 if test "${with_gpm}" != "no"; then
10237 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10238 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10240 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10241 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-lgpm $LIBS"
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char Gpm_Open ();
10256 int
10257 main ()
10258 {
10259 return Gpm_Open ();
10260 ;
10261 return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265 ac_cv_lib_gpm_Gpm_Open=yes
10266 else
10267 ac_cv_lib_gpm_Gpm_Open=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10274 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10275 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10276 HAVE_GPM=yes
10277 fi
10278
10279 fi
10280
10281
10282 fi
10283
10284 if test "${HAVE_GPM}" = "yes"; then
10285
10286 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10287
10288 fi
10289
10290 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10291 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10292
10293 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10294
10295 fi
10296
10297
10298
10299 ### Use NeXTstep API to implement GUI.
10300 if test "${HAVE_NS}" = "yes"; then
10301
10302 $as_echo "#define HAVE_NS 1" >>confdefs.h
10303
10304 if test "${NS_IMPL_COCOA}" = "yes"; then
10305
10306 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10307
10308 GNU_OBJC_CFLAGS=
10309 fi
10310 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10311
10312 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10313
10314 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10315 fi
10316 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10317
10318 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10319
10320 fi
10321 # We also have mouse menus.
10322 HAVE_MENUS=yes
10323 OTHER_FILES=ns-app
10324 fi
10325
10326
10327 ### Use session management (-lSM -lICE) if available
10328 HAVE_X_SM=no
10329 if test "${HAVE_X11}" = "yes"; then
10330 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10331 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10333 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10334 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 ac_check_lib_save_LIBS=$LIBS
10338 LIBS="-lSM -lICE $LIBS"
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10341
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10345 #ifdef __cplusplus
10346 extern "C"
10347 #endif
10348 char SmcOpenConnection ();
10349 int
10350 main ()
10351 {
10352 return SmcOpenConnection ();
10353 ;
10354 return 0;
10355 }
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358 ac_cv_lib_SM_SmcOpenConnection=yes
10359 else
10360 ac_cv_lib_SM_SmcOpenConnection=no
10361 fi
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 LIBS=$ac_check_lib_save_LIBS
10365 fi
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10367 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10368 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10369 HAVE_X_SM=yes
10370 fi
10371
10372 fi
10373
10374
10375
10376 if test "${HAVE_X_SM}" = "yes"; then
10377
10378 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10379
10380 case "$LIBS" in
10381 *-lSM*) ;;
10382 *) LIBS="-lSM -lICE $LIBS" ;;
10383 esac
10384 fi
10385 fi
10386
10387 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10389 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10390 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 #include <netdb.h>
10396 int
10397 main ()
10398 {
10399 return h_errno;
10400 ;
10401 return 0;
10402 }
10403 _ACEOF
10404 if ac_fn_c_try_link "$LINENO"; then :
10405 emacs_cv_netdb_declares_h_errno=yes
10406 else
10407 emacs_cv_netdb_declares_h_errno=no
10408 fi
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 fi
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10413 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10414 if test $emacs_cv_netdb_declares_h_errno = yes; then
10415
10416 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10417
10418 fi
10419
10420 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10421 # for constant arguments. Useless!
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10423 $as_echo_n "checking for working alloca.h... " >&6; }
10424 if test "${ac_cv_working_alloca_h+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429 #include <alloca.h>
10430 int
10431 main ()
10432 {
10433 char *p = (char *) alloca (2 * sizeof (int));
10434 if (p) return 0;
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 ac_cv_working_alloca_h=yes
10441 else
10442 ac_cv_working_alloca_h=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10448 $as_echo "$ac_cv_working_alloca_h" >&6; }
10449 if test $ac_cv_working_alloca_h = yes; then
10450
10451 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10452
10453 fi
10454
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10456 $as_echo_n "checking for alloca... " >&6; }
10457 if test "${ac_cv_func_alloca_works+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 #ifdef __GNUC__
10463 # define alloca __builtin_alloca
10464 #else
10465 # ifdef _MSC_VER
10466 # include <malloc.h>
10467 # define alloca _alloca
10468 # else
10469 # ifdef HAVE_ALLOCA_H
10470 # include <alloca.h>
10471 # else
10472 # ifdef _AIX
10473 #pragma alloca
10474 # else
10475 # ifndef alloca /* predefined by HP cc +Olibcalls */
10476 char *alloca ();
10477 # endif
10478 # endif
10479 # endif
10480 # endif
10481 #endif
10482
10483 int
10484 main ()
10485 {
10486 char *p = (char *) alloca (1);
10487 if (p) return 0;
10488 ;
10489 return 0;
10490 }
10491 _ACEOF
10492 if ac_fn_c_try_link "$LINENO"; then :
10493 ac_cv_func_alloca_works=yes
10494 else
10495 ac_cv_func_alloca_works=no
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 fi
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10501 $as_echo "$ac_cv_func_alloca_works" >&6; }
10502
10503 if test $ac_cv_func_alloca_works = yes; then
10504
10505 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10506
10507 else
10508 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10509 # that cause trouble. Some versions do not even contain alloca or
10510 # contain a buggy version. If you still want to use their alloca,
10511 # use ar to extract alloca.o from them instead of compiling alloca.c.
10512
10513 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10514
10515 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10516
10517
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10519 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10520 if test "${ac_cv_os_cray+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525 #if defined CRAY && ! defined CRAY2
10526 webecray
10527 #else
10528 wenotbecray
10529 #endif
10530
10531 _ACEOF
10532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10533 $EGREP "webecray" >/dev/null 2>&1; then :
10534 ac_cv_os_cray=yes
10535 else
10536 ac_cv_os_cray=no
10537 fi
10538 rm -f conftest*
10539
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10542 $as_echo "$ac_cv_os_cray" >&6; }
10543 if test $ac_cv_os_cray = yes; then
10544 for ac_func in _getb67 GETB67 getb67; do
10545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10546 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10547 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10548
10549 cat >>confdefs.h <<_ACEOF
10550 #define CRAY_STACKSEG_END $ac_func
10551 _ACEOF
10552
10553 break
10554 fi
10555
10556 done
10557 fi
10558
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10560 $as_echo_n "checking stack direction for C alloca... " >&6; }
10561 if test "${ac_cv_c_stack_direction+set}" = set; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 if test "$cross_compiling" = yes; then :
10565 ac_cv_c_stack_direction=0
10566 else
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10569 $ac_includes_default
10570 int
10571 find_stack_direction ()
10572 {
10573 static char *addr = 0;
10574 auto char dummy;
10575 if (addr == 0)
10576 {
10577 addr = &dummy;
10578 return find_stack_direction ();
10579 }
10580 else
10581 return (&dummy > addr) ? 1 : -1;
10582 }
10583
10584 int
10585 main ()
10586 {
10587 return find_stack_direction () < 0;
10588 }
10589 _ACEOF
10590 if ac_fn_c_try_run "$LINENO"; then :
10591 ac_cv_c_stack_direction=1
10592 else
10593 ac_cv_c_stack_direction=-1
10594 fi
10595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10596 conftest.$ac_objext conftest.beam conftest.$ac_ext
10597 fi
10598
10599 fi
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10601 $as_echo "$ac_cv_c_stack_direction" >&6; }
10602 cat >>confdefs.h <<_ACEOF
10603 #define STACK_DIRECTION $ac_cv_c_stack_direction
10604 _ACEOF
10605
10606
10607 fi
10608
10609
10610 if test x"$ac_cv_func_alloca_works" != xyes; then
10611 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
10612 fi
10613
10614 # fmod, logb, and frexp are found in -lm on most systems.
10615 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10617 $as_echo_n "checking for sqrt in -lm... " >&6; }
10618 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 ac_check_lib_save_LIBS=$LIBS
10622 LIBS="-lm $LIBS"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char sqrt ();
10633 int
10634 main ()
10635 {
10636 return sqrt ();
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 ac_cv_lib_m_sqrt=yes
10643 else
10644 ac_cv_lib_m_sqrt=no
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS=$ac_check_lib_save_LIBS
10649 fi
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10651 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10652 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10653 cat >>confdefs.h <<_ACEOF
10654 #define HAVE_LIBM 1
10655 _ACEOF
10656
10657 LIBS="-lm $LIBS"
10658
10659 fi
10660
10661
10662 # Check for mail-locking functions in a "mail" library. Probably this should
10663 # have the same check as for liblockfile below.
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10665 $as_echo_n "checking for maillock in -lmail... " >&6; }
10666 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-lmail $LIBS"
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673
10674 /* Override any GCC internal prototype to avoid an error.
10675 Use char because int might match the return type of a GCC
10676 builtin and then its argument prototype would still apply. */
10677 #ifdef __cplusplus
10678 extern "C"
10679 #endif
10680 char maillock ();
10681 int
10682 main ()
10683 {
10684 return maillock ();
10685 ;
10686 return 0;
10687 }
10688 _ACEOF
10689 if ac_fn_c_try_link "$LINENO"; then :
10690 ac_cv_lib_mail_maillock=yes
10691 else
10692 ac_cv_lib_mail_maillock=no
10693 fi
10694 rm -f core conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10697 fi
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10699 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10700 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10701 cat >>confdefs.h <<_ACEOF
10702 #define HAVE_LIBMAIL 1
10703 _ACEOF
10704
10705 LIBS="-lmail $LIBS"
10706
10707 fi
10708
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10710 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10711 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 ac_check_lib_save_LIBS=$LIBS
10715 LIBS="-llockfile $LIBS"
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char maillock ();
10726 int
10727 main ()
10728 {
10729 return maillock ();
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735 ac_cv_lib_lockfile_maillock=yes
10736 else
10737 ac_cv_lib_lockfile_maillock=no
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10742 fi
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10744 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10745 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_LIBLOCKFILE 1
10748 _ACEOF
10749
10750 LIBS="-llockfile $LIBS"
10751
10752 fi
10753
10754 # If we have the shared liblockfile, assume we must use it for mail
10755 # locking (e.g. Debian). If we couldn't link against liblockfile
10756 # (no liblockfile.a installed), ensure that we don't need to.
10757 if test "$ac_cv_lib_lockfile_maillock" = no; then
10758 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10759 set dummy liblockfile.so; ac_word=$2
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10761 $as_echo_n "checking for $ac_word... " >&6; }
10762 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 if test -n "$liblockfile"; then
10766 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10767 else
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10770 for as_dir in $as_dummy
10771 do
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10776 ac_cv_prog_liblockfile="yes"
10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10779 fi
10780 done
10781 done
10782 IFS=$as_save_IFS
10783
10784 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10785 fi
10786 fi
10787 liblockfile=$ac_cv_prog_liblockfile
10788 if test -n "$liblockfile"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10790 $as_echo "$liblockfile" >&6; }
10791 else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10794 fi
10795
10796
10797 if test $ac_cv_prog_liblockfile = yes; then
10798 as_fn_error $? "Shared liblockfile found but can't link against it.
10799 This probably means that movemail could lose mail.
10800 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10801 else :
10802 fi
10803 fi
10804 for ac_func in touchlock
10805 do :
10806 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
10807 if test "x$ac_cv_func_touchlock" = x""yes; then :
10808 cat >>confdefs.h <<_ACEOF
10809 #define HAVE_TOUCHLOCK 1
10810 _ACEOF
10811
10812 fi
10813 done
10814
10815 for ac_header in maillock.h
10816 do :
10817 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10818 if test "x$ac_cv_header_maillock_h" = x""yes; then :
10819 cat >>confdefs.h <<_ACEOF
10820 #define HAVE_MAILLOCK_H 1
10821 _ACEOF
10822
10823 fi
10824
10825 done
10826
10827
10828 for ac_func in gethostname getdomainname dup2 \
10829 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10830 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10831 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10832 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10833 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10834 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10835 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10836 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10837 cfmakeraw cfsetspeed
10838 do :
10839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10842 cat >>confdefs.h <<_ACEOF
10843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10844 _ACEOF
10845
10846 fi
10847 done
10848
10849
10850 for ac_header in sys/un.h
10851 do :
10852 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10853 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
10854 cat >>confdefs.h <<_ACEOF
10855 #define HAVE_SYS_UN_H 1
10856 _ACEOF
10857
10858 fi
10859
10860 done
10861
10862
10863
10864
10865
10866
10867
10868 for ac_func in $ac_func_list
10869 do :
10870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10873 cat >>confdefs.h <<_ACEOF
10874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10875 _ACEOF
10876
10877 fi
10878 done
10879
10880
10881
10882
10883
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10885 $as_echo_n "checking for working mktime... " >&6; }
10886 if test "${ac_cv_func_working_mktime+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 if test "$cross_compiling" = yes; then :
10890 ac_cv_func_working_mktime=no
10891 else
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894 /* Test program from Paul Eggert and Tony Leneis. */
10895 #ifdef TIME_WITH_SYS_TIME
10896 # include <sys/time.h>
10897 # include <time.h>
10898 #else
10899 # ifdef HAVE_SYS_TIME_H
10900 # include <sys/time.h>
10901 # else
10902 # include <time.h>
10903 # endif
10904 #endif
10905
10906 #include <limits.h>
10907 #include <stdlib.h>
10908
10909 #ifdef HAVE_UNISTD_H
10910 # include <unistd.h>
10911 #endif
10912
10913 #ifndef HAVE_ALARM
10914 # define alarm(X) /* empty */
10915 #endif
10916
10917 /* Work around redefinition to rpl_putenv by other config tests. */
10918 #undef putenv
10919
10920 static time_t time_t_max;
10921 static time_t time_t_min;
10922
10923 /* Values we'll use to set the TZ environment variable. */
10924 static const char *tz_strings[] = {
10925 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10926 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10927 };
10928 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10929
10930 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10931 Based on a problem report from Andreas Jaeger. */
10932 static int
10933 spring_forward_gap ()
10934 {
10935 /* glibc (up to about 1998-10-07) failed this test. */
10936 struct tm tm;
10937
10938 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10939 instead of "TZ=America/Vancouver" in order to detect the bug even
10940 on systems that don't support the Olson extension, or don't have the
10941 full zoneinfo tables installed. */
10942 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10943
10944 tm.tm_year = 98;
10945 tm.tm_mon = 3;
10946 tm.tm_mday = 5;
10947 tm.tm_hour = 2;
10948 tm.tm_min = 0;
10949 tm.tm_sec = 0;
10950 tm.tm_isdst = -1;
10951 return mktime (&tm) != (time_t) -1;
10952 }
10953
10954 static int
10955 mktime_test1 (time_t now)
10956 {
10957 struct tm *lt;
10958 return ! (lt = localtime (&now)) || mktime (lt) == now;
10959 }
10960
10961 static int
10962 mktime_test (time_t now)
10963 {
10964 return (mktime_test1 (now)
10965 && mktime_test1 ((time_t) (time_t_max - now))
10966 && mktime_test1 ((time_t) (time_t_min + now)));
10967 }
10968
10969 static int
10970 irix_6_4_bug ()
10971 {
10972 /* Based on code from Ariel Faigon. */
10973 struct tm tm;
10974 tm.tm_year = 96;
10975 tm.tm_mon = 3;
10976 tm.tm_mday = 0;
10977 tm.tm_hour = 0;
10978 tm.tm_min = 0;
10979 tm.tm_sec = 0;
10980 tm.tm_isdst = -1;
10981 mktime (&tm);
10982 return tm.tm_mon == 2 && tm.tm_mday == 31;
10983 }
10984
10985 static int
10986 bigtime_test (int j)
10987 {
10988 struct tm tm;
10989 time_t now;
10990 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10991 now = mktime (&tm);
10992 if (now != (time_t) -1)
10993 {
10994 struct tm *lt = localtime (&now);
10995 if (! (lt
10996 && lt->tm_year == tm.tm_year
10997 && lt->tm_mon == tm.tm_mon
10998 && lt->tm_mday == tm.tm_mday
10999 && lt->tm_hour == tm.tm_hour
11000 && lt->tm_min == tm.tm_min
11001 && lt->tm_sec == tm.tm_sec
11002 && lt->tm_yday == tm.tm_yday
11003 && lt->tm_wday == tm.tm_wday
11004 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11005 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11006 return 0;
11007 }
11008 return 1;
11009 }
11010
11011 static int
11012 year_2050_test ()
11013 {
11014 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11015 ignoring leap seconds. */
11016 unsigned long int answer = 2527315200UL;
11017
11018 struct tm tm;
11019 time_t t;
11020 tm.tm_year = 2050 - 1900;
11021 tm.tm_mon = 2 - 1;
11022 tm.tm_mday = 1;
11023 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11024 tm.tm_isdst = -1;
11025
11026 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11027 instead of "TZ=America/Vancouver" in order to detect the bug even
11028 on systems that don't support the Olson extension, or don't have the
11029 full zoneinfo tables installed. */
11030 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11031
11032 t = mktime (&tm);
11033
11034 /* Check that the result is either a failure, or close enough
11035 to the correct answer that we can assume the discrepancy is
11036 due to leap seconds. */
11037 return (t == (time_t) -1
11038 || (0 < t && answer - 120 <= t && t <= answer + 120));
11039 }
11040
11041 int
11042 main ()
11043 {
11044 time_t t, delta;
11045 int i, j;
11046
11047 /* This test makes some buggy mktime implementations loop.
11048 Give up after 60 seconds; a mktime slower than that
11049 isn't worth using anyway. */
11050 alarm (60);
11051
11052 for (;;)
11053 {
11054 t = (time_t_max << 1) + 1;
11055 if (t <= time_t_max)
11056 break;
11057 time_t_max = t;
11058 }
11059 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11060
11061 delta = time_t_max / 997; /* a suitable prime number */
11062 for (i = 0; i < N_STRINGS; i++)
11063 {
11064 if (tz_strings[i])
11065 putenv ((char*) tz_strings[i]);
11066
11067 for (t = 0; t <= time_t_max - delta; t += delta)
11068 if (! mktime_test (t))
11069 return 1;
11070 if (! (mktime_test ((time_t) 1)
11071 && mktime_test ((time_t) (60 * 60))
11072 && mktime_test ((time_t) (60 * 60 * 24))))
11073 return 1;
11074
11075 for (j = 1; ; j <<= 1)
11076 if (! bigtime_test (j))
11077 return 1;
11078 else if (INT_MAX / 2 < j)
11079 break;
11080 if (! bigtime_test (INT_MAX))
11081 return 1;
11082 }
11083 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11084 }
11085 _ACEOF
11086 if ac_fn_c_try_run "$LINENO"; then :
11087 ac_cv_func_working_mktime=yes
11088 else
11089 ac_cv_func_working_mktime=no
11090 fi
11091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11092 conftest.$ac_objext conftest.beam conftest.$ac_ext
11093 fi
11094
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11097 $as_echo "$ac_cv_func_working_mktime" >&6; }
11098 if test $ac_cv_func_working_mktime = no; then
11099 case " $LIBOBJS " in
11100 *" mktime.$ac_objext "* ) ;;
11101 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11102 ;;
11103 esac
11104
11105 fi
11106
11107 if test "$ac_cv_func_working_mktime" = no; then
11108
11109 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11110
11111 fi
11112
11113 ac_have_func=no # yes means we've found a way to get the load average.
11114
11115 # Make sure getloadavg.c is where it belongs, at configure-time.
11116 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11117 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11118
11119 ac_save_LIBS=$LIBS
11120
11121 # Check for getloadavg, but be sure not to touch the cache variable.
11122 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11123 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11124 exit 0
11125 else
11126 exit 1
11127 fi
11128 ) && ac_have_func=yes
11129
11130 # On HPUX9, an unprivileged user can get load averages through this function.
11131 for ac_func in pstat_getdynamic
11132 do :
11133 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11134 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11135 cat >>confdefs.h <<_ACEOF
11136 #define HAVE_PSTAT_GETDYNAMIC 1
11137 _ACEOF
11138
11139 fi
11140 done
11141
11142
11143 # Solaris has libkstat which does not require root.
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11145 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11146 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 ac_check_lib_save_LIBS=$LIBS
11150 LIBS="-lkstat $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 kstat_open ();
11161 int
11162 main ()
11163 {
11164 return kstat_open ();
11165 ;
11166 return 0;
11167 }
11168 _ACEOF
11169 if ac_fn_c_try_link "$LINENO"; then :
11170 ac_cv_lib_kstat_kstat_open=yes
11171 else
11172 ac_cv_lib_kstat_kstat_open=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_kstat_kstat_open" >&5
11179 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11180 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_LIBKSTAT 1
11183 _ACEOF
11184
11185 LIBS="-lkstat $LIBS"
11186
11187 fi
11188
11189 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11190
11191 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11192 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11193 # to get the right answer into the cache.
11194 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11195 if test $ac_have_func = no; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11197 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11198 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11200 else
11201 ac_check_lib_save_LIBS=$LIBS
11202 LIBS="-lelf $LIBS"
11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h. */
11205
11206 /* Override any GCC internal prototype to avoid an error.
11207 Use char because int might match the return type of a GCC
11208 builtin and then its argument prototype would still apply. */
11209 #ifdef __cplusplus
11210 extern "C"
11211 #endif
11212 char elf_begin ();
11213 int
11214 main ()
11215 {
11216 return elf_begin ();
11217 ;
11218 return 0;
11219 }
11220 _ACEOF
11221 if ac_fn_c_try_link "$LINENO"; then :
11222 ac_cv_lib_elf_elf_begin=yes
11223 else
11224 ac_cv_lib_elf_elf_begin=no
11225 fi
11226 rm -f core conftest.err conftest.$ac_objext \
11227 conftest$ac_exeext conftest.$ac_ext
11228 LIBS=$ac_check_lib_save_LIBS
11229 fi
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11231 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11232 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11233 LIBS="-lelf $LIBS"
11234 fi
11235
11236 fi
11237 if test $ac_have_func = no; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11239 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11240 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 ac_check_lib_save_LIBS=$LIBS
11244 LIBS="-lkvm $LIBS"
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11247
11248 /* Override any GCC internal prototype to avoid an error.
11249 Use char because int might match the return type of a GCC
11250 builtin and then its argument prototype would still apply. */
11251 #ifdef __cplusplus
11252 extern "C"
11253 #endif
11254 char kvm_open ();
11255 int
11256 main ()
11257 {
11258 return kvm_open ();
11259 ;
11260 return 0;
11261 }
11262 _ACEOF
11263 if ac_fn_c_try_link "$LINENO"; then :
11264 ac_cv_lib_kvm_kvm_open=yes
11265 else
11266 ac_cv_lib_kvm_kvm_open=no
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270 LIBS=$ac_check_lib_save_LIBS
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11273 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11274 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11275 LIBS="-lkvm $LIBS"
11276 fi
11277
11278 # Check for the 4.4BSD definition of getloadavg.
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11280 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11281 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 ac_check_lib_save_LIBS=$LIBS
11285 LIBS="-lutil $LIBS"
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char getloadavg ();
11296 int
11297 main ()
11298 {
11299 return getloadavg ();
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_c_try_link "$LINENO"; then :
11305 ac_cv_lib_util_getloadavg=yes
11306 else
11307 ac_cv_lib_util_getloadavg=no
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LIBS=$ac_check_lib_save_LIBS
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11314 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11315 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11316 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11317 fi
11318
11319 fi
11320
11321 if test $ac_have_func = no; then
11322 # There is a commonly available library for RS/6000 AIX.
11323 # Since it is not a standard part of AIX, it might be installed locally.
11324 ac_getloadavg_LIBS=$LIBS
11325 LIBS="-L/usr/local/lib $LIBS"
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11327 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11328 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 ac_check_lib_save_LIBS=$LIBS
11332 LIBS="-lgetloadavg $LIBS"
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11335
11336 /* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 char getloadavg ();
11343 int
11344 main ()
11345 {
11346 return getloadavg ();
11347 ;
11348 return 0;
11349 }
11350 _ACEOF
11351 if ac_fn_c_try_link "$LINENO"; then :
11352 ac_cv_lib_getloadavg_getloadavg=yes
11353 else
11354 ac_cv_lib_getloadavg_getloadavg=no
11355 fi
11356 rm -f core conftest.err conftest.$ac_objext \
11357 conftest$ac_exeext conftest.$ac_ext
11358 LIBS=$ac_check_lib_save_LIBS
11359 fi
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11361 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11362 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11363 LIBS="-lgetloadavg $LIBS"
11364 else
11365 LIBS=$ac_getloadavg_LIBS
11366 fi
11367
11368 fi
11369
11370 # Make sure it is really in the library, if we think we found it,
11371 # otherwise set up the replacement function.
11372 for ac_func in getloadavg
11373 do :
11374 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11375 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_GETLOADAVG 1
11378 _ACEOF
11379
11380 else
11381 case " $LIBOBJS " in
11382 *" getloadavg.$ac_objext "* ) ;;
11383 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11384 ;;
11385 esac
11386
11387
11388 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11389
11390 # Figure out what our getloadavg.c needs.
11391 ac_have_func=no
11392 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11393 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11394 ac_have_func=yes
11395
11396 $as_echo "#define DGUX 1" >>confdefs.h
11397
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11399 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11400 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-ldgc $LIBS"
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11407
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char dg_sys_info ();
11415 int
11416 main ()
11417 {
11418 return dg_sys_info ();
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424 ac_cv_lib_dgc_dg_sys_info=yes
11425 else
11426 ac_cv_lib_dgc_dg_sys_info=no
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_lib_save_LIBS
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11433 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11434 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11435 cat >>confdefs.h <<_ACEOF
11436 #define HAVE_LIBDGC 1
11437 _ACEOF
11438
11439 LIBS="-ldgc $LIBS"
11440
11441 fi
11442
11443 fi
11444
11445
11446
11447 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11448 if test "x$ac_cv_header_locale_h" = x""yes; then :
11449
11450 fi
11451
11452
11453 for ac_func in setlocale
11454 do :
11455 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11456 if test "x$ac_cv_func_setlocale" = x""yes; then :
11457 cat >>confdefs.h <<_ACEOF
11458 #define HAVE_SETLOCALE 1
11459 _ACEOF
11460
11461 fi
11462 done
11463
11464
11465 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11466 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11467 # Irix 4.0.5F has the header but not the library.
11468 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11469 ac_have_func=yes
11470
11471 $as_echo "#define SVR4 1" >>confdefs.h
11472
11473 fi
11474
11475 if test $ac_have_func = no; then
11476 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11477 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11478 ac_have_func=yes
11479
11480 $as_echo "#define UMAX 1" >>confdefs.h
11481
11482
11483 $as_echo "#define UMAX4_3 1" >>confdefs.h
11484
11485 fi
11486
11487
11488 fi
11489
11490 if test $ac_have_func = no; then
11491 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11492 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11493 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11494
11495 fi
11496
11497
11498 fi
11499
11500 if test $ac_have_func = no; then
11501 for ac_header in mach/mach.h
11502 do :
11503 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11504 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11505 cat >>confdefs.h <<_ACEOF
11506 #define HAVE_MACH_MACH_H 1
11507 _ACEOF
11508
11509 fi
11510
11511 done
11512
11513 fi
11514
11515 for ac_header in nlist.h
11516 do :
11517 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11518 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11519 cat >>confdefs.h <<_ACEOF
11520 #define HAVE_NLIST_H 1
11521 _ACEOF
11522 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11523 "
11524 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11525
11526 cat >>confdefs.h <<_ACEOF
11527 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11528 _ACEOF
11529
11530
11531 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11532
11533 fi
11534
11535
11536 fi
11537
11538 done
11539
11540 fi
11541 done
11542
11543
11544 # Some definitions of getloadavg require that the program be installed setgid.
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11546 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11547 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11552 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11553 #ifdef LDAV_PRIVILEGED
11554 Yowza Am I SETGID yet
11555 #endif
11556 _ACEOF
11557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11558 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11559 ac_cv_func_getloadavg_setgid=yes
11560 else
11561 ac_cv_func_getloadavg_setgid=no
11562 fi
11563 rm -f conftest*
11564
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11567 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11568 if test $ac_cv_func_getloadavg_setgid = yes; then
11569 NEED_SETGID=true
11570
11571 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11572
11573 else
11574 NEED_SETGID=false
11575 fi
11576
11577 if test $ac_cv_func_getloadavg_setgid = yes; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11579 $as_echo_n "checking group of /dev/kmem... " >&6; }
11580 if test "${ac_cv_group_kmem+set}" = set; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11584 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11585 # If we got an error (system does not support symlinks), try without -L.
11586 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11587 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11588 | sed -ne 's/[ ][ ]*/ /g;
11589 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11590 / /s/.* //;p;'`
11591
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11594 $as_echo "$ac_cv_group_kmem" >&6; }
11595 KMEM_GROUP=$ac_cv_group_kmem
11596 fi
11597 if test "x$ac_save_LIBS" = x; then
11598 GETLOADAVG_LIBS=$LIBS
11599 else
11600 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11601 fi
11602 LIBS=$ac_save_LIBS
11603
11604
11605
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11607 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11608 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 while :; do
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614 #include <sys/types.h> /* for off_t */
11615 #include <stdio.h>
11616 int
11617 main ()
11618 {
11619 int (*fp) (FILE *, off_t, int) = fseeko;
11620 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11621 ;
11622 return 0;
11623 }
11624 _ACEOF
11625 if ac_fn_c_try_link "$LINENO"; then :
11626 ac_cv_sys_largefile_source=no; break
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632 #define _LARGEFILE_SOURCE 1
11633 #include <sys/types.h> /* for off_t */
11634 #include <stdio.h>
11635 int
11636 main ()
11637 {
11638 int (*fp) (FILE *, off_t, int) = fseeko;
11639 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11640 ;
11641 return 0;
11642 }
11643 _ACEOF
11644 if ac_fn_c_try_link "$LINENO"; then :
11645 ac_cv_sys_largefile_source=1; break
11646 fi
11647 rm -f core conftest.err conftest.$ac_objext \
11648 conftest$ac_exeext conftest.$ac_ext
11649 ac_cv_sys_largefile_source=unknown
11650 break
11651 done
11652 fi
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11654 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11655 case $ac_cv_sys_largefile_source in #(
11656 no | unknown) ;;
11657 *)
11658 cat >>confdefs.h <<_ACEOF
11659 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11660 _ACEOF
11661 ;;
11662 esac
11663 rm -rf conftest*
11664
11665 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11666 # in glibc 2.1.3, but that breaks too many other things.
11667 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11668 if test $ac_cv_sys_largefile_source != unknown; then
11669
11670 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11671
11672 fi
11673
11674
11675 # Configure getopt.
11676 # getopt.m4 serial 10
11677
11678 # The getopt module assume you want GNU getopt, with getopt_long etc,
11679 # rather than vanilla POSIX getopt. This means your your code should
11680 # always include <getopt.h> for the getopt prototypes.
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692 # Prerequisites of lib/getopt*.
11693
11694
11695
11696
11697 GETOPT_H=
11698 for ac_header in getopt.h
11699 do :
11700 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11701 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11702 cat >>confdefs.h <<_ACEOF
11703 #define HAVE_GETOPT_H 1
11704 _ACEOF
11705
11706 else
11707 GETOPT_H=getopt.h
11708 fi
11709
11710 done
11711
11712 if test -z "$GETOPT_H"; then
11713 for ac_func in getopt_long_only
11714 do :
11715 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11716 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11717 cat >>confdefs.h <<_ACEOF
11718 #define HAVE_GETOPT_LONG_ONLY 1
11719 _ACEOF
11720
11721 else
11722 GETOPT_H=getopt.h
11723 fi
11724 done
11725
11726 fi
11727
11728 if test -z "$GETOPT_H"; then
11729 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11730 "
11731 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11732 GETOPT_H=getopt.h
11733 fi
11734
11735 fi
11736
11737 if test -z "$GETOPT_H"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11739 $as_echo_n "checking for working GNU getopt function... " >&6; }
11740 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test "$cross_compiling" = yes; then :
11744 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11745 "
11746 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11747 gl_cv_func_gnu_getopt=no
11748 else
11749 gl_cv_func_gnu_getopt=yes
11750 fi
11751
11752 else
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755 #include <getopt.h>
11756 int
11757 main ()
11758 {
11759
11760 char *myargv[3];
11761 myargv[0] = "conftest";
11762 myargv[1] = "-+";
11763 myargv[2] = 0;
11764 return getopt (2, myargv, "+a") != '?';
11765
11766 ;
11767 return 0;
11768 }
11769 _ACEOF
11770 if ac_fn_c_try_run "$LINENO"; then :
11771 gl_cv_func_gnu_getopt=yes
11772 else
11773 gl_cv_func_gnu_getopt=no
11774 fi
11775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11776 conftest.$ac_objext conftest.beam conftest.$ac_ext
11777 fi
11778
11779 fi
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11781 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11782 if test "$gl_cv_func_gnu_getopt" = "no"; then
11783 GETOPT_H=getopt.h
11784 fi
11785 fi
11786
11787
11788
11789 if test -n "$GETOPT_H"; then :
11790
11791
11792 GETOPT_H=getopt.h
11793
11794 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11795
11796
11797
11798 :
11799 GETOPTOBJS='getopt.o getopt1.o'
11800
11801 fi
11802
11803
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11806 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11807 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 # Use it with a single arg.
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11813 $ac_includes_default
11814 int
11815 main ()
11816 {
11817 getpgrp (0);
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_compile "$LINENO"; then :
11823 ac_cv_func_getpgrp_void=no
11824 else
11825 ac_cv_func_getpgrp_void=yes
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11831 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11832 if test $ac_cv_func_getpgrp_void = yes; then
11833
11834 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11835
11836 fi
11837
11838
11839 for ac_func in strftime
11840 do :
11841 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11842 if test "x$ac_cv_func_strftime" = x""yes; then :
11843 cat >>confdefs.h <<_ACEOF
11844 #define HAVE_STRFTIME 1
11845 _ACEOF
11846
11847 else
11848 # strftime is in -lintl on SCO UNIX.
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11850 $as_echo_n "checking for strftime in -lintl... " >&6; }
11851 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 ac_check_lib_save_LIBS=$LIBS
11855 LIBS="-lintl $LIBS"
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11858
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char strftime ();
11866 int
11867 main ()
11868 {
11869 return strftime ();
11870 ;
11871 return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_c_try_link "$LINENO"; then :
11875 ac_cv_lib_intl_strftime=yes
11876 else
11877 ac_cv_lib_intl_strftime=no
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881 LIBS=$ac_check_lib_save_LIBS
11882 fi
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11884 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11885 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11886 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11887
11888 LIBS="-lintl $LIBS"
11889 fi
11890
11891 fi
11892 done
11893
11894
11895 # UNIX98 PTYs.
11896 for ac_func in grantpt
11897 do :
11898 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
11899 if test "x$ac_cv_func_grantpt" = x""yes; then :
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_GRANTPT 1
11902 _ACEOF
11903
11904 fi
11905 done
11906
11907
11908 # PTY-related GNU extensions.
11909 for ac_func in getpt
11910 do :
11911 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
11912 if test "x$ac_cv_func_getpt" = x""yes; then :
11913 cat >>confdefs.h <<_ACEOF
11914 #define HAVE_GETPT 1
11915 _ACEOF
11916
11917 fi
11918 done
11919
11920
11921 # Check this now, so that we will NOT find the above functions in ncurses.
11922 # That is because we have not set up to link ncurses in lib-src.
11923 # It's better to believe a function is not available
11924 # than to expect to find it in ncurses.
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
11926 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11927 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 ac_check_lib_save_LIBS=$LIBS
11931 LIBS="-lncurses $LIBS"
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char tparm ();
11942 int
11943 main ()
11944 {
11945 return tparm ();
11946 ;
11947 return 0;
11948 }
11949 _ACEOF
11950 if ac_fn_c_try_link "$LINENO"; then :
11951 ac_cv_lib_ncurses_tparm=yes
11952 else
11953 ac_cv_lib_ncurses_tparm=no
11954 fi
11955 rm -f core conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957 LIBS=$ac_check_lib_save_LIBS
11958 fi
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
11960 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11961 if test "x$ac_cv_lib_ncurses_tparm" = x""yes; then :
11962 cat >>confdefs.h <<_ACEOF
11963 #define HAVE_LIBNCURSES 1
11964 _ACEOF
11965
11966 LIBS="-lncurses $LIBS"
11967
11968 fi
11969
11970
11971 case "$opsys" in
11972 netbsd)
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
11974 $as_echo_n "checking for library containing tputs... " >&6; }
11975 if test "${ac_cv_search_tputs+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 ac_func_search_save_LIBS=$LIBS
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11981
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 char tputs ();
11989 int
11990 main ()
11991 {
11992 return tputs ();
11993 ;
11994 return 0;
11995 }
11996 _ACEOF
11997 for ac_lib in '' ncurses terminfo termcap; do
11998 if test -z "$ac_lib"; then
11999 ac_res="none required"
12000 else
12001 ac_res=-l$ac_lib
12002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12003 fi
12004 if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_search_tputs=$ac_res
12006 fi
12007 rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext
12009 if test "${ac_cv_search_tputs+set}" = set; then :
12010 break
12011 fi
12012 done
12013 if test "${ac_cv_search_tputs+set}" = set; then :
12014
12015 else
12016 ac_cv_search_tputs=no
12017 fi
12018 rm conftest.$ac_ext
12019 LIBS=$ac_func_search_save_LIBS
12020 fi
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12022 $as_echo "$ac_cv_search_tputs" >&6; }
12023 ac_res=$ac_cv_search_tputs
12024 if test "$ac_res" != no; then :
12025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12026
12027 fi
12028
12029 if test $ac_cv_search_tputs = -lterminfo; then
12030
12031 $as_echo "#define TERMINFO 1" >>confdefs.h
12032
12033 fi
12034 ;;
12035 esac
12036
12037 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12038
12039 resolv=no
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12042 #include <netinet/in.h>
12043 #include <arpa/nameser.h>
12044 #include <resolv.h>
12045 int
12046 main ()
12047 {
12048 return res_init();
12049 ;
12050 return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 have_res_init=yes
12055 else
12056 have_res_init=no
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 if test "$have_res_init" = no; then
12061 OLIBS="$LIBS"
12062 LIBS="$LIBS -lresolv"
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12064 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 #include <netinet/in.h>
12068 #include <arpa/nameser.h>
12069 #include <resolv.h>
12070 int
12071 main ()
12072 {
12073 return res_init();
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 have_res_init=yes
12080 else
12081 have_res_init=no
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12086 $as_echo "$have_res_init" >&6; }
12087 if test "$have_res_init" = yes ; then
12088 resolv=yes
12089 fi
12090 LIBS="$OLIBS"
12091 fi
12092
12093 if test "$have_res_init" = yes; then
12094
12095 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12096
12097 fi
12098
12099 # Do we need the Hesiod library to provide the support routines?
12100 if test "$with_hesiod" != no ; then
12101 # Don't set $LIBS here -- see comments above.
12102 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12103 if test "x$ac_cv_func_res_send" = x""yes; then :
12104
12105 else
12106 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12107 if test "x$ac_cv_func___res_send" = x""yes; then :
12108
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12111 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12112 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lresolv $LIBS"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119
12120 /* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
12123 #ifdef __cplusplus
12124 extern "C"
12125 #endif
12126 char res_send ();
12127 int
12128 main ()
12129 {
12130 return res_send ();
12131 ;
12132 return 0;
12133 }
12134 _ACEOF
12135 if ac_fn_c_try_link "$LINENO"; then :
12136 ac_cv_lib_resolv_res_send=yes
12137 else
12138 ac_cv_lib_resolv_res_send=no
12139 fi
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142 LIBS=$ac_check_lib_save_LIBS
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12145 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12146 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12147 resolv=yes
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12150 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12151 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-lresolv $LIBS"
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char __res_send ();
12166 int
12167 main ()
12168 {
12169 return __res_send ();
12170 ;
12171 return 0;
12172 }
12173 _ACEOF
12174 if ac_fn_c_try_link "$LINENO"; then :
12175 ac_cv_lib_resolv___res_send=yes
12176 else
12177 ac_cv_lib_resolv___res_send=no
12178 fi
12179 rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12182 fi
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12184 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12185 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12186 resolv=yes
12187 fi
12188
12189 fi
12190
12191 fi
12192
12193 fi
12194
12195 if test "$resolv" = yes ; then
12196 RESOLVLIB=-lresolv
12197 else
12198 RESOLVLIB=
12199 fi
12200 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12201 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12202
12203 else
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12205 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12206 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-lhesiod $RESOLVLIB $LIBS"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char hes_getmailhost ();
12221 int
12222 main ()
12223 {
12224 return hes_getmailhost ();
12225 ;
12226 return 0;
12227 }
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230 ac_cv_lib_hesiod_hes_getmailhost=yes
12231 else
12232 ac_cv_lib_hesiod_hes_getmailhost=no
12233 fi
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12239 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12240 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12241
12242 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12243
12244 else
12245 :
12246 fi
12247
12248 fi
12249
12250 fi
12251
12252 # Do we need libresolv (due to res_init or Hesiod)?
12253 if test "$resolv" = yes ; then
12254
12255 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12256
12257 fi
12258
12259 # These tell us which Kerberos-related libraries to use.
12260 if test "${with_kerberos}" != no; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12262 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12263 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-lcom_err $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 com_err ();
12278 int
12279 main ()
12280 {
12281 return com_err ();
12282 ;
12283 return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"; then :
12287 ac_cv_lib_com_err_com_err=yes
12288 else
12289 ac_cv_lib_com_err_com_err=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_com_err_com_err" >&5
12296 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12297 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12298 cat >>confdefs.h <<_ACEOF
12299 #define HAVE_LIBCOM_ERR 1
12300 _ACEOF
12301
12302 LIBS="-lcom_err $LIBS"
12303
12304 fi
12305
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12307 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12308 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
12310 else
12311 ac_check_lib_save_LIBS=$LIBS
12312 LIBS="-lk5crypto $LIBS"
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315
12316 /* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12319 #ifdef __cplusplus
12320 extern "C"
12321 #endif
12322 char mit_des_cbc_encrypt ();
12323 int
12324 main ()
12325 {
12326 return mit_des_cbc_encrypt ();
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 if ac_fn_c_try_link "$LINENO"; then :
12332 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12333 else
12334 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12335 fi
12336 rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
12338 LIBS=$ac_check_lib_save_LIBS
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12341 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12342 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12343 cat >>confdefs.h <<_ACEOF
12344 #define HAVE_LIBK5CRYPTO 1
12345 _ACEOF
12346
12347 LIBS="-lk5crypto $LIBS"
12348
12349 fi
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12352 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12353 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 ac_check_lib_save_LIBS=$LIBS
12357 LIBS="-lcrypto $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 mit_des_cbc_encrypt ();
12368 int
12369 main ()
12370 {
12371 return mit_des_cbc_encrypt ();
12372 ;
12373 return 0;
12374 }
12375 _ACEOF
12376 if ac_fn_c_try_link "$LINENO"; then :
12377 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12378 else
12379 ac_cv_lib_crypto_mit_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_crypto_mit_des_cbc_encrypt" >&5
12386 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12387 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12388 cat >>confdefs.h <<_ACEOF
12389 #define HAVE_LIBCRYPTO 1
12390 _ACEOF
12391
12392 LIBS="-lcrypto $LIBS"
12393
12394 fi
12395
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12397 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12398 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-lkrb5 $LIBS"
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 char krb5_init_context ();
12413 int
12414 main ()
12415 {
12416 return krb5_init_context ();
12417 ;
12418 return 0;
12419 }
12420 _ACEOF
12421 if ac_fn_c_try_link "$LINENO"; then :
12422 ac_cv_lib_krb5_krb5_init_context=yes
12423 else
12424 ac_cv_lib_krb5_krb5_init_context=no
12425 fi
12426 rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12431 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12432 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12433 cat >>confdefs.h <<_ACEOF
12434 #define HAVE_LIBKRB5 1
12435 _ACEOF
12436
12437 LIBS="-lkrb5 $LIBS"
12438
12439 fi
12440
12441 if test "${with_kerberos5}" = no; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12443 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12444 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 ac_check_lib_save_LIBS=$LIBS
12448 LIBS="-ldes425 $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 des_cbc_encrypt ();
12459 int
12460 main ()
12461 {
12462 return des_cbc_encrypt ();
12463 ;
12464 return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_link "$LINENO"; then :
12468 ac_cv_lib_des425_des_cbc_encrypt=yes
12469 else
12470 ac_cv_lib_des425_des_cbc_encrypt=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_des425_des_cbc_encrypt" >&5
12477 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12478 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12479 cat >>confdefs.h <<_ACEOF
12480 #define HAVE_LIBDES425 1
12481 _ACEOF
12482
12483 LIBS="-ldes425 $LIBS"
12484
12485 else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12487 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12488 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491 ac_check_lib_save_LIBS=$LIBS
12492 LIBS="-ldes $LIBS"
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495
12496 /* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 char des_cbc_encrypt ();
12503 int
12504 main ()
12505 {
12506 return des_cbc_encrypt ();
12507 ;
12508 return 0;
12509 }
12510 _ACEOF
12511 if ac_fn_c_try_link "$LINENO"; then :
12512 ac_cv_lib_des_des_cbc_encrypt=yes
12513 else
12514 ac_cv_lib_des_des_cbc_encrypt=no
12515 fi
12516 rm -f core conftest.err conftest.$ac_objext \
12517 conftest$ac_exeext conftest.$ac_ext
12518 LIBS=$ac_check_lib_save_LIBS
12519 fi
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12521 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12522 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12523 cat >>confdefs.h <<_ACEOF
12524 #define HAVE_LIBDES 1
12525 _ACEOF
12526
12527 LIBS="-ldes $LIBS"
12528
12529 fi
12530
12531 fi
12532
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12534 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12535 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 ac_check_lib_save_LIBS=$LIBS
12539 LIBS="-lkrb4 $LIBS"
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12542
12543 /* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
12546 #ifdef __cplusplus
12547 extern "C"
12548 #endif
12549 char krb_get_cred ();
12550 int
12551 main ()
12552 {
12553 return krb_get_cred ();
12554 ;
12555 return 0;
12556 }
12557 _ACEOF
12558 if ac_fn_c_try_link "$LINENO"; then :
12559 ac_cv_lib_krb4_krb_get_cred=yes
12560 else
12561 ac_cv_lib_krb4_krb_get_cred=no
12562 fi
12563 rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12568 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12569 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12570 cat >>confdefs.h <<_ACEOF
12571 #define HAVE_LIBKRB4 1
12572 _ACEOF
12573
12574 LIBS="-lkrb4 $LIBS"
12575
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12578 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12579 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-lkrb $LIBS"
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586
12587 /* Override any GCC internal prototype to avoid an error.
12588 Use char because int might match the return type of a GCC
12589 builtin and then its argument prototype would still apply. */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 char krb_get_cred ();
12594 int
12595 main ()
12596 {
12597 return krb_get_cred ();
12598 ;
12599 return 0;
12600 }
12601 _ACEOF
12602 if ac_fn_c_try_link "$LINENO"; then :
12603 ac_cv_lib_krb_krb_get_cred=yes
12604 else
12605 ac_cv_lib_krb_krb_get_cred=no
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12612 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12613 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12614 cat >>confdefs.h <<_ACEOF
12615 #define HAVE_LIBKRB 1
12616 _ACEOF
12617
12618 LIBS="-lkrb $LIBS"
12619
12620 fi
12621
12622 fi
12623
12624 fi
12625
12626 if test "${with_kerberos5}" != no; then
12627 for ac_header in krb5.h
12628 do :
12629 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12630 if test "x$ac_cv_header_krb5_h" = x""yes; then :
12631 cat >>confdefs.h <<_ACEOF
12632 #define HAVE_KRB5_H 1
12633 _ACEOF
12634 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12635 "
12636 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
12637
12638 cat >>confdefs.h <<_ACEOF
12639 #define HAVE_KRB5_ERROR_TEXT 1
12640 _ACEOF
12641
12642
12643 fi
12644 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12645 "
12646 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
12647
12648 cat >>confdefs.h <<_ACEOF
12649 #define HAVE_KRB5_ERROR_E_TEXT 1
12650 _ACEOF
12651
12652
12653 fi
12654
12655 fi
12656
12657 done
12658
12659 else
12660 for ac_header in des.h
12661 do :
12662 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12663 if test "x$ac_cv_header_des_h" = x""yes; then :
12664 cat >>confdefs.h <<_ACEOF
12665 #define HAVE_DES_H 1
12666 _ACEOF
12667
12668 else
12669 for ac_header in kerberosIV/des.h
12670 do :
12671 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12672 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
12673 cat >>confdefs.h <<_ACEOF
12674 #define HAVE_KERBEROSIV_DES_H 1
12675 _ACEOF
12676
12677 else
12678 for ac_header in kerberos/des.h
12679 do :
12680 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12681 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
12682 cat >>confdefs.h <<_ACEOF
12683 #define HAVE_KERBEROS_DES_H 1
12684 _ACEOF
12685
12686 fi
12687
12688 done
12689
12690 fi
12691
12692 done
12693
12694 fi
12695
12696 done
12697
12698 for ac_header in krb.h
12699 do :
12700 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12701 if test "x$ac_cv_header_krb_h" = x""yes; then :
12702 cat >>confdefs.h <<_ACEOF
12703 #define HAVE_KRB_H 1
12704 _ACEOF
12705
12706 else
12707 for ac_header in kerberosIV/krb.h
12708 do :
12709 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12710 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
12711 cat >>confdefs.h <<_ACEOF
12712 #define HAVE_KERBEROSIV_KRB_H 1
12713 _ACEOF
12714
12715 else
12716 for ac_header in kerberos/krb.h
12717 do :
12718 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12719 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
12720 cat >>confdefs.h <<_ACEOF
12721 #define HAVE_KERBEROS_KRB_H 1
12722 _ACEOF
12723
12724 fi
12725
12726 done
12727
12728 fi
12729
12730 done
12731
12732 fi
12733
12734 done
12735
12736 fi
12737 for ac_header in com_err.h
12738 do :
12739 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12740 if test "x$ac_cv_header_com_err_h" = x""yes; then :
12741 cat >>confdefs.h <<_ACEOF
12742 #define HAVE_COM_ERR_H 1
12743 _ACEOF
12744
12745 fi
12746
12747 done
12748
12749 fi
12750
12751 # Solaris requires -lintl if you want strerror (which calls dgettext)
12752 # to return localized messages.
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12754 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12755 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-lintl $LIBS"
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12762
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 char dgettext ();
12770 int
12771 main ()
12772 {
12773 return dgettext ();
12774 ;
12775 return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_lib_intl_dgettext=yes
12780 else
12781 ac_cv_lib_intl_dgettext=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12788 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12789 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
12790 cat >>confdefs.h <<_ACEOF
12791 #define HAVE_LIBINTL 1
12792 _ACEOF
12793
12794 LIBS="-lintl $LIBS"
12795
12796 fi
12797
12798
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12800 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12801 if test "${emacs_cv_localtime_cache+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 if test x$ac_cv_func_tzset = xyes; then
12805 if test "$cross_compiling" = yes; then :
12806 # If we have tzset, assume the worst when cross-compiling.
12807 emacs_cv_localtime_cache=yes
12808 else
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 #include <time.h>
12812 extern char **environ;
12813 unset_TZ ()
12814 {
12815 char **from, **to;
12816 for (to = from = environ; (*to = *from); from++)
12817 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12818 to++;
12819 }
12820 char TZ_GMT0[] = "TZ=GMT0";
12821 char TZ_PST8[] = "TZ=PST8";
12822 main()
12823 {
12824 time_t now = time ((time_t *) 0);
12825 int hour_GMT0, hour_unset;
12826 if (putenv (TZ_GMT0) != 0)
12827 exit (1);
12828 hour_GMT0 = localtime (&now)->tm_hour;
12829 unset_TZ ();
12830 hour_unset = localtime (&now)->tm_hour;
12831 if (putenv (TZ_PST8) != 0)
12832 exit (1);
12833 if (localtime (&now)->tm_hour == hour_GMT0)
12834 exit (1);
12835 unset_TZ ();
12836 if (localtime (&now)->tm_hour != hour_unset)
12837 exit (1);
12838 exit (0);
12839 }
12840 _ACEOF
12841 if ac_fn_c_try_run "$LINENO"; then :
12842 emacs_cv_localtime_cache=no
12843 else
12844 emacs_cv_localtime_cache=yes
12845 fi
12846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12847 conftest.$ac_objext conftest.beam conftest.$ac_ext
12848 fi
12849
12850 else
12851 # If we lack tzset, report that localtime does not cache TZ,
12852 # since we can't invalidate the cache if we don't have tzset.
12853 emacs_cv_localtime_cache=no
12854 fi
12855 fi
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12857 $as_echo "$emacs_cv_localtime_cache" >&6; }
12858 if test $emacs_cv_localtime_cache = yes; then
12859
12860 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12861
12862 fi
12863
12864 if test "x$HAVE_TIMEVAL" = xyes; then
12865 for ac_func in gettimeofday
12866 do :
12867 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12868 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
12869 cat >>confdefs.h <<_ACEOF
12870 #define HAVE_GETTIMEOFDAY 1
12871 _ACEOF
12872
12873 fi
12874 done
12875
12876 if test $ac_cv_func_gettimeofday = yes; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12878 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12879 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884
12885 #ifdef TIME_WITH_SYS_TIME
12886 #include <sys/time.h>
12887 #include <time.h>
12888 #else
12889 #ifdef HAVE_SYS_TIME_H
12890 #include <sys/time.h>
12891 #else
12892 #include <time.h>
12893 #endif
12894 #endif
12895 int
12896 main ()
12897 {
12898 struct timeval time;
12899 gettimeofday (&time, 0);
12900 ;
12901 return 0;
12902 }
12903 _ACEOF
12904 if ac_fn_c_try_compile "$LINENO"; then :
12905 emacs_cv_gettimeofday_two_arguments=yes
12906 else
12907 emacs_cv_gettimeofday_two_arguments=no
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12910 fi
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12912 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12913 if test $emacs_cv_gettimeofday_two_arguments = no; then
12914
12915 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12916
12917 fi
12918 fi
12919 fi
12920
12921 ok_so_far=yes
12922 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
12923 if test "x$ac_cv_func_socket" = x""yes; then :
12924
12925 else
12926 ok_so_far=no
12927 fi
12928
12929 if test $ok_so_far = yes; then
12930 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12931 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12932
12933 else
12934 ok_so_far=no
12935 fi
12936
12937
12938 fi
12939 if test $ok_so_far = yes; then
12940 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12941 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12942
12943 else
12944 ok_so_far=no
12945 fi
12946
12947
12948 fi
12949 if test $ok_so_far = yes; then
12950
12951 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12952
12953 fi
12954
12955 for ac_header in sys/ioctl.h
12956 do :
12957 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12958 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
12959 cat >>confdefs.h <<_ACEOF
12960 #define HAVE_SYS_IOCTL_H 1
12961 _ACEOF
12962
12963 fi
12964
12965 done
12966
12967
12968 if test -f /usr/lpp/X11/bin/smt.exp; then
12969
12970 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12971
12972 fi
12973
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12975 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12976 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12978 $as_echo "yes" >&6; }
12979
12980 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12981
12982 else
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 $as_echo "no" >&6; }
12985 fi
12986
12987 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12988 if test "x$ac_cv_type_pid_t" = x""yes; then :
12989
12990 else
12991
12992 cat >>confdefs.h <<_ACEOF
12993 #define pid_t int
12994 _ACEOF
12995
12996 fi
12997
12998 for ac_header in vfork.h
12999 do :
13000 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13001 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13002 cat >>confdefs.h <<_ACEOF
13003 #define HAVE_VFORK_H 1
13004 _ACEOF
13005
13006 fi
13007
13008 done
13009
13010 for ac_func in fork vfork
13011 do :
13012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13014 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13015 cat >>confdefs.h <<_ACEOF
13016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13017 _ACEOF
13018
13019 fi
13020 done
13021
13022 if test "x$ac_cv_func_fork" = xyes; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13024 $as_echo_n "checking for working fork... " >&6; }
13025 if test "${ac_cv_func_fork_works+set}" = set; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13028 if test "$cross_compiling" = yes; then :
13029 ac_cv_func_fork_works=cross
13030 else
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 $ac_includes_default
13034 int
13035 main ()
13036 {
13037
13038 /* By Ruediger Kuhlmann. */
13039 return fork () < 0;
13040
13041 ;
13042 return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_run "$LINENO"; then :
13046 ac_cv_func_fork_works=yes
13047 else
13048 ac_cv_func_fork_works=no
13049 fi
13050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13051 conftest.$ac_objext conftest.beam conftest.$ac_ext
13052 fi
13053
13054 fi
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13056 $as_echo "$ac_cv_func_fork_works" >&6; }
13057
13058 else
13059 ac_cv_func_fork_works=$ac_cv_func_fork
13060 fi
13061 if test "x$ac_cv_func_fork_works" = xcross; then
13062 case $host in
13063 *-*-amigaos* | *-*-msdosdjgpp*)
13064 # Override, as these systems have only a dummy fork() stub
13065 ac_cv_func_fork_works=no
13066 ;;
13067 *)
13068 ac_cv_func_fork_works=yes
13069 ;;
13070 esac
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13072 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13073 fi
13074 ac_cv_func_vfork_works=$ac_cv_func_vfork
13075 if test "x$ac_cv_func_vfork" = xyes; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13077 $as_echo_n "checking for working vfork... " >&6; }
13078 if test "${ac_cv_func_vfork_works+set}" = set; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 if test "$cross_compiling" = yes; then :
13082 ac_cv_func_vfork_works=cross
13083 else
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13086 /* Thanks to Paul Eggert for this test. */
13087 $ac_includes_default
13088 #include <sys/wait.h>
13089 #ifdef HAVE_VFORK_H
13090 # include <vfork.h>
13091 #endif
13092 /* On some sparc systems, changes by the child to local and incoming
13093 argument registers are propagated back to the parent. The compiler
13094 is told about this with #include <vfork.h>, but some compilers
13095 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13096 static variable whose address is put into a register that is
13097 clobbered by the vfork. */
13098 static void
13099 #ifdef __cplusplus
13100 sparc_address_test (int arg)
13101 # else
13102 sparc_address_test (arg) int arg;
13103 #endif
13104 {
13105 static pid_t child;
13106 if (!child) {
13107 child = vfork ();
13108 if (child < 0) {
13109 perror ("vfork");
13110 _exit(2);
13111 }
13112 if (!child) {
13113 arg = getpid();
13114 write(-1, "", 0);
13115 _exit (arg);
13116 }
13117 }
13118 }
13119
13120 int
13121 main ()
13122 {
13123 pid_t parent = getpid ();
13124 pid_t child;
13125
13126 sparc_address_test (0);
13127
13128 child = vfork ();
13129
13130 if (child == 0) {
13131 /* Here is another test for sparc vfork register problems. This
13132 test uses lots of local variables, at least as many local
13133 variables as main has allocated so far including compiler
13134 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13135 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13136 reuse the register of parent for one of the local variables,
13137 since it will think that parent can't possibly be used any more
13138 in this routine. Assigning to the local variable will thus
13139 munge parent in the parent process. */
13140 pid_t
13141 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13142 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13143 /* Convince the compiler that p..p7 are live; otherwise, it might
13144 use the same hardware register for all 8 local variables. */
13145 if (p != p1 || p != p2 || p != p3 || p != p4
13146 || p != p5 || p != p6 || p != p7)
13147 _exit(1);
13148
13149 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13150 from child file descriptors. If the child closes a descriptor
13151 before it execs or exits, this munges the parent's descriptor
13152 as well. Test for this by closing stdout in the child. */
13153 _exit(close(fileno(stdout)) != 0);
13154 } else {
13155 int status;
13156 struct stat st;
13157
13158 while (wait(&status) != child)
13159 ;
13160 return (
13161 /* Was there some problem with vforking? */
13162 child < 0
13163
13164 /* Did the child fail? (This shouldn't happen.) */
13165 || status
13166
13167 /* Did the vfork/compiler bug occur? */
13168 || parent != getpid()
13169
13170 /* Did the file descriptor bug occur? */
13171 || fstat(fileno(stdout), &st) != 0
13172 );
13173 }
13174 }
13175 _ACEOF
13176 if ac_fn_c_try_run "$LINENO"; then :
13177 ac_cv_func_vfork_works=yes
13178 else
13179 ac_cv_func_vfork_works=no
13180 fi
13181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13182 conftest.$ac_objext conftest.beam conftest.$ac_ext
13183 fi
13184
13185 fi
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13187 $as_echo "$ac_cv_func_vfork_works" >&6; }
13188
13189 fi;
13190 if test "x$ac_cv_func_fork_works" = xcross; then
13191 ac_cv_func_vfork_works=$ac_cv_func_vfork
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13193 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13194 fi
13195
13196 if test "x$ac_cv_func_vfork_works" = xyes; then
13197
13198 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13199
13200 else
13201
13202 $as_echo "#define vfork fork" >>confdefs.h
13203
13204 fi
13205 if test "x$ac_cv_func_fork_works" = xyes; then
13206
13207 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13208
13209 fi
13210
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13213 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13214 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219 #include <langinfo.h>
13220 int
13221 main ()
13222 {
13223 char* cs = nl_langinfo(CODESET);
13224 ;
13225 return 0;
13226 }
13227 _ACEOF
13228 if ac_fn_c_try_link "$LINENO"; then :
13229 emacs_cv_langinfo_codeset=yes
13230 else
13231 emacs_cv_langinfo_codeset=no
13232 fi
13233 rm -f core conftest.err conftest.$ac_objext \
13234 conftest$ac_exeext conftest.$ac_ext
13235
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13238 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13239 if test $emacs_cv_langinfo_codeset = yes; then
13240
13241 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13242
13243 fi
13244
13245 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13246 if test "x$ac_cv_type_size_t" = x""yes; then :
13247
13248 cat >>confdefs.h <<_ACEOF
13249 #define HAVE_SIZE_T 1
13250 _ACEOF
13251
13252
13253 fi
13254
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13257 $as_echo_n "checking for mbstate_t... " >&6; }
13258 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263 $ac_includes_default
13264 # include <wchar.h>
13265 int
13266 main ()
13267 {
13268 mbstate_t x; return sizeof x;
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_compile "$LINENO"; then :
13274 ac_cv_type_mbstate_t=yes
13275 else
13276 ac_cv_type_mbstate_t=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 fi
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13281 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13282 if test $ac_cv_type_mbstate_t = yes; then
13283
13284 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13285
13286 else
13287
13288 $as_echo "#define mbstate_t int" >>confdefs.h
13289
13290 fi
13291
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13293 $as_echo_n "checking for C restrict keyword... " >&6; }
13294 if test "${emacs_cv_c_restrict+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13299 void fred (int *restrict x);
13300 int
13301 main ()
13302 {
13303
13304 ;
13305 return 0;
13306 }
13307 _ACEOF
13308 if ac_fn_c_try_compile "$LINENO"; then :
13309 emacs_cv_c_restrict=yes
13310 else
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313 void fred (int *__restrict x);
13314 int
13315 main ()
13316 {
13317
13318 ;
13319 return 0;
13320 }
13321 _ACEOF
13322 if ac_fn_c_try_compile "$LINENO"; then :
13323 emacs_cv_c_restrict=__restrict
13324 else
13325 emacs_cv_c_restrict=no
13326 fi
13327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13328 fi
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 fi
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13332 $as_echo "$emacs_cv_c_restrict" >&6; }
13333 case "$emacs_cv_c_restrict" in
13334 yes) emacs_restrict=restrict;;
13335 no) emacs_restrict="";;
13336 *) emacs_restrict="$emacs_cv_c_restrict";;
13337 esac
13338 if test "$emacs_restrict" != __restrict; then
13339
13340 cat >>confdefs.h <<_ACEOF
13341 #define __restrict $emacs_restrict
13342 _ACEOF
13343
13344 fi
13345
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13347 $as_echo_n "checking for C restricted array declarations... " >&6; }
13348 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 void fred (int x[__restrict]);
13354 int
13355 main ()
13356 {
13357
13358 ;
13359 return 0;
13360 }
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363 emacs_cv_c_restrict_arr=yes
13364 else
13365 emacs_cv_c_restrict_arr=no
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 fi
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13370 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13371 if test "$emacs_cv_c_restrict_arr" = yes; then
13372
13373 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13374
13375 fi
13376
13377
13378
13379 # Set up the CFLAGS for real compilation, so we can substitute it.
13380 CFLAGS="$REAL_CFLAGS"
13381 CPPFLAGS="$REAL_CPPFLAGS"
13382
13383 ## Hack to detect a buggy GCC version.
13384 if test "x$GCC" = xyes \
13385 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13386 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13387 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13388 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13389 fi
13390
13391 #### Find out which version of Emacs this is.
13392 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13393 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13394 if test x"${version}" = x; then
13395 as_fn_error $? "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13396 fi
13397 if test x"${version}" != x"$PACKAGE_VERSION"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13399 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13400 fi
13401
13402 ### Specify what sort of things we'll be editing into Makefile and config.h.
13403 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448 cat >>confdefs.h <<_ACEOF
13449 #define EMACS_CONFIGURATION "${canonical}"
13450 _ACEOF
13451
13452
13453 cat >>confdefs.h <<_ACEOF
13454 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13455 _ACEOF
13456
13457
13458 cat >>confdefs.h <<_ACEOF
13459 #define config_machfile "${machfile}"
13460 _ACEOF
13461
13462
13463 cat >>confdefs.h <<_ACEOF
13464 #define config_opsysfile "${opsysfile}"
13465 _ACEOF
13466
13467
13468 cat >>confdefs.h <<_ACEOF
13469 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13470 _ACEOF
13471
13472
13473 cat >>confdefs.h <<_ACEOF
13474 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13475 _ACEOF
13476
13477
13478 cat >>confdefs.h <<_ACEOF
13479 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13480 _ACEOF
13481
13482
13483 cat >>confdefs.h <<_ACEOF
13484 #define UNEXEC_SRC ${UNEXEC_SRC}
13485 _ACEOF
13486
13487
13488 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13489
13490 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13491
13492 fi
13493 if test "${USE_X_TOOLKIT}" != "none" ; then
13494
13495 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13496
13497 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13498
13499 $as_echo "#define USE_LUCID 1" >>confdefs.h
13500
13501 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13502
13503 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13504
13505 fi
13506 fi
13507 if test "${HAVE_X11}" = "yes" ; then
13508
13509 $as_echo "#define HAVE_X11 1" >>confdefs.h
13510
13511 fi
13512 if test "${HAVE_MENUS}" = "yes" ; then
13513
13514 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13515
13516 fi
13517 if test "${GNU_MALLOC}" = "yes" ; then
13518
13519 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13520
13521 fi
13522 if test "${REL_ALLOC}" = "yes" ; then
13523
13524 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13525
13526 fi
13527
13528
13529
13530
13531 #### Report on what we decided to do.
13532 #### Report GTK as a toolkit, even if it doesn't use Xt.
13533 #### It makes printing result more understandable as using GTK sets
13534 #### toolkit_scroll_bars to yes by default.
13535 if test "${HAVE_GTK}" = "yes"; then
13536 USE_X_TOOLKIT=GTK
13537 fi
13538
13539 echo "
13540 Configured for \`${canonical}'.
13541
13542 Where should the build process find the source code? ${srcdir}
13543 What operating system and machine description files should Emacs use?
13544 \`${opsysfile}' and \`${machfile}'
13545 What compiler should emacs be built with? ${CC} ${CFLAGS}
13546 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13547 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13548 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13549 What window system should Emacs use? ${window_system}
13550 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13551
13552 if test -n "${x_includes}"; then
13553 echo " Where do we find X Windows header files? ${x_includes}"
13554 else
13555 echo " Where do we find X Windows header files? Standard dirs"
13556 fi
13557 if test -n "${x_libraries}"; then
13558 echo " Where do we find X Windows libraries? ${x_libraries}"
13559 else
13560 echo " Where do we find X Windows libraries? Standard dirs"
13561 fi
13562
13563 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13564 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13565 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13566 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13567 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
13568 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13569 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13570 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13571 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13572 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13573
13574 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13575 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13576 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13577 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13578
13579 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13580 echo
13581
13582 if test $USE_XASSERTS = yes; then
13583 echo " Compiling with asserts turned on."
13584 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
13585 fi
13586
13587 echo
13588
13589 if test "$HAVE_NS" = "yes"; then
13590 echo
13591 echo "You must run \"make install\" in order to test the built application.
13592 The installed application will go to nextstep/Emacs.app and can be
13593 run or moved from there."
13594 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13595 echo "The application will be fully self-contained."
13596 else
13597 echo "The lisp resources for the application will be installed under ${prefix}.
13598 You may need to run \"make install\" with sudo. The application will fail
13599 to run if these resources are not installed."
13600 fi
13601 echo
13602 fi
13603
13604
13605 # Remove any trailing slashes in these variables.
13606 test "${prefix}" != NONE &&
13607 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13608 test "${exec_prefix}" != NONE &&
13609 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13610
13611 # Now get this: Some word that is part of the ${srcdir} directory name
13612 # or the ${configuration} value might, just might, happen to be an
13613 # identifier like `sun4' or `i386' or something, and be predefined by
13614 # the C preprocessor to some helpful value like 1, or maybe the empty
13615 # string. Needless to say consequent macro substitutions are less
13616 # than conducive to the makefile finding the correct directory.
13617
13618 case $canonical in
13619 i[456]86-*) extra_undefs=i386 ;;
13620 *) extra_undefs= ;;
13621 esac
13622 cpp_undefs="`echo $srcdir $configuration $canonical unix $extra_undefs |
13623 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13624 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13625
13626 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13627 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13628 ## from Makefile.c can correctly provide the arg `-traditional' to the
13629 ## C preprocessor.
13630
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13633 yes..yes
13634 _ACEOF
13635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13636 $EGREP "yes..yes" >/dev/null 2>&1; then :
13637 CPP_NEED_TRADITIONAL=no
13638 else
13639 CPP_NEED_TRADITIONAL=yes
13640 fi
13641 rm -f conftest*
13642
13643
13644 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"
13645
13646 ac_config_commands="$ac_config_commands default"
13647
13648 cat >confcache <<\_ACEOF
13649 # This file is a shell script that caches the results of configure
13650 # tests run on this system so they can be shared between configure
13651 # scripts and configure runs, see configure's option --config-cache.
13652 # It is not useful on other systems. If it contains results you don't
13653 # want to keep, you may remove or edit it.
13654 #
13655 # config.status only pays attention to the cache file if you give it
13656 # the --recheck option to rerun configure.
13657 #
13658 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13659 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13660 # following values.
13661
13662 _ACEOF
13663
13664 # The following way of writing the cache mishandles newlines in values,
13665 # but we know of no workaround that is simple, portable, and efficient.
13666 # So, we kill variables containing newlines.
13667 # Ultrix sh set writes to stderr and can't be redirected directly,
13668 # and sets the high bit in the cache file unless we assign to the vars.
13669 (
13670 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13671 eval ac_val=\$$ac_var
13672 case $ac_val in #(
13673 *${as_nl}*)
13674 case $ac_var in #(
13675 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13676 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13677 esac
13678 case $ac_var in #(
13679 _ | IFS | as_nl) ;; #(
13680 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13681 *) { eval $ac_var=; unset $ac_var;} ;;
13682 esac ;;
13683 esac
13684 done
13685
13686 (set) 2>&1 |
13687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13688 *${as_nl}ac_space=\ *)
13689 # `set' does not quote correctly, so add quotes: double-quote
13690 # substitution turns \\\\ into \\, and sed turns \\ into \.
13691 sed -n \
13692 "s/'/'\\\\''/g;
13693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13694 ;; #(
13695 *)
13696 # `set' quotes correctly as required by POSIX, so do not add quotes.
13697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13698 ;;
13699 esac |
13700 sort
13701 ) |
13702 sed '
13703 /^ac_cv_env_/b end
13704 t clear
13705 :clear
13706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13707 t end
13708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13709 :end' >>confcache
13710 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13711 if test -w "$cache_file"; then
13712 test "x$cache_file" != "x/dev/null" &&
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13714 $as_echo "$as_me: updating cache $cache_file" >&6;}
13715 cat confcache >$cache_file
13716 else
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13718 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13719 fi
13720 fi
13721 rm -f confcache
13722
13723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13724 # Let make expand exec_prefix.
13725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13726
13727 DEFS=-DHAVE_CONFIG_H
13728
13729 ac_libobjs=
13730 ac_ltlibobjs=
13731 U=
13732 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13733 # 1. Remove the extension, and $U if already installed.
13734 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13735 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13736 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13737 # will be set to the directory where LIBOBJS objects are built.
13738 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13739 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13740 done
13741 LIBOBJS=$ac_libobjs
13742
13743 LTLIBOBJS=$ac_ltlibobjs
13744
13745
13746
13747 : ${CONFIG_STATUS=./config.status}
13748 ac_write_fail=0
13749 ac_clean_files_save=$ac_clean_files
13750 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13752 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13753 as_write_fail=0
13754 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13755 #! $SHELL
13756 # Generated by $as_me.
13757 # Run this file to recreate the current configuration.
13758 # Compiler output produced by configure, useful for debugging
13759 # configure, is in config.log if it exists.
13760
13761 debug=false
13762 ac_cs_recheck=false
13763 ac_cs_silent=false
13764
13765 SHELL=\${CONFIG_SHELL-$SHELL}
13766 export SHELL
13767 _ASEOF
13768 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13769 ## -------------------- ##
13770 ## M4sh Initialization. ##
13771 ## -------------------- ##
13772
13773 # Be more Bourne compatible
13774 DUALCASE=1; export DUALCASE # for MKS sh
13775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13776 emulate sh
13777 NULLCMD=:
13778 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13779 # is contrary to our usage. Disable this feature.
13780 alias -g '${1+"$@"}'='"$@"'
13781 setopt NO_GLOB_SUBST
13782 else
13783 case `(set -o) 2>/dev/null` in #(
13784 *posix*) :
13785 set -o posix ;; #(
13786 *) :
13787 ;;
13788 esac
13789 fi
13790
13791
13792 as_nl='
13793 '
13794 export as_nl
13795 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13796 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13799 # Prefer a ksh shell builtin over an external printf program on Solaris,
13800 # but without wasting forks for bash or zsh.
13801 if test -z "$BASH_VERSION$ZSH_VERSION" \
13802 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13803 as_echo='print -r --'
13804 as_echo_n='print -rn --'
13805 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13806 as_echo='printf %s\n'
13807 as_echo_n='printf %s'
13808 else
13809 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13810 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13811 as_echo_n='/usr/ucb/echo -n'
13812 else
13813 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13814 as_echo_n_body='eval
13815 arg=$1;
13816 case $arg in #(
13817 *"$as_nl"*)
13818 expr "X$arg" : "X\\(.*\\)$as_nl";
13819 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13820 esac;
13821 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13822 '
13823 export as_echo_n_body
13824 as_echo_n='sh -c $as_echo_n_body as_echo'
13825 fi
13826 export as_echo_body
13827 as_echo='sh -c $as_echo_body as_echo'
13828 fi
13829
13830 # The user is always right.
13831 if test "${PATH_SEPARATOR+set}" != set; then
13832 PATH_SEPARATOR=:
13833 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13834 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13835 PATH_SEPARATOR=';'
13836 }
13837 fi
13838
13839
13840 # IFS
13841 # We need space, tab and new line, in precisely that order. Quoting is
13842 # there to prevent editors from complaining about space-tab.
13843 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13844 # splitting by setting IFS to empty value.)
13845 IFS=" "" $as_nl"
13846
13847 # Find who we are. Look in the path if we contain no directory separator.
13848 case $0 in #((
13849 *[\\/]* ) as_myself=$0 ;;
13850 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13851 for as_dir in $PATH
13852 do
13853 IFS=$as_save_IFS
13854 test -z "$as_dir" && as_dir=.
13855 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13856 done
13857 IFS=$as_save_IFS
13858
13859 ;;
13860 esac
13861 # We did not find ourselves, most probably we were run as `sh COMMAND'
13862 # in which case we are not to be found in the path.
13863 if test "x$as_myself" = x; then
13864 as_myself=$0
13865 fi
13866 if test ! -f "$as_myself"; then
13867 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13868 exit 1
13869 fi
13870
13871 # Unset variables that we do not need and which cause bugs (e.g. in
13872 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13873 # suppresses any "Segmentation fault" message there. '((' could
13874 # trigger a bug in pdksh 5.2.14.
13875 for as_var in BASH_ENV ENV MAIL MAILPATH
13876 do eval test x\${$as_var+set} = xset \
13877 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13878 done
13879 PS1='$ '
13880 PS2='> '
13881 PS4='+ '
13882
13883 # NLS nuisances.
13884 LC_ALL=C
13885 export LC_ALL
13886 LANGUAGE=C
13887 export LANGUAGE
13888
13889 # CDPATH.
13890 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13891
13892
13893 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13894 # ----------------------------------------
13895 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13896 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13897 # script with STATUS, using 1 if that was 0.
13898 as_fn_error ()
13899 {
13900 as_status=$1; test $as_status -eq 0 && as_status=1
13901 if test "$4"; then
13902 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13903 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13904 fi
13905 $as_echo "$as_me: error: $2" >&2
13906 as_fn_exit $as_status
13907 } # as_fn_error
13908
13909
13910 # as_fn_set_status STATUS
13911 # -----------------------
13912 # Set $? to STATUS, without forking.
13913 as_fn_set_status ()
13914 {
13915 return $1
13916 } # as_fn_set_status
13917
13918 # as_fn_exit STATUS
13919 # -----------------
13920 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13921 as_fn_exit ()
13922 {
13923 set +e
13924 as_fn_set_status $1
13925 exit $1
13926 } # as_fn_exit
13927
13928 # as_fn_unset VAR
13929 # ---------------
13930 # Portably unset VAR.
13931 as_fn_unset ()
13932 {
13933 { eval $1=; unset $1;}
13934 }
13935 as_unset=as_fn_unset
13936 # as_fn_append VAR VALUE
13937 # ----------------------
13938 # Append the text in VALUE to the end of the definition contained in VAR. Take
13939 # advantage of any shell optimizations that allow amortized linear growth over
13940 # repeated appends, instead of the typical quadratic growth present in naive
13941 # implementations.
13942 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13943 eval 'as_fn_append ()
13944 {
13945 eval $1+=\$2
13946 }'
13947 else
13948 as_fn_append ()
13949 {
13950 eval $1=\$$1\$2
13951 }
13952 fi # as_fn_append
13953
13954 # as_fn_arith ARG...
13955 # ------------------
13956 # Perform arithmetic evaluation on the ARGs, and store the result in the
13957 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13958 # must be portable across $(()) and expr.
13959 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13960 eval 'as_fn_arith ()
13961 {
13962 as_val=$(( $* ))
13963 }'
13964 else
13965 as_fn_arith ()
13966 {
13967 as_val=`expr "$@" || test $? -eq 1`
13968 }
13969 fi # as_fn_arith
13970
13971
13972 if expr a : '\(a\)' >/dev/null 2>&1 &&
13973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13974 as_expr=expr
13975 else
13976 as_expr=false
13977 fi
13978
13979 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13980 as_basename=basename
13981 else
13982 as_basename=false
13983 fi
13984
13985 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13986 as_dirname=dirname
13987 else
13988 as_dirname=false
13989 fi
13990
13991 as_me=`$as_basename -- "$0" ||
13992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13993 X"$0" : 'X\(//\)$' \| \
13994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13995 $as_echo X/"$0" |
13996 sed '/^.*\/\([^/][^/]*\)\/*$/{
13997 s//\1/
13998 q
13999 }
14000 /^X\/\(\/\/\)$/{
14001 s//\1/
14002 q
14003 }
14004 /^X\/\(\/\).*/{
14005 s//\1/
14006 q
14007 }
14008 s/.*/./; q'`
14009
14010 # Avoid depending upon Character Ranges.
14011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14014 as_cr_digits='0123456789'
14015 as_cr_alnum=$as_cr_Letters$as_cr_digits
14016
14017 ECHO_C= ECHO_N= ECHO_T=
14018 case `echo -n x` in #(((((
14019 -n*)
14020 case `echo 'xy\c'` in
14021 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14022 xy) ECHO_C='\c';;
14023 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14024 ECHO_T=' ';;
14025 esac;;
14026 *)
14027 ECHO_N='-n';;
14028 esac
14029
14030 rm -f conf$$ conf$$.exe conf$$.file
14031 if test -d conf$$.dir; then
14032 rm -f conf$$.dir/conf$$.file
14033 else
14034 rm -f conf$$.dir
14035 mkdir conf$$.dir 2>/dev/null
14036 fi
14037 if (echo >conf$$.file) 2>/dev/null; then
14038 if ln -s conf$$.file conf$$ 2>/dev/null; then
14039 as_ln_s='ln -s'
14040 # ... but there are two gotchas:
14041 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14042 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14043 # In both cases, we have to default to `cp -p'.
14044 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14045 as_ln_s='cp -p'
14046 elif ln conf$$.file conf$$ 2>/dev/null; then
14047 as_ln_s=ln
14048 else
14049 as_ln_s='cp -p'
14050 fi
14051 else
14052 as_ln_s='cp -p'
14053 fi
14054 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14055 rmdir conf$$.dir 2>/dev/null
14056
14057
14058 # as_fn_mkdir_p
14059 # -------------
14060 # Create "$as_dir" as a directory, including parents if necessary.
14061 as_fn_mkdir_p ()
14062 {
14063
14064 case $as_dir in #(
14065 -*) as_dir=./$as_dir;;
14066 esac
14067 test -d "$as_dir" || eval $as_mkdir_p || {
14068 as_dirs=
14069 while :; do
14070 case $as_dir in #(
14071 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14072 *) as_qdir=$as_dir;;
14073 esac
14074 as_dirs="'$as_qdir' $as_dirs"
14075 as_dir=`$as_dirname -- "$as_dir" ||
14076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14077 X"$as_dir" : 'X\(//\)[^/]' \| \
14078 X"$as_dir" : 'X\(//\)$' \| \
14079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14080 $as_echo X"$as_dir" |
14081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14082 s//\1/
14083 q
14084 }
14085 /^X\(\/\/\)[^/].*/{
14086 s//\1/
14087 q
14088 }
14089 /^X\(\/\/\)$/{
14090 s//\1/
14091 q
14092 }
14093 /^X\(\/\).*/{
14094 s//\1/
14095 q
14096 }
14097 s/.*/./; q'`
14098 test -d "$as_dir" && break
14099 done
14100 test -z "$as_dirs" || eval "mkdir $as_dirs"
14101 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14102
14103
14104 } # as_fn_mkdir_p
14105 if mkdir -p . 2>/dev/null; then
14106 as_mkdir_p='mkdir -p "$as_dir"'
14107 else
14108 test -d ./-p && rmdir ./-p
14109 as_mkdir_p=false
14110 fi
14111
14112 if test -x / >/dev/null 2>&1; then
14113 as_test_x='test -x'
14114 else
14115 if ls -dL / >/dev/null 2>&1; then
14116 as_ls_L_option=L
14117 else
14118 as_ls_L_option=
14119 fi
14120 as_test_x='
14121 eval sh -c '\''
14122 if test -d "$1"; then
14123 test -d "$1/.";
14124 else
14125 case $1 in #(
14126 -*)set "./$1";;
14127 esac;
14128 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14129 ???[sx]*):;;*)false;;esac;fi
14130 '\'' sh
14131 '
14132 fi
14133 as_executable_p=$as_test_x
14134
14135 # Sed expression to map a string onto a valid CPP name.
14136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14137
14138 # Sed expression to map a string onto a valid variable name.
14139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14140
14141
14142 exec 6>&1
14143 ## ----------------------------------- ##
14144 ## Main body of $CONFIG_STATUS script. ##
14145 ## ----------------------------------- ##
14146 _ASEOF
14147 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14148
14149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14150 # Save the log message, to keep $0 and so on meaningful, and to
14151 # report actual input values of CONFIG_FILES etc. instead of their
14152 # values after options handling.
14153 ac_log="
14154 This file was extended by emacs $as_me 23.3.50, which was
14155 generated by GNU Autoconf 2.67. Invocation command line was
14156
14157 CONFIG_FILES = $CONFIG_FILES
14158 CONFIG_HEADERS = $CONFIG_HEADERS
14159 CONFIG_LINKS = $CONFIG_LINKS
14160 CONFIG_COMMANDS = $CONFIG_COMMANDS
14161 $ $0 $@
14162
14163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14164 "
14165
14166 _ACEOF
14167
14168 case $ac_config_files in *"
14169 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14170 esac
14171
14172 case $ac_config_headers in *"
14173 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14174 esac
14175
14176
14177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14178 # Files that config.status was made for.
14179 config_files="$ac_config_files"
14180 config_headers="$ac_config_headers"
14181 config_commands="$ac_config_commands"
14182
14183 _ACEOF
14184
14185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14186 ac_cs_usage="\
14187 \`$as_me' instantiates files and other configuration actions
14188 from templates according to the current configuration. Unless the files
14189 and actions are specified as TAGs, all are instantiated by default.
14190
14191 Usage: $0 [OPTION]... [TAG]...
14192
14193 -h, --help print this help, then exit
14194 -V, --version print version number and configuration settings, then exit
14195 --config print configuration, then exit
14196 -q, --quiet, --silent
14197 do not print progress messages
14198 -d, --debug don't remove temporary files
14199 --recheck update $as_me by reconfiguring in the same conditions
14200 --file=FILE[:TEMPLATE]
14201 instantiate the configuration file FILE
14202 --header=FILE[:TEMPLATE]
14203 instantiate the configuration header FILE
14204
14205 Configuration files:
14206 $config_files
14207
14208 Configuration headers:
14209 $config_headers
14210
14211 Configuration commands:
14212 $config_commands
14213
14214 Report bugs to the package provider."
14215
14216 _ACEOF
14217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14218 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14219 ac_cs_version="\\
14220 emacs config.status 23.3.50
14221 configured by $0, generated by GNU Autoconf 2.67,
14222 with options \\"\$ac_cs_config\\"
14223
14224 Copyright (C) 2010 Free Software Foundation, Inc.
14225 This config.status script is free software; the Free Software Foundation
14226 gives unlimited permission to copy, distribute and modify it."
14227
14228 ac_pwd='$ac_pwd'
14229 srcdir='$srcdir'
14230 INSTALL='$INSTALL'
14231 test -n "\$AWK" || AWK=awk
14232 _ACEOF
14233
14234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14235 # The default lists apply if the user does not specify any file.
14236 ac_need_defaults=:
14237 while test $# != 0
14238 do
14239 case $1 in
14240 --*=?*)
14241 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14242 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14243 ac_shift=:
14244 ;;
14245 --*=)
14246 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14247 ac_optarg=
14248 ac_shift=:
14249 ;;
14250 *)
14251 ac_option=$1
14252 ac_optarg=$2
14253 ac_shift=shift
14254 ;;
14255 esac
14256
14257 case $ac_option in
14258 # Handling of the options.
14259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14260 ac_cs_recheck=: ;;
14261 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14262 $as_echo "$ac_cs_version"; exit ;;
14263 --config | --confi | --conf | --con | --co | --c )
14264 $as_echo "$ac_cs_config"; exit ;;
14265 --debug | --debu | --deb | --de | --d | -d )
14266 debug=: ;;
14267 --file | --fil | --fi | --f )
14268 $ac_shift
14269 case $ac_optarg in
14270 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14271 '') as_fn_error $? "missing file argument" ;;
14272 esac
14273 as_fn_append CONFIG_FILES " '$ac_optarg'"
14274 ac_need_defaults=false;;
14275 --header | --heade | --head | --hea )
14276 $ac_shift
14277 case $ac_optarg in
14278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14279 esac
14280 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14281 ac_need_defaults=false;;
14282 --he | --h)
14283 # Conflict between --help and --header
14284 as_fn_error $? "ambiguous option: \`$1'
14285 Try \`$0 --help' for more information.";;
14286 --help | --hel | -h )
14287 $as_echo "$ac_cs_usage"; exit ;;
14288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14289 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14290 ac_cs_silent=: ;;
14291
14292 # This is an error.
14293 -*) as_fn_error $? "unrecognized option: \`$1'
14294 Try \`$0 --help' for more information." ;;
14295
14296 *) as_fn_append ac_config_targets " $1"
14297 ac_need_defaults=false ;;
14298
14299 esac
14300 shift
14301 done
14302
14303 ac_configure_extra_args=
14304
14305 if $ac_cs_silent; then
14306 exec 6>/dev/null
14307 ac_configure_extra_args="$ac_configure_extra_args --silent"
14308 fi
14309
14310 _ACEOF
14311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14312 if \$ac_cs_recheck; then
14313 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14314 shift
14315 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14316 CONFIG_SHELL='$SHELL'
14317 export CONFIG_SHELL
14318 exec "\$@"
14319 fi
14320
14321 _ACEOF
14322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323 exec 5>>config.log
14324 {
14325 echo
14326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14327 ## Running $as_me. ##
14328 _ASBOX
14329 $as_echo "$ac_log"
14330 } >&5
14331
14332 _ACEOF
14333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14334 #
14335 # INIT-COMMANDS
14336 #
14337 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14338
14339 _ACEOF
14340
14341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14342
14343 # Handling of arguments.
14344 for ac_config_target in $ac_config_targets
14345 do
14346 case $ac_config_target in
14347 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14348 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14349 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14350 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14351 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14352 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14353 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14354 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14355 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14356 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14357 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14358 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14359 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14360
14361 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14362 esac
14363 done
14364
14365
14366 # If the user did not use the arguments to specify the items to instantiate,
14367 # then the envvar interface is used. Set only those that are not.
14368 # We use the long form for the default assignment because of an extremely
14369 # bizarre bug on SunOS 4.1.3.
14370 if $ac_need_defaults; then
14371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14372 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14373 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14374 fi
14375
14376 # Have a temporary directory for convenience. Make it in the build tree
14377 # simply because there is no reason against having it here, and in addition,
14378 # creating and moving files from /tmp can sometimes cause problems.
14379 # Hook for its removal unless debugging.
14380 # Note that there is a small window in which the directory will not be cleaned:
14381 # after its creation but before its name has been assigned to `$tmp'.
14382 $debug ||
14383 {
14384 tmp=
14385 trap 'exit_status=$?
14386 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14387 ' 0
14388 trap 'as_fn_exit 1' 1 2 13 15
14389 }
14390 # Create a (secure) tmp directory for tmp files.
14391
14392 {
14393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14394 test -n "$tmp" && test -d "$tmp"
14395 } ||
14396 {
14397 tmp=./conf$$-$RANDOM
14398 (umask 077 && mkdir "$tmp")
14399 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14400
14401 # Set up the scripts for CONFIG_FILES section.
14402 # No need to generate them if there are no CONFIG_FILES.
14403 # This happens for instance with `./config.status config.h'.
14404 if test -n "$CONFIG_FILES"; then
14405
14406
14407 ac_cr=`echo X | tr X '\015'`
14408 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14409 # But we know of no other shell where ac_cr would be empty at this
14410 # point, so we can use a bashism as a fallback.
14411 if test "x$ac_cr" = x; then
14412 eval ac_cr=\$\'\\r\'
14413 fi
14414 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14415 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14416 ac_cs_awk_cr='\\r'
14417 else
14418 ac_cs_awk_cr=$ac_cr
14419 fi
14420
14421 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14422 _ACEOF
14423
14424
14425 {
14426 echo "cat >conf$$subs.awk <<_ACEOF" &&
14427 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14428 echo "_ACEOF"
14429 } >conf$$subs.sh ||
14430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14431 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14432 ac_delim='%!_!# '
14433 for ac_last_try in false false false false false :; do
14434 . ./conf$$subs.sh ||
14435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14436
14437 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14438 if test $ac_delim_n = $ac_delim_num; then
14439 break
14440 elif $ac_last_try; then
14441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14442 else
14443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14444 fi
14445 done
14446 rm -f conf$$subs.sh
14447
14448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14449 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14450 _ACEOF
14451 sed -n '
14452 h
14453 s/^/S["/; s/!.*/"]=/
14454 p
14455 g
14456 s/^[^!]*!//
14457 :repl
14458 t repl
14459 s/'"$ac_delim"'$//
14460 t delim
14461 :nl
14462 h
14463 s/\(.\{148\}\)..*/\1/
14464 t more1
14465 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14466 p
14467 n
14468 b repl
14469 :more1
14470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14471 p
14472 g
14473 s/.\{148\}//
14474 t nl
14475 :delim
14476 h
14477 s/\(.\{148\}\)..*/\1/
14478 t more2
14479 s/["\\]/\\&/g; s/^/"/; s/$/"/
14480 p
14481 b
14482 :more2
14483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14484 p
14485 g
14486 s/.\{148\}//
14487 t delim
14488 ' <conf$$subs.awk | sed '
14489 /^[^""]/{
14490 N
14491 s/\n//
14492 }
14493 ' >>$CONFIG_STATUS || ac_write_fail=1
14494 rm -f conf$$subs.awk
14495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14496 _ACAWK
14497 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14498 for (key in S) S_is_set[key] = 1
14499 FS = "\a"
14500
14501 }
14502 {
14503 line = $ 0
14504 nfields = split(line, field, "@")
14505 substed = 0
14506 len = length(field[1])
14507 for (i = 2; i < nfields; i++) {
14508 key = field[i]
14509 keylen = length(key)
14510 if (S_is_set[key]) {
14511 value = S[key]
14512 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14513 len += length(value) + length(field[++i])
14514 substed = 1
14515 } else
14516 len += 1 + keylen
14517 }
14518
14519 print line
14520 }
14521
14522 _ACAWK
14523 _ACEOF
14524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14525 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14526 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14527 else
14528 cat
14529 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14530 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14531 _ACEOF
14532
14533 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14534 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14535 # trailing colons and then remove the whole line if VPATH becomes empty
14536 # (actually we leave an empty line to preserve line numbers).
14537 if test "x$srcdir" = x.; then
14538 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14539 h
14540 s///
14541 s/^/:/
14542 s/[ ]*$/:/
14543 s/:\$(srcdir):/:/g
14544 s/:\${srcdir}:/:/g
14545 s/:@srcdir@:/:/g
14546 s/^:*//
14547 s/:*$//
14548 x
14549 s/\(=[ ]*\).*/\1/
14550 G
14551 s/\n//
14552 s/^[^=]*=[ ]*$//
14553 }'
14554 fi
14555
14556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14557 fi # test -n "$CONFIG_FILES"
14558
14559 # Set up the scripts for CONFIG_HEADERS section.
14560 # No need to generate them if there are no CONFIG_HEADERS.
14561 # This happens for instance with `./config.status Makefile'.
14562 if test -n "$CONFIG_HEADERS"; then
14563 cat >"$tmp/defines.awk" <<\_ACAWK ||
14564 BEGIN {
14565 _ACEOF
14566
14567 # Transform confdefs.h into an awk script `defines.awk', embedded as
14568 # here-document in config.status, that substitutes the proper values into
14569 # config.h.in to produce config.h.
14570
14571 # Create a delimiter string that does not exist in confdefs.h, to ease
14572 # handling of long lines.
14573 ac_delim='%!_!# '
14574 for ac_last_try in false false :; do
14575 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14576 if test -z "$ac_t"; then
14577 break
14578 elif $ac_last_try; then
14579 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14580 else
14581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14582 fi
14583 done
14584
14585 # For the awk script, D is an array of macro values keyed by name,
14586 # likewise P contains macro parameters if any. Preserve backslash
14587 # newline sequences.
14588
14589 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14590 sed -n '
14591 s/.\{148\}/&'"$ac_delim"'/g
14592 t rset
14593 :rset
14594 s/^[ ]*#[ ]*define[ ][ ]*/ /
14595 t def
14596 d
14597 :def
14598 s/\\$//
14599 t bsnl
14600 s/["\\]/\\&/g
14601 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14602 D["\1"]=" \3"/p
14603 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14604 d
14605 :bsnl
14606 s/["\\]/\\&/g
14607 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14608 D["\1"]=" \3\\\\\\n"\\/p
14609 t cont
14610 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14611 t cont
14612 d
14613 :cont
14614 n
14615 s/.\{148\}/&'"$ac_delim"'/g
14616 t clear
14617 :clear
14618 s/\\$//
14619 t bsnlc
14620 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14621 d
14622 :bsnlc
14623 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14624 b cont
14625 ' <confdefs.h | sed '
14626 s/'"$ac_delim"'/"\\\
14627 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14628
14629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14630 for (key in D) D_is_set[key] = 1
14631 FS = "\a"
14632 }
14633 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14634 line = \$ 0
14635 split(line, arg, " ")
14636 if (arg[1] == "#") {
14637 defundef = arg[2]
14638 mac1 = arg[3]
14639 } else {
14640 defundef = substr(arg[1], 2)
14641 mac1 = arg[2]
14642 }
14643 split(mac1, mac2, "(") #)
14644 macro = mac2[1]
14645 prefix = substr(line, 1, index(line, defundef) - 1)
14646 if (D_is_set[macro]) {
14647 # Preserve the white space surrounding the "#".
14648 print prefix "define", macro P[macro] D[macro]
14649 next
14650 } else {
14651 # Replace #undef with comments. This is necessary, for example,
14652 # in the case of _POSIX_SOURCE, which is predefined and required
14653 # on some systems where configure will not decide to define it.
14654 if (defundef == "undef") {
14655 print "/*", prefix defundef, macro, "*/"
14656 next
14657 }
14658 }
14659 }
14660 { print }
14661 _ACAWK
14662 _ACEOF
14663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14664 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14665 fi # test -n "$CONFIG_HEADERS"
14666
14667
14668 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14669 shift
14670 for ac_tag
14671 do
14672 case $ac_tag in
14673 :[FHLC]) ac_mode=$ac_tag; continue;;
14674 esac
14675 case $ac_mode$ac_tag in
14676 :[FHL]*:*);;
14677 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14678 :[FH]-) ac_tag=-:-;;
14679 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14680 esac
14681 ac_save_IFS=$IFS
14682 IFS=:
14683 set x $ac_tag
14684 IFS=$ac_save_IFS
14685 shift
14686 ac_file=$1
14687 shift
14688
14689 case $ac_mode in
14690 :L) ac_source=$1;;
14691 :[FH])
14692 ac_file_inputs=
14693 for ac_f
14694 do
14695 case $ac_f in
14696 -) ac_f="$tmp/stdin";;
14697 *) # Look for the file first in the build tree, then in the source tree
14698 # (if the path is not absolute). The absolute path cannot be DOS-style,
14699 # because $ac_f cannot contain `:'.
14700 test -f "$ac_f" ||
14701 case $ac_f in
14702 [\\/$]*) false;;
14703 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14704 esac ||
14705 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14706 esac
14707 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14708 as_fn_append ac_file_inputs " '$ac_f'"
14709 done
14710
14711 # Let's still pretend it is `configure' which instantiates (i.e., don't
14712 # use $as_me), people would be surprised to read:
14713 # /* config.h. Generated by config.status. */
14714 configure_input='Generated from '`
14715 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14716 `' by configure.'
14717 if test x"$ac_file" != x-; then
14718 configure_input="$ac_file. $configure_input"
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14720 $as_echo "$as_me: creating $ac_file" >&6;}
14721 fi
14722 # Neutralize special characters interpreted by sed in replacement strings.
14723 case $configure_input in #(
14724 *\&* | *\|* | *\\* )
14725 ac_sed_conf_input=`$as_echo "$configure_input" |
14726 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14727 *) ac_sed_conf_input=$configure_input;;
14728 esac
14729
14730 case $ac_tag in
14731 *:-:* | *:-) cat >"$tmp/stdin" \
14732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14733 esac
14734 ;;
14735 esac
14736
14737 ac_dir=`$as_dirname -- "$ac_file" ||
14738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14739 X"$ac_file" : 'X\(//\)[^/]' \| \
14740 X"$ac_file" : 'X\(//\)$' \| \
14741 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14742 $as_echo X"$ac_file" |
14743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14744 s//\1/
14745 q
14746 }
14747 /^X\(\/\/\)[^/].*/{
14748 s//\1/
14749 q
14750 }
14751 /^X\(\/\/\)$/{
14752 s//\1/
14753 q
14754 }
14755 /^X\(\/\).*/{
14756 s//\1/
14757 q
14758 }
14759 s/.*/./; q'`
14760 as_dir="$ac_dir"; as_fn_mkdir_p
14761 ac_builddir=.
14762
14763 case "$ac_dir" in
14764 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14765 *)
14766 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14767 # A ".." for each directory in $ac_dir_suffix.
14768 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14769 case $ac_top_builddir_sub in
14770 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14771 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14772 esac ;;
14773 esac
14774 ac_abs_top_builddir=$ac_pwd
14775 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14776 # for backward compatibility:
14777 ac_top_builddir=$ac_top_build_prefix
14778
14779 case $srcdir in
14780 .) # We are building in place.
14781 ac_srcdir=.
14782 ac_top_srcdir=$ac_top_builddir_sub
14783 ac_abs_top_srcdir=$ac_pwd ;;
14784 [\\/]* | ?:[\\/]* ) # Absolute name.
14785 ac_srcdir=$srcdir$ac_dir_suffix;
14786 ac_top_srcdir=$srcdir
14787 ac_abs_top_srcdir=$srcdir ;;
14788 *) # Relative name.
14789 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14790 ac_top_srcdir=$ac_top_build_prefix$srcdir
14791 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14792 esac
14793 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14794
14795
14796 case $ac_mode in
14797 :F)
14798 #
14799 # CONFIG_FILE
14800 #
14801
14802 case $INSTALL in
14803 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14804 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14805 esac
14806 _ACEOF
14807
14808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14809 # If the template does not know about datarootdir, expand it.
14810 # FIXME: This hack should be removed a few years after 2.60.
14811 ac_datarootdir_hack=; ac_datarootdir_seen=
14812 ac_sed_dataroot='
14813 /datarootdir/ {
14814 p
14815 q
14816 }
14817 /@datadir@/p
14818 /@docdir@/p
14819 /@infodir@/p
14820 /@localedir@/p
14821 /@mandir@/p'
14822 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14823 *datarootdir*) ac_datarootdir_seen=yes;;
14824 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14826 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14827 _ACEOF
14828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14829 ac_datarootdir_hack='
14830 s&@datadir@&$datadir&g
14831 s&@docdir@&$docdir&g
14832 s&@infodir@&$infodir&g
14833 s&@localedir@&$localedir&g
14834 s&@mandir@&$mandir&g
14835 s&\\\${datarootdir}&$datarootdir&g' ;;
14836 esac
14837 _ACEOF
14838
14839 # Neutralize VPATH when `$srcdir' = `.'.
14840 # Shell code in configure.ac might set extrasub.
14841 # FIXME: do we really want to maintain this feature?
14842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14843 ac_sed_extra="$ac_vpsub
14844 $extrasub
14845 _ACEOF
14846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14847 :t
14848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14849 s|@configure_input@|$ac_sed_conf_input|;t t
14850 s&@top_builddir@&$ac_top_builddir_sub&;t t
14851 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14852 s&@srcdir@&$ac_srcdir&;t t
14853 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14854 s&@top_srcdir@&$ac_top_srcdir&;t t
14855 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14856 s&@builddir@&$ac_builddir&;t t
14857 s&@abs_builddir@&$ac_abs_builddir&;t t
14858 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14859 s&@INSTALL@&$ac_INSTALL&;t t
14860 $ac_datarootdir_hack
14861 "
14862 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14864
14865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14866 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14867 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14869 which seems to be undefined. Please make sure it is defined" >&5
14870 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14871 which seems to be undefined. Please make sure it is defined" >&2;}
14872
14873 rm -f "$tmp/stdin"
14874 case $ac_file in
14875 -) cat "$tmp/out" && rm -f "$tmp/out";;
14876 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14877 esac \
14878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14879 ;;
14880 :H)
14881 #
14882 # CONFIG_HEADER
14883 #
14884 if test x"$ac_file" != x-; then
14885 {
14886 $as_echo "/* $configure_input */" \
14887 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14888 } >"$tmp/config.h" \
14889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14890 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14893 else
14894 rm -f "$ac_file"
14895 mv "$tmp/config.h" "$ac_file" \
14896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14897 fi
14898 else
14899 $as_echo "/* $configure_input */" \
14900 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14901 || as_fn_error $? "could not create -" "$LINENO" 5
14902 fi
14903 ;;
14904
14905 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14906 $as_echo "$as_me: executing $ac_file commands" >&6;}
14907 ;;
14908 esac
14909
14910
14911 case $ac_file$ac_mode in
14912 "default":C)
14913
14914 ### Make the necessary directories, if they don't exist.
14915 for dir in etc lisp ; do
14916 test -d ${dir} || mkdir ${dir}
14917 done
14918
14919 # Build src/Makefile from ${srcdir}/src/Makefile.c
14920 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14921 # This must be done after src/config.h is built, since we rely on that file.
14922
14923 echo creating src/epaths.h
14924 ${MAKE-make} epaths-force
14925
14926 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14927 # `..' to `. .' unless invoked with -traditional
14928
14929 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
14930 CPPFLAGS="$CPPFLAGS -traditional"
14931 fi
14932
14933 echo creating lib-src/Makefile
14934 ( cd lib-src
14935 rm -f junk.c junk1.c junk2.c
14936 sed -e '/start of cpp stuff/q' \
14937 < Makefile.c > junk1.c
14938 sed -e '1,/start of cpp stuff/d'\
14939 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14940 < Makefile.c > junk.c
14941 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14942 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14943 cat junk1.c junk2.c > Makefile.new
14944 rm -f junk.c junk1.c junk2.c
14945 chmod 444 Makefile.new
14946 mv -f Makefile.new Makefile
14947 )
14948
14949 echo creating src/Makefile
14950 ( cd src
14951 rm -f junk.c junk1.c junk2.c
14952 sed -e '/start of cpp stuff/q' \
14953 < Makefile.c > junk1.c
14954 sed -e '1,/start of cpp stuff/d'\
14955 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14956 < Makefile.c > junk.c
14957 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14958 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14959 cat junk1.c junk2.c > Makefile.new
14960 rm -f junk.c junk1.c junk2.c
14961 chmod 444 Makefile.new
14962 mv -f Makefile.new Makefile
14963 )
14964
14965 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
14966 echo creating src/.gdbinit
14967 echo source $srcdir/src/.gdbinit > src/.gdbinit
14968 fi
14969
14970 ;;
14971
14972 esac
14973 done # for ac_tag
14974
14975
14976 as_fn_exit 0
14977 _ACEOF
14978 ac_clean_files=$ac_clean_files_save
14979
14980 test $ac_write_fail = 0 ||
14981 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14982
14983
14984 # configure is writing to config.log, and then calls config.status.
14985 # config.status does its own redirection, appending to config.log.
14986 # Unfortunately, on DOS this fails, as config.log is still kept open
14987 # by configure, so config.status won't be able to write to it; its
14988 # output is simply discarded. So we exec the FD to /dev/null,
14989 # effectively closing config.log, so it can be properly (re)opened and
14990 # appended to by config.status. When coming back to configure, we
14991 # need to make the FD available again.
14992 if test "$no_create" != yes; then
14993 ac_cs_success=:
14994 ac_config_status_args=
14995 test "$silent" = yes &&
14996 ac_config_status_args="$ac_config_status_args --quiet"
14997 exec 5>/dev/null
14998 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14999 exec 5>>config.log
15000 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15001 # would make configure fail if this is the last instruction.
15002 $ac_cs_success || as_fn_exit 1
15003 fi
15004 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15006 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15007 fi
15008
15009