Remove HAVE_RAW_DECL_CHOWN etc. from config.h
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_config_libobj_dir=src
603 ac_header_list=
604 gl_getopt_required=POSIX
605 gl_getopt_required=POSIX
606 ac_func_list=
607 ac_subst_vars='gltests_LTLIBOBJS
608 gltests_LIBOBJS
609 gl_LTLIBOBJS
610 gl_LIBOBJS
611 am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 WINDOW_SUPPORT
615 TOOLTIP_SUPPORT
616 MOUSE_SUPPORT
617 LIB_GCC
618 LD_FIRSTFLAG
619 LD_SWITCH_SYSTEM_TEMACS
620 POST_ALLOC_OBJ
621 PRE_ALLOC_OBJ
622 CYGWIN_OBJ
623 RALLOC_OBJ
624 OLDXMENU_DEPS
625 LIBX_OTHER
626 LIBXMENU
627 OLDXMENU
628 OLDXMENU_TARGET
629 LIBXT_OTHER
630 TOOLKIT_LIBW
631 WIDGET_OBJ
632 XOBJ
633 XMENU_OBJ
634 FONT_OBJ
635 OTHER_FILES
636 GNU_OBJC_CFLAGS
637 ns_appsrc
638 ns_appresdir
639 ns_appbindir
640 ns_appdir
641 S_FILE
642 M_FILE
643 X_TOOLKIT_TYPE
644 C_SWITCH_X_SYSTEM
645 C_SWITCH_X_SITE
646 LD_SWITCH_X_SITE
647 gameuser
648 gamedir
649 bitmapdir
650 archlibdir
651 etcdir
652 x_default_search_path
653 lisppath
654 locallisppath
655 lispdir
656 srcdir
657 canonical
658 configuration
659 version
660 KRB4LIB
661 DESLIB
662 KRB5LIB
663 CRYPTOLIB
664 COM_ERRLIB
665 LIBRESOLV
666 LIBHESIOD
667 TERMCAP_OBJ
668 LIBS_TERMCAP
669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
681 NEXT_STDDEF_H
682 STDDEF_H
683 HAVE_WCHAR_T
684 REPLACE_NULL
685 APPLE_UNIVERSAL_BUILD
686 REPLACE_TIMEGM
687 REPLACE_NANOSLEEP
688 REPLACE_MKTIME
689 REPLACE_LOCALTIME_R
690 HAVE_TIMEGM
691 HAVE_STRPTIME
692 HAVE_NANOSLEEP
693 HAVE_DECL_LOCALTIME_R
694 GNULIB_TIME_R
695 GNULIB_TIMEGM
696 GNULIB_STRPTIME
697 GNULIB_NANOSLEEP
698 GNULIB_MKTIME
699 LTLIBINTL
700 LIBINTL
701 GETOPT_H
702 HAVE_GETOPT_H
703 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
704 NEXT_GETOPT_H
705 PRAGMA_COLUMNS
706 PRAGMA_SYSTEM_HEADER
707 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
708 INCLUDE_NEXT
709 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
710 UNISTD_H_HAVE_WINSOCK2_H
711 REPLACE_WRITE
712 REPLACE_USLEEP
713 REPLACE_UNLINKAT
714 REPLACE_UNLINK
715 REPLACE_TTYNAME_R
716 REPLACE_SYMLINK
717 REPLACE_SLEEP
718 REPLACE_RMDIR
719 REPLACE_READLINK
720 REPLACE_PWRITE
721 REPLACE_PREAD
722 REPLACE_LSEEK
723 REPLACE_LINKAT
724 REPLACE_LINK
725 REPLACE_LCHOWN
726 REPLACE_GETPAGESIZE
727 REPLACE_GETGROUPS
728 REPLACE_GETLOGIN_R
729 REPLACE_GETDOMAINNAME
730 REPLACE_GETCWD
731 REPLACE_FCHOWNAT
732 REPLACE_DUP2
733 REPLACE_DUP
734 REPLACE_CLOSE
735 REPLACE_CHOWN
736 HAVE_SYS_PARAM_H
737 HAVE_OS_H
738 HAVE_DECL_TTYNAME_R
739 HAVE_DECL_GETUSERSHELL
740 HAVE_DECL_GETPAGESIZE
741 HAVE_DECL_GETLOGIN_R
742 HAVE_DECL_GETDOMAINNAME
743 HAVE_DECL_FCHDIR
744 HAVE_DECL_ENVIRON
745 HAVE_USLEEP
746 HAVE_UNLINKAT
747 HAVE_SYMLINKAT
748 HAVE_SYMLINK
749 HAVE_SLEEP
750 HAVE_READLINKAT
751 HAVE_READLINK
752 HAVE_PWRITE
753 HAVE_PREAD
754 HAVE_PIPE2
755 HAVE_PIPE
756 HAVE_LINKAT
757 HAVE_LINK
758 HAVE_LCHOWN
759 HAVE_GETPAGESIZE
760 HAVE_GETLOGIN
761 HAVE_GETHOSTNAME
762 HAVE_GETGROUPS
763 HAVE_GETDTABLESIZE
764 HAVE_FTRUNCATE
765 HAVE_FSYNC
766 HAVE_FCHOWNAT
767 HAVE_FCHDIR
768 HAVE_FACCESSAT
769 HAVE_EUIDACCESS
770 HAVE_DUP3
771 HAVE_DUP2
772 HAVE_CHOWN
773 GNULIB_WRITE
774 GNULIB_USLEEP
775 GNULIB_UNLINKAT
776 GNULIB_UNLINK
777 GNULIB_UNISTD_H_SIGPIPE
778 GNULIB_UNISTD_H_GETOPT
779 GNULIB_TTYNAME_R
780 GNULIB_SYMLINKAT
781 GNULIB_SYMLINK
782 GNULIB_SLEEP
783 GNULIB_RMDIR
784 GNULIB_READLINKAT
785 GNULIB_READLINK
786 GNULIB_PWRITE
787 GNULIB_PREAD
788 GNULIB_PIPE2
789 GNULIB_PIPE
790 GNULIB_LSEEK
791 GNULIB_LINKAT
792 GNULIB_LINK
793 GNULIB_LCHOWN
794 GNULIB_GETUSERSHELL
795 GNULIB_GETPAGESIZE
796 GNULIB_GETLOGIN_R
797 GNULIB_GETLOGIN
798 GNULIB_GETHOSTNAME
799 GNULIB_GETGROUPS
800 GNULIB_GETDTABLESIZE
801 GNULIB_GETDOMAINNAME
802 GNULIB_GETCWD
803 GNULIB_FTRUNCATE
804 GNULIB_FSYNC
805 GNULIB_FCHOWNAT
806 GNULIB_FCHDIR
807 GNULIB_FACCESSAT
808 GNULIB_EUIDACCESS
809 GNULIB_ENVIRON
810 GNULIB_DUP3
811 GNULIB_DUP2
812 GNULIB_CLOSE
813 GNULIB_CHOWN
814 GL_COND_LIBTOOL_FALSE
815 GL_COND_LIBTOOL_TRUE
816 GETLOADAVG_LIBS
817 KMEM_GROUP
818 NEED_SETGID
819 LIBOBJS
820 BLESSMAIL_TARGET
821 LIBS_MAIL
822 liblockfile
823 ALLOCA
824 LIBXML2_LIBS
825 LIBXML2_CFLAGS
826 LIBXSM
827 LIBGPM
828 LIBGIF
829 LIBTIFF
830 LIBPNG
831 LIBJPEG
832 LIBXPM
833 FREETYPE_LIBS
834 FREETYPE_CFLAGS
835 M17N_FLT_LIBS
836 M17N_FLT_CFLAGS
837 LIBOTF_LIBS
838 LIBOTF_CFLAGS
839 XFT_LIBS
840 XFT_CFLAGS
841 FONTCONFIG_LIBS
842 FONTCONFIG_CFLAGS
843 LIBXMU
844 LIBXTR6
845 LIBGNUTLS_LIBS
846 LIBGNUTLS_CFLAGS
847 LIBSELINUX_LIBS
848 GCONF_LIBS
849 GCONF_CFLAGS
850 DBUS_OBJ
851 DBUS_LIBS
852 DBUS_CFLAGS
853 GTK_OBJ
854 GTK_LIBS
855 GTK_CFLAGS
856 IMAGEMAGICK_LIBS
857 IMAGEMAGICK_CFLAGS
858 RSVG_LIBS
859 RSVG_CFLAGS
860 VMLIMIT_OBJ
861 GMALLOC_OBJ
862 HAVE_XSERVER
863 LIB_STANDARD
864 NS_SUPPORT
865 NS_OBJ
866 TEMACS_LDFLAGS2
867 LD_SWITCH_X_SITE_AUX_RPATH
868 LD_SWITCH_X_SITE_AUX
869 XMKMF
870 DEPFLAGS
871 MKDEPDIR
872 CFLAGS_SOUND
873 ALSA_LIBS
874 ALSA_CFLAGS
875 PKG_CONFIG
876 LIBSOUND
877 START_FILES
878 LIB_MATH
879 CRT_DIR
880 LIBS_SYSTEM
881 C_SWITCH_SYSTEM
882 UNEXEC_OBJ
883 C_SWITCH_MACHINE
884 LD_SWITCH_SYSTEM
885 CANNOT_DUMP
886 HAVE_MAKEINFO
887 GZIP_PROG
888 INSTALL_INFO
889 C_WARNINGS_SWITCH
890 EGREP
891 GREP
892 CPP
893 RANLIB
894 am__fastdepCC_FALSE
895 am__fastdepCC_TRUE
896 CCDEPMODE
897 AMDEPBACKSLASH
898 AMDEP_FALSE
899 AMDEP_TRUE
900 am__quote
901 am__include
902 DEPDIR
903 OBJEXT
904 EXEEXT
905 ac_ct_CC
906 CPPFLAGS
907 LDFLAGS
908 CFLAGS
909 CC
910 host_os
911 host_vendor
912 host_cpu
913 host
914 build_os
915 build_vendor
916 build_cpu
917 build
918 PROFILING_CFLAGS
919 MAINT
920 GZIP_INFO
921 am__untar
922 am__tar
923 AMTAR
924 am__leading_dot
925 SET_MAKE
926 AWK
927 mkdir_p
928 MKDIR_P
929 INSTALL_STRIP_PROGRAM
930 STRIP
931 install_sh
932 MAKEINFO
933 AUTOHEADER
934 AUTOMAKE
935 AUTOCONF
936 ACLOCAL
937 VERSION
938 PACKAGE
939 CYGPATH_W
940 am__isrc
941 INSTALL_DATA
942 INSTALL_SCRIPT
943 INSTALL_PROGRAM
944 target_alias
945 host_alias
946 build_alias
947 LIBS
948 ECHO_T
949 ECHO_N
950 ECHO_C
951 DEFS
952 mandir
953 localedir
954 libdir
955 psdir
956 pdfdir
957 dvidir
958 htmldir
959 infodir
960 docdir
961 oldincludedir
962 includedir
963 localstatedir
964 sharedstatedir
965 sysconfdir
966 datadir
967 datarootdir
968 libexecdir
969 sbindir
970 bindir
971 program_transform_name
972 prefix
973 exec_prefix
974 PACKAGE_URL
975 PACKAGE_BUGREPORT
976 PACKAGE_STRING
977 PACKAGE_VERSION
978 PACKAGE_TARNAME
979 PACKAGE_NAME
980 PATH_SEPARATOR
981 SHELL'
982 ac_subst_files='deps_frag
983 ns_frag'
984 ac_user_opts='
985 enable_option_checking
986 with_pop
987 with_kerberos
988 with_kerberos5
989 with_hesiod
990 with_mmdf
991 with_mail_unlink
992 with_mailhost
993 with_sound
994 with_sync_input
995 with_x_toolkit
996 with_xpm
997 with_jpeg
998 with_tiff
999 with_gif
1000 with_png
1001 with_rsvg
1002 with_xml2
1003 with_imagemagick
1004 with_xft
1005 with_libotf
1006 with_m17n_flt
1007 with_toolkit_scroll_bars
1008 with_xaw3d
1009 with_xim
1010 with_ns
1011 with_gpm
1012 with_dbus
1013 with_gconf
1014 with_selinux
1015 with_gnutls
1016 with_makeinfo
1017 with_compress_info
1018 with_pkg_config_prog
1019 with_crt_dir
1020 with_gameuser
1021 with_gnustep_conf
1022 enable_ns_self_contained
1023 enable_asserts
1024 enable_maintainer_mode
1025 enable_locallisppath
1026 enable_checking
1027 enable_use_lisp_union_type
1028 enable_profiling
1029 enable_autodepend
1030 enable_dependency_tracking
1031 enable_largefile
1032 with_x
1033 '
1034 ac_precious_vars='build_alias
1035 host_alias
1036 target_alias
1037 CC
1038 CFLAGS
1039 LDFLAGS
1040 LIBS
1041 CPPFLAGS
1042 CPP
1043 CPPFLAGS
1044 CPP
1045 CPPFLAGS
1046 XMKMF'
1047
1048
1049 # Initialize some variables set by options.
1050 ac_init_help=
1051 ac_init_version=false
1052 ac_unrecognized_opts=
1053 ac_unrecognized_sep=
1054 # The variables have the same names as the options, with
1055 # dashes changed to underlines.
1056 cache_file=/dev/null
1057 exec_prefix=NONE
1058 no_create=
1059 no_recursion=
1060 prefix=NONE
1061 program_prefix=NONE
1062 program_suffix=NONE
1063 program_transform_name=s,x,x,
1064 silent=
1065 site=
1066 srcdir=
1067 verbose=
1068 x_includes=NONE
1069 x_libraries=NONE
1070
1071 # Installation directory options.
1072 # These are left unexpanded so users can "make install exec_prefix=/foo"
1073 # and all the variables that are supposed to be based on exec_prefix
1074 # by default will actually change.
1075 # Use braces instead of parens because sh, perl, etc. also accept them.
1076 # (The list follows the same order as the GNU Coding Standards.)
1077 bindir='${exec_prefix}/bin'
1078 sbindir='${exec_prefix}/sbin'
1079 libexecdir='${exec_prefix}/libexec'
1080 datarootdir='${prefix}/share'
1081 datadir='${datarootdir}'
1082 sysconfdir='${prefix}/etc'
1083 sharedstatedir='${prefix}/com'
1084 localstatedir='${prefix}/var'
1085 includedir='${prefix}/include'
1086 oldincludedir='/usr/include'
1087 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1088 infodir='${datarootdir}/info'
1089 htmldir='${docdir}'
1090 dvidir='${docdir}'
1091 pdfdir='${docdir}'
1092 psdir='${docdir}'
1093 libdir='${exec_prefix}/lib'
1094 localedir='${datarootdir}/locale'
1095 mandir='${datarootdir}/man'
1096
1097 ac_prev=
1098 ac_dashdash=
1099 for ac_option
1100 do
1101 # If the previous option needs an argument, assign it.
1102 if test -n "$ac_prev"; then
1103 eval $ac_prev=\$ac_option
1104 ac_prev=
1105 continue
1106 fi
1107
1108 case $ac_option in
1109 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1110 *=) ac_optarg= ;;
1111 *) ac_optarg=yes ;;
1112 esac
1113
1114 # Accept the important Cygnus configure options, so we can diagnose typos.
1115
1116 case $ac_dashdash$ac_option in
1117 --)
1118 ac_dashdash=yes ;;
1119
1120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1121 ac_prev=bindir ;;
1122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1123 bindir=$ac_optarg ;;
1124
1125 -build | --build | --buil | --bui | --bu)
1126 ac_prev=build_alias ;;
1127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1128 build_alias=$ac_optarg ;;
1129
1130 -cache-file | --cache-file | --cache-fil | --cache-fi \
1131 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1132 ac_prev=cache_file ;;
1133 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1134 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1135 cache_file=$ac_optarg ;;
1136
1137 --config-cache | -C)
1138 cache_file=config.cache ;;
1139
1140 -datadir | --datadir | --datadi | --datad)
1141 ac_prev=datadir ;;
1142 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1143 datadir=$ac_optarg ;;
1144
1145 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1146 | --dataroo | --dataro | --datar)
1147 ac_prev=datarootdir ;;
1148 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1149 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1150 datarootdir=$ac_optarg ;;
1151
1152 -disable-* | --disable-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid feature name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "enable_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval enable_$ac_useropt=no ;;
1167
1168 -docdir | --docdir | --docdi | --doc | --do)
1169 ac_prev=docdir ;;
1170 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1171 docdir=$ac_optarg ;;
1172
1173 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1174 ac_prev=dvidir ;;
1175 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1176 dvidir=$ac_optarg ;;
1177
1178 -enable-* | --enable-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid feature name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "enable_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval enable_$ac_useropt=\$ac_optarg ;;
1193
1194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1196 | --exec | --exe | --ex)
1197 ac_prev=exec_prefix ;;
1198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1200 | --exec=* | --exe=* | --ex=*)
1201 exec_prefix=$ac_optarg ;;
1202
1203 -gas | --gas | --ga | --g)
1204 # Obsolete; use --with-gas.
1205 with_gas=yes ;;
1206
1207 -help | --help | --hel | --he | -h)
1208 ac_init_help=long ;;
1209 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1210 ac_init_help=recursive ;;
1211 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1212 ac_init_help=short ;;
1213
1214 -host | --host | --hos | --ho)
1215 ac_prev=host_alias ;;
1216 -host=* | --host=* | --hos=* | --ho=*)
1217 host_alias=$ac_optarg ;;
1218
1219 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1220 ac_prev=htmldir ;;
1221 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1222 | --ht=*)
1223 htmldir=$ac_optarg ;;
1224
1225 -includedir | --includedir | --includedi | --included | --include \
1226 | --includ | --inclu | --incl | --inc)
1227 ac_prev=includedir ;;
1228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1229 | --includ=* | --inclu=* | --incl=* | --inc=*)
1230 includedir=$ac_optarg ;;
1231
1232 -infodir | --infodir | --infodi | --infod | --info | --inf)
1233 ac_prev=infodir ;;
1234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1235 infodir=$ac_optarg ;;
1236
1237 -libdir | --libdir | --libdi | --libd)
1238 ac_prev=libdir ;;
1239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1240 libdir=$ac_optarg ;;
1241
1242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1243 | --libexe | --libex | --libe)
1244 ac_prev=libexecdir ;;
1245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1246 | --libexe=* | --libex=* | --libe=*)
1247 libexecdir=$ac_optarg ;;
1248
1249 -localedir | --localedir | --localedi | --localed | --locale)
1250 ac_prev=localedir ;;
1251 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1252 localedir=$ac_optarg ;;
1253
1254 -localstatedir | --localstatedir | --localstatedi | --localstated \
1255 | --localstate | --localstat | --localsta | --localst | --locals)
1256 ac_prev=localstatedir ;;
1257 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1258 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1259 localstatedir=$ac_optarg ;;
1260
1261 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1262 ac_prev=mandir ;;
1263 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1264 mandir=$ac_optarg ;;
1265
1266 -nfp | --nfp | --nf)
1267 # Obsolete; use --without-fp.
1268 with_fp=no ;;
1269
1270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1271 | --no-cr | --no-c | -n)
1272 no_create=yes ;;
1273
1274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1276 no_recursion=yes ;;
1277
1278 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1279 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1280 | --oldin | --oldi | --old | --ol | --o)
1281 ac_prev=oldincludedir ;;
1282 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1283 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1284 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1285 oldincludedir=$ac_optarg ;;
1286
1287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1288 ac_prev=prefix ;;
1289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1290 prefix=$ac_optarg ;;
1291
1292 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1293 | --program-pre | --program-pr | --program-p)
1294 ac_prev=program_prefix ;;
1295 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1296 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1297 program_prefix=$ac_optarg ;;
1298
1299 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1300 | --program-suf | --program-su | --program-s)
1301 ac_prev=program_suffix ;;
1302 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1303 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1304 program_suffix=$ac_optarg ;;
1305
1306 -program-transform-name | --program-transform-name \
1307 | --program-transform-nam | --program-transform-na \
1308 | --program-transform-n | --program-transform- \
1309 | --program-transform | --program-transfor \
1310 | --program-transfo | --program-transf \
1311 | --program-trans | --program-tran \
1312 | --progr-tra | --program-tr | --program-t)
1313 ac_prev=program_transform_name ;;
1314 -program-transform-name=* | --program-transform-name=* \
1315 | --program-transform-nam=* | --program-transform-na=* \
1316 | --program-transform-n=* | --program-transform-=* \
1317 | --program-transform=* | --program-transfor=* \
1318 | --program-transfo=* | --program-transf=* \
1319 | --program-trans=* | --program-tran=* \
1320 | --progr-tra=* | --program-tr=* | --program-t=*)
1321 program_transform_name=$ac_optarg ;;
1322
1323 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1324 ac_prev=pdfdir ;;
1325 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1326 pdfdir=$ac_optarg ;;
1327
1328 -psdir | --psdir | --psdi | --psd | --ps)
1329 ac_prev=psdir ;;
1330 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1331 psdir=$ac_optarg ;;
1332
1333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1334 | -silent | --silent | --silen | --sile | --sil)
1335 silent=yes ;;
1336
1337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1338 ac_prev=sbindir ;;
1339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1340 | --sbi=* | --sb=*)
1341 sbindir=$ac_optarg ;;
1342
1343 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1344 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1345 | --sharedst | --shareds | --shared | --share | --shar \
1346 | --sha | --sh)
1347 ac_prev=sharedstatedir ;;
1348 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1349 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1350 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1351 | --sha=* | --sh=*)
1352 sharedstatedir=$ac_optarg ;;
1353
1354 -site | --site | --sit)
1355 ac_prev=site ;;
1356 -site=* | --site=* | --sit=*)
1357 site=$ac_optarg ;;
1358
1359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1360 ac_prev=srcdir ;;
1361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1362 srcdir=$ac_optarg ;;
1363
1364 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1365 | --syscon | --sysco | --sysc | --sys | --sy)
1366 ac_prev=sysconfdir ;;
1367 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1368 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1369 sysconfdir=$ac_optarg ;;
1370
1371 -target | --target | --targe | --targ | --tar | --ta | --t)
1372 ac_prev=target_alias ;;
1373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1374 target_alias=$ac_optarg ;;
1375
1376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1377 verbose=yes ;;
1378
1379 -version | --version | --versio | --versi | --vers | -V)
1380 ac_init_version=: ;;
1381
1382 -with-* | --with-*)
1383 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1384 # Reject names that are not valid shell variable names.
1385 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1386 as_fn_error $? "invalid package name: $ac_useropt"
1387 ac_useropt_orig=$ac_useropt
1388 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1389 case $ac_user_opts in
1390 *"
1391 "with_$ac_useropt"
1392 "*) ;;
1393 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1394 ac_unrecognized_sep=', ';;
1395 esac
1396 eval with_$ac_useropt=\$ac_optarg ;;
1397
1398 -without-* | --without-*)
1399 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1402 as_fn_error $? "invalid package name: $ac_useropt"
1403 ac_useropt_orig=$ac_useropt
1404 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1405 case $ac_user_opts in
1406 *"
1407 "with_$ac_useropt"
1408 "*) ;;
1409 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1410 ac_unrecognized_sep=', ';;
1411 esac
1412 eval with_$ac_useropt=no ;;
1413
1414 --x)
1415 # Obsolete; use --with-x.
1416 with_x=yes ;;
1417
1418 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1419 | --x-incl | --x-inc | --x-in | --x-i)
1420 ac_prev=x_includes ;;
1421 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1422 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1423 x_includes=$ac_optarg ;;
1424
1425 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1426 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1427 ac_prev=x_libraries ;;
1428 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1429 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1430 x_libraries=$ac_optarg ;;
1431
1432 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1433 Try \`$0 --help' for more information"
1434 ;;
1435
1436 *=*)
1437 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1438 # Reject names that are not valid shell variable names.
1439 case $ac_envvar in #(
1440 '' | [0-9]* | *[!_$as_cr_alnum]* )
1441 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1442 esac
1443 eval $ac_envvar=\$ac_optarg
1444 export $ac_envvar ;;
1445
1446 *)
1447 # FIXME: should be removed in autoconf 3.0.
1448 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1450 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1451 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1452 ;;
1453
1454 esac
1455 done
1456
1457 if test -n "$ac_prev"; then
1458 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1459 as_fn_error $? "missing argument to $ac_option"
1460 fi
1461
1462 if test -n "$ac_unrecognized_opts"; then
1463 case $enable_option_checking in
1464 no) ;;
1465 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1466 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1467 esac
1468 fi
1469
1470 # Check all directory arguments for consistency.
1471 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1472 datadir sysconfdir sharedstatedir localstatedir includedir \
1473 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1474 libdir localedir mandir
1475 do
1476 eval ac_val=\$$ac_var
1477 # Remove trailing slashes.
1478 case $ac_val in
1479 */ )
1480 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1481 eval $ac_var=\$ac_val;;
1482 esac
1483 # Be sure to have absolute directory names.
1484 case $ac_val in
1485 [\\/$]* | ?:[\\/]* ) continue;;
1486 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1487 esac
1488 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1489 done
1490
1491 # There might be people who depend on the old broken behavior: `$host'
1492 # used to hold the argument of --host etc.
1493 # FIXME: To remove some day.
1494 build=$build_alias
1495 host=$host_alias
1496 target=$target_alias
1497
1498 # FIXME: To remove some day.
1499 if test "x$host_alias" != x; then
1500 if test "x$build_alias" = x; then
1501 cross_compiling=maybe
1502 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1503 If a cross compiler is detected then cross compile mode will be used" >&2
1504 elif test "x$build_alias" != "x$host_alias"; then
1505 cross_compiling=yes
1506 fi
1507 fi
1508
1509 ac_tool_prefix=
1510 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1511
1512 test "$silent" = yes && exec 6>/dev/null
1513
1514
1515 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1516 ac_ls_di=`ls -di .` &&
1517 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1518 as_fn_error $? "working directory cannot be determined"
1519 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1520 as_fn_error $? "pwd does not report name of working directory"
1521
1522
1523 # Find the source files, if location was not specified.
1524 if test -z "$srcdir"; then
1525 ac_srcdir_defaulted=yes
1526 # Try the directory containing this script, then the parent directory.
1527 ac_confdir=`$as_dirname -- "$as_myself" ||
1528 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1529 X"$as_myself" : 'X\(//\)[^/]' \| \
1530 X"$as_myself" : 'X\(//\)$' \| \
1531 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1532 $as_echo X"$as_myself" |
1533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1534 s//\1/
1535 q
1536 }
1537 /^X\(\/\/\)[^/].*/{
1538 s//\1/
1539 q
1540 }
1541 /^X\(\/\/\)$/{
1542 s//\1/
1543 q
1544 }
1545 /^X\(\/\).*/{
1546 s//\1/
1547 q
1548 }
1549 s/.*/./; q'`
1550 srcdir=$ac_confdir
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552 srcdir=..
1553 fi
1554 else
1555 ac_srcdir_defaulted=no
1556 fi
1557 if test ! -r "$srcdir/$ac_unique_file"; then
1558 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1559 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1560 fi
1561 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1562 ac_abs_confdir=`(
1563 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1564 pwd)`
1565 # When building in place, set srcdir=.
1566 if test "$ac_abs_confdir" = "$ac_pwd"; then
1567 srcdir=.
1568 fi
1569 # Remove unnecessary trailing slashes from srcdir.
1570 # Double slashes in file names in object file debugging info
1571 # mess up M-x gdb in Emacs.
1572 case $srcdir in
1573 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1574 esac
1575 for ac_var in $ac_precious_vars; do
1576 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1577 eval ac_env_${ac_var}_value=\$${ac_var}
1578 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1579 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1580 done
1581
1582 #
1583 # Report the --help message.
1584 #
1585 if test "$ac_init_help" = "long"; then
1586 # Omit some internal or obsolete options to make the list less imposing.
1587 # This message is too long to be a string in the A/UX 3.1 sh.
1588 cat <<_ACEOF
1589 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1590
1591 Usage: $0 [OPTION]... [VAR=VALUE]...
1592
1593 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1594 VAR=VALUE. See below for descriptions of some of the useful variables.
1595
1596 Defaults for the options are specified in brackets.
1597
1598 Configuration:
1599 -h, --help display this help and exit
1600 --help=short display options specific to this package
1601 --help=recursive display the short help of all the included packages
1602 -V, --version display version information and exit
1603 -q, --quiet, --silent do not print \`checking ...' messages
1604 --cache-file=FILE cache test results in FILE [disabled]
1605 -C, --config-cache alias for \`--cache-file=config.cache'
1606 -n, --no-create do not create output files
1607 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1608
1609 Installation directories:
1610 --prefix=PREFIX install architecture-independent files in PREFIX
1611 [$ac_default_prefix]
1612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1613 [PREFIX]
1614
1615 By default, \`make install' will install all the files in
1616 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1617 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1618 for instance \`--prefix=\$HOME'.
1619
1620 For better control, use the options below.
1621
1622 Fine tuning of the installation directories:
1623 --bindir=DIR user executables [EPREFIX/bin]
1624 --sbindir=DIR system admin executables [EPREFIX/sbin]
1625 --libexecdir=DIR program executables [EPREFIX/libexec]
1626 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1627 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1628 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1629 --libdir=DIR object code libraries [EPREFIX/lib]
1630 --includedir=DIR C header files [PREFIX/include]
1631 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1632 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1633 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1634 --infodir=DIR info documentation [DATAROOTDIR/info]
1635 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1636 --mandir=DIR man documentation [DATAROOTDIR/man]
1637 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1638 --htmldir=DIR html documentation [DOCDIR]
1639 --dvidir=DIR dvi documentation [DOCDIR]
1640 --pdfdir=DIR pdf documentation [DOCDIR]
1641 --psdir=DIR ps documentation [DOCDIR]
1642 _ACEOF
1643
1644 cat <<\_ACEOF
1645
1646 Program names:
1647 --program-prefix=PREFIX prepend PREFIX to installed program names
1648 --program-suffix=SUFFIX append SUFFIX to installed program names
1649 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1650
1651 X features:
1652 --x-includes=DIR X include files are in DIR
1653 --x-libraries=DIR X library files are in DIR
1654
1655 System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 _ACEOF
1659 fi
1660
1661 if test -n "$ac_init_help"; then
1662 case $ac_init_help in
1663 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1664 esac
1665 cat <<\_ACEOF
1666
1667 Optional Features:
1668 --disable-option-checking ignore unrecognized --enable/--with options
1669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1671 --disable-ns-self-contained
1672 disable self contained build under NeXTstep
1673 --enable-asserts compile code with asserts enabled
1674 --enable-maintainer-mode
1675 enable make rules and dependencies not useful (and
1676 sometimes confusing) to the casual installer
1677 --enable-locallisppath=PATH
1678 directories Emacs should search for lisp files
1679 specific to this site
1680 --enable-checking[=LIST]
1681 enable expensive run-time checks. With LIST, enable
1682 only specific categories of checks. Categories are:
1683 all,yes,no. Flags are: stringbytes, stringoverrun,
1684 stringfreelist, xmallocoverrun, conslist
1685 --enable-use-lisp-union-type
1686 use a union for the Lisp_Object data type. This is
1687 only useful for development for catching certain
1688 types of bugs.
1689 --enable-profiling build emacs with profiling support. This might not
1690 work on all platforms
1691 --enable-autodepend automatically generate dependencies to .h-files.
1692 Requires GNU Make and Gcc. Enabled if GNU Make and
1693 Gcc is found
1694 --disable-dependency-tracking speeds up one-time build
1695 --enable-dependency-tracking do not reject slow dependency extractors
1696 --disable-largefile omit support for large files
1697
1698 Optional Packages:
1699 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1700 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1701 --without-pop don't support POP mail retrieval with movemail
1702 --with-kerberos support Kerberos-authenticated POP
1703 --with-kerberos5 support Kerberos version 5 authenticated POP
1704 --with-hesiod support Hesiod to get the POP server host
1705 --with-mmdf support MMDF mailboxes
1706 --with-mail-unlink unlink, rather than empty, mail spool after reading
1707 --with-mailhost=HOSTNAME
1708 string giving default POP mail host
1709 --without-sound don't compile with sound support
1710 --without-sync-input process async input synchronously
1711 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1712 lucid or athena, motif, no)
1713 --without-xpm don't compile with XPM image support
1714 --without-jpeg don't compile with JPEG image support
1715 --without-tiff don't compile with TIFF image support
1716 --without-gif don't compile with GIF image support
1717 --without-png don't compile with PNG image support
1718 --without-rsvg don't compile with SVG image support
1719 --without-xml2 don't compile with XML parsing support
1720 --without-imagemagick don't compile with ImageMagick image support
1721 --without-xft don't use XFT for anti aliased fonts
1722 --without-libotf don't use libotf for OpenType font support
1723 --without-m17n-flt don't use m17n-flt for text shaping
1724 --without-toolkit-scroll-bars
1725 don't use Motif or Xaw3d scroll bars
1726 --without-xaw3d don't use Xaw3d
1727 --without-xim don't use X11 XIM
1728 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1729 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1730 console
1731 --without-dbus don't compile with D-Bus support
1732 --without-gconf don't compile with GConf support
1733 --without-selinux don't compile with SELinux support
1734 --without-gnutls don't use -lgnutls for SSL/TLS support
1735 --without-makeinfo don't require makeinfo for building manuals
1736 --without-compress-info don't compress the installed Info pages
1737 --with-pkg-config-prog=PATH
1738 path to pkg-config for finding GTK and librsvg
1739 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1740 /usr/lib, or /usr/lib64 on some platforms.
1741 --with-gameuser=USER user for shared game score files
1742 --with-gnustep-conf=PATH
1743 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1744 or /etc/GNUstep/GNUstep.conf
1745 --with-x use the X Window System
1746
1747 Some influential environment variables:
1748 CC C compiler command
1749 CFLAGS C compiler flags
1750 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1751 nonstandard directory <lib dir>
1752 LIBS libraries to pass to the linker, e.g. -l<library>
1753 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1754 you have headers in a nonstandard directory <include dir>
1755 CPP C preprocessor
1756 XMKMF Path to xmkmf, Makefile generator for X Window System
1757
1758 Use these variables to override the choices made by `configure' or to help
1759 it to find libraries and programs with nonstandard names/locations.
1760
1761 Report bugs to the package provider.
1762 _ACEOF
1763 ac_status=$?
1764 fi
1765
1766 if test "$ac_init_help" = "recursive"; then
1767 # If there are subdirs, report their specific --help.
1768 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1769 test -d "$ac_dir" ||
1770 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1771 continue
1772 ac_builddir=.
1773
1774 case "$ac_dir" in
1775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *)
1777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1778 # A ".." for each directory in $ac_dir_suffix.
1779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780 case $ac_top_builddir_sub in
1781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1783 esac ;;
1784 esac
1785 ac_abs_top_builddir=$ac_pwd
1786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir=$ac_top_build_prefix
1789
1790 case $srcdir in
1791 .) # We are building in place.
1792 ac_srcdir=.
1793 ac_top_srcdir=$ac_top_builddir_sub
1794 ac_abs_top_srcdir=$ac_pwd ;;
1795 [\\/]* | ?:[\\/]* ) # Absolute name.
1796 ac_srcdir=$srcdir$ac_dir_suffix;
1797 ac_top_srcdir=$srcdir
1798 ac_abs_top_srcdir=$srcdir ;;
1799 *) # Relative name.
1800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801 ac_top_srcdir=$ac_top_build_prefix$srcdir
1802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803 esac
1804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805
1806 cd "$ac_dir" || { ac_status=$?; continue; }
1807 # Check for guested configure.
1808 if test -f "$ac_srcdir/configure.gnu"; then
1809 echo &&
1810 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811 elif test -f "$ac_srcdir/configure"; then
1812 echo &&
1813 $SHELL "$ac_srcdir/configure" --help=recursive
1814 else
1815 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1816 fi || ac_status=$?
1817 cd "$ac_pwd" || { ac_status=$?; break; }
1818 done
1819 fi
1820
1821 test -n "$ac_init_help" && exit $ac_status
1822 if $ac_init_version; then
1823 cat <<\_ACEOF
1824 emacs configure 24.0.50
1825 generated by GNU Autoconf 2.68
1826
1827 Copyright (C) 2010 Free Software Foundation, Inc.
1828 This configure script is free software; the Free Software Foundation
1829 gives unlimited permission to copy, distribute and modify it.
1830 _ACEOF
1831 exit
1832 fi
1833
1834 ## ------------------------ ##
1835 ## Autoconf initialization. ##
1836 ## ------------------------ ##
1837
1838 # ac_fn_c_try_compile LINENO
1839 # --------------------------
1840 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_compile ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext
1845 if { { ac_try="$ac_compile"
1846 case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_compile") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest.$ac_objext; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 ac_retval=1
1870 fi
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_compile
1875
1876 # ac_fn_c_try_cpp LINENO
1877 # ----------------------
1878 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_c_try_cpp ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_cpp conftest.$ac_ext"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } > conftest.i && {
1898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 }; then :
1901 ac_retval=0
1902 else
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906 ac_retval=1
1907 fi
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1910
1911 } # ac_fn_c_try_cpp
1912
1913 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916 # the include files in INCLUDES and setting the cache variable VAR
1917 # accordingly.
1918 ac_fn_c_check_header_mongrel ()
1919 {
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if eval \${$3+:} false; then :
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1926 fi
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 else
1931 # Is the header compilable?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933 $as_echo_n "checking $2 usability... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $4
1937 #include <$2>
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_header_compiler=yes
1941 else
1942 ac_header_compiler=no
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946 $as_echo "$ac_header_compiler" >&6; }
1947
1948 # Is the header present?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950 $as_echo_n "checking $2 presence... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 #include <$2>
1954 _ACEOF
1955 if ac_fn_c_try_cpp "$LINENO"; then :
1956 ac_header_preproc=yes
1957 else
1958 ac_header_preproc=no
1959 fi
1960 rm -f conftest.err conftest.i conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962 $as_echo "$ac_header_preproc" >&6; }
1963
1964 # So? What about this header?
1965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966 yes:no: )
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 ;;
1972 no:yes:* )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1976 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1980 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 ;;
1984 esac
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 eval "$3=\$ac_header_compiler"
1991 fi
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 fi
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_header_mongrel
1999
2000 # ac_fn_c_try_run LINENO
2001 # ----------------------
2002 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2003 # that executables *can* be run.
2004 ac_fn_c_try_run ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if { { ac_try="$ac_link"
2008 case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011 esac
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>&5
2015 ac_status=$?
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2018 { { case "(($ac_try" in
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2021 esac
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_try") 2>&5
2025 ac_status=$?
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; }; }; then :
2028 ac_retval=0
2029 else
2030 $as_echo "$as_me: program exited with status $ac_status" >&5
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_retval=$ac_status
2035 fi
2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 as_fn_set_status $ac_retval
2039
2040 } # ac_fn_c_try_run
2041
2042 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2043 # -------------------------------------------------------
2044 # Tests whether HEADER exists and can be compiled using the include files in
2045 # INCLUDES, setting the cache variable VAR accordingly.
2046 ac_fn_c_check_header_compile ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 #include <$2>
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 eval "$3=yes"
2061 else
2062 eval "$3=no"
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 fi
2066 eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071 } # ac_fn_c_check_header_compile
2072
2073 # ac_fn_c_try_link LINENO
2074 # -----------------------
2075 # Try to link conftest.$ac_ext, and return whether this succeeded.
2076 ac_fn_c_try_link ()
2077 {
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 rm -f conftest.$ac_objext conftest$ac_exeext
2080 if { { ac_try="$ac_link"
2081 case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084 esac
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_link") 2>conftest.err
2088 ac_status=$?
2089 if test -s conftest.err; then
2090 grep -v '^ *+' conftest.err >conftest.er1
2091 cat conftest.er1 >&5
2092 mv -f conftest.er1 conftest.err
2093 fi
2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; } && {
2096 test -z "$ac_c_werror_flag" ||
2097 test ! -s conftest.err
2098 } && test -s conftest$ac_exeext && {
2099 test "$cross_compiling" = yes ||
2100 $as_test_x conftest$ac_exeext
2101 }; then :
2102 ac_retval=0
2103 else
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_retval=1
2108 fi
2109 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2110 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2111 # interfere with the next link command; also delete a directory that is
2112 # left behind by Apple's compiler. We do this before executing the actions.
2113 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115 as_fn_set_status $ac_retval
2116
2117 } # ac_fn_c_try_link
2118
2119 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2120 # ---------------------------------------------
2121 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2122 # accordingly.
2123 ac_fn_c_check_decl ()
2124 {
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 as_decl_name=`echo $2|sed 's/ *(.*//'`
2127 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2129 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $4
2136 int
2137 main ()
2138 {
2139 #ifndef $as_decl_name
2140 #ifdef __cplusplus
2141 (void) $as_decl_use;
2142 #else
2143 (void) $as_decl_name;
2144 #endif
2145 #endif
2146
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152 eval "$3=yes"
2153 else
2154 eval "$3=no"
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 fi
2158 eval ac_res=\$$3
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162
2163 } # ac_fn_c_check_decl
2164
2165 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2166 # ----------------------------------------------
2167 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2168 ac_fn_c_check_header_preproc ()
2169 {
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if eval \${$3+:} false; then :
2174 $as_echo_n "(cached) " >&6
2175 else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 #include <$2>
2179 _ACEOF
2180 if ac_fn_c_try_cpp "$LINENO"; then :
2181 eval "$3=yes"
2182 else
2183 eval "$3=no"
2184 fi
2185 rm -f conftest.err conftest.i conftest.$ac_ext
2186 fi
2187 eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191
2192 } # ac_fn_c_check_header_preproc
2193
2194 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2195 # ----------------------------------------------------
2196 # Tries to find if the field MEMBER exists in type AGGR, after including
2197 # INCLUDES, setting cache variable VAR accordingly.
2198 ac_fn_c_check_member ()
2199 {
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2202 $as_echo_n "checking for $2.$3... " >&6; }
2203 if eval \${$4+:} false; then :
2204 $as_echo_n "(cached) " >&6
2205 else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2208 $5
2209 int
2210 main ()
2211 {
2212 static $2 ac_aggr;
2213 if (ac_aggr.$3)
2214 return 0;
2215 ;
2216 return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220 eval "$4=yes"
2221 else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 $5
2225 int
2226 main ()
2227 {
2228 static $2 ac_aggr;
2229 if (sizeof ac_aggr.$3)
2230 return 0;
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$4=yes"
2237 else
2238 eval "$4=no"
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 eval ac_res=\$$4
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248
2249 } # ac_fn_c_check_member
2250
2251 # ac_fn_c_check_func LINENO FUNC VAR
2252 # ----------------------------------
2253 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2254 ac_fn_c_check_func ()
2255 {
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if eval \${$3+:} false; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2264 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2266 #define $2 innocuous_$2
2267
2268 /* System header to define __stub macros and hopefully few prototypes,
2269 which can conflict with char $2 (); below.
2270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2271 <limits.h> exists even on freestanding compilers. */
2272
2273 #ifdef __STDC__
2274 # include <limits.h>
2275 #else
2276 # include <assert.h>
2277 #endif
2278
2279 #undef $2
2280
2281 /* Override any GCC internal prototype to avoid an error.
2282 Use char because int might match the return type of a GCC
2283 builtin and then its argument prototype would still apply. */
2284 #ifdef __cplusplus
2285 extern "C"
2286 #endif
2287 char $2 ();
2288 /* The GNU C library defines this for functions which it implements
2289 to always fail with ENOSYS. Some functions are actually named
2290 something starting with __ and the normal name is an alias. */
2291 #if defined __stub_$2 || defined __stub___$2
2292 choke me
2293 #endif
2294
2295 int
2296 main ()
2297 {
2298 return $2 ();
2299 ;
2300 return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_link "$LINENO"; then :
2304 eval "$3=yes"
2305 else
2306 eval "$3=no"
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext \
2309 conftest$ac_exeext conftest.$ac_ext
2310 fi
2311 eval ac_res=\$$3
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313 $as_echo "$ac_res" >&6; }
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315
2316 } # ac_fn_c_check_func
2317
2318 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2319 # -------------------------------------------
2320 # Tests whether TYPE exists after having included INCLUDES, setting cache
2321 # variable VAR accordingly.
2322 ac_fn_c_check_type ()
2323 {
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 eval "$3=no"
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2333 $4
2334 int
2335 main ()
2336 {
2337 if (sizeof ($2))
2338 return 0;
2339 ;
2340 return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"; then :
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2346 $4
2347 int
2348 main ()
2349 {
2350 if (sizeof (($2)))
2351 return 0;
2352 ;
2353 return 0;
2354 }
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357
2358 else
2359 eval "$3=yes"
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 fi
2365 eval ac_res=\$$3
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369
2370 } # ac_fn_c_check_type
2371 cat >config.log <<_ACEOF
2372 This file contains any messages produced by compilers while
2373 running configure, to aid debugging if configure makes a mistake.
2374
2375 It was created by emacs $as_me 24.0.50, which was
2376 generated by GNU Autoconf 2.68. Invocation command line was
2377
2378 $ $0 $@
2379
2380 _ACEOF
2381 exec 5>>config.log
2382 {
2383 cat <<_ASUNAME
2384 ## --------- ##
2385 ## Platform. ##
2386 ## --------- ##
2387
2388 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2389 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2390 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2391 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2392 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2393
2394 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2395 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2396
2397 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2398 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2399 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2400 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2401 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2402 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2403 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2404
2405 _ASUNAME
2406
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 $as_echo "PATH: $as_dir"
2413 done
2414 IFS=$as_save_IFS
2415
2416 } >&5
2417
2418 cat >&5 <<_ACEOF
2419
2420
2421 ## ----------- ##
2422 ## Core tests. ##
2423 ## ----------- ##
2424
2425 _ACEOF
2426
2427
2428 # Keep a trace of the command line.
2429 # Strip out --no-create and --no-recursion so they do not pile up.
2430 # Strip out --silent because we don't want to record it for future runs.
2431 # Also quote any args containing shell meta-characters.
2432 # Make two passes to allow for proper duplicate-argument suppression.
2433 ac_configure_args=
2434 ac_configure_args0=
2435 ac_configure_args1=
2436 ac_must_keep_next=false
2437 for ac_pass in 1 2
2438 do
2439 for ac_arg
2440 do
2441 case $ac_arg in
2442 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2444 | -silent | --silent | --silen | --sile | --sil)
2445 continue ;;
2446 *\'*)
2447 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2448 esac
2449 case $ac_pass in
2450 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2451 2)
2452 as_fn_append ac_configure_args1 " '$ac_arg'"
2453 if test $ac_must_keep_next = true; then
2454 ac_must_keep_next=false # Got value, back to normal.
2455 else
2456 case $ac_arg in
2457 *=* | --config-cache | -C | -disable-* | --disable-* \
2458 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2459 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2460 | -with-* | --with-* | -without-* | --without-* | --x)
2461 case "$ac_configure_args0 " in
2462 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2463 esac
2464 ;;
2465 -* ) ac_must_keep_next=true ;;
2466 esac
2467 fi
2468 as_fn_append ac_configure_args " '$ac_arg'"
2469 ;;
2470 esac
2471 done
2472 done
2473 { ac_configure_args0=; unset ac_configure_args0;}
2474 { ac_configure_args1=; unset ac_configure_args1;}
2475
2476 # When interrupted or exit'd, cleanup temporary files, and complete
2477 # config.log. We remove comments because anyway the quotes in there
2478 # would cause problems or look ugly.
2479 # WARNING: Use '\'' to represent an apostrophe within the trap.
2480 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2481 trap 'exit_status=$?
2482 # Save into config.log some information that might help in debugging.
2483 {
2484 echo
2485
2486 $as_echo "## ---------------- ##
2487 ## Cache variables. ##
2488 ## ---------------- ##"
2489 echo
2490 # The following way of writing the cache mishandles newlines in values,
2491 (
2492 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2493 eval ac_val=\$$ac_var
2494 case $ac_val in #(
2495 *${as_nl}*)
2496 case $ac_var in #(
2497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2499 esac
2500 case $ac_var in #(
2501 _ | IFS | as_nl) ;; #(
2502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2503 *) { eval $ac_var=; unset $ac_var;} ;;
2504 esac ;;
2505 esac
2506 done
2507 (set) 2>&1 |
2508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2509 *${as_nl}ac_space=\ *)
2510 sed -n \
2511 "s/'\''/'\''\\\\'\'''\''/g;
2512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2513 ;; #(
2514 *)
2515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2516 ;;
2517 esac |
2518 sort
2519 )
2520 echo
2521
2522 $as_echo "## ----------------- ##
2523 ## Output variables. ##
2524 ## ----------------- ##"
2525 echo
2526 for ac_var in $ac_subst_vars
2527 do
2528 eval ac_val=\$$ac_var
2529 case $ac_val in
2530 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2531 esac
2532 $as_echo "$ac_var='\''$ac_val'\''"
2533 done | sort
2534 echo
2535
2536 if test -n "$ac_subst_files"; then
2537 $as_echo "## ------------------- ##
2538 ## File substitutions. ##
2539 ## ------------------- ##"
2540 echo
2541 for ac_var in $ac_subst_files
2542 do
2543 eval ac_val=\$$ac_var
2544 case $ac_val in
2545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546 esac
2547 $as_echo "$ac_var='\''$ac_val'\''"
2548 done | sort
2549 echo
2550 fi
2551
2552 if test -s confdefs.h; then
2553 $as_echo "## ----------- ##
2554 ## confdefs.h. ##
2555 ## ----------- ##"
2556 echo
2557 cat confdefs.h
2558 echo
2559 fi
2560 test "$ac_signal" != 0 &&
2561 $as_echo "$as_me: caught signal $ac_signal"
2562 $as_echo "$as_me: exit $exit_status"
2563 } >&5
2564 rm -f core *.core core.conftest.* &&
2565 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2566 exit $exit_status
2567 ' 0
2568 for ac_signal in 1 2 13 15; do
2569 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2570 done
2571 ac_signal=0
2572
2573 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2574 rm -f -r conftest* confdefs.h
2575
2576 $as_echo "/* confdefs.h */" > confdefs.h
2577
2578 # Predefined preprocessor variables.
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_NAME "$PACKAGE_NAME"
2582 _ACEOF
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2586 _ACEOF
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2590 _ACEOF
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_STRING "$PACKAGE_STRING"
2594 _ACEOF
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2598 _ACEOF
2599
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_URL "$PACKAGE_URL"
2602 _ACEOF
2603
2604
2605 # Let the site file select an alternate cache file if it wants to.
2606 # Prefer an explicitly selected file to automatically selected ones.
2607 ac_site_file1=NONE
2608 ac_site_file2=NONE
2609 if test -n "$CONFIG_SITE"; then
2610 # We do not want a PATH search for config.site.
2611 case $CONFIG_SITE in #((
2612 -*) ac_site_file1=./$CONFIG_SITE;;
2613 */*) ac_site_file1=$CONFIG_SITE;;
2614 *) ac_site_file1=./$CONFIG_SITE;;
2615 esac
2616 elif test "x$prefix" != xNONE; then
2617 ac_site_file1=$prefix/share/config.site
2618 ac_site_file2=$prefix/etc/config.site
2619 else
2620 ac_site_file1=$ac_default_prefix/share/config.site
2621 ac_site_file2=$ac_default_prefix/etc/config.site
2622 fi
2623 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2624 do
2625 test "x$ac_site_file" = xNONE && continue
2626 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2628 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2629 sed 's/^/| /' "$ac_site_file" >&5
2630 . "$ac_site_file" \
2631 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 as_fn_error $? "failed to load site script $ac_site_file
2634 See \`config.log' for more details" "$LINENO" 5; }
2635 fi
2636 done
2637
2638 if test -r "$cache_file"; then
2639 # Some versions of bash will fail to source /dev/null (special files
2640 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2641 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2643 $as_echo "$as_me: loading cache $cache_file" >&6;}
2644 case $cache_file in
2645 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2646 *) . "./$cache_file";;
2647 esac
2648 fi
2649 else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2651 $as_echo "$as_me: creating cache $cache_file" >&6;}
2652 >$cache_file
2653 fi
2654
2655 as_fn_append ac_header_list " stdlib.h"
2656 as_fn_append ac_header_list " unistd.h"
2657 as_fn_append ac_header_list " sys/param.h"
2658 gl_getopt_required=GNU
2659 as_fn_append ac_header_list " getopt.h"
2660 as_fn_append ac_func_list " alarm"
2661 as_fn_append ac_header_list " sys/time.h"
2662 as_fn_append ac_func_list " localtime_r"
2663 # Check that the precious variables saved in the cache have kept the same
2664 # value.
2665 ac_cache_corrupted=false
2666 for ac_var in $ac_precious_vars; do
2667 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2668 eval ac_new_set=\$ac_env_${ac_var}_set
2669 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2670 eval ac_new_val=\$ac_env_${ac_var}_value
2671 case $ac_old_set,$ac_new_set in
2672 set,)
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2674 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2675 ac_cache_corrupted=: ;;
2676 ,set)
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2678 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2679 ac_cache_corrupted=: ;;
2680 ,);;
2681 *)
2682 if test "x$ac_old_val" != "x$ac_new_val"; then
2683 # differences in whitespace do not lead to failure.
2684 ac_old_val_w=`echo x $ac_old_val`
2685 ac_new_val_w=`echo x $ac_new_val`
2686 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2688 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2689 ac_cache_corrupted=:
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2692 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2693 eval $ac_var=\$ac_old_val
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2696 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2698 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2699 fi;;
2700 esac
2701 # Pass precious variables to config.status.
2702 if test "$ac_new_set" = set; then
2703 case $ac_new_val in
2704 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2705 *) ac_arg=$ac_var=$ac_new_val ;;
2706 esac
2707 case " $ac_configure_args " in
2708 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2709 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2710 esac
2711 fi
2712 done
2713 if $ac_cache_corrupted; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2717 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2718 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2719 fi
2720 ## -------------------- ##
2721 ## Main body of script. ##
2722 ## -------------------- ##
2723
2724 ac_ext=c
2725 ac_cpp='$CPP $CPPFLAGS'
2726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
2730
2731 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2732
2733
2734 am__api_version='1.11'
2735
2736 ac_aux_dir=
2737 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2738 if test -f "$ac_dir/install-sh"; then
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/install-sh -c"
2741 break
2742 elif test -f "$ac_dir/install.sh"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/install.sh -c"
2745 break
2746 elif test -f "$ac_dir/shtool"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/shtool install -c"
2749 break
2750 fi
2751 done
2752 if test -z "$ac_aux_dir"; then
2753 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2754 fi
2755
2756 # These three variables are undocumented and unsupported,
2757 # and are intended to be withdrawn in a future Autoconf release.
2758 # They can cause serious problems if a builder's source tree is in a directory
2759 # whose full name contains unusual characters.
2760 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2761 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2762 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763
2764
2765 # Find a good install program. We prefer a C program (faster),
2766 # so one script is as good as another. But avoid the broken or
2767 # incompatible versions:
2768 # SysV /etc/install, /usr/sbin/install
2769 # SunOS /usr/etc/install
2770 # IRIX /sbin/install
2771 # AIX /bin/install
2772 # AmigaOS /C/install, which installs bootblocks on floppy discs
2773 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2774 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2775 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2776 # OS/2's system install, which has a completely different semantic
2777 # ./install, which can be erroneously created by make from ./install.sh.
2778 # Reject install programs that cannot install multiple files.
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2780 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2781 if test -z "$INSTALL"; then
2782 if ${ac_cv_path_install+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 # Account for people who put trailing slashes in PATH elements.
2791 case $as_dir/ in #((
2792 ./ | .// | /[cC]/* | \
2793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2794 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2795 /usr/ucb/* ) ;;
2796 *)
2797 # OSF1 and SCO ODT 3.0 have their own names for install.
2798 # Don't use installbsd from OSF since it installs stuff as root
2799 # by default.
2800 for ac_prog in ginstall scoinst install; do
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2803 if test $ac_prog = install &&
2804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2805 # AIX install. It has an incompatible calling convention.
2806 :
2807 elif test $ac_prog = install &&
2808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2809 # program-specific install script used by HP pwplus--don't use.
2810 :
2811 else
2812 rm -rf conftest.one conftest.two conftest.dir
2813 echo one > conftest.one
2814 echo two > conftest.two
2815 mkdir conftest.dir
2816 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2817 test -s conftest.one && test -s conftest.two &&
2818 test -s conftest.dir/conftest.one &&
2819 test -s conftest.dir/conftest.two
2820 then
2821 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2822 break 3
2823 fi
2824 fi
2825 fi
2826 done
2827 done
2828 ;;
2829 esac
2830
2831 done
2832 IFS=$as_save_IFS
2833
2834 rm -rf conftest.one conftest.two conftest.dir
2835
2836 fi
2837 if test "${ac_cv_path_install+set}" = set; then
2838 INSTALL=$ac_cv_path_install
2839 else
2840 # As a last resort, use the slow shell script. Don't cache a
2841 # value for INSTALL within a source directory, because that will
2842 # break other packages using the cache if that directory is
2843 # removed, or if the value is a relative name.
2844 INSTALL=$ac_install_sh
2845 fi
2846 fi
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2848 $as_echo "$INSTALL" >&6; }
2849
2850 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2851 # It thinks the first close brace ends the variable substitution.
2852 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2853
2854 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2855
2856 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2859 $as_echo_n "checking whether build environment is sane... " >&6; }
2860 # Just in case
2861 sleep 1
2862 echo timestamp > conftest.file
2863 # Reject unsafe characters in $srcdir or the absolute working directory
2864 # name. Accept space and tab only in the latter.
2865 am_lf='
2866 '
2867 case `pwd` in
2868 *[\\\"\#\$\&\'\`$am_lf]*)
2869 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2870 esac
2871 case $srcdir in
2872 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2873 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2874 esac
2875
2876 # Do `set' in a subshell so we don't clobber the current shell's
2877 # arguments. Must try -L first in case configure is actually a
2878 # symlink; some systems play weird games with the mod time of symlinks
2879 # (eg FreeBSD returns the mod time of the symlink's containing
2880 # directory).
2881 if (
2882 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2883 if test "$*" = "X"; then
2884 # -L didn't work.
2885 set X `ls -t "$srcdir/configure" conftest.file`
2886 fi
2887 rm -f conftest.file
2888 if test "$*" != "X $srcdir/configure conftest.file" \
2889 && test "$*" != "X conftest.file $srcdir/configure"; then
2890
2891 # If neither matched, then we have a broken ls. This can happen
2892 # if, for instance, CONFIG_SHELL is bash and it inherits a
2893 # broken ls alias from the environment. This has actually
2894 # happened. Such a system could not be considered "sane".
2895 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2896 alias in your environment" "$LINENO" 5
2897 fi
2898
2899 test "$2" = conftest.file
2900 )
2901 then
2902 # Ok.
2903 :
2904 else
2905 as_fn_error $? "newly created file is older than distributed files!
2906 Check your system clock" "$LINENO" 5
2907 fi
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909 $as_echo "yes" >&6; }
2910 test "$program_prefix" != NONE &&
2911 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2912 # Use a double $ so make ignores it.
2913 test "$program_suffix" != NONE &&
2914 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2915 # Double any \ or $.
2916 # By default was `s,x,x', remove it if useless.
2917 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2918 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2919
2920 # expand $ac_aux_dir to an absolute path
2921 am_aux_dir=`cd $ac_aux_dir && pwd`
2922
2923 if test x"${MISSING+set}" != xset; then
2924 case $am_aux_dir in
2925 *\ * | *\ *)
2926 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2927 *)
2928 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2929 esac
2930 fi
2931 # Use eval to expand $SHELL
2932 if eval "$MISSING --run true"; then
2933 am_missing_run="$MISSING --run "
2934 else
2935 am_missing_run=
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2937 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2938 fi
2939
2940 if test x"${install_sh}" != xset; then
2941 case $am_aux_dir in
2942 *\ * | *\ *)
2943 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2944 *)
2945 install_sh="\${SHELL} $am_aux_dir/install-sh"
2946 esac
2947 fi
2948
2949 # Installed binaries are usually stripped using `strip' when the user
2950 # run `make install-strip'. However `strip' might not be the right
2951 # tool to use in cross-compilation environments, therefore Automake
2952 # will honor the `STRIP' environment variable to overrule this program.
2953 if test "$cross_compiling" != no; then
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}strip; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_STRIP+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$STRIP"; then
2963 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 STRIP=$ac_cv_prog_STRIP
2983 if test -n "$STRIP"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985 $as_echo "$STRIP" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992 fi
2993 if test -z "$ac_cv_prog_STRIP"; then
2994 ac_ct_STRIP=$STRIP
2995 # Extract the first word of "strip", so it can be a program name with args.
2996 set dummy strip; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$ac_ct_STRIP"; then
3003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_STRIP="strip"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023 if test -n "$ac_ct_STRIP"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025 $as_echo "$ac_ct_STRIP" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031 if test "x$ac_ct_STRIP" = x; then
3032 STRIP=":"
3033 else
3034 case $cross_compiling:$ac_tool_warned in
3035 yes:)
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3039 esac
3040 STRIP=$ac_ct_STRIP
3041 fi
3042 else
3043 STRIP="$ac_cv_prog_STRIP"
3044 fi
3045
3046 fi
3047 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3048
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3050 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3051 if test -z "$MKDIR_P"; then
3052 if ${ac_cv_path_mkdir+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_prog in mkdir gmkdir; do
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3063 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3064 'mkdir (GNU coreutils) '* | \
3065 'mkdir (coreutils) '* | \
3066 'mkdir (fileutils) '4.1*)
3067 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3068 break 3;;
3069 esac
3070 done
3071 done
3072 done
3073 IFS=$as_save_IFS
3074
3075 fi
3076
3077 test -d ./--version && rmdir ./--version
3078 if test "${ac_cv_path_mkdir+set}" = set; then
3079 MKDIR_P="$ac_cv_path_mkdir -p"
3080 else
3081 # As a last resort, use the slow shell script. Don't cache a
3082 # value for MKDIR_P within a source directory, because that will
3083 # break other packages using the cache if that directory is
3084 # removed, or if the value is a relative name.
3085 MKDIR_P="$ac_install_sh -d"
3086 fi
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3089 $as_echo "$MKDIR_P" >&6; }
3090
3091
3092 mkdir_p="$MKDIR_P"
3093 case $mkdir_p in
3094 [\\/$]* | ?:[\\/]*) ;;
3095 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3096 esac
3097
3098 for ac_prog in gawk mawk nawk awk
3099 do
3100 # Extract the first word of "$ac_prog", so it can be a program name with args.
3101 set dummy $ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_AWK+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$AWK"; then
3108 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117 ac_cv_prog_AWK="$ac_prog"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 AWK=$ac_cv_prog_AWK
3128 if test -n "$AWK"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3130 $as_echo "$AWK" >&6; }
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137 test -n "$AWK" && break
3138 done
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3141 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3142 set x ${MAKE-make}
3143 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3144 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 cat >conftest.make <<\_ACEOF
3148 SHELL = /bin/sh
3149 all:
3150 @echo '@@@%%%=$(MAKE)=@@@%%%'
3151 _ACEOF
3152 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3153 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3154 *@@@%%%=?*=@@@%%%*)
3155 eval ac_cv_prog_make_${ac_make}_set=yes;;
3156 *)
3157 eval ac_cv_prog_make_${ac_make}_set=no;;
3158 esac
3159 rm -f conftest.make
3160 fi
3161 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3164 SET_MAKE=
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 SET_MAKE="MAKE=${MAKE-make}"
3169 fi
3170
3171 rm -rf .tst 2>/dev/null
3172 mkdir .tst 2>/dev/null
3173 if test -d .tst; then
3174 am__leading_dot=.
3175 else
3176 am__leading_dot=_
3177 fi
3178 rmdir .tst 2>/dev/null
3179
3180 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3181 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3182 # is not polluted with repeated "-I."
3183 am__isrc=' -I$(srcdir)'
3184 # test to see if srcdir already configured
3185 if test -f $srcdir/config.status; then
3186 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3187 fi
3188 fi
3189
3190 # test whether we have cygpath
3191 if test -z "$CYGPATH_W"; then
3192 if (cygpath --version) >/dev/null 2>/dev/null; then
3193 CYGPATH_W='cygpath -w'
3194 else
3195 CYGPATH_W=echo
3196 fi
3197 fi
3198
3199
3200 # Define the identity of the package.
3201 PACKAGE='emacs'
3202 VERSION='24.0.50'
3203
3204
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE "$PACKAGE"
3207 _ACEOF
3208
3209
3210 cat >>confdefs.h <<_ACEOF
3211 #define VERSION "$VERSION"
3212 _ACEOF
3213
3214 # Some tools Automake needs.
3215
3216 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3217
3218
3219 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3220
3221
3222 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3223
3224
3225 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3226
3227
3228 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3229
3230 # We need awk for the "check" target. The system "awk" is bad on
3231 # some platforms.
3232 # Always define AMTAR for backward compatibility.
3233
3234 AMTAR=${AMTAR-"${am_missing_run}tar"}
3235
3236 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3237
3238
3239
3240
3241
3242
3243
3244
3245 lispdir='${datadir}/emacs/${version}/lisp'
3246 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3247 '${datadir}/emacs/site-lisp'
3248 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3249 etcdir='${datadir}/emacs/${version}/etc'
3250 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3251 docdir='${datadir}/emacs/${version}/etc'
3252 gamedir='${localstatedir}/games/emacs'
3253
3254
3255
3256
3257 # Check whether --with-pop was given.
3258 if test "${with_pop+set}" = set; then :
3259 withval=$with_pop;
3260 else
3261 with_pop=yes
3262 fi
3263
3264 if test "$with_pop" = yes; then
3265 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3266
3267 fi
3268
3269
3270 # Check whether --with-kerberos was given.
3271 if test "${with_kerberos+set}" = set; then :
3272 withval=$with_kerberos;
3273 else
3274 with_kerberos=no
3275 fi
3276
3277 if test "$with_kerberos" != no; then
3278 $as_echo "#define KERBEROS 1" >>confdefs.h
3279
3280 fi
3281
3282
3283 # Check whether --with-kerberos5 was given.
3284 if test "${with_kerberos5+set}" = set; then :
3285 withval=$with_kerberos5;
3286 else
3287 with_kerberos5=no
3288 fi
3289
3290 if test "${with_kerberos5}" != no; then
3291 if test "${with_kerberos}" = no; then
3292 with_kerberos=yes
3293 $as_echo "#define KERBEROS 1" >>confdefs.h
3294
3295 fi
3296
3297 $as_echo "#define KERBEROS5 1" >>confdefs.h
3298
3299 fi
3300
3301
3302 # Check whether --with-hesiod was given.
3303 if test "${with_hesiod+set}" = set; then :
3304 withval=$with_hesiod;
3305 else
3306 with_hesiod=no
3307 fi
3308
3309 if test "$with_hesiod" != no; then
3310
3311 $as_echo "#define HESIOD 1" >>confdefs.h
3312
3313 fi
3314
3315
3316 # Check whether --with-mmdf was given.
3317 if test "${with_mmdf+set}" = set; then :
3318 withval=$with_mmdf;
3319 else
3320 with_mmdf=no
3321 fi
3322
3323 if test "$with_mmdf" != no; then
3324
3325 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3326
3327 fi
3328
3329
3330 # Check whether --with-mail-unlink was given.
3331 if test "${with_mail_unlink+set}" = set; then :
3332 withval=$with_mail_unlink;
3333 else
3334 with_mail_unlink=no
3335 fi
3336
3337 if test "$with_mail_unlink" != no; then
3338
3339 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3340
3341 fi
3342
3343
3344 # Check whether --with-mailhost was given.
3345 if test "${with_mailhost+set}" = set; then :
3346 withval=$with_mailhost;
3347 cat >>confdefs.h <<_ACEOF
3348 #define MAILHOST "$withval"
3349 _ACEOF
3350
3351 fi
3352
3353
3354
3355 # Check whether --with-sound was given.
3356 if test "${with_sound+set}" = set; then :
3357 withval=$with_sound;
3358 else
3359 with_sound=yes
3360 fi
3361
3362
3363
3364 # Check whether --with-sync-input was given.
3365 if test "${with_sync_input+set}" = set; then :
3366 withval=$with_sync_input;
3367 else
3368 with_sync_input=yes
3369 fi
3370
3371 if test "$with_sync_input" = yes; then
3372
3373 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3374
3375 fi
3376
3377
3378 # Check whether --with-x-toolkit was given.
3379 if test "${with_x_toolkit+set}" = set; then :
3380 withval=$with_x_toolkit; case "${withval}" in
3381 y | ye | yes ) val=gtk ;;
3382 n | no ) val=no ;;
3383 l | lu | luc | luci | lucid ) val=lucid ;;
3384 a | at | ath | athe | athen | athena ) val=athena ;;
3385 m | mo | mot | moti | motif ) val=motif ;;
3386 g | gt | gtk ) val=gtk ;;
3387 gtk3 ) val=gtk3 ;;
3388 * )
3389 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3390 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3391 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3392 ;;
3393 esac
3394 with_x_toolkit=$val
3395
3396 fi
3397
3398
3399
3400 # Check whether --with-xpm was given.
3401 if test "${with_xpm+set}" = set; then :
3402 withval=$with_xpm;
3403 else
3404 with_xpm=yes
3405 fi
3406
3407
3408 # Check whether --with-jpeg was given.
3409 if test "${with_jpeg+set}" = set; then :
3410 withval=$with_jpeg;
3411 else
3412 with_jpeg=yes
3413 fi
3414
3415
3416 # Check whether --with-tiff was given.
3417 if test "${with_tiff+set}" = set; then :
3418 withval=$with_tiff;
3419 else
3420 with_tiff=yes
3421 fi
3422
3423
3424 # Check whether --with-gif was given.
3425 if test "${with_gif+set}" = set; then :
3426 withval=$with_gif;
3427 else
3428 with_gif=yes
3429 fi
3430
3431
3432 # Check whether --with-png was given.
3433 if test "${with_png+set}" = set; then :
3434 withval=$with_png;
3435 else
3436 with_png=yes
3437 fi
3438
3439
3440 # Check whether --with-rsvg was given.
3441 if test "${with_rsvg+set}" = set; then :
3442 withval=$with_rsvg;
3443 else
3444 with_rsvg=yes
3445 fi
3446
3447
3448 # Check whether --with-xml2 was given.
3449 if test "${with_xml2+set}" = set; then :
3450 withval=$with_xml2;
3451 else
3452 with_xml2=yes
3453 fi
3454
3455
3456 # Check whether --with-imagemagick was given.
3457 if test "${with_imagemagick+set}" = set; then :
3458 withval=$with_imagemagick;
3459 else
3460 with_imagemagick=yes
3461 fi
3462
3463
3464
3465 # Check whether --with-xft was given.
3466 if test "${with_xft+set}" = set; then :
3467 withval=$with_xft;
3468 else
3469 with_xft=yes
3470 fi
3471
3472
3473 # Check whether --with-libotf was given.
3474 if test "${with_libotf+set}" = set; then :
3475 withval=$with_libotf;
3476 else
3477 with_libotf=yes
3478 fi
3479
3480
3481 # Check whether --with-m17n-flt was given.
3482 if test "${with_m17n_flt+set}" = set; then :
3483 withval=$with_m17n_flt;
3484 else
3485 with_m17n_flt=yes
3486 fi
3487
3488
3489
3490 # Check whether --with-toolkit-scroll-bars was given.
3491 if test "${with_toolkit_scroll_bars+set}" = set; then :
3492 withval=$with_toolkit_scroll_bars;
3493 else
3494 with_toolkit_scroll_bars=yes
3495 fi
3496
3497
3498 # Check whether --with-xaw3d was given.
3499 if test "${with_xaw3d+set}" = set; then :
3500 withval=$with_xaw3d;
3501 else
3502 with_xaw3d=yes
3503 fi
3504
3505
3506 # Check whether --with-xim was given.
3507 if test "${with_xim+set}" = set; then :
3508 withval=$with_xim;
3509 else
3510 with_xim=yes
3511 fi
3512
3513
3514 # Check whether --with-ns was given.
3515 if test "${with_ns+set}" = set; then :
3516 withval=$with_ns;
3517 else
3518 with_ns=no
3519 fi
3520
3521
3522
3523 # Check whether --with-gpm was given.
3524 if test "${with_gpm+set}" = set; then :
3525 withval=$with_gpm;
3526 else
3527 with_gpm=yes
3528 fi
3529
3530
3531 # Check whether --with-dbus was given.
3532 if test "${with_dbus+set}" = set; then :
3533 withval=$with_dbus;
3534 else
3535 with_dbus=yes
3536 fi
3537
3538
3539 # Check whether --with-gconf was given.
3540 if test "${with_gconf+set}" = set; then :
3541 withval=$with_gconf;
3542 else
3543 with_gconf=yes
3544 fi
3545
3546
3547 # Check whether --with-selinux was given.
3548 if test "${with_selinux+set}" = set; then :
3549 withval=$with_selinux;
3550 else
3551 with_selinux=yes
3552 fi
3553
3554
3555 # Check whether --with-gnutls was given.
3556 if test "${with_gnutls+set}" = set; then :
3557 withval=$with_gnutls;
3558 else
3559 with_gnutls=yes
3560 fi
3561
3562
3563 ## For the times when you want to build Emacs but don't have
3564 ## a suitable makeinfo, and can live without the manuals.
3565
3566 # Check whether --with-makeinfo was given.
3567 if test "${with_makeinfo+set}" = set; then :
3568 withval=$with_makeinfo;
3569 else
3570 with_makeinfo=yes
3571 fi
3572
3573
3574 ## This is an option because I do not know if all info/man support
3575 ## compressed files, nor how to test if they do so.
3576
3577 # Check whether --with-compress-info was given.
3578 if test "${with_compress_info+set}" = set; then :
3579 withval=$with_compress_info;
3580 else
3581 with_compress_info=yes
3582 fi
3583
3584 if test $with_compress_info = yes; then
3585 GZIP_INFO=yes
3586 else
3587 GZIP_INFO=
3588 fi
3589
3590
3591
3592 # Check whether --with-pkg-config-prog was given.
3593 if test "${with_pkg_config_prog+set}" = set; then :
3594 withval=$with_pkg_config_prog;
3595 fi
3596
3597 if test "X${with_pkg_config_prog}" != X; then
3598 if test "${with_pkg_config_prog}" != yes; then
3599 PKG_CONFIG="${with_pkg_config_prog}"
3600 fi
3601 fi
3602
3603 CRT_DIR=
3604
3605 # Check whether --with-crt-dir was given.
3606 if test "${with_crt_dir+set}" = set; then :
3607 withval=$with_crt_dir;
3608 fi
3609
3610 CRT_DIR="${with_crt_dir}"
3611
3612
3613 # Check whether --with-gameuser was given.
3614 if test "${with_gameuser+set}" = set; then :
3615 withval=$with_gameuser;
3616 fi
3617
3618 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3619 && gameuser="${with_gameuser}"
3620 test "X$gameuser" = X && gameuser=games
3621
3622
3623 # Check whether --with-gnustep-conf was given.
3624 if test "${with_gnustep_conf+set}" = set; then :
3625 withval=$with_gnustep_conf;
3626 fi
3627
3628 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3629 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3630 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3631 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3632
3633 # Check whether --enable-ns-self-contained was given.
3634 if test "${enable_ns_self_contained+set}" = set; then :
3635 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3636 else
3637 EN_NS_SELF_CONTAINED=yes
3638 fi
3639
3640
3641 # Check whether --enable-asserts was given.
3642 if test "${enable_asserts+set}" = set; then :
3643 enableval=$enable_asserts; USE_XASSERTS=$enableval
3644 else
3645 USE_XASSERTS=no
3646 fi
3647
3648
3649 # Check whether --enable-maintainer-mode was given.
3650 if test "${enable_maintainer_mode+set}" = set; then :
3651 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3652 else
3653 USE_MAINTAINER_MODE=no
3654 fi
3655
3656 if test $USE_MAINTAINER_MODE = yes; then
3657 MAINT=
3658 else
3659 MAINT=#
3660 fi
3661
3662
3663 # Check whether --enable-locallisppath was given.
3664 if test "${enable_locallisppath+set}" = set; then :
3665 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3666 locallisppath=
3667 elif test "${enableval}" != "yes"; then
3668 locallisppath=${enableval}
3669 fi
3670 fi
3671
3672
3673 # Check whether --enable-checking was given.
3674 if test "${enable_checking+set}" = set; then :
3675 enableval=$enable_checking; ac_checking_flags="${enableval}"
3676 fi
3677
3678 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3679 for check in $ac_checking_flags
3680 do
3681 case $check in
3682 # these set all the flags to specific states
3683 yes) ac_enable_checking=1 ;;
3684 no) ac_enable_checking= ;
3685 ac_gc_check_stringbytes= ;
3686 ac_gc_check_string_overrun= ;
3687 ac_gc_check_string_free_list= ;
3688 ac_xmalloc_overrun= ;
3689 ac_gc_check_cons_list= ;;
3690 all) ac_enable_checking=1 ;
3691 ac_gc_check_stringbytes=1 ;
3692 ac_gc_check_string_overrun=1 ;
3693 ac_gc_check_string_free_list=1 ;
3694 ac_xmalloc_overrun=1 ;
3695 ac_gc_check_cons_list=1 ;;
3696 # these enable particular checks
3697 stringbytes) ac_gc_check_stringbytes=1 ;;
3698 stringoverrun) ac_gc_check_string_overrun=1 ;;
3699 stringfreelist) ac_gc_check_string_free_list=1 ;;
3700 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3701 conslist) ac_gc_check_cons_list=1 ;;
3702 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3703 esac
3704 done
3705 IFS="$ac_save_IFS"
3706
3707 if test x$ac_enable_checking != x ; then
3708
3709 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3710
3711 fi
3712 if test x$ac_gc_check_stringbytes != x ; then
3713
3714 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3715
3716 fi
3717 if test x$ac_gc_check_stringoverrun != x ; then
3718
3719 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3720
3721 fi
3722 if test x$ac_gc_check_string_free_list != x ; then
3723
3724 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3725
3726 fi
3727 if test x$ac_xmalloc_overrun != x ; then
3728
3729 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3730
3731 fi
3732 if test x$ac_gc_check_cons_list != x ; then
3733
3734 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3735
3736 fi
3737
3738 # Check whether --enable-use-lisp-union-type was given.
3739 if test "${enable_use_lisp_union_type+set}" = set; then :
3740 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3741
3742 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3743
3744 fi
3745 fi
3746
3747
3748
3749 # Check whether --enable-profiling was given.
3750 if test "${enable_profiling+set}" = set; then :
3751 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3752 fi
3753
3754 if test x$ac_enable_profiling != x ; then
3755 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3756 else
3757 PROFILING_CFLAGS=
3758 fi
3759
3760
3761 # Check whether --enable-autodepend was given.
3762 if test "${enable_autodepend+set}" = set; then :
3763 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3764 else
3765 ac_enable_autodepend=yes
3766 fi
3767
3768
3769 #### Make srcdir absolute, if it isn't already. It's important to
3770 #### avoid running the path through pwd unnecessarily, since pwd can
3771 #### give you automounter prefixes, which can go away. We do all this
3772 #### so Emacs can find its files when run uninstalled.
3773 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3774 unset CDPATH
3775 case "${srcdir}" in
3776 /* ) ;;
3777 . )
3778 ## We may be able to use the $PWD environment variable to make this
3779 ## absolute. But sometimes PWD is inaccurate.
3780 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3781 ## but that tested only for a well-formed and valid PWD,
3782 ## it did not object when PWD was well-formed and valid but just wrong.
3783 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3784 then
3785 srcdir="$PWD"
3786 else
3787 srcdir="`(cd ${srcdir}; pwd)`"
3788 fi
3789 ;;
3790 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3791 esac
3792
3793 #### Check if the source directory already has a configured system in it.
3794 if test `pwd` != `(cd ${srcdir} && pwd)` \
3795 && test -f "${srcdir}/src/config.h" ; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3797 as a build directory right now; it has been configured in its own
3798 right. To configure in another directory as well, you MUST
3799 use GNU make. If you do not have GNU make, then you must
3800 now do \`make distclean' in ${srcdir},
3801 and then run $0 again." >&5
3802 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3803 as a build directory right now; it has been configured in its own
3804 right. To configure in another directory as well, you MUST
3805 use GNU make. If you do not have GNU make, then you must
3806 now do \`make distclean' in ${srcdir},
3807 and then run $0 again." >&2;}
3808 fi
3809
3810 #### Given the configuration name, set machfile and opsysfile to the
3811 #### names of the m/*.h and s/*.h files we should use.
3812
3813 ### Canonicalize the configuration name.
3814
3815 # Make sure we can run config.sub.
3816 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3817 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3820 $as_echo_n "checking build system type... " >&6; }
3821 if ${ac_cv_build+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 ac_build_alias=$build_alias
3825 test "x$ac_build_alias" = x &&
3826 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3827 test "x$ac_build_alias" = x &&
3828 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3829 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3830 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3831
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3834 $as_echo "$ac_cv_build" >&6; }
3835 case $ac_cv_build in
3836 *-*-*) ;;
3837 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3838 esac
3839 build=$ac_cv_build
3840 ac_save_IFS=$IFS; IFS='-'
3841 set x $ac_cv_build
3842 shift
3843 build_cpu=$1
3844 build_vendor=$2
3845 shift; shift
3846 # Remember, the first character of IFS is used to create $*,
3847 # except with old shells:
3848 build_os=$*
3849 IFS=$ac_save_IFS
3850 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3851
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3854 $as_echo_n "checking host system type... " >&6; }
3855 if ${ac_cv_host+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 if test "x$host_alias" = x; then
3859 ac_cv_host=$ac_cv_build
3860 else
3861 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3862 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3863 fi
3864
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3867 $as_echo "$ac_cv_host" >&6; }
3868 case $ac_cv_host in
3869 *-*-*) ;;
3870 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3871 esac
3872 host=$ac_cv_host
3873 ac_save_IFS=$IFS; IFS='-'
3874 set x $ac_cv_host
3875 shift
3876 host_cpu=$1
3877 host_vendor=$2
3878 shift; shift
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3881 host_os=$*
3882 IFS=$ac_save_IFS
3883 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3884
3885
3886 canonical=$host
3887 configuration=${host_alias-${build_alias-$host}}
3888
3889
3890
3891 ### If you add support for a new configuration, add code to this
3892 ### switch statement to recognize your configuration name and select
3893 ### the appropriate operating system and machine description files.
3894
3895 ### You would hope that you could choose an m/*.h file pretty much
3896 ### based on the machine portion of the configuration name, and an s/*.h
3897 ### file based on the operating system portion. However, it turns out
3898 ### that each m/*.h file is pretty manufacturer-specific - for
3899 ### example mips.h is MIPS
3900 ### So we basically have to have a special case for each
3901 ### configuration name.
3902 ###
3903 ### As far as handling version numbers on operating systems is
3904 ### concerned, make sure things will fail in a fixable way. If
3905 ### /etc/MACHINES doesn't say anything about version numbers, be
3906 ### prepared to handle anything reasonably. If version numbers
3907 ### matter, be sure /etc/MACHINES says something about it.
3908
3909 machine='' opsys='' unported=no
3910 case "${canonical}" in
3911
3912 ## GNU/Linux ports
3913 *-*-linux-gnu*)
3914 opsys=gnu-linux
3915 case ${canonical} in
3916 alpha*) machine=alpha ;;
3917 s390-*) machine=ibms390 ;;
3918 s390x-*) machine=ibms390x ;;
3919 powerpc*) machine=macppc ;;
3920 sparc*) machine=sparc ;;
3921 ia64*) machine=ia64 ;;
3922 m68k*) machine=m68k ;;
3923 x86_64*) machine=amdx86-64 ;;
3924 esac
3925 ;;
3926
3927 ## FreeBSD ports
3928 *-*-freebsd* )
3929 opsys=freebsd
3930 case "${canonical}" in
3931 alpha*) machine=alpha ;;
3932 amd64-*|x86_64-*) machine=amdx86-64 ;;
3933 ia64-*) machine=ia64 ;;
3934 i[3456]86-*) machine=intel386 ;;
3935 powerpc-*) machine=macppc ;;
3936 sparc-*) machine=sparc ;;
3937 sparc64-*) machine=sparc ;;
3938 esac
3939 ;;
3940
3941 ## FreeBSD kernel + glibc based userland
3942 *-*-kfreebsd*gnu* )
3943 opsys=gnu-kfreebsd
3944 case "${canonical}" in
3945 alpha*) machine=alpha ;;
3946 amd64-*|x86_64-*) machine=amdx86-64 ;;
3947 ia64-*) machine=ia64 ;;
3948 i[3456]86-*) machine=intel386 ;;
3949 powerpc-*) machine=macppc ;;
3950 sparc-*) machine=sparc ;;
3951 sparc64-*) machine=sparc ;;
3952 esac
3953 ;;
3954
3955 ## NetBSD ports
3956 *-*-netbsd* )
3957 opsys=netbsd
3958 case "${canonical}" in
3959 alpha*) machine=alpha ;;
3960 x86_64-*) machine=amdx86-64 ;;
3961 i[3456]86-*) machine=intel386 ;;
3962 m68k-*) machine=m68k ;;
3963 powerpc-*) machine=macppc ;;
3964 sparc*-) machine=sparc ;;
3965 vax-*) machine=vax ;;
3966 esac
3967 ;;
3968
3969 ## OpenBSD ports
3970 *-*-openbsd* )
3971 opsys=openbsd
3972 case "${canonical}" in
3973 alpha*) machine=alpha ;;
3974 x86_64-*) machine=amdx86-64 ;;
3975 i386-*) machine=intel386 ;;
3976 powerpc-*) machine=macppc ;;
3977 sparc*) machine=sparc ;;
3978 vax-*) machine=vax ;;
3979 esac
3980 ;;
3981
3982 ## Apple Darwin / Mac OS X
3983 *-apple-darwin* )
3984 case "${canonical}" in
3985 i[3456]86-* ) machine=intel386 ;;
3986 powerpc-* ) machine=macppc ;;
3987 x86_64-* ) machine=amdx86-64 ;;
3988 * ) unported=yes ;;
3989 esac
3990 opsys=darwin
3991 # Define CPP as follows to make autoconf work correctly.
3992 CPP="${CC-cc} -E -no-cpp-precomp"
3993 # Use fink packages if available.
3994 if test -d /sw/include && test -d /sw/lib; then
3995 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3996 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3997 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3998 fi
3999 ;;
4000
4001 ## HP 9000 series 700 and 800, running HP/UX
4002 hppa*-hp-hpux10.2* )
4003 opsys=hpux10-20
4004 ;;
4005 hppa*-hp-hpux1[1-9]* )
4006 opsys=hpux11
4007 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4008 ;;
4009
4010 ## IBM machines
4011 rs6000-ibm-aix4.[23]* )
4012 machine=ibmrs6000 opsys=aix4-2
4013 ;;
4014 powerpc-ibm-aix4.[23]* )
4015 machine=ibmrs6000 opsys=aix4-2
4016 ;;
4017 rs6000-ibm-aix[56]* )
4018 machine=ibmrs6000 opsys=aix4-2
4019 ;;
4020 powerpc-ibm-aix[56]* )
4021 machine=ibmrs6000 opsys=aix4-2
4022 ;;
4023
4024 ## Silicon Graphics machines
4025 ## Iris 4D
4026 mips-sgi-irix6.5 )
4027 machine=iris4d opsys=irix6-5
4028 # Without defining _LANGUAGE_C, things get masked out in the headers
4029 # so that, for instance, grepping for `free' in stdlib.h fails and
4030 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4031 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4032 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4033 ;;
4034
4035 ## Suns
4036 *-sun-solaris* \
4037 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4038 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4039 case "${canonical}" in
4040 i[3456]86-*-* ) machine=intel386 ;;
4041 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4042 sparc* ) machine=sparc ;;
4043 * ) unported=yes ;;
4044 esac
4045 case "${canonical}" in
4046 *-sunos5.6* | *-solaris2.6* )
4047 opsys=sol2-6
4048 NON_GNU_CPP=/usr/ccs/lib/cpp
4049 RANLIB="ar -ts"
4050 ;;
4051 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4052 opsys=sol2-6
4053 emacs_check_sunpro_c=yes
4054 NON_GNU_CPP=/usr/ccs/lib/cpp
4055 ;;
4056 *-sunos5* | *-solaris* )
4057 opsys=sol2-10
4058 emacs_check_sunpro_c=yes
4059 NON_GNU_CPP=/usr/ccs/lib/cpp
4060 ;;
4061 esac
4062 ## Watch out for a compiler that we know will not work.
4063 case "${canonical}" in
4064 *-solaris* | *-sunos5* )
4065 if [ "x$CC" = x/usr/ucb/cc ]; then
4066 ## /usr/ucb/cc doesn't work;
4067 ## we should find some other compiler that does work.
4068 unset CC
4069 fi
4070 ;;
4071 *) ;;
4072 esac
4073 ;;
4074
4075 ## Intel 386 machines where we don't care about the manufacturer.
4076 i[3456]86-*-* )
4077 machine=intel386
4078 case "${canonical}" in
4079 *-cygwin ) opsys=cygwin ;;
4080 *-darwin* ) opsys=darwin
4081 CPP="${CC-cc} -E -no-cpp-precomp"
4082 ;;
4083 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4084 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4085 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4086 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4087 esac
4088 ;;
4089
4090 * )
4091 unported=yes
4092 ;;
4093 esac
4094
4095 ### If the code above didn't choose an operating system, just choose
4096 ### an operating system based on the configuration name. You really
4097 ### only want to use this when you have no idea what the right
4098 ### operating system is; if you know what operating systems a machine
4099 ### runs, it's cleaner to make it explicit in the case statement
4100 ### above.
4101 if test x"${opsys}" = x; then
4102 case "${canonical}" in
4103 *-gnu* ) opsys=gnu ;;
4104 * )
4105 unported=yes
4106 ;;
4107 esac
4108 fi
4109
4110
4111
4112 if test $unported = yes; then
4113 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4114 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4115 fi
4116
4117 if test -n "$machine"; then
4118 machfile="m/${machine}.h"
4119 else
4120 machfile=
4121 fi
4122 opsysfile="s/${opsys}.h"
4123
4124
4125 #### Choose a compiler.
4126 test -n "$CC" && cc_specified=yes
4127
4128 # Save the value of CFLAGS that the user specified.
4129 SPECIFIED_CFLAGS="$CFLAGS"
4130
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_prog_CC+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4157 fi
4158 done
4159 done
4160 IFS=$as_save_IFS
4161
4162 fi
4163 fi
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 $as_echo "$CC" >&6; }
4168 else
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173
4174 fi
4175 if test -z "$ac_cv_prog_CC"; then
4176 ac_ct_CC=$CC
4177 # Extract the first word of "gcc", so it can be a program name with args.
4178 set dummy gcc; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if test -n "$ac_ct_CC"; then
4185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_ac_ct_CC="gcc"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4197 fi
4198 done
4199 done
4200 IFS=$as_save_IFS
4201
4202 fi
4203 fi
4204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4205 if test -n "$ac_ct_CC"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4207 $as_echo "$ac_ct_CC" >&6; }
4208 else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4211 fi
4212
4213 if test "x$ac_ct_CC" = x; then
4214 CC=""
4215 else
4216 case $cross_compiling:$ac_tool_warned in
4217 yes:)
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4220 ac_tool_warned=yes ;;
4221 esac
4222 CC=$ac_ct_CC
4223 fi
4224 else
4225 CC="$ac_cv_prog_CC"
4226 fi
4227
4228 if test -z "$CC"; then
4229 if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4231 set dummy ${ac_tool_prefix}cc; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_CC+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_CC="${ac_tool_prefix}cc"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251 done
4252 done
4253 IFS=$as_save_IFS
4254
4255 fi
4256 fi
4257 CC=$ac_cv_prog_CC
4258 if test -n "$CC"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4260 $as_echo "$CC" >&6; }
4261 else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265
4266
4267 fi
4268 fi
4269 if test -z "$CC"; then
4270 # Extract the first word of "cc", so it can be a program name with args.
4271 set dummy cc; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_CC+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$CC"; then
4278 ac_cv_prog_CC="$CC" # Let the user override the test.
4279 else
4280 ac_prog_rejected=no
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4289 ac_prog_rejected=yes
4290 continue
4291 fi
4292 ac_cv_prog_CC="cc"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4295 fi
4296 done
4297 done
4298 IFS=$as_save_IFS
4299
4300 if test $ac_prog_rejected = yes; then
4301 # We found a bogon in the path, so make sure we never use it.
4302 set dummy $ac_cv_prog_CC
4303 shift
4304 if test $# != 0; then
4305 # We chose a different compiler from the bogus one.
4306 # However, it has the same basename, so the bogon will be chosen
4307 # first if we set CC to just the basename; use the full file name.
4308 shift
4309 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4310 fi
4311 fi
4312 fi
4313 fi
4314 CC=$ac_cv_prog_CC
4315 if test -n "$CC"; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4317 $as_echo "$CC" >&6; }
4318 else
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4321 fi
4322
4323
4324 fi
4325 if test -z "$CC"; then
4326 if test -n "$ac_tool_prefix"; then
4327 for ac_prog in cl.exe
4328 do
4329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_CC+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if test -n "$CC"; then
4337 ac_cv_prog_CC="$CC" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4349 fi
4350 done
4351 done
4352 IFS=$as_save_IFS
4353
4354 fi
4355 fi
4356 CC=$ac_cv_prog_CC
4357 if test -n "$CC"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4359 $as_echo "$CC" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363 fi
4364
4365
4366 test -n "$CC" && break
4367 done
4368 fi
4369 if test -z "$CC"; then
4370 ac_ct_CC=$CC
4371 for ac_prog in cl.exe
4372 do
4373 # Extract the first word of "$ac_prog", so it can be a program name with args.
4374 set dummy $ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$ac_ct_CC"; then
4381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_ac_ct_CC="$ac_prog"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4401 if test -n "$ac_ct_CC"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4403 $as_echo "$ac_ct_CC" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408
4409
4410 test -n "$ac_ct_CC" && break
4411 done
4412
4413 if test "x$ac_ct_CC" = x; then
4414 CC=""
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417 yes:)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4421 esac
4422 CC=$ac_ct_CC
4423 fi
4424 fi
4425
4426 fi
4427
4428
4429 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4431 as_fn_error $? "no acceptable C compiler found in \$PATH
4432 See \`config.log' for more details" "$LINENO" 5; }
4433
4434 # Provide some information about the compiler.
4435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4436 set X $ac_compile
4437 ac_compiler=$2
4438 for ac_option in --version -v -V -qversion; do
4439 { { ac_try="$ac_compiler $ac_option >&5"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4447 ac_status=$?
4448 if test -s conftest.err; then
4449 sed '10a\
4450 ... rest of stderr output deleted ...
4451 10q' conftest.err >conftest.er1
4452 cat conftest.er1 >&5
4453 fi
4454 rm -f conftest.er1 conftest.err
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }
4457 done
4458
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461
4462 int
4463 main ()
4464 {
4465
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 ac_clean_files_save=$ac_clean_files
4471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4472 # Try to create an executable without -o first, disregard a.out.
4473 # It will help us diagnose broken compilers, and finding out an intuition
4474 # of exeext.
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4476 $as_echo_n "checking whether the C compiler works... " >&6; }
4477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4478
4479 # The possible output files:
4480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4481
4482 ac_rmfiles=
4483 for ac_file in $ac_files
4484 do
4485 case $ac_file in
4486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4487 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4488 esac
4489 done
4490 rm -f $ac_rmfiles
4491
4492 if { { ac_try="$ac_link_default"
4493 case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496 esac
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_link_default") 2>&5
4500 ac_status=$?
4501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502 test $ac_status = 0; }; then :
4503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4506 # so that the user can short-circuit this test for compilers unknown to
4507 # Autoconf.
4508 for ac_file in $ac_files ''
4509 do
4510 test -f "$ac_file" || continue
4511 case $ac_file in
4512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4513 ;;
4514 [ab].out )
4515 # We found the default executable, but exeext='' is most
4516 # certainly right.
4517 break;;
4518 *.* )
4519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4520 then :; else
4521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4522 fi
4523 # We set ac_cv_exeext here because the later test for it is not
4524 # safe: cross compilers may not add the suffix if given an `-o'
4525 # argument, so we may need to know it at that point already.
4526 # Even if this section looks crufty: it has the advantage of
4527 # actually working.
4528 break;;
4529 * )
4530 break;;
4531 esac
4532 done
4533 test "$ac_cv_exeext" = no && ac_cv_exeext=
4534
4535 else
4536 ac_file=''
4537 fi
4538 if test -z "$ac_file"; then :
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 $as_echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error 77 "C compiler cannot create executables
4547 See \`config.log' for more details" "$LINENO" 5; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4550 $as_echo "yes" >&6; }
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4553 $as_echo_n "checking for C compiler default output file name... " >&6; }
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4555 $as_echo "$ac_file" >&6; }
4556 ac_exeext=$ac_cv_exeext
4557
4558 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4559 ac_clean_files=$ac_clean_files_save
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4561 $as_echo_n "checking for suffix of executables... " >&6; }
4562 if { { ac_try="$ac_link"
4563 case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566 esac
4567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568 $as_echo "$ac_try_echo"; } >&5
4569 (eval "$ac_link") 2>&5
4570 ac_status=$?
4571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4572 test $ac_status = 0; }; then :
4573 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4574 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4575 # work properly (i.e., refer to `conftest.exe'), while it won't with
4576 # `rm'.
4577 for ac_file in conftest.exe conftest conftest.*; do
4578 test -f "$ac_file" || continue
4579 case $ac_file in
4580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4582 break;;
4583 * ) break;;
4584 esac
4585 done
4586 else
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4590 See \`config.log' for more details" "$LINENO" 5; }
4591 fi
4592 rm -f conftest conftest$ac_cv_exeext
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4594 $as_echo "$ac_cv_exeext" >&6; }
4595
4596 rm -f conftest.$ac_ext
4597 EXEEXT=$ac_cv_exeext
4598 ac_exeext=$EXEEXT
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4601 #include <stdio.h>
4602 int
4603 main ()
4604 {
4605 FILE *f = fopen ("conftest.out", "w");
4606 return ferror (f) || fclose (f) != 0;
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 ac_clean_files="$ac_clean_files conftest.out"
4613 # Check that the compiler produces executables we can run. If not, either
4614 # the compiler is broken, or we cross compile.
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4616 $as_echo_n "checking whether we are cross compiling... " >&6; }
4617 if test "$cross_compiling" != yes; then
4618 { { ac_try="$ac_link"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_link") 2>&5
4626 ac_status=$?
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4629 if { ac_try='./conftest$ac_cv_exeext'
4630 { { case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635 $as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_try") 2>&5
4637 ac_status=$?
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }; }; then
4640 cross_compiling=no
4641 else
4642 if test "$cross_compiling" = maybe; then
4643 cross_compiling=yes
4644 else
4645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "cannot run C compiled programs.
4648 If you meant to cross compile, use \`--host'.
4649 See \`config.log' for more details" "$LINENO" 5; }
4650 fi
4651 fi
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4654 $as_echo "$cross_compiling" >&6; }
4655
4656 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4657 ac_clean_files=$ac_clean_files_save
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4659 $as_echo_n "checking for suffix of object files... " >&6; }
4660 if ${ac_cv_objext+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665
4666 int
4667 main ()
4668 {
4669
4670 ;
4671 return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.o conftest.obj
4675 if { { ac_try="$ac_compile"
4676 case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681 $as_echo "$ac_try_echo"; } >&5
4682 (eval "$ac_compile") 2>&5
4683 ac_status=$?
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }; then :
4686 for ac_file in conftest.o conftest.obj conftest.*; do
4687 test -f "$ac_file" || continue;
4688 case $ac_file in
4689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4690 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4691 break;;
4692 esac
4693 done
4694 else
4695 $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4700 as_fn_error $? "cannot compute suffix of object files: cannot compile
4701 See \`config.log' for more details" "$LINENO" 5; }
4702 fi
4703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4706 $as_echo "$ac_cv_objext" >&6; }
4707 OBJEXT=$ac_cv_objext
4708 ac_objext=$OBJEXT
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4711 if ${ac_cv_c_compiler_gnu+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716
4717 int
4718 main ()
4719 {
4720 #ifndef __GNUC__
4721 choke me
4722 #endif
4723
4724 ;
4725 return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729 ac_compiler_gnu=yes
4730 else
4731 ac_compiler_gnu=no
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4735
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4739 if test $ac_compiler_gnu = yes; then
4740 GCC=yes
4741 else
4742 GCC=
4743 fi
4744 ac_test_CFLAGS=${CFLAGS+set}
4745 ac_save_CFLAGS=$CFLAGS
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4748 if ${ac_cv_prog_cc_g+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 ac_save_c_werror_flag=$ac_c_werror_flag
4752 ac_c_werror_flag=yes
4753 ac_cv_prog_cc_g=no
4754 CFLAGS="-g"
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757
4758 int
4759 main ()
4760 {
4761
4762 ;
4763 return 0;
4764 }
4765 _ACEOF
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767 ac_cv_prog_cc_g=yes
4768 else
4769 CFLAGS=""
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772
4773 int
4774 main ()
4775 {
4776
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782
4783 else
4784 ac_c_werror_flag=$ac_save_c_werror_flag
4785 CFLAGS="-g"
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788
4789 int
4790 main ()
4791 {
4792
4793 ;
4794 return 0;
4795 }
4796 _ACEOF
4797 if ac_fn_c_try_compile "$LINENO"; then :
4798 ac_cv_prog_cc_g=yes
4799 fi
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 ac_c_werror_flag=$ac_save_c_werror_flag
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4808 $as_echo "$ac_cv_prog_cc_g" >&6; }
4809 if test "$ac_test_CFLAGS" = set; then
4810 CFLAGS=$ac_save_CFLAGS
4811 elif test $ac_cv_prog_cc_g = yes; then
4812 if test "$GCC" = yes; then
4813 CFLAGS="-g -O2"
4814 else
4815 CFLAGS="-g"
4816 fi
4817 else
4818 if test "$GCC" = yes; then
4819 CFLAGS="-O2"
4820 else
4821 CFLAGS=
4822 fi
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4826 if ${ac_cv_prog_cc_c89+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 ac_cv_prog_cc_c89=no
4830 ac_save_CC=$CC
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #include <stdarg.h>
4834 #include <stdio.h>
4835 #include <sys/types.h>
4836 #include <sys/stat.h>
4837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4838 struct buf { int x; };
4839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4840 static char *e (p, i)
4841 char **p;
4842 int i;
4843 {
4844 return p[i];
4845 }
4846 static char *f (char * (*g) (char **, int), char **p, ...)
4847 {
4848 char *s;
4849 va_list v;
4850 va_start (v,p);
4851 s = g (p, va_arg (v,int));
4852 va_end (v);
4853 return s;
4854 }
4855
4856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4857 function prototypes and stuff, but not '\xHH' hex character constants.
4858 These don't provoke an error unfortunately, instead are silently treated
4859 as 'x'. The following induces an error, until -std is added to get
4860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4861 array size at least. It's necessary to write '\x00'==0 to get something
4862 that's true only with -std. */
4863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4864
4865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4866 inside strings and character constants. */
4867 #define FOO(x) 'x'
4868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4869
4870 int test (int i, double x);
4871 struct s1 {int (*f) (int a);};
4872 struct s2 {int (*f) (double a);};
4873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4874 int argc;
4875 char **argv;
4876 int
4877 main ()
4878 {
4879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4886 do
4887 CC="$ac_save_CC $ac_arg"
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_prog_cc_c89=$ac_arg
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext
4892 test "x$ac_cv_prog_cc_c89" != "xno" && break
4893 done
4894 rm -f conftest.$ac_ext
4895 CC=$ac_save_CC
4896
4897 fi
4898 # AC_CACHE_VAL
4899 case "x$ac_cv_prog_cc_c89" in
4900 x)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902 $as_echo "none needed" >&6; } ;;
4903 xno)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905 $as_echo "unsupported" >&6; } ;;
4906 *)
4907 CC="$CC $ac_cv_prog_cc_c89"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4910 esac
4911 if test "x$ac_cv_prog_cc_c89" != xno; then :
4912
4913 fi
4914
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 DEPDIR="${am__leading_dot}deps"
4921
4922 ac_config_commands="$ac_config_commands depfiles"
4923
4924
4925 am_make=${MAKE-make}
4926 cat > confinc << 'END'
4927 am__doit:
4928 @echo this is the am__doit target
4929 .PHONY: am__doit
4930 END
4931 # If we don't find an include directive, just comment out the code.
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4933 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4934 am__include="#"
4935 am__quote=
4936 _am_result=none
4937 # First try GNU make style include.
4938 echo "include confinc" > confmf
4939 # Ignore all kinds of additional output from `make'.
4940 case `$am_make -s -f confmf 2> /dev/null` in #(
4941 *the\ am__doit\ target*)
4942 am__include=include
4943 am__quote=
4944 _am_result=GNU
4945 ;;
4946 esac
4947 # Now try BSD make style include.
4948 if test "$am__include" = "#"; then
4949 echo '.include "confinc"' > confmf
4950 case `$am_make -s -f confmf 2> /dev/null` in #(
4951 *the\ am__doit\ target*)
4952 am__include=.include
4953 am__quote="\""
4954 _am_result=BSD
4955 ;;
4956 esac
4957 fi
4958
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4961 $as_echo "$_am_result" >&6; }
4962 rm -f confinc confmf
4963
4964 # Check whether --enable-dependency-tracking was given.
4965 if test "${enable_dependency_tracking+set}" = set; then :
4966 enableval=$enable_dependency_tracking;
4967 fi
4968
4969 if test "x$enable_dependency_tracking" != xno; then
4970 am_depcomp="$ac_aux_dir/depcomp"
4971 AMDEPBACKSLASH='\'
4972 fi
4973 if test "x$enable_dependency_tracking" != xno; then
4974 AMDEP_TRUE=
4975 AMDEP_FALSE='#'
4976 else
4977 AMDEP_TRUE='#'
4978 AMDEP_FALSE=
4979 fi
4980
4981
4982
4983 depcc="$CC" am_compiler_list=
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4986 $as_echo_n "checking dependency style of $depcc... " >&6; }
4987 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4991 # We make a subdir and do the tests there. Otherwise we can end up
4992 # making bogus files that we don't know about and never remove. For
4993 # instance it was reported that on HP-UX the gcc test will end up
4994 # making a dummy file named `D' -- because `-MD' means `put the output
4995 # in D'.
4996 mkdir conftest.dir
4997 # Copy depcomp to subdir because otherwise we won't find it if we're
4998 # using a relative directory.
4999 cp "$am_depcomp" conftest.dir
5000 cd conftest.dir
5001 # We will build objects and dependencies in a subdirectory because
5002 # it helps to detect inapplicable dependency modes. For instance
5003 # both Tru64's cc and ICC support -MD to output dependencies as a
5004 # side effect of compilation, but ICC will put the dependencies in
5005 # the current directory while Tru64 will put them in the object
5006 # directory.
5007 mkdir sub
5008
5009 am_cv_CC_dependencies_compiler_type=none
5010 if test "$am_compiler_list" = ""; then
5011 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5012 fi
5013 am__universal=false
5014 case " $depcc " in #(
5015 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5016 esac
5017
5018 for depmode in $am_compiler_list; do
5019 # Setup a source with many dependencies, because some compilers
5020 # like to wrap large dependency lists on column 80 (with \), and
5021 # we should not choose a depcomp mode which is confused by this.
5022 #
5023 # We need to recreate these files for each test, as the compiler may
5024 # overwrite some of them when testing with obscure command lines.
5025 # This happens at least with the AIX C compiler.
5026 : > sub/conftest.c
5027 for i in 1 2 3 4 5 6; do
5028 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5029 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5030 # Solaris 8's {/usr,}/bin/sh.
5031 touch sub/conftst$i.h
5032 done
5033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5034
5035 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5036 # mode. It turns out that the SunPro C++ compiler does not properly
5037 # handle `-M -o', and we need to detect this. Also, some Intel
5038 # versions had trouble with output in subdirs
5039 am__obj=sub/conftest.${OBJEXT-o}
5040 am__minus_obj="-o $am__obj"
5041 case $depmode in
5042 gcc)
5043 # This depmode causes a compiler race in universal mode.
5044 test "$am__universal" = false || continue
5045 ;;
5046 nosideeffect)
5047 # after this tag, mechanisms are not by side-effect, so they'll
5048 # only be used when explicitly requested
5049 if test "x$enable_dependency_tracking" = xyes; then
5050 continue
5051 else
5052 break
5053 fi
5054 ;;
5055 msvisualcpp | msvcmsys)
5056 # This compiler won't grok `-c -o', but also, the minuso test has
5057 # not run yet. These depmodes are late enough in the game, and
5058 # so weak that their functioning should not be impacted.
5059 am__obj=conftest.${OBJEXT-o}
5060 am__minus_obj=
5061 ;;
5062 none) break ;;
5063 esac
5064 if depmode=$depmode \
5065 source=sub/conftest.c object=$am__obj \
5066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5067 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5068 >/dev/null 2>conftest.err &&
5069 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5070 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5071 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5072 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5073 # icc doesn't choke on unknown options, it will just issue warnings
5074 # or remarks (even with -Werror). So we grep stderr for any message
5075 # that says an option was ignored or not supported.
5076 # When given -MP, icc 7.0 and 7.1 complain thusly:
5077 # icc: Command line warning: ignoring option '-M'; no argument required
5078 # The diagnosis changed in icc 8.0:
5079 # icc: Command line remark: option '-MP' not supported
5080 if (grep 'ignoring option' conftest.err ||
5081 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5082 am_cv_CC_dependencies_compiler_type=$depmode
5083 break
5084 fi
5085 fi
5086 done
5087
5088 cd ..
5089 rm -rf conftest.dir
5090 else
5091 am_cv_CC_dependencies_compiler_type=none
5092 fi
5093
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5096 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5097 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5098
5099 if
5100 test "x$enable_dependency_tracking" != xno \
5101 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5102 am__fastdepCC_TRUE=
5103 am__fastdepCC_FALSE='#'
5104 else
5105 am__fastdepCC_TRUE='#'
5106 am__fastdepCC_FALSE=
5107 fi
5108
5109
5110 if test "x$CC" != xcc; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5112 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5115 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5116 fi
5117 set dummy $CC; ac_cc=`$as_echo "$2" |
5118 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5119 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124
5125 int
5126 main ()
5127 {
5128
5129 ;
5130 return 0;
5131 }
5132 _ACEOF
5133 # Make sure it works both with $CC and with simple cc.
5134 # We do the test twice because some compilers refuse to overwrite an
5135 # existing .o file with -o, though they will create one.
5136 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5137 rm -f conftest2.*
5138 if { { case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141 esac
5142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5143 $as_echo "$ac_try_echo"; } >&5
5144 (eval "$ac_try") 2>&5
5145 ac_status=$?
5146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5147 test $ac_status = 0; } &&
5148 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5153 $as_echo "$ac_try_echo"; } >&5
5154 (eval "$ac_try") 2>&5
5155 ac_status=$?
5156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5157 test $ac_status = 0; };
5158 then
5159 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5160 if test "x$CC" != xcc; then
5161 # Test first that cc exists at all.
5162 if { ac_try='cc -c conftest.$ac_ext >&5'
5163 { { case "(($ac_try" in
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5166 esac
5167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5168 $as_echo "$ac_try_echo"; } >&5
5169 (eval "$ac_try") 2>&5
5170 ac_status=$?
5171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5172 test $ac_status = 0; }; }; then
5173 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5174 rm -f conftest2.*
5175 if { { case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180 $as_echo "$ac_try_echo"; } >&5
5181 (eval "$ac_try") 2>&5
5182 ac_status=$?
5183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; } &&
5185 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5190 $as_echo "$ac_try_echo"; } >&5
5191 (eval "$ac_try") 2>&5
5192 ac_status=$?
5193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5194 test $ac_status = 0; };
5195 then
5196 # cc works too.
5197 :
5198 else
5199 # cc exists but doesn't like -o.
5200 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5201 fi
5202 fi
5203 fi
5204 else
5205 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5206 fi
5207 rm -f core conftest*
5208
5209 fi
5210 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212 $as_echo "yes" >&6; }
5213 else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216
5217 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5218
5219 fi
5220
5221 # FIXME: we rely on the cache variable name because
5222 # there is no other way.
5223 set dummy $CC
5224 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5225 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5226 if test "$am_t" != yes; then
5227 # Losing compiler, so override with the script.
5228 # FIXME: It is wrong to rewrite CC.
5229 # But if we don't then we get into trouble of one sort or another.
5230 # A longer-term fix would be to have automake use am__CC in this case,
5231 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5232 CC="$am_aux_dir/compile $CC"
5233 fi
5234
5235
5236
5237 # Initialize gnulib right after verifying that the C compiler works.
5238 if test -n "$ac_tool_prefix"; then
5239 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5240 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_prog_RANLIB+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -n "$RANLIB"; then
5247 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260 done
5261 done
5262 IFS=$as_save_IFS
5263
5264 fi
5265 fi
5266 RANLIB=$ac_cv_prog_RANLIB
5267 if test -n "$RANLIB"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5269 $as_echo "$RANLIB" >&6; }
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5273 fi
5274
5275
5276 fi
5277 if test -z "$ac_cv_prog_RANLIB"; then
5278 ac_ct_RANLIB=$RANLIB
5279 # Extract the first word of "ranlib", so it can be a program name with args.
5280 set dummy ranlib; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 if test -n "$ac_ct_RANLIB"; then
5287 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_prog_ac_ct_RANLIB="ranlib"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 fi
5305 fi
5306 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5307 if test -n "$ac_ct_RANLIB"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5309 $as_echo "$ac_ct_RANLIB" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315 if test "x$ac_ct_RANLIB" = x; then
5316 RANLIB=":"
5317 else
5318 case $cross_compiling:$ac_tool_warned in
5319 yes:)
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5322 ac_tool_warned=yes ;;
5323 esac
5324 RANLIB=$ac_ct_RANLIB
5325 fi
5326 else
5327 RANLIB="$ac_cv_prog_RANLIB"
5328 fi
5329
5330
5331 ac_ext=c
5332 ac_cpp='$CPP $CPPFLAGS'
5333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5337 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5338 # On Suns, sometimes $CPP names a directory.
5339 if test -n "$CPP" && test -d "$CPP"; then
5340 CPP=
5341 fi
5342 if test -z "$CPP"; then
5343 if ${ac_cv_prog_CPP+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 # Double quotes because CPP needs to be expanded
5347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5348 do
5349 ac_preproc_ok=false
5350 for ac_c_preproc_warn_flag in '' yes
5351 do
5352 # Use a header file that comes with gcc, so configuring glibc
5353 # with a fresh cross-compiler works.
5354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355 # <limits.h> exists even on freestanding compilers.
5356 # On the NeXT, cc -E runs the code through the compiler's parser,
5357 # not just through cpp. "Syntax error" is here to catch this case.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 #ifdef __STDC__
5361 # include <limits.h>
5362 #else
5363 # include <assert.h>
5364 #endif
5365 Syntax error
5366 _ACEOF
5367 if ac_fn_c_try_cpp "$LINENO"; then :
5368
5369 else
5370 # Broken: fails on valid input.
5371 continue
5372 fi
5373 rm -f conftest.err conftest.i conftest.$ac_ext
5374
5375 # OK, works on sane cases. Now check whether nonexistent headers
5376 # can be detected and how.
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 #include <ac_nonexistent.h>
5380 _ACEOF
5381 if ac_fn_c_try_cpp "$LINENO"; then :
5382 # Broken: success on invalid input.
5383 continue
5384 else
5385 # Passes both tests.
5386 ac_preproc_ok=:
5387 break
5388 fi
5389 rm -f conftest.err conftest.i conftest.$ac_ext
5390
5391 done
5392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5393 rm -f conftest.i conftest.err conftest.$ac_ext
5394 if $ac_preproc_ok; then :
5395 break
5396 fi
5397
5398 done
5399 ac_cv_prog_CPP=$CPP
5400
5401 fi
5402 CPP=$ac_cv_prog_CPP
5403 else
5404 ac_cv_prog_CPP=$CPP
5405 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5407 $as_echo "$CPP" >&6; }
5408 ac_preproc_ok=false
5409 for ac_c_preproc_warn_flag in '' yes
5410 do
5411 # Use a header file that comes with gcc, so configuring glibc
5412 # with a fresh cross-compiler works.
5413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5414 # <limits.h> exists even on freestanding compilers.
5415 # On the NeXT, cc -E runs the code through the compiler's parser,
5416 # not just through cpp. "Syntax error" is here to catch this case.
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #ifdef __STDC__
5420 # include <limits.h>
5421 #else
5422 # include <assert.h>
5423 #endif
5424 Syntax error
5425 _ACEOF
5426 if ac_fn_c_try_cpp "$LINENO"; then :
5427
5428 else
5429 # Broken: fails on valid input.
5430 continue
5431 fi
5432 rm -f conftest.err conftest.i conftest.$ac_ext
5433
5434 # OK, works on sane cases. Now check whether nonexistent headers
5435 # can be detected and how.
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #include <ac_nonexistent.h>
5439 _ACEOF
5440 if ac_fn_c_try_cpp "$LINENO"; then :
5441 # Broken: success on invalid input.
5442 continue
5443 else
5444 # Passes both tests.
5445 ac_preproc_ok=:
5446 break
5447 fi
5448 rm -f conftest.err conftest.i conftest.$ac_ext
5449
5450 done
5451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5452 rm -f conftest.i conftest.err conftest.$ac_ext
5453 if $ac_preproc_ok; then :
5454
5455 else
5456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5458 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5459 See \`config.log' for more details" "$LINENO" 5; }
5460 fi
5461
5462 ac_ext=c
5463 ac_cpp='$CPP $CPPFLAGS'
5464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
5468
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5470 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5471 if ${ac_cv_path_GREP+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if test -z "$GREP"; then
5475 ac_path_GREP_found=false
5476 # Loop through the user's path and test for each of PROGNAME-LIST
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5479 do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_prog in grep ggrep; do
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5485 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5486 # Check for GNU ac_path_GREP and select it if it is found.
5487 # Check for GNU $ac_path_GREP
5488 case `"$ac_path_GREP" --version 2>&1` in
5489 *GNU*)
5490 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5491 *)
5492 ac_count=0
5493 $as_echo_n 0123456789 >"conftest.in"
5494 while :
5495 do
5496 cat "conftest.in" "conftest.in" >"conftest.tmp"
5497 mv "conftest.tmp" "conftest.in"
5498 cp "conftest.in" "conftest.nl"
5499 $as_echo 'GREP' >> "conftest.nl"
5500 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5502 as_fn_arith $ac_count + 1 && ac_count=$as_val
5503 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5504 # Best one so far, save it but keep looking for a better one
5505 ac_cv_path_GREP="$ac_path_GREP"
5506 ac_path_GREP_max=$ac_count
5507 fi
5508 # 10*(2^10) chars as input seems more than enough
5509 test $ac_count -gt 10 && break
5510 done
5511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5512 esac
5513
5514 $ac_path_GREP_found && break 3
5515 done
5516 done
5517 done
5518 IFS=$as_save_IFS
5519 if test -z "$ac_cv_path_GREP"; then
5520 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5521 fi
5522 else
5523 ac_cv_path_GREP=$GREP
5524 fi
5525
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5528 $as_echo "$ac_cv_path_GREP" >&6; }
5529 GREP="$ac_cv_path_GREP"
5530
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5533 $as_echo_n "checking for egrep... " >&6; }
5534 if ${ac_cv_path_EGREP+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5538 then ac_cv_path_EGREP="$GREP -E"
5539 else
5540 if test -z "$EGREP"; then
5541 ac_path_EGREP_found=false
5542 # Loop through the user's path and test for each of PROGNAME-LIST
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_prog in egrep; do
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5551 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5552 # Check for GNU ac_path_EGREP and select it if it is found.
5553 # Check for GNU $ac_path_EGREP
5554 case `"$ac_path_EGREP" --version 2>&1` in
5555 *GNU*)
5556 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5557 *)
5558 ac_count=0
5559 $as_echo_n 0123456789 >"conftest.in"
5560 while :
5561 do
5562 cat "conftest.in" "conftest.in" >"conftest.tmp"
5563 mv "conftest.tmp" "conftest.in"
5564 cp "conftest.in" "conftest.nl"
5565 $as_echo 'EGREP' >> "conftest.nl"
5566 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5568 as_fn_arith $ac_count + 1 && ac_count=$as_val
5569 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5570 # Best one so far, save it but keep looking for a better one
5571 ac_cv_path_EGREP="$ac_path_EGREP"
5572 ac_path_EGREP_max=$ac_count
5573 fi
5574 # 10*(2^10) chars as input seems more than enough
5575 test $ac_count -gt 10 && break
5576 done
5577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5578 esac
5579
5580 $ac_path_EGREP_found && break 3
5581 done
5582 done
5583 done
5584 IFS=$as_save_IFS
5585 if test -z "$ac_cv_path_EGREP"; then
5586 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5587 fi
5588 else
5589 ac_cv_path_EGREP=$EGREP
5590 fi
5591
5592 fi
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5595 $as_echo "$ac_cv_path_EGREP" >&6; }
5596 EGREP="$ac_cv_path_EGREP"
5597
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5600 $as_echo_n "checking for ANSI C header files... " >&6; }
5601 if ${ac_cv_header_stdc+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 #include <stdlib.h>
5607 #include <stdarg.h>
5608 #include <string.h>
5609 #include <float.h>
5610
5611 int
5612 main ()
5613 {
5614
5615 ;
5616 return 0;
5617 }
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 ac_cv_header_stdc=yes
5621 else
5622 ac_cv_header_stdc=no
5623 fi
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625
5626 if test $ac_cv_header_stdc = yes; then
5627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <string.h>
5631
5632 _ACEOF
5633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5634 $EGREP "memchr" >/dev/null 2>&1; then :
5635
5636 else
5637 ac_cv_header_stdc=no
5638 fi
5639 rm -f conftest*
5640
5641 fi
5642
5643 if test $ac_cv_header_stdc = yes; then
5644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 #include <stdlib.h>
5648
5649 _ACEOF
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "free" >/dev/null 2>&1; then :
5652
5653 else
5654 ac_cv_header_stdc=no
5655 fi
5656 rm -f conftest*
5657
5658 fi
5659
5660 if test $ac_cv_header_stdc = yes; then
5661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5662 if test "$cross_compiling" = yes; then :
5663 :
5664 else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <ctype.h>
5668 #include <stdlib.h>
5669 #if ((' ' & 0x0FF) == 0x020)
5670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5672 #else
5673 # define ISLOWER(c) \
5674 (('a' <= (c) && (c) <= 'i') \
5675 || ('j' <= (c) && (c) <= 'r') \
5676 || ('s' <= (c) && (c) <= 'z'))
5677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5678 #endif
5679
5680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5681 int
5682 main ()
5683 {
5684 int i;
5685 for (i = 0; i < 256; i++)
5686 if (XOR (islower (i), ISLOWER (i))
5687 || toupper (i) != TOUPPER (i))
5688 return 2;
5689 return 0;
5690 }
5691 _ACEOF
5692 if ac_fn_c_try_run "$LINENO"; then :
5693
5694 else
5695 ac_cv_header_stdc=no
5696 fi
5697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5698 conftest.$ac_objext conftest.beam conftest.$ac_ext
5699 fi
5700
5701 fi
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5704 $as_echo "$ac_cv_header_stdc" >&6; }
5705 if test $ac_cv_header_stdc = yes; then
5706
5707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5708
5709 fi
5710
5711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5713 inttypes.h stdint.h unistd.h
5714 do :
5715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5717 "
5718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5719 cat >>confdefs.h <<_ACEOF
5720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5721 _ACEOF
5722
5723 fi
5724
5725 done
5726
5727
5728
5729
5730
5731 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5732 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5733 MINIX=yes
5734 else
5735 MINIX=
5736 fi
5737
5738
5739 if test "$MINIX" = yes; then
5740
5741 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5742
5743
5744 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5745
5746
5747 $as_echo "#define _MINIX 1" >>confdefs.h
5748
5749 fi
5750
5751 case "$host_os" in
5752 hpux*)
5753
5754 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5755
5756 ;;
5757 esac
5758
5759
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5761 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5762 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767
5768 # define __EXTENSIONS__ 1
5769 $ac_includes_default
5770 int
5771 main ()
5772 {
5773
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_compile "$LINENO"; then :
5779 ac_cv_safe_to_define___extensions__=yes
5780 else
5781 ac_cv_safe_to_define___extensions__=no
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5786 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5787 test $ac_cv_safe_to_define___extensions__ = yes &&
5788 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5789
5790 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5791
5792 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5793
5794 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5795
5796 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 # Code from module arg-nonnull:
5808 # Code from module c++defs:
5809 # Code from module dtoastr:
5810 # Code from module extensions:
5811
5812 # Code from module getopt-gnu:
5813 # Code from module getopt-posix:
5814 # Code from module gettext-h:
5815 # Code from module include_next:
5816 # Code from module intprops:
5817 # Code from module mktime:
5818 # Code from module multiarch:
5819 # Code from module stddef:
5820 # Code from module time:
5821 # Code from module time_r:
5822 # Code from module unistd:
5823 # Code from module warn-on-use:
5824
5825
5826 # On Suns, sometimes $CPP names a directory.
5827 if test -n "$CPP" && test -d "$CPP"; then
5828 CPP=
5829 fi
5830
5831 ## If not using gcc, and on Solaris, and no CPP specified, see if
5832 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5833 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5834 test x"$CPP" = x; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5836 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5837 if ${emacs_cv_sunpro_c+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842
5843 int
5844 main ()
5845 {
5846 #ifndef __SUNPRO_C
5847 fail;
5848 #endif
5849
5850 ;
5851 return 0;
5852 }
5853 _ACEOF
5854 if ac_fn_c_try_link "$LINENO"; then :
5855 emacs_cv_sunpro_c=yes
5856 else
5857 emacs_cv_sunpro_c=no
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext \
5860 conftest$ac_exeext conftest.$ac_ext
5861 fi
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5864 $as_echo "$emacs_cv_sunpro_c" >&6; }
5865
5866 if test x"$emacs_cv_sunpro_c" = xyes; then
5867 NON_GNU_CPP="$CC -E -Xs"
5868 fi
5869 fi
5870
5871 #### Some systems specify a CPP to use unless we are using GCC.
5872 #### Now that we know whether we are using GCC, we can decide whether
5873 #### to use that one.
5874 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5875 then
5876 CPP="$NON_GNU_CPP"
5877 fi
5878
5879 #### Some systems specify a CC to use unless we are using GCC.
5880 #### Now that we know whether we are using GCC, we can decide whether
5881 #### to use that one.
5882 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5883 test x$cc_specified != xyes
5884 then
5885 CC="$NON_GNU_CC"
5886 fi
5887
5888 if test x$GCC = xyes; then
5889 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5890 else
5891 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5892 fi
5893
5894 ### Use -Wno-pointer-sign if the compiler supports it
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5896 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5897 SAVE_CFLAGS="$CFLAGS"
5898 CFLAGS="$CFLAGS -Wno-pointer-sign"
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5901
5902 int
5903 main ()
5904 {
5905
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 if ac_fn_c_try_compile "$LINENO"; then :
5911 has_option=yes
5912 else
5913 has_option=no
5914 fi
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 if test $has_option = yes; then
5917 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5920 $as_echo "$has_option" >&6; }
5921 CFLAGS="$SAVE_CFLAGS"
5922 unset has_option
5923 unset SAVE_CFLAGS
5924
5925 ### Use -Wdeclaration-after-statement if the compiler supports it
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5927 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5928 SAVE_CFLAGS="$CFLAGS"
5929 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932
5933 int
5934 main ()
5935 {
5936
5937 ;
5938 return 0;
5939 }
5940 _ACEOF
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942 has_option=yes
5943 else
5944 has_option=no
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 if test $has_option = yes; then
5948 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5949 fi
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5951 $as_echo "$has_option" >&6; }
5952 CFLAGS="$SAVE_CFLAGS"
5953 unset has_option
5954 unset SAVE_CFLAGS
5955
5956 ### Use -Wold-style-definition if the compiler supports it
5957 # This can be removed when conversion to standard C is finished.
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5959 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5960 SAVE_CFLAGS="$CFLAGS"
5961 CFLAGS="$CFLAGS -Wold-style-definition"
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964
5965 int
5966 main ()
5967 {
5968
5969 ;
5970 return 0;
5971 }
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 has_option=yes
5975 else
5976 has_option=no
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 if test $has_option = yes; then
5980 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5983 $as_echo "$has_option" >&6; }
5984 CFLAGS="$SAVE_CFLAGS"
5985 unset has_option
5986 unset SAVE_CFLAGS
5987
5988 ### Use -Wimplicit-function-declaration if the compiler supports it
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5990 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5991 SAVE_CFLAGS="$CFLAGS"
5992 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995
5996 int
5997 main ()
5998 {
5999
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 has_option=yes
6006 else
6007 has_option=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 if test $has_option = yes; then
6011 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6014 $as_echo "$has_option" >&6; }
6015 CFLAGS="$SAVE_CFLAGS"
6016 unset has_option
6017 unset SAVE_CFLAGS
6018
6019
6020
6021
6022 #### Some other nice autoconf tests.
6023
6024 ac_ext=c
6025 ac_cpp='$CPP $CPPFLAGS'
6026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6030 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6031 # On Suns, sometimes $CPP names a directory.
6032 if test -n "$CPP" && test -d "$CPP"; then
6033 CPP=
6034 fi
6035 if test -z "$CPP"; then
6036 if ${ac_cv_prog_CPP+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 # Double quotes because CPP needs to be expanded
6040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6041 do
6042 ac_preproc_ok=false
6043 for ac_c_preproc_warn_flag in '' yes
6044 do
6045 # Use a header file that comes with gcc, so configuring glibc
6046 # with a fresh cross-compiler works.
6047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6048 # <limits.h> exists even on freestanding compilers.
6049 # On the NeXT, cc -E runs the code through the compiler's parser,
6050 # not just through cpp. "Syntax error" is here to catch this case.
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 #ifdef __STDC__
6054 # include <limits.h>
6055 #else
6056 # include <assert.h>
6057 #endif
6058 Syntax error
6059 _ACEOF
6060 if ac_fn_c_try_cpp "$LINENO"; then :
6061
6062 else
6063 # Broken: fails on valid input.
6064 continue
6065 fi
6066 rm -f conftest.err conftest.i conftest.$ac_ext
6067
6068 # OK, works on sane cases. Now check whether nonexistent headers
6069 # can be detected and how.
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #include <ac_nonexistent.h>
6073 _ACEOF
6074 if ac_fn_c_try_cpp "$LINENO"; then :
6075 # Broken: success on invalid input.
6076 continue
6077 else
6078 # Passes both tests.
6079 ac_preproc_ok=:
6080 break
6081 fi
6082 rm -f conftest.err conftest.i conftest.$ac_ext
6083
6084 done
6085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6086 rm -f conftest.i conftest.err conftest.$ac_ext
6087 if $ac_preproc_ok; then :
6088 break
6089 fi
6090
6091 done
6092 ac_cv_prog_CPP=$CPP
6093
6094 fi
6095 CPP=$ac_cv_prog_CPP
6096 else
6097 ac_cv_prog_CPP=$CPP
6098 fi
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6100 $as_echo "$CPP" >&6; }
6101 ac_preproc_ok=false
6102 for ac_c_preproc_warn_flag in '' yes
6103 do
6104 # Use a header file that comes with gcc, so configuring glibc
6105 # with a fresh cross-compiler works.
6106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107 # <limits.h> exists even on freestanding compilers.
6108 # On the NeXT, cc -E runs the code through the compiler's parser,
6109 # not just through cpp. "Syntax error" is here to catch this case.
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 #ifdef __STDC__
6113 # include <limits.h>
6114 #else
6115 # include <assert.h>
6116 #endif
6117 Syntax error
6118 _ACEOF
6119 if ac_fn_c_try_cpp "$LINENO"; then :
6120
6121 else
6122 # Broken: fails on valid input.
6123 continue
6124 fi
6125 rm -f conftest.err conftest.i conftest.$ac_ext
6126
6127 # OK, works on sane cases. Now check whether nonexistent headers
6128 # can be detected and how.
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 #include <ac_nonexistent.h>
6132 _ACEOF
6133 if ac_fn_c_try_cpp "$LINENO"; then :
6134 # Broken: success on invalid input.
6135 continue
6136 else
6137 # Passes both tests.
6138 ac_preproc_ok=:
6139 break
6140 fi
6141 rm -f conftest.err conftest.i conftest.$ac_ext
6142
6143 done
6144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6145 rm -f conftest.i conftest.err conftest.$ac_ext
6146 if $ac_preproc_ok; then :
6147
6148 else
6149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6151 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6152 See \`config.log' for more details" "$LINENO" 5; }
6153 fi
6154
6155 ac_ext=c
6156 ac_cpp='$CPP $CPPFLAGS'
6157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6160
6161
6162 if test "x$RANLIB" = x; then
6163 if test -n "$ac_tool_prefix"; then
6164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6165 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_RANLIB+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test -n "$RANLIB"; then
6172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6184 fi
6185 done
6186 done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 RANLIB=$ac_cv_prog_RANLIB
6192 if test -n "$RANLIB"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6194 $as_echo "$RANLIB" >&6; }
6195 else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199
6200
6201 fi
6202 if test -z "$ac_cv_prog_RANLIB"; then
6203 ac_ct_RANLIB=$RANLIB
6204 # Extract the first word of "ranlib", so it can be a program name with args.
6205 set dummy ranlib; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 if test -n "$ac_ct_RANLIB"; then
6212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_ac_ct_RANLIB="ranlib"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225 done
6226 done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6232 if test -n "$ac_ct_RANLIB"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6234 $as_echo "$ac_ct_RANLIB" >&6; }
6235 else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239
6240 if test "x$ac_ct_RANLIB" = x; then
6241 RANLIB=":"
6242 else
6243 case $cross_compiling:$ac_tool_warned in
6244 yes:)
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6247 ac_tool_warned=yes ;;
6248 esac
6249 RANLIB=$ac_ct_RANLIB
6250 fi
6251 else
6252 RANLIB="$ac_cv_prog_RANLIB"
6253 fi
6254
6255 fi
6256
6257 ## Although we're running on an amd64 kernel, we're actually compiling for
6258 ## the x86 architecture. The user should probably have provided an
6259 ## explicit --build to `configure', but if everything else than the kernel
6260 ## is running in i386 mode, we can help them out.
6261 if test "$machine" = "amdx86-64"; then
6262 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6263 if test "x$ac_cv_have_decl_i386" = xyes; then :
6264
6265 fi
6266
6267 if test "$ac_cv_have_decl_i386" = "yes"; then
6268 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6269 machine=intel386
6270 machfile="m/${machine}.h"
6271 fi
6272 fi
6273
6274 # Extract the first word of "install-info", so it can be a program name with args.
6275 set dummy install-info; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 case $INSTALL_INFO in
6282 [\\/]* | ?:[\\/]*)
6283 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6284 ;;
6285 *)
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 ;;
6302 esac
6303 fi
6304 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6305 if test -n "$INSTALL_INFO"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6307 $as_echo "$INSTALL_INFO" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313
6314 # Extract the first word of "install-info", so it can be a program name with args.
6315 set dummy install-info; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 case $INSTALL_INFO in
6322 [\\/]* | ?:[\\/]*)
6323 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6324 ;;
6325 *)
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in /usr/sbin
6328 do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341 ;;
6342 esac
6343 fi
6344 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6345 if test -n "$INSTALL_INFO"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6347 $as_echo "$INSTALL_INFO" >&6; }
6348 else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6351 fi
6352
6353
6354 # Extract the first word of "install-info", so it can be a program name with args.
6355 set dummy install-info; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 case $INSTALL_INFO in
6362 [\\/]* | ?:[\\/]*)
6363 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6364 ;;
6365 *)
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in /sbin
6368 do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377 done
6378 done
6379 IFS=$as_save_IFS
6380
6381 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6382 ;;
6383 esac
6384 fi
6385 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6386 if test -n "$INSTALL_INFO"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6388 $as_echo "$INSTALL_INFO" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394
6395 # Extract the first word of "gzip", so it can be a program name with args.
6396 set dummy gzip; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_path_GZIP_PROG+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 case $GZIP_PROG in
6403 [\\/]* | ?:[\\/]*)
6404 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6405 ;;
6406 *)
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422 ;;
6423 esac
6424 fi
6425 GZIP_PROG=$ac_cv_path_GZIP_PROG
6426 if test -n "$GZIP_PROG"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6428 $as_echo "$GZIP_PROG" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435
6436
6437 ## Need makeinfo >= 4.6 (?) to build the manuals.
6438 # Extract the first word of "makeinfo", so it can be a program name with args.
6439 set dummy makeinfo; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_path_MAKEINFO+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 case $MAKEINFO in
6446 [\\/]* | ?:[\\/]*)
6447 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6448 ;;
6449 *)
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6466 ;;
6467 esac
6468 fi
6469 MAKEINFO=$ac_cv_path_MAKEINFO
6470 if test -n "$MAKEINFO"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6472 $as_echo "$MAKEINFO" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478
6479 if test "$MAKEINFO" != "no" && \
6480 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
6481 MAKEINFO=no
6482 fi
6483
6484 ## Makeinfo is unusual. For a released Emacs, the manuals are
6485 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6486 ## therefore in the category of "special tools" not normally required, which
6487 ## configure does not have to check for (eg autoconf itself).
6488 ## In a Bazaar checkout on the other hand, the manuals are not included.
6489 ## So makeinfo is a requirement to build from Bazaar, and configure
6490 ## should test for it as it does for any other build requirement.
6491 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6492 ## with pre-built manuals, from a Bazaar checkout.
6493 HAVE_MAKEINFO=yes
6494
6495 if test "$MAKEINFO" = "no"; then
6496 MAKEINFO=makeinfo
6497 if test "x${with_makeinfo}" = "xno"; then
6498 HAVE_MAKEINFO=no
6499 elif test ! -e $srcdir/info/emacs; then
6500 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6501 source tree does not seem to have pre-built manuals in the \`info' directory.
6502 Either install a suitable version of makeinfo, or re-run configure
6503 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6504 fi
6505 fi
6506
6507
6508
6509 if test x$GCC = xyes; then
6510 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6511 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6512 else
6513 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6514 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6515 fi
6516
6517
6518 late_LDFLAGS=$LDFLAGS
6519 if test x$GCC = xyes; then
6520 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6521 else
6522 LDFLAGS="$LDFLAGS -znocombreloc"
6523 fi
6524
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6526 $as_echo_n "checking for -znocombreloc... " >&6; }
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529
6530 int
6531 main ()
6532 {
6533
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_link "$LINENO"; then :
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6540 $as_echo "yes" >&6; }
6541 else
6542 LDFLAGS=$late_LDFLAGS
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext \
6547 conftest$ac_exeext conftest.$ac_ext
6548
6549
6550 # The value of CPP is a quoted variable reference, so we need to do this
6551 # to get its actual value...
6552 CPP=`eval "echo $CPP"`
6553
6554
6555 CANNOT_DUMP=no
6556 case "$opsys" in
6557 your-opsys-here)
6558 CANNOT_DUMP=yes
6559
6560 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6561
6562 ;;
6563 esac
6564
6565
6566
6567 UNEXEC_OBJ=unexelf.o
6568 case "$opsys" in
6569 # MSDOS uses unexcoff.o
6570 # MSWindows uses unexw32.o
6571 aix4-2)
6572 UNEXEC_OBJ=unexaix.o
6573 ;;
6574 cygwin)
6575 UNEXEC_OBJ=unexcw.o
6576 ;;
6577 darwin)
6578 UNEXEC_OBJ=unexmacosx.o
6579 ;;
6580 hpux10-20 | hpux11)
6581 UNEXEC_OBJ=unexhp9k800.o
6582 ;;
6583 sol2-10)
6584 # Use the Solaris dldump() function, called from unexsol.c, to dump
6585 # emacs, instead of the generic ELF dump code found in unexelf.c.
6586 # The resulting binary has a complete symbol table, and is better
6587 # for debugging and other observability tools (debuggers, pstack, etc).
6588 #
6589 # If you encounter a problem using dldump(), please consider sending
6590 # a message to the OpenSolaris tools-linking mailing list:
6591 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6592 #
6593 # It is likely that dldump() works with older Solaris too, but this has
6594 # not been tested, so for now this change is for Solaris 10 or newer.
6595 UNEXEC_OBJ=unexsol.o
6596 ;;
6597 esac
6598
6599 LD_SWITCH_SYSTEM=
6600 case "$opsys" in
6601 freebsd)
6602 ## Let `ld' find image libs and similar things in /usr/local/lib.
6603 ## The system compiler, GCC, has apparently been modified to not
6604 ## look there, contrary to what a stock GCC would do.
6605 LD_SWITCH_SYSTEM=-L/usr/local/lib
6606 ;;
6607
6608 gnu-linux)
6609 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6610 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6611 ;;
6612
6613 netbsd)
6614 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6615 ;;
6616
6617 openbsd)
6618 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6619 ## otherwise Emacs dumps core on elf systems.
6620 LD_SWITCH_SYSTEM="-Z"
6621 ;;
6622 esac
6623
6624
6625 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6626
6627 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6628 ## which has not been defined yet. When this was handled with cpp,
6629 ## it was expanded to null when configure sourced the s/*.h file.
6630 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6631 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6632 ## (or somesuch), but because it is supposed to go at the _front_
6633 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6634 ## Compare with the gnu-linux case below, which added to the end
6635 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6636 ## LD_SWITCH_SYSTEM_TEMACS.
6637 case "$opsys" in
6638 netbsd|openbsd)
6639 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6640 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6641 esac
6642
6643
6644 C_SWITCH_MACHINE=
6645 if test "$machine" = "alpha"; then
6646 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6647 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6648
6649 fi
6650
6651 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6652 ## With ELF, make sure that all common symbols get allocated to in the
6653 ## data section. Otherwise, the dump of temacs may miss variables in
6654 ## the shared library that have been initialized. For example, with
6655 ## GNU libc, __malloc_initialized would normally be resolved to the
6656 ## shared library's .bss section, which is fatal.
6657 if test "x$GCC" = "xyes"; then
6658 C_SWITCH_MACHINE="-fno-common"
6659 else
6660 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6661 fi
6662 else
6663 UNEXEC_OBJ=unexalpha.o
6664 fi
6665 fi
6666
6667
6668
6669
6670 C_SWITCH_SYSTEM=
6671 ## Some programs in src produce warnings saying certain subprograms
6672 ## are too complex and need a MAXMEM value greater than 2000 for
6673 ## additional optimization. --nils@exp-math.uni-essen.de
6674 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6675 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6676 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6677 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6678
6679
6680
6681 LIBS_SYSTEM=
6682 case "$opsys" in
6683 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6684 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6685
6686 freebsd) LIBS_SYSTEM="-lutil" ;;
6687
6688 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6689
6690 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6691
6692 ## Motif needs -lgen.
6693 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6694 esac
6695
6696
6697
6698 ### Make sure subsequent tests use flags consistent with the build flags.
6699
6700 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6701 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6702 else
6703 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6704 fi
6705
6706
6707
6708 # Check whether --enable-largefile was given.
6709 if test "${enable_largefile+set}" = set; then :
6710 enableval=$enable_largefile;
6711 fi
6712
6713 if test "$enable_largefile" != no; then
6714
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6716 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6717 if ${ac_cv_sys_largefile_CC+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 ac_cv_sys_largefile_CC=no
6721 if test "$GCC" != yes; then
6722 ac_save_CC=$CC
6723 while :; do
6724 # IRIX 6.2 and later do not support large files by default,
6725 # so use the C compiler's -n32 option if that helps.
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 #include <sys/types.h>
6729 /* Check that off_t can represent 2**63 - 1 correctly.
6730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6731 since some C++ compilers masquerading as C compilers
6732 incorrectly reject 9223372036854775807. */
6733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6735 && LARGE_OFF_T % 2147483647 == 1)
6736 ? 1 : -1];
6737 int
6738 main ()
6739 {
6740
6741 ;
6742 return 0;
6743 }
6744 _ACEOF
6745 if ac_fn_c_try_compile "$LINENO"; then :
6746 break
6747 fi
6748 rm -f core conftest.err conftest.$ac_objext
6749 CC="$CC -n32"
6750 if ac_fn_c_try_compile "$LINENO"; then :
6751 ac_cv_sys_largefile_CC=' -n32'; break
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext
6754 break
6755 done
6756 CC=$ac_save_CC
6757 rm -f conftest.$ac_ext
6758 fi
6759 fi
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6761 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6762 if test "$ac_cv_sys_largefile_CC" != no; then
6763 CC=$CC$ac_cv_sys_largefile_CC
6764 fi
6765
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6767 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6768 if ${ac_cv_sys_file_offset_bits+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 while :; do
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 #include <sys/types.h>
6775 /* Check that off_t can represent 2**63 - 1 correctly.
6776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6777 since some C++ compilers masquerading as C compilers
6778 incorrectly reject 9223372036854775807. */
6779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6781 && LARGE_OFF_T % 2147483647 == 1)
6782 ? 1 : -1];
6783 int
6784 main ()
6785 {
6786
6787 ;
6788 return 0;
6789 }
6790 _ACEOF
6791 if ac_fn_c_try_compile "$LINENO"; then :
6792 ac_cv_sys_file_offset_bits=no; break
6793 fi
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 #define _FILE_OFFSET_BITS 64
6798 #include <sys/types.h>
6799 /* Check that off_t can represent 2**63 - 1 correctly.
6800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6801 since some C++ compilers masquerading as C compilers
6802 incorrectly reject 9223372036854775807. */
6803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6805 && LARGE_OFF_T % 2147483647 == 1)
6806 ? 1 : -1];
6807 int
6808 main ()
6809 {
6810
6811 ;
6812 return 0;
6813 }
6814 _ACEOF
6815 if ac_fn_c_try_compile "$LINENO"; then :
6816 ac_cv_sys_file_offset_bits=64; break
6817 fi
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819 ac_cv_sys_file_offset_bits=unknown
6820 break
6821 done
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6824 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6825 case $ac_cv_sys_file_offset_bits in #(
6826 no | unknown) ;;
6827 *)
6828 cat >>confdefs.h <<_ACEOF
6829 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6830 _ACEOF
6831 ;;
6832 esac
6833 rm -rf conftest*
6834 if test $ac_cv_sys_file_offset_bits = unknown; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6836 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6837 if ${ac_cv_sys_large_files+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 while :; do
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 #include <sys/types.h>
6844 /* Check that off_t can represent 2**63 - 1 correctly.
6845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6846 since some C++ compilers masquerading as C compilers
6847 incorrectly reject 9223372036854775807. */
6848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6850 && LARGE_OFF_T % 2147483647 == 1)
6851 ? 1 : -1];
6852 int
6853 main ()
6854 {
6855
6856 ;
6857 return 0;
6858 }
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 ac_cv_sys_large_files=no; break
6862 fi
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #define _LARGE_FILES 1
6867 #include <sys/types.h>
6868 /* Check that off_t can represent 2**63 - 1 correctly.
6869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6870 since some C++ compilers masquerading as C compilers
6871 incorrectly reject 9223372036854775807. */
6872 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6874 && LARGE_OFF_T % 2147483647 == 1)
6875 ? 1 : -1];
6876 int
6877 main ()
6878 {
6879
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_compile "$LINENO"; then :
6885 ac_cv_sys_large_files=1; break
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 ac_cv_sys_large_files=unknown
6889 break
6890 done
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6893 $as_echo "$ac_cv_sys_large_files" >&6; }
6894 case $ac_cv_sys_large_files in #(
6895 no | unknown) ;;
6896 *)
6897 cat >>confdefs.h <<_ACEOF
6898 #define _LARGE_FILES $ac_cv_sys_large_files
6899 _ACEOF
6900 ;;
6901 esac
6902 rm -rf conftest*
6903 fi
6904 fi
6905
6906
6907
6908 ## If user specified a crt-dir, use that unconditionally.
6909 if test "X$CRT_DIR" = "X"; then
6910
6911 case "$canonical" in
6912 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6913 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6914 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6915 ## For anything else (eg /usr/lib32), it is up the user to specify
6916 ## the location (bug#5655).
6917 ## Test for crtn.o, not just the directory, because sometimes the
6918 ## directory exists but does not have the relevant files (bug#1287).
6919 ## FIXME better to test for binary compatibility somehow.
6920 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6921 ;;
6922
6923 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6924 esac
6925
6926 case "$opsys" in
6927 hpux10-20) CRT_DIR=/lib ;;
6928 esac
6929
6930 ## Default is /usr/lib.
6931 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6932
6933 else
6934
6935 ## Some platforms don't use any of these files, so it is not
6936 ## appropriate to put this test outside the if block.
6937 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6938 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
6939
6940 fi
6941
6942
6943
6944 LIB_MATH=-lm
6945 LIB_STANDARD=
6946 START_FILES=
6947
6948 case $opsys in
6949 cygwin )
6950 LIB_MATH=
6951 START_FILES='pre-crt0.o'
6952 ;;
6953 darwin )
6954 ## Adding -lm confuses the dynamic linker, so omit it.
6955 LIB_MATH=
6956 START_FILES='pre-crt0.o'
6957 ;;
6958 freebsd )
6959 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6960 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6961 ;;
6962 gnu-linux | gnu-kfreebsd )
6963 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6964 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6965 ;;
6966 hpux10-20 | hpux11 )
6967 LIB_STANDARD=-lc
6968 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6969 ;;
6970 netbsd | openbsd )
6971 if test -f $CRT_DIR/crti.o; then
6972 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6973 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6974 else
6975 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6976 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6977 fi
6978 ;;
6979 esac
6980
6981
6982
6983
6984
6985
6986
6987 if test "${with_sound}" != "no"; then
6988 # Sound support for GNU/Linux and the free BSDs.
6989 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6990 do :
6991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6992 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6994 cat >>confdefs.h <<_ACEOF
6995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996 _ACEOF
6997 have_sound_header=yes
6998 fi
6999
7000 done
7001
7002 # Emulation library used on NetBSD.
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7004 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7005 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 ac_check_lib_save_LIBS=$LIBS
7009 LIBS="-lossaudio $LIBS"
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012
7013 /* Override any GCC internal prototype to avoid an error.
7014 Use char because int might match the return type of a GCC
7015 builtin and then its argument prototype would still apply. */
7016 #ifdef __cplusplus
7017 extern "C"
7018 #endif
7019 char _oss_ioctl ();
7020 int
7021 main ()
7022 {
7023 return _oss_ioctl ();
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_c_try_link "$LINENO"; then :
7029 ac_cv_lib_ossaudio__oss_ioctl=yes
7030 else
7031 ac_cv_lib_ossaudio__oss_ioctl=no
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 LIBS=$ac_check_lib_save_LIBS
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7038 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7039 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7040 LIBSOUND=-lossaudio
7041 else
7042 LIBSOUND=
7043 fi
7044
7045
7046
7047 ALSA_REQUIRED=1.0.0
7048 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7049
7050 succeeded=no
7051
7052 # Extract the first word of "pkg-config", so it can be a program name with args.
7053 set dummy pkg-config; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 case $PKG_CONFIG in
7060 [\\/]* | ?:[\\/]*)
7061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7062 ;;
7063 *)
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7080 ;;
7081 esac
7082 fi
7083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7084 if test -n "$PKG_CONFIG"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7086 $as_echo "$PKG_CONFIG" >&6; }
7087 else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093
7094 if test "$PKG_CONFIG" = "no" ; then
7095 HAVE_ALSA=no
7096 else
7097 PKG_CONFIG_MIN_VERSION=0.9.0
7098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7100 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7101
7102 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7104 $as_echo "yes" >&6; }
7105 succeeded=yes
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7108 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7109 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7111 $as_echo "$ALSA_CFLAGS" >&6; }
7112
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7114 $as_echo_n "checking ALSA_LIBS... " >&6; }
7115 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7117 $as_echo "$ALSA_LIBS" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 ALSA_CFLAGS=""
7122 ALSA_LIBS=""
7123 ## If we have a custom action on failure, don't print errors, but
7124 ## do set a variable so people can do so.
7125 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7126
7127 fi
7128
7129
7130
7131 else
7132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7134 fi
7135 fi
7136
7137 if test $succeeded = yes; then
7138 HAVE_ALSA=yes
7139 else
7140 HAVE_ALSA=no
7141 fi
7142
7143 if test $HAVE_ALSA = yes; then
7144 SAVE_CFLAGS="$CFLAGS"
7145 SAVE_LDFLAGS="$LDFLAGS"
7146 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7147 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 #include <asoundlib.h>
7151 int
7152 main ()
7153 {
7154 snd_lib_error_set_handler (0);
7155 ;
7156 return 0;
7157 }
7158 _ACEOF
7159 if ac_fn_c_try_compile "$LINENO"; then :
7160 emacs_alsa_normal=yes
7161 else
7162 emacs_alsa_normal=no
7163 fi
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 if test "$emacs_alsa_normal" != yes; then
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 #include <alsa/asoundlib.h>
7169 int
7170 main ()
7171 {
7172 snd_lib_error_set_handler (0);
7173 ;
7174 return 0;
7175 }
7176 _ACEOF
7177 if ac_fn_c_try_compile "$LINENO"; then :
7178 emacs_alsa_subdir=yes
7179 else
7180 emacs_alsa_subdir=no
7181 fi
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 if test "$emacs_alsa_subdir" != yes; then
7184 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7185 fi
7186 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7187 fi
7188
7189 CFLAGS="$SAVE_CFLAGS"
7190 LDFLAGS="$SAVE_LDFLAGS"
7191 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7192 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7193
7194 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7195
7196 fi
7197
7198 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7199 case "$opsys" in
7200 gnu-linux|freebsd|netbsd)
7201
7202 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7203
7204 ;;
7205 esac
7206 fi
7207
7208
7209 fi
7210
7211 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7212 linux/version.h sys/systeminfo.h limits.h \
7213 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7214 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7215 sys/utsname.h pwd.h utmp.h dirent.h util.h
7216 do :
7217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7218 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7220 cat >>confdefs.h <<_ACEOF
7221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7222 _ACEOF
7223
7224 fi
7225
7226 done
7227
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7230 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 #include <sys/personality.h>
7234 int
7235 main ()
7236 {
7237 personality (PER_LINUX32)
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_compile "$LINENO"; then :
7243 emacs_cv_personality_linux32=yes
7244 else
7245 emacs_cv_personality_linux32=no
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7249 $as_echo "$emacs_cv_personality_linux32" >&6; }
7250
7251 if test $emacs_cv_personality_linux32 = yes; then
7252
7253 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7254
7255 fi
7256
7257 for ac_header in term.h
7258 do :
7259 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7260 if test "x$ac_cv_header_term_h" = xyes; then :
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_TERM_H 1
7263 _ACEOF
7264
7265 fi
7266
7267 done
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7270 $as_echo_n "checking for ANSI C header files... " >&6; }
7271 if ${ac_cv_header_stdc+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <stdlib.h>
7277 #include <stdarg.h>
7278 #include <string.h>
7279 #include <float.h>
7280
7281 int
7282 main ()
7283 {
7284
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290 ac_cv_header_stdc=yes
7291 else
7292 ac_cv_header_stdc=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295
7296 if test $ac_cv_header_stdc = yes; then
7297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 #include <string.h>
7301
7302 _ACEOF
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304 $EGREP "memchr" >/dev/null 2>&1; then :
7305
7306 else
7307 ac_cv_header_stdc=no
7308 fi
7309 rm -f conftest*
7310
7311 fi
7312
7313 if test $ac_cv_header_stdc = yes; then
7314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 #include <stdlib.h>
7318
7319 _ACEOF
7320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7321 $EGREP "free" >/dev/null 2>&1; then :
7322
7323 else
7324 ac_cv_header_stdc=no
7325 fi
7326 rm -f conftest*
7327
7328 fi
7329
7330 if test $ac_cv_header_stdc = yes; then
7331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7332 if test "$cross_compiling" = yes; then :
7333 :
7334 else
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 #include <ctype.h>
7338 #include <stdlib.h>
7339 #if ((' ' & 0x0FF) == 0x020)
7340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7342 #else
7343 # define ISLOWER(c) \
7344 (('a' <= (c) && (c) <= 'i') \
7345 || ('j' <= (c) && (c) <= 'r') \
7346 || ('s' <= (c) && (c) <= 'z'))
7347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7348 #endif
7349
7350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7351 int
7352 main ()
7353 {
7354 int i;
7355 for (i = 0; i < 256; i++)
7356 if (XOR (islower (i), ISLOWER (i))
7357 || toupper (i) != TOUPPER (i))
7358 return 2;
7359 return 0;
7360 }
7361 _ACEOF
7362 if ac_fn_c_try_run "$LINENO"; then :
7363
7364 else
7365 ac_cv_header_stdc=no
7366 fi
7367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7368 conftest.$ac_objext conftest.beam conftest.$ac_ext
7369 fi
7370
7371 fi
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7374 $as_echo "$ac_cv_header_stdc" >&6; }
7375 if test $ac_cv_header_stdc = yes; then
7376
7377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7378
7379 fi
7380
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7382 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7383 if ${ac_cv_header_time+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 #include <sys/types.h>
7389 #include <sys/time.h>
7390 #include <time.h>
7391
7392 int
7393 main ()
7394 {
7395 if ((struct tm *) 0)
7396 return 0;
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_compile "$LINENO"; then :
7402 ac_cv_header_time=yes
7403 else
7404 ac_cv_header_time=no
7405 fi
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 fi
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7409 $as_echo "$ac_cv_header_time" >&6; }
7410 if test $ac_cv_header_time = yes; then
7411
7412 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7413
7414 fi
7415
7416 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7417 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7418 ac_have_decl=1
7419 else
7420 ac_have_decl=0
7421 fi
7422
7423 cat >>confdefs.h <<_ACEOF
7424 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7425 _ACEOF
7426
7427 if test $ac_cv_have_decl_sys_siglist != yes; then
7428 # For Tru64, at least:
7429 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7430 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7431 ac_have_decl=1
7432 else
7433 ac_have_decl=0
7434 fi
7435
7436 cat >>confdefs.h <<_ACEOF
7437 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7438 _ACEOF
7439
7440 if test $ac_cv_have_decl___sys_siglist = yes; then
7441
7442 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7443
7444 fi
7445 fi
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7447 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7448 if ${ac_cv_header_sys_wait_h+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 #include <sys/types.h>
7454 #include <sys/wait.h>
7455 #ifndef WEXITSTATUS
7456 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7457 #endif
7458 #ifndef WIFEXITED
7459 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7460 #endif
7461
7462 int
7463 main ()
7464 {
7465 int s;
7466 wait (&s);
7467 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473 ac_cv_header_sys_wait_h=yes
7474 else
7475 ac_cv_header_sys_wait_h=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7480 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7481 if test $ac_cv_header_sys_wait_h = yes; then
7482
7483 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7484
7485 fi
7486
7487
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7489 $as_echo_n "checking for struct utimbuf... " >&6; }
7490 if ${emacs_cv_struct_utimbuf+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #ifdef TIME_WITH_SYS_TIME
7496 #include <sys/time.h>
7497 #include <time.h>
7498 #else
7499 #ifdef HAVE_SYS_TIME_H
7500 #include <sys/time.h>
7501 #else
7502 #include <time.h>
7503 #endif
7504 #endif
7505 #ifdef HAVE_UTIME_H
7506 #include <utime.h>
7507 #endif
7508 int
7509 main ()
7510 {
7511 static struct utimbuf x; x.actime = x.modtime;
7512 ;
7513 return 0;
7514 }
7515 _ACEOF
7516 if ac_fn_c_try_compile "$LINENO"; then :
7517 emacs_cv_struct_utimbuf=yes
7518 else
7519 emacs_cv_struct_utimbuf=no
7520 fi
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 fi
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7524 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7525 if test $emacs_cv_struct_utimbuf = yes; then
7526
7527 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7528
7529 fi
7530
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7532 $as_echo_n "checking return type of signal handlers... " >&6; }
7533 if ${ac_cv_type_signal+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <sys/types.h>
7539 #include <signal.h>
7540
7541 int
7542 main ()
7543 {
7544 return *(signal (0, 0)) (0) == 1;
7545 ;
7546 return 0;
7547 }
7548 _ACEOF
7549 if ac_fn_c_try_compile "$LINENO"; then :
7550 ac_cv_type_signal=int
7551 else
7552 ac_cv_type_signal=void
7553 fi
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7557 $as_echo "$ac_cv_type_signal" >&6; }
7558
7559 cat >>confdefs.h <<_ACEOF
7560 #define RETSIGTYPE $ac_cv_type_signal
7561 _ACEOF
7562
7563
7564
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7566 $as_echo_n "checking for speed_t... " >&6; }
7567 if ${emacs_cv_speed_t+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 #include <termios.h>
7573 int
7574 main ()
7575 {
7576 speed_t x = 1;
7577 ;
7578 return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 emacs_cv_speed_t=yes
7583 else
7584 emacs_cv_speed_t=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7589 $as_echo "$emacs_cv_speed_t" >&6; }
7590 if test $emacs_cv_speed_t = yes; then
7591
7592 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7593
7594 fi
7595
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7597 $as_echo_n "checking for struct timeval... " >&6; }
7598 if ${emacs_cv_struct_timeval+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603 #ifdef TIME_WITH_SYS_TIME
7604 #include <sys/time.h>
7605 #include <time.h>
7606 #else
7607 #ifdef HAVE_SYS_TIME_H
7608 #include <sys/time.h>
7609 #else
7610 #include <time.h>
7611 #endif
7612 #endif
7613 int
7614 main ()
7615 {
7616 static struct timeval x; x.tv_sec = x.tv_usec;
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 emacs_cv_struct_timeval=yes
7623 else
7624 emacs_cv_struct_timeval=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7629 $as_echo "$emacs_cv_struct_timeval" >&6; }
7630 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7631 if test $emacs_cv_struct_timeval = yes; then
7632
7633 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7634
7635 fi
7636
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7638 $as_echo_n "checking for struct exception... " >&6; }
7639 if ${emacs_cv_struct_exception+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <math.h>
7645 int
7646 main ()
7647 {
7648 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7649 ;
7650 return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_compile "$LINENO"; then :
7654 emacs_cv_struct_exception=yes
7655 else
7656 emacs_cv_struct_exception=no
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7661 $as_echo "$emacs_cv_struct_exception" >&6; }
7662 HAVE_EXCEPTION=$emacs_cv_struct_exception
7663 if test $emacs_cv_struct_exception != yes; then
7664
7665 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7666
7667 fi
7668
7669 for ac_header in sys/socket.h
7670 do :
7671 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7672 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7673 cat >>confdefs.h <<_ACEOF
7674 #define HAVE_SYS_SOCKET_H 1
7675 _ACEOF
7676
7677 fi
7678
7679 done
7680
7681 for ac_header in net/if.h
7682 do :
7683 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7684 #if HAVE_SYS_SOCKET_H
7685 #include <sys/socket.h>
7686 #endif
7687 "
7688 if test "x$ac_cv_header_net_if_h" = xyes; then :
7689 cat >>confdefs.h <<_ACEOF
7690 #define HAVE_NET_IF_H 1
7691 _ACEOF
7692
7693 fi
7694
7695 done
7696
7697
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7699 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7700 if ${ac_cv_struct_tm+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7705 #include <sys/types.h>
7706 #include <time.h>
7707
7708 int
7709 main ()
7710 {
7711 struct tm tm;
7712 int *p = &tm.tm_sec;
7713 return !p;
7714 ;
7715 return 0;
7716 }
7717 _ACEOF
7718 if ac_fn_c_try_compile "$LINENO"; then :
7719 ac_cv_struct_tm=time.h
7720 else
7721 ac_cv_struct_tm=sys/time.h
7722 fi
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7726 $as_echo "$ac_cv_struct_tm" >&6; }
7727 if test $ac_cv_struct_tm = sys/time.h; then
7728
7729 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7730
7731 fi
7732
7733 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7734 #include <$ac_cv_struct_tm>
7735
7736 "
7737 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7738
7739 cat >>confdefs.h <<_ACEOF
7740 #define HAVE_STRUCT_TM_TM_ZONE 1
7741 _ACEOF
7742
7743
7744 fi
7745
7746 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7747
7748 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7749
7750 else
7751 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7752 "
7753 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7754 ac_have_decl=1
7755 else
7756 ac_have_decl=0
7757 fi
7758
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DECL_TZNAME $ac_have_decl
7761 _ACEOF
7762
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7764 $as_echo_n "checking for tzname... " >&6; }
7765 if ${ac_cv_var_tzname+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 #include <time.h>
7771 #if !HAVE_DECL_TZNAME
7772 extern char *tzname[];
7773 #endif
7774
7775 int
7776 main ()
7777 {
7778 return tzname[0][0];
7779 ;
7780 return 0;
7781 }
7782 _ACEOF
7783 if ac_fn_c_try_link "$LINENO"; then :
7784 ac_cv_var_tzname=yes
7785 else
7786 ac_cv_var_tzname=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7792 $as_echo "$ac_cv_var_tzname" >&6; }
7793 if test $ac_cv_var_tzname = yes; then
7794
7795 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7796
7797 fi
7798 fi
7799
7800 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7801 "
7802 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7803
7804 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7805
7806 fi
7807
7808 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7809 #if HAVE_SYS_SOCKET_H
7810 #include <sys/socket.h>
7811 #endif
7812 #if HAVE_NET_IF_H
7813 #include <net/if.h>
7814 #endif
7815 "
7816 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
7817
7818 cat >>confdefs.h <<_ACEOF
7819 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7820 _ACEOF
7821
7822
7823 fi
7824 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7825 #if HAVE_SYS_SOCKET_H
7826 #include <sys/socket.h>
7827 #endif
7828 #if HAVE_NET_IF_H
7829 #include <net/if.h>
7830 #endif
7831 "
7832 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
7833
7834 cat >>confdefs.h <<_ACEOF
7835 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7836 _ACEOF
7837
7838
7839 fi
7840 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7841 #if HAVE_SYS_SOCKET_H
7842 #include <sys/socket.h>
7843 #endif
7844 #if HAVE_NET_IF_H
7845 #include <net/if.h>
7846 #endif
7847 "
7848 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
7849
7850 cat >>confdefs.h <<_ACEOF
7851 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7852 _ACEOF
7853
7854
7855 fi
7856 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7857 #if HAVE_SYS_SOCKET_H
7858 #include <sys/socket.h>
7859 #endif
7860 #if HAVE_NET_IF_H
7861 #include <net/if.h>
7862 #endif
7863 "
7864 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
7865
7866 cat >>confdefs.h <<_ACEOF
7867 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7868 _ACEOF
7869
7870
7871 fi
7872 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7873 #if HAVE_SYS_SOCKET_H
7874 #include <sys/socket.h>
7875 #endif
7876 #if HAVE_NET_IF_H
7877 #include <net/if.h>
7878 #endif
7879 "
7880 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
7881
7882 cat >>confdefs.h <<_ACEOF
7883 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7884 _ACEOF
7885
7886
7887 fi
7888
7889
7890
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7892 $as_echo_n "checking for function prototypes... " >&6; }
7893 if test "$ac_cv_prog_cc_c89" != no; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895 $as_echo "yes" >&6; }
7896
7897 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7898
7899
7900 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7901
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7908 $as_echo_n "checking for working volatile... " >&6; }
7909 if ${ac_cv_c_volatile+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914
7915 int
7916 main ()
7917 {
7918
7919 volatile int x;
7920 int * volatile y = (int *) 0;
7921 return !x && !y;
7922 ;
7923 return 0;
7924 }
7925 _ACEOF
7926 if ac_fn_c_try_compile "$LINENO"; then :
7927 ac_cv_c_volatile=yes
7928 else
7929 ac_cv_c_volatile=no
7930 fi
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7934 $as_echo "$ac_cv_c_volatile" >&6; }
7935 if test $ac_cv_c_volatile = no; then
7936
7937 $as_echo "#define volatile /**/" >>confdefs.h
7938
7939 fi
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7942 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7943 if ${ac_cv_c_const+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948
7949 int
7950 main ()
7951 {
7952 /* FIXME: Include the comments suggested by Paul. */
7953 #ifndef __cplusplus
7954 /* Ultrix mips cc rejects this. */
7955 typedef int charset[2];
7956 const charset cs;
7957 /* SunOS 4.1.1 cc rejects this. */
7958 char const *const *pcpcc;
7959 char **ppc;
7960 /* NEC SVR4.0.2 mips cc rejects this. */
7961 struct point {int x, y;};
7962 static struct point const zero = {0,0};
7963 /* AIX XL C 1.02.0.0 rejects this.
7964 It does not let you subtract one const X* pointer from another in
7965 an arm of an if-expression whose if-part is not a constant
7966 expression */
7967 const char *g = "string";
7968 pcpcc = &g + (g ? g-g : 0);
7969 /* HPUX 7.0 cc rejects these. */
7970 ++pcpcc;
7971 ppc = (char**) pcpcc;
7972 pcpcc = (char const *const *) ppc;
7973 { /* SCO 3.2v4 cc rejects this. */
7974 char *t;
7975 char const *s = 0 ? (char *) 0 : (char const *) 0;
7976
7977 *t++ = 0;
7978 if (s) return 0;
7979 }
7980 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7981 int x[] = {25, 17};
7982 const int *foo = &x[0];
7983 ++foo;
7984 }
7985 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7986 typedef const int *iptr;
7987 iptr p = 0;
7988 ++p;
7989 }
7990 { /* AIX XL C 1.02.0.0 rejects this saying
7991 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7992 struct s { int j; const int *ap[3]; };
7993 struct s *b; b->j = 5;
7994 }
7995 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7996 const int foo = 10;
7997 if (!foo) return 0;
7998 }
7999 return !cs[0] && !zero.x;
8000 #endif
8001
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 if ac_fn_c_try_compile "$LINENO"; then :
8007 ac_cv_c_const=yes
8008 else
8009 ac_cv_c_const=no
8010 fi
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8014 $as_echo "$ac_cv_c_const" >&6; }
8015 if test $ac_cv_c_const = no; then
8016
8017 $as_echo "#define const /**/" >>confdefs.h
8018
8019 fi
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8022 $as_echo_n "checking for void * support... " >&6; }
8023 if ${emacs_cv_void_star+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8028
8029 int
8030 main ()
8031 {
8032 void * foo;
8033 ;
8034 return 0;
8035 }
8036 _ACEOF
8037 if ac_fn_c_try_compile "$LINENO"; then :
8038 emacs_cv_void_star=yes
8039 else
8040 emacs_cv_void_star=no
8041 fi
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 fi
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8045 $as_echo "$emacs_cv_void_star" >&6; }
8046 if test $emacs_cv_void_star = yes; then
8047 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8048
8049 else
8050 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8051
8052 fi
8053
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8055 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8056 if ${ac_cv_c_bigendian+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 ac_cv_c_bigendian=unknown
8060 # See if we're dealing with a universal compiler.
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 #ifndef __APPLE_CC__
8064 not a universal capable compiler
8065 #endif
8066 typedef int dummy;
8067
8068 _ACEOF
8069 if ac_fn_c_try_compile "$LINENO"; then :
8070
8071 # Check for potential -arch flags. It is not universal unless
8072 # there are at least two -arch flags with different values.
8073 ac_arch=
8074 ac_prev=
8075 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8076 if test -n "$ac_prev"; then
8077 case $ac_word in
8078 i?86 | x86_64 | ppc | ppc64)
8079 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8080 ac_arch=$ac_word
8081 else
8082 ac_cv_c_bigendian=universal
8083 break
8084 fi
8085 ;;
8086 esac
8087 ac_prev=
8088 elif test "x$ac_word" = "x-arch"; then
8089 ac_prev=arch
8090 fi
8091 done
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 if test $ac_cv_c_bigendian = unknown; then
8095 # See if sys/param.h defines the BYTE_ORDER macro.
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098 #include <sys/types.h>
8099 #include <sys/param.h>
8100
8101 int
8102 main ()
8103 {
8104 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8105 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8106 && LITTLE_ENDIAN)
8107 bogus endian macros
8108 #endif
8109
8110 ;
8111 return 0;
8112 }
8113 _ACEOF
8114 if ac_fn_c_try_compile "$LINENO"; then :
8115 # It does; now see whether it defined to BIG_ENDIAN or not.
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 #include <sys/types.h>
8119 #include <sys/param.h>
8120
8121 int
8122 main ()
8123 {
8124 #if BYTE_ORDER != BIG_ENDIAN
8125 not big endian
8126 #endif
8127
8128 ;
8129 return 0;
8130 }
8131 _ACEOF
8132 if ac_fn_c_try_compile "$LINENO"; then :
8133 ac_cv_c_bigendian=yes
8134 else
8135 ac_cv_c_bigendian=no
8136 fi
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 fi
8141 if test $ac_cv_c_bigendian = unknown; then
8142 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 #include <limits.h>
8146
8147 int
8148 main ()
8149 {
8150 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8151 bogus endian macros
8152 #endif
8153
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 if ac_fn_c_try_compile "$LINENO"; then :
8159 # It does; now see whether it defined to _BIG_ENDIAN or not.
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 #include <limits.h>
8163
8164 int
8165 main ()
8166 {
8167 #ifndef _BIG_ENDIAN
8168 not big endian
8169 #endif
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"; then :
8176 ac_cv_c_bigendian=yes
8177 else
8178 ac_cv_c_bigendian=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 fi
8184 if test $ac_cv_c_bigendian = unknown; then
8185 # Compile a test program.
8186 if test "$cross_compiling" = yes; then :
8187 # Try to guess by grepping values from an object file.
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190 short int ascii_mm[] =
8191 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8192 short int ascii_ii[] =
8193 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8194 int use_ascii (int i) {
8195 return ascii_mm[i] + ascii_ii[i];
8196 }
8197 short int ebcdic_ii[] =
8198 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8199 short int ebcdic_mm[] =
8200 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8201 int use_ebcdic (int i) {
8202 return ebcdic_mm[i] + ebcdic_ii[i];
8203 }
8204 extern int foo;
8205
8206 int
8207 main ()
8208 {
8209 return use_ascii (foo) == use_ebcdic (foo);
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8216 ac_cv_c_bigendian=yes
8217 fi
8218 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8219 if test "$ac_cv_c_bigendian" = unknown; then
8220 ac_cv_c_bigendian=no
8221 else
8222 # finding both strings is unlikely to happen, but who knows?
8223 ac_cv_c_bigendian=unknown
8224 fi
8225 fi
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 else
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 $ac_includes_default
8232 int
8233 main ()
8234 {
8235
8236 /* Are we little or big endian? From Harbison&Steele. */
8237 union
8238 {
8239 long int l;
8240 char c[sizeof (long int)];
8241 } u;
8242 u.l = 1;
8243 return u.c[sizeof (long int) - 1] == 1;
8244
8245 ;
8246 return 0;
8247 }
8248 _ACEOF
8249 if ac_fn_c_try_run "$LINENO"; then :
8250 ac_cv_c_bigendian=no
8251 else
8252 ac_cv_c_bigendian=yes
8253 fi
8254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8255 conftest.$ac_objext conftest.beam conftest.$ac_ext
8256 fi
8257
8258 fi
8259 fi
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8261 $as_echo "$ac_cv_c_bigendian" >&6; }
8262 case $ac_cv_c_bigendian in #(
8263 yes)
8264 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8265 ;; #(
8266 no)
8267 ;; #(
8268 universal)
8269
8270 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8271
8272 ;; #(
8273 *)
8274 as_fn_error $? "unknown endianness
8275 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8276 esac
8277
8278
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8280 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8281 if ${emacs_cv_attribute_aligned+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 char __attribute__ ((__aligned__ (1 << 3))) c;
8287 int
8288 main ()
8289 {
8290
8291 ;
8292 return 0;
8293 }
8294 _ACEOF
8295 if ac_fn_c_try_compile "$LINENO"; then :
8296 emacs_cv_attribute_aligned=yes
8297 else
8298 emacs_cv_attribute_aligned=no
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8303 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8304 if test $emacs_cv_attribute_aligned = yes; then
8305
8306 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8307
8308 fi
8309
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8311 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8312 set x ${MAKE-make}
8313 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8314 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 cat >conftest.make <<\_ACEOF
8318 SHELL = /bin/sh
8319 all:
8320 @echo '@@@%%%=$(MAKE)=@@@%%%'
8321 _ACEOF
8322 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8323 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8324 *@@@%%%=?*=@@@%%%*)
8325 eval ac_cv_prog_make_${ac_make}_set=yes;;
8326 *)
8327 eval ac_cv_prog_make_${ac_make}_set=no;;
8328 esac
8329 rm -f conftest.make
8330 fi
8331 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8333 $as_echo "yes" >&6; }
8334 SET_MAKE=
8335 else
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 SET_MAKE="MAKE=${MAKE-make}"
8339 fi
8340
8341
8342 DEPFLAGS=
8343 MKDEPDIR=":"
8344 deps_frag=deps.mk
8345 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8347 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8348 HAVE_GNU_MAKE=no
8349 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8350 if test "x$testval" != x; then
8351 HAVE_GNU_MAKE=yes
8352 else
8353 ac_enable_autodepend=no
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8356 $as_echo "$HAVE_GNU_MAKE" >&6; }
8357 if test $HAVE_GNU_MAKE = yes; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8359 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8360 SAVE_CFLAGS="$CFLAGS"
8361 CFLAGS="$CFLAGS -MMD -MF deps.d"
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364
8365 int
8366 main ()
8367 {
8368
8369 ;
8370 return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374
8375 else
8376 ac_enable_autodepend=no
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 CFLAGS="$SAVE_CFLAGS"
8380 test -f deps.d || ac_enable_autodepend=no
8381 rm -rf deps.d
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8383 $as_echo "$ac_enable_autodepend" >&6; }
8384 fi
8385 if test $ac_enable_autodepend = yes; then
8386 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8387 ## In parallel builds, another make might create depdir between
8388 ## the first test and mkdir, so stick another test on the end.
8389 ## Or use mkinstalldirs? mkdir -p is not portable.
8390 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8391 deps_frag=autodeps.mk
8392 fi
8393 fi
8394 deps_frag=$srcdir/src/$deps_frag
8395
8396
8397
8398
8399
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8401 $as_echo_n "checking for long file names... " >&6; }
8402 if ${ac_cv_sys_long_file_names+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 ac_cv_sys_long_file_names=yes
8406 # Test for long file names in all the places we know might matter:
8407 # . the current directory, where building will happen
8408 # $prefix/lib where we will be installing things
8409 # $exec_prefix/lib likewise
8410 # $TMPDIR if set, where it might want to write temporary files
8411 # /tmp where it might want to write temporary files
8412 # /var/tmp likewise
8413 # /usr/tmp likewise
8414 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8415 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8416 # in the usual case where exec_prefix is '${prefix}'.
8417 case $ac_dir in #(
8418 . | /* | ?:[\\/]*) ;; #(
8419 *) continue;;
8420 esac
8421 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8422 ac_xdir=$ac_dir/cf$$
8423 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8424 ac_tf1=$ac_xdir/conftest9012345
8425 ac_tf2=$ac_xdir/conftest9012346
8426 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8427 ac_cv_sys_long_file_names=no
8428 rm -f -r "$ac_xdir" 2>/dev/null
8429 test $ac_cv_sys_long_file_names = no && break
8430 done
8431 fi
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8433 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8434 if test $ac_cv_sys_long_file_names = yes; then
8435
8436 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8437
8438 fi
8439
8440
8441 #### Choose a window system.
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8444 $as_echo_n "checking for X... " >&6; }
8445
8446
8447 # Check whether --with-x was given.
8448 if test "${with_x+set}" = set; then :
8449 withval=$with_x;
8450 fi
8451
8452 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8453 if test "x$with_x" = xno; then
8454 # The user explicitly disabled X.
8455 have_x=disabled
8456 else
8457 case $x_includes,$x_libraries in #(
8458 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8459 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 # One or both of the vars are not set, and there is no cached value.
8463 ac_x_includes=no ac_x_libraries=no
8464 rm -f -r conftest.dir
8465 if mkdir conftest.dir; then
8466 cd conftest.dir
8467 cat >Imakefile <<'_ACEOF'
8468 incroot:
8469 @echo incroot='${INCROOT}'
8470 usrlibdir:
8471 @echo usrlibdir='${USRLIBDIR}'
8472 libdir:
8473 @echo libdir='${LIBDIR}'
8474 _ACEOF
8475 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8476 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8477 for ac_var in incroot usrlibdir libdir; do
8478 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8479 done
8480 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8481 for ac_extension in a so sl dylib la dll; do
8482 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8483 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8484 ac_im_usrlibdir=$ac_im_libdir; break
8485 fi
8486 done
8487 # Screen out bogus values from the imake configuration. They are
8488 # bogus both because they are the default anyway, and because
8489 # using them would break gcc on systems where it needs fixed includes.
8490 case $ac_im_incroot in
8491 /usr/include) ac_x_includes= ;;
8492 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8493 esac
8494 case $ac_im_usrlibdir in
8495 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8496 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8497 esac
8498 fi
8499 cd ..
8500 rm -f -r conftest.dir
8501 fi
8502
8503 # Standard set of common directories for X headers.
8504 # Check X11 before X11Rn because it is often a symlink to the current release.
8505 ac_x_header_dirs='
8506 /usr/X11/include
8507 /usr/X11R7/include
8508 /usr/X11R6/include
8509 /usr/X11R5/include
8510 /usr/X11R4/include
8511
8512 /usr/include/X11
8513 /usr/include/X11R7
8514 /usr/include/X11R6
8515 /usr/include/X11R5
8516 /usr/include/X11R4
8517
8518 /usr/local/X11/include
8519 /usr/local/X11R7/include
8520 /usr/local/X11R6/include
8521 /usr/local/X11R5/include
8522 /usr/local/X11R4/include
8523
8524 /usr/local/include/X11
8525 /usr/local/include/X11R7
8526 /usr/local/include/X11R6
8527 /usr/local/include/X11R5
8528 /usr/local/include/X11R4
8529
8530 /usr/X386/include
8531 /usr/x386/include
8532 /usr/XFree86/include/X11
8533
8534 /usr/include
8535 /usr/local/include
8536 /usr/unsupported/include
8537 /usr/athena/include
8538 /usr/local/x11r5/include
8539 /usr/lpp/Xamples/include
8540
8541 /usr/openwin/include
8542 /usr/openwin/share/include'
8543
8544 if test "$ac_x_includes" = no; then
8545 # Guess where to find include files, by looking for Xlib.h.
8546 # First, try using that file with no special directory specified.
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <X11/Xlib.h>
8550 _ACEOF
8551 if ac_fn_c_try_cpp "$LINENO"; then :
8552 # We can compile using X headers with no special include directory.
8553 ac_x_includes=
8554 else
8555 for ac_dir in $ac_x_header_dirs; do
8556 if test -r "$ac_dir/X11/Xlib.h"; then
8557 ac_x_includes=$ac_dir
8558 break
8559 fi
8560 done
8561 fi
8562 rm -f conftest.err conftest.i conftest.$ac_ext
8563 fi # $ac_x_includes = no
8564
8565 if test "$ac_x_libraries" = no; then
8566 # Check for the libraries.
8567 # See if we find them without any special options.
8568 # Don't add to $LIBS permanently.
8569 ac_save_LIBS=$LIBS
8570 LIBS="-lX11 $LIBS"
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 #include <X11/Xlib.h>
8574 int
8575 main ()
8576 {
8577 XrmInitialize ()
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 LIBS=$ac_save_LIBS
8584 # We can link X programs with no special library path.
8585 ac_x_libraries=
8586 else
8587 LIBS=$ac_save_LIBS
8588 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8589 do
8590 # Don't even attempt the hair of trying to link an X program!
8591 for ac_extension in a so sl dylib la dll; do
8592 if test -r "$ac_dir/libX11.$ac_extension"; then
8593 ac_x_libraries=$ac_dir
8594 break 2
8595 fi
8596 done
8597 done
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8601 fi # $ac_x_libraries = no
8602
8603 case $ac_x_includes,$ac_x_libraries in #(
8604 no,* | *,no | *\'*)
8605 # Didn't find X, or a directory has "'" in its name.
8606 ac_cv_have_x="have_x=no";; #(
8607 *)
8608 # Record where we found X for the cache.
8609 ac_cv_have_x="have_x=yes\
8610 ac_x_includes='$ac_x_includes'\
8611 ac_x_libraries='$ac_x_libraries'"
8612 esac
8613 fi
8614 ;; #(
8615 *) have_x=yes;;
8616 esac
8617 eval "$ac_cv_have_x"
8618 fi # $with_x != no
8619
8620 if test "$have_x" != yes; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8622 $as_echo "$have_x" >&6; }
8623 no_x=yes
8624 else
8625 # If each of the values was on the command line, it overrides each guess.
8626 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8627 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8628 # Update the cache value to reflect the command line values.
8629 ac_cv_have_x="have_x=yes\
8630 ac_x_includes='$x_includes'\
8631 ac_x_libraries='$x_libraries'"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8633 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8634 fi
8635
8636 if test "$no_x" = yes; then
8637 window_system=none
8638 else
8639 window_system=x11
8640 fi
8641
8642 ## Workaround for bug in autoconf <= 2.62.
8643 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8644 ## No need to do anything special for these standard directories.
8645 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8646
8647 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8648
8649 fi
8650
8651 LD_SWITCH_X_SITE_AUX=
8652 LD_SWITCH_X_SITE_AUX_RPATH=
8653 if test "${x_libraries}" != NONE; then
8654 if test -n "${x_libraries}"; then
8655 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8656 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8657 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8658 fi
8659 x_default_search_path=""
8660 x_search_path=${x_libraries}
8661 if test -z "${x_search_path}"; then
8662 x_search_path=/usr/lib
8663 fi
8664 for x_library in `echo ${x_search_path}: | \
8665 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8666 x_search_path="\
8667 ${x_library}/X11/%L/%T/%N%C%S:\
8668 ${x_library}/X11/%l/%T/%N%C%S:\
8669 ${x_library}/X11/%T/%N%C%S:\
8670 ${x_library}/X11/%L/%T/%N%S:\
8671 ${x_library}/X11/%l/%T/%N%S:\
8672 ${x_library}/X11/%T/%N%S"
8673 if test x"${x_default_search_path}" = x; then
8674 x_default_search_path=${x_search_path}
8675 else
8676 x_default_search_path="${x_search_path}:${x_default_search_path}"
8677 fi
8678 done
8679 fi
8680
8681
8682
8683 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8684 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8685 fi
8686
8687 if test x"${x_includes}" = x; then
8688 bitmapdir=/usr/include/X11/bitmaps
8689 else
8690 # accumulate include directories that have X11 bitmap subdirectories
8691 bmd_acc="dummyval"
8692 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8693 if test -d "${bmd}/X11/bitmaps"; then
8694 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8695 fi
8696 if test -d "${bmd}/bitmaps"; then
8697 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8698 fi
8699 done
8700 if test ${bmd_acc} != "dummyval"; then
8701 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8702 fi
8703 fi
8704
8705 HAVE_NS=no
8706 NS_IMPL_COCOA=no
8707 NS_IMPL_GNUSTEP=no
8708 tmp_CPPFLAGS="$CPPFLAGS"
8709 tmp_CFLAGS="$CFLAGS"
8710 CPPFLAGS="$CPPFLAGS -x objective-c"
8711 CFLAGS="$CFLAGS -x objective-c"
8712 TEMACS_LDFLAGS2="\${LDFLAGS}"
8713 if test "${with_ns}" != no; then
8714 if test "${opsys}" = darwin; then
8715 NS_IMPL_COCOA=yes
8716 ns_appdir=`pwd`/nextstep/Emacs.app
8717 ns_appbindir=${ns_appdir}/Contents/MacOS/
8718 ns_appresdir=${ns_appdir}/Contents/Resources
8719 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8720 elif test -f $GNUSTEP_CONFIG_FILE; then
8721 NS_IMPL_GNUSTEP=yes
8722 ns_appdir=`pwd`/nextstep/Emacs.app
8723 ns_appbindir=${ns_appdir}/
8724 ns_appresdir=${ns_appdir}/Resources
8725 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8726 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8727 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8728 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8729 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8730 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8731 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8732 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8733 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8734 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8735 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8736 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8737 LIB_STANDARD=
8738 START_FILES=
8739 TEMACS_LDFLAGS2=
8740 fi
8741 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8742 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8743 HAVE_NS=yes
8744 else
8745 as_fn_error $? "\`--with-ns' was specified, but the include
8746 files are missing or cannot be compiled." "$LINENO" 5
8747 fi
8748
8749
8750 NS_HAVE_NSINTEGER=yes
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8753 #include <Foundation/NSObjCRuntime.h>
8754 int
8755 main ()
8756 {
8757 NSInteger i;
8758 ;
8759 return 0;
8760 }
8761 _ACEOF
8762 if ac_fn_c_try_compile "$LINENO"; then :
8763 ns_have_nsinteger=yes
8764 else
8765 ns_have_nsinteger=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 if test $ns_have_nsinteger = no; then
8769 NS_HAVE_NSINTEGER=no
8770 fi
8771 fi
8772
8773
8774 ns_frag=/dev/null
8775 NS_OBJ=
8776 NS_SUPPORT=
8777 if test "${HAVE_NS}" = yes; then
8778 window_system=nextstep
8779 with_xft=no
8780 # set up packaging dirs
8781 exec_prefix=${ns_appbindir}
8782 libexecdir=${ns_appbindir}/libexec
8783 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8784 prefix=${ns_appresdir}
8785 fi
8786 ns_frag=$srcdir/src/ns.mk
8787 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8788 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8789 fi
8790 CFLAGS="$tmp_CFLAGS"
8791 CPPFLAGS="$tmp_CPPFLAGS"
8792
8793
8794
8795
8796
8797 case "${window_system}" in
8798 x11 )
8799 HAVE_X_WINDOWS=yes
8800 HAVE_X11=yes
8801 case "${with_x_toolkit}" in
8802 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8803 motif ) USE_X_TOOLKIT=MOTIF ;;
8804 gtk ) with_gtk=yes
8805 USE_X_TOOLKIT=none ;;
8806 gtk3 ) with_gtk3=yes
8807 USE_X_TOOLKIT=none ;;
8808 no ) USE_X_TOOLKIT=none ;;
8809 * ) USE_X_TOOLKIT=maybe ;;
8810 esac
8811 ;;
8812 nextstep | none )
8813 HAVE_X_WINDOWS=no
8814 HAVE_X11=no
8815 USE_X_TOOLKIT=none
8816 ;;
8817 esac
8818
8819 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8820 # Extract the first word of "X", so it can be a program name with args.
8821 set dummy X; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 if test -n "$HAVE_XSERVER"; then
8828 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8832 do
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837 ac_cv_prog_HAVE_XSERVER="true"
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8840 fi
8841 done
8842 done
8843 IFS=$as_save_IFS
8844
8845 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8846 fi
8847 fi
8848 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8849 if test -n "$HAVE_XSERVER"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8851 $as_echo "$HAVE_XSERVER" >&6; }
8852 else
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8855 fi
8856
8857
8858 if test "$HAVE_XSERVER" = true ||
8859 test -n "$DISPLAY" ||
8860 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8861 as_fn_error $? "You seem to be running X, but no X development libraries
8862 were found. You should install the relevant development files for X
8863 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8864 sure you have development files for image handling, i.e.
8865 tiff, gif, jpeg, png and xpm.
8866 If you are sure you want Emacs compiled without X window support, pass
8867 --without-x
8868 to configure." "$LINENO" 5
8869 fi
8870 fi
8871
8872 ### If we're using X11, we should use the X menu package.
8873 HAVE_MENUS=no
8874 case ${HAVE_X11} in
8875 yes ) HAVE_MENUS=yes ;;
8876 esac
8877
8878 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8879 # Assume not, until told otherwise.
8880 GNU_MALLOC=yes
8881 doug_lea_malloc=yes
8882 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8883 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
8884
8885 else
8886 doug_lea_malloc=no
8887 fi
8888
8889 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8890 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
8891
8892 else
8893 doug_lea_malloc=no
8894 fi
8895
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8897 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8898 if ${emacs_cv_var___after_morecore_hook+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903 extern void (* __after_morecore_hook)();
8904 int
8905 main ()
8906 {
8907 __after_morecore_hook = 0
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"; then :
8913 emacs_cv_var___after_morecore_hook=yes
8914 else
8915 emacs_cv_var___after_morecore_hook=no
8916 fi
8917 rm -f core conftest.err conftest.$ac_objext \
8918 conftest$ac_exeext conftest.$ac_ext
8919 fi
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8921 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8922 if test $emacs_cv_var___after_morecore_hook = no; then
8923 doug_lea_malloc=no
8924 fi
8925
8926
8927 system_malloc=no
8928 case "$opsys" in
8929 ## darwin ld insists on the use of malloc routines in the System framework.
8930 darwin|sol2-10) system_malloc=yes ;;
8931 esac
8932
8933 if test "${system_malloc}" = "yes"; then
8934
8935 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8936
8937 GNU_MALLOC=no
8938 GNU_MALLOC_reason="
8939 (The GNU allocators don't work with this system configuration.)"
8940 GMALLOC_OBJ=
8941 VMLIMIT_OBJ=
8942 else
8943 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8944 VMLIMIT_OBJ=vm-limit.o
8945 fi
8946
8947
8948
8949 if test "$doug_lea_malloc" = "yes" ; then
8950 if test "$GNU_MALLOC" = yes ; then
8951 GNU_MALLOC_reason="
8952 (Using Doug Lea's new malloc from the GNU C Library.)"
8953 fi
8954
8955 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8956
8957
8958 ## Use mmap directly for allocating larger buffers.
8959 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8960 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8961 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8962 case "$opsys" in
8963 gnu*) REL_ALLOC=no ;;
8964 esac
8965 fi
8966
8967 if test x"${REL_ALLOC}" = x; then
8968 REL_ALLOC=${GNU_MALLOC}
8969 fi
8970
8971 use_mmap_for_buffers=no
8972 case "$opsys" in
8973 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8974 esac
8975
8976
8977
8978
8979 for ac_header in $ac_header_list
8980 do :
8981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8983 "
8984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8985 cat >>confdefs.h <<_ACEOF
8986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8987 _ACEOF
8988
8989 fi
8990
8991 done
8992
8993
8994
8995
8996
8997
8998
8999
9000 for ac_func in getpagesize
9001 do :
9002 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9003 if test "x$ac_cv_func_getpagesize" = xyes; then :
9004 cat >>confdefs.h <<_ACEOF
9005 #define HAVE_GETPAGESIZE 1
9006 _ACEOF
9007
9008 fi
9009 done
9010
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9012 $as_echo_n "checking for working mmap... " >&6; }
9013 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 if test "$cross_compiling" = yes; then :
9017 ac_cv_func_mmap_fixed_mapped=no
9018 else
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 $ac_includes_default
9022 /* malloc might have been renamed as rpl_malloc. */
9023 #undef malloc
9024
9025 /* Thanks to Mike Haertel and Jim Avera for this test.
9026 Here is a matrix of mmap possibilities:
9027 mmap private not fixed
9028 mmap private fixed at somewhere currently unmapped
9029 mmap private fixed at somewhere already mapped
9030 mmap shared not fixed
9031 mmap shared fixed at somewhere currently unmapped
9032 mmap shared fixed at somewhere already mapped
9033 For private mappings, we should verify that changes cannot be read()
9034 back from the file, nor mmap's back from the file at a different
9035 address. (There have been systems where private was not correctly
9036 implemented like the infamous i386 svr4.0, and systems where the
9037 VM page cache was not coherent with the file system buffer cache
9038 like early versions of FreeBSD and possibly contemporary NetBSD.)
9039 For shared mappings, we should conversely verify that changes get
9040 propagated back to all the places they're supposed to be.
9041
9042 Grep wants private fixed already mapped.
9043 The main things grep needs to know about mmap are:
9044 * does it exist and is it safe to write into the mmap'd area
9045 * how to use it (BSD variants) */
9046
9047 #include <fcntl.h>
9048 #include <sys/mman.h>
9049
9050 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9051 char *malloc ();
9052 #endif
9053
9054 /* This mess was copied from the GNU getpagesize.h. */
9055 #ifndef HAVE_GETPAGESIZE
9056 # ifdef _SC_PAGESIZE
9057 # define getpagesize() sysconf(_SC_PAGESIZE)
9058 # else /* no _SC_PAGESIZE */
9059 # ifdef HAVE_SYS_PARAM_H
9060 # include <sys/param.h>
9061 # ifdef EXEC_PAGESIZE
9062 # define getpagesize() EXEC_PAGESIZE
9063 # else /* no EXEC_PAGESIZE */
9064 # ifdef NBPG
9065 # define getpagesize() NBPG * CLSIZE
9066 # ifndef CLSIZE
9067 # define CLSIZE 1
9068 # endif /* no CLSIZE */
9069 # else /* no NBPG */
9070 # ifdef NBPC
9071 # define getpagesize() NBPC
9072 # else /* no NBPC */
9073 # ifdef PAGESIZE
9074 # define getpagesize() PAGESIZE
9075 # endif /* PAGESIZE */
9076 # endif /* no NBPC */
9077 # endif /* no NBPG */
9078 # endif /* no EXEC_PAGESIZE */
9079 # else /* no HAVE_SYS_PARAM_H */
9080 # define getpagesize() 8192 /* punt totally */
9081 # endif /* no HAVE_SYS_PARAM_H */
9082 # endif /* no _SC_PAGESIZE */
9083
9084 #endif /* no HAVE_GETPAGESIZE */
9085
9086 int
9087 main ()
9088 {
9089 char *data, *data2, *data3;
9090 const char *cdata2;
9091 int i, pagesize;
9092 int fd, fd2;
9093
9094 pagesize = getpagesize ();
9095
9096 /* First, make a file with some known garbage in it. */
9097 data = (char *) malloc (pagesize);
9098 if (!data)
9099 return 1;
9100 for (i = 0; i < pagesize; ++i)
9101 *(data + i) = rand ();
9102 umask (0);
9103 fd = creat ("conftest.mmap", 0600);
9104 if (fd < 0)
9105 return 2;
9106 if (write (fd, data, pagesize) != pagesize)
9107 return 3;
9108 close (fd);
9109
9110 /* Next, check that the tail of a page is zero-filled. File must have
9111 non-zero length, otherwise we risk SIGBUS for entire page. */
9112 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9113 if (fd2 < 0)
9114 return 4;
9115 cdata2 = "";
9116 if (write (fd2, cdata2, 1) != 1)
9117 return 5;
9118 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9119 if (data2 == MAP_FAILED)
9120 return 6;
9121 for (i = 0; i < pagesize; ++i)
9122 if (*(data2 + i))
9123 return 7;
9124 close (fd2);
9125 if (munmap (data2, pagesize))
9126 return 8;
9127
9128 /* Next, try to mmap the file at a fixed address which already has
9129 something else allocated at it. If we can, also make sure that
9130 we see the same garbage. */
9131 fd = open ("conftest.mmap", O_RDWR);
9132 if (fd < 0)
9133 return 9;
9134 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9135 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9136 return 10;
9137 for (i = 0; i < pagesize; ++i)
9138 if (*(data + i) != *(data2 + i))
9139 return 11;
9140
9141 /* Finally, make sure that changes to the mapped area do not
9142 percolate back to the file as seen by read(). (This is a bug on
9143 some variants of i386 svr4.0.) */
9144 for (i = 0; i < pagesize; ++i)
9145 *(data2 + i) = *(data2 + i) + 1;
9146 data3 = (char *) malloc (pagesize);
9147 if (!data3)
9148 return 12;
9149 if (read (fd, data3, pagesize) != pagesize)
9150 return 13;
9151 for (i = 0; i < pagesize; ++i)
9152 if (*(data + i) != *(data3 + i))
9153 return 14;
9154 close (fd);
9155 return 0;
9156 }
9157 _ACEOF
9158 if ac_fn_c_try_run "$LINENO"; then :
9159 ac_cv_func_mmap_fixed_mapped=yes
9160 else
9161 ac_cv_func_mmap_fixed_mapped=no
9162 fi
9163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9164 conftest.$ac_objext conftest.beam conftest.$ac_ext
9165 fi
9166
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9169 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9170 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9171
9172 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9173
9174 fi
9175 rm -f conftest.mmap conftest.txt
9176
9177 if test $use_mmap_for_buffers = yes; then
9178
9179 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9180
9181 REL_ALLOC=no
9182 fi
9183
9184 LIBS="$LIBS_SYSTEM $LIBS"
9185
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9187 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9188 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 ac_check_lib_save_LIBS=$LIBS
9192 LIBS="-ldnet $LIBS"
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195
9196 /* Override any GCC internal prototype to avoid an error.
9197 Use char because int might match the return type of a GCC
9198 builtin and then its argument prototype would still apply. */
9199 #ifdef __cplusplus
9200 extern "C"
9201 #endif
9202 char dnet_ntoa ();
9203 int
9204 main ()
9205 {
9206 return dnet_ntoa ();
9207 ;
9208 return 0;
9209 }
9210 _ACEOF
9211 if ac_fn_c_try_link "$LINENO"; then :
9212 ac_cv_lib_dnet_dnet_ntoa=yes
9213 else
9214 ac_cv_lib_dnet_dnet_ntoa=no
9215 fi
9216 rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218 LIBS=$ac_check_lib_save_LIBS
9219 fi
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9221 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9222 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9223 cat >>confdefs.h <<_ACEOF
9224 #define HAVE_LIBDNET 1
9225 _ACEOF
9226
9227 LIBS="-ldnet $LIBS"
9228
9229 fi
9230
9231
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9233 $as_echo_n "checking for main in -lXbsd... " >&6; }
9234 if ${ac_cv_lib_Xbsd_main+:} false; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 ac_check_lib_save_LIBS=$LIBS
9238 LIBS="-lXbsd $LIBS"
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241
9242
9243 int
9244 main ()
9245 {
9246 return main ();
9247 ;
9248 return 0;
9249 }
9250 _ACEOF
9251 if ac_fn_c_try_link "$LINENO"; then :
9252 ac_cv_lib_Xbsd_main=yes
9253 else
9254 ac_cv_lib_Xbsd_main=no
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258 LIBS=$ac_check_lib_save_LIBS
9259 fi
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9261 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9262 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9263 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9264 fi
9265
9266
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9268 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9269 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 ac_check_lib_save_LIBS=$LIBS
9273 LIBS="-lpthreads $LIBS"
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9280 #ifdef __cplusplus
9281 extern "C"
9282 #endif
9283 char cma_open ();
9284 int
9285 main ()
9286 {
9287 return cma_open ();
9288 ;
9289 return 0;
9290 }
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 ac_cv_lib_pthreads_cma_open=yes
9294 else
9295 ac_cv_lib_pthreads_cma_open=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LIBS=$ac_check_lib_save_LIBS
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9302 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9303 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9304 cat >>confdefs.h <<_ACEOF
9305 #define HAVE_LIBPTHREADS 1
9306 _ACEOF
9307
9308 LIBS="-lpthreads $LIBS"
9309
9310 fi
9311
9312
9313 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9314 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9315 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9316 ## added to LIBS in configure would never contain the pthreads part,
9317 ## but the value used in Makefiles might. FIXME?
9318 ##
9319 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9320 ## be harmless on older versions of X where it happens to exist.
9321 test "$opsys" = "aix4-2" && \
9322 test $ac_cv_lib_pthreads_cma_open = yes && \
9323 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9324
9325
9326 case ${host_os} in
9327 aix*)
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9329 $as_echo_n "checking for -bbigtoc option... " >&6; }
9330 if ${gdb_cv_bigtoc+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333
9334 case $GCC in
9335 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9336 *) gdb_cv_bigtoc=-bbigtoc ;;
9337 esac
9338
9339 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9342
9343 int
9344 main ()
9345 {
9346 int i;
9347 ;
9348 return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_link "$LINENO"; then :
9352
9353 else
9354 gdb_cv_bigtoc=
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9361 $as_echo "$gdb_cv_bigtoc" >&6; }
9362 ;;
9363 esac
9364
9365 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9366 # used for the tests that follow. We set them back to REAL_CFLAGS and
9367 # REAL_CPPFLAGS later on.
9368
9369 REAL_CFLAGS="$CFLAGS"
9370 REAL_CPPFLAGS="$CPPFLAGS"
9371
9372 if test "${HAVE_X11}" = "yes"; then
9373 DEFS="$C_SWITCH_X_SITE $DEFS"
9374 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9375 LIBS="-lX11 $LIBS"
9376 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9377 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9378
9379 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9380 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9381 # but it's more convenient here to set LD_RUN_PATH
9382 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9383 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9384 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9385 export LD_RUN_PATH
9386 fi
9387
9388 if test "${opsys}" = "gnu-linux"; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9390 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393
9394 int
9395 main ()
9396 {
9397 XOpenDisplay ("foo");
9398 ;
9399 return 0;
9400 }
9401 _ACEOF
9402 if ac_fn_c_try_link "$LINENO"; then :
9403 xlinux_first_failure=no
9404 else
9405 xlinux_first_failure=yes
9406 fi
9407 rm -f core conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9409 if test "${xlinux_first_failure}" = "yes"; then
9410 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9411 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9412 OLD_CPPFLAGS="$CPPFLAGS"
9413 OLD_LIBS="$LIBS"
9414 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9415 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9416 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9417 LIBS="$LIBS -b i486-linuxaout"
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h. */
9420
9421 int
9422 main ()
9423 {
9424 XOpenDisplay ("foo");
9425 ;
9426 return 0;
9427 }
9428 _ACEOF
9429 if ac_fn_c_try_link "$LINENO"; then :
9430 xlinux_second_failure=no
9431 else
9432 xlinux_second_failure=yes
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9436 if test "${xlinux_second_failure}" = "yes"; then
9437 # If we get the same failure with -b, there is no use adding -b.
9438 # So take it out. This plays safe.
9439 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9440 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9441 CPPFLAGS="$OLD_CPPFLAGS"
9442 LIBS="$OLD_LIBS"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444 $as_echo "no" >&6; }
9445 else
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9447 $as_echo "yes" >&6; }
9448 fi
9449 else
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 fi
9453 fi
9454
9455 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9456 # header files included from there.
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9458 $as_echo_n "checking for Xkb... " >&6; }
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 #include <X11/Xlib.h>
9462 #include <X11/XKBlib.h>
9463 int
9464 main ()
9465 {
9466 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 if ac_fn_c_try_link "$LINENO"; then :
9472 emacs_xkb=yes
9473 else
9474 emacs_xkb=no
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9479 $as_echo "$emacs_xkb" >&6; }
9480 if test $emacs_xkb = yes; then
9481
9482 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9483
9484 fi
9485
9486 for ac_func in XrmSetDatabase XScreenResourceString \
9487 XScreenNumberOfScreen XSetWMProtocols
9488 do :
9489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9492 cat >>confdefs.h <<_ACEOF
9493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9494 _ACEOF
9495
9496 fi
9497 done
9498
9499 fi
9500
9501 if test "${window_system}" = "x11"; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9503 $as_echo_n "checking X11 version 6... " >&6; }
9504 if ${emacs_cv_x11_version_6+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509 #include <X11/Xlib.h>
9510 int
9511 main ()
9512 {
9513 #if XlibSpecificationRelease < 6
9514 fail;
9515 #endif
9516
9517 ;
9518 return 0;
9519 }
9520 _ACEOF
9521 if ac_fn_c_try_link "$LINENO"; then :
9522 emacs_cv_x11_version_6=yes
9523 else
9524 emacs_cv_x11_version_6=no
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528 fi
9529
9530 if test $emacs_cv_x11_version_6 = yes; then
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9532 $as_echo "6 or newer" >&6; }
9533
9534 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9535
9536
9537 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9538
9539 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9540 ## XIM support.
9541 case "$opsys" in
9542 sol2-*) : ;;
9543 *)
9544 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9545
9546 ;;
9547 esac
9548 else
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9550 $as_echo "before 6" >&6; }
9551 fi
9552 fi
9553
9554
9555 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9556 HAVE_RSVG=no
9557 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9558 if test "${with_rsvg}" != "no"; then
9559 RSVG_REQUIRED=2.11.0
9560 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9561
9562
9563 succeeded=no
9564
9565 # Extract the first word of "pkg-config", so it can be a program name with args.
9566 set dummy pkg-config; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 case $PKG_CONFIG in
9573 [\\/]* | ?:[\\/]*)
9574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9575 ;;
9576 *)
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9579 do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588 done
9589 done
9590 IFS=$as_save_IFS
9591
9592 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9593 ;;
9594 esac
9595 fi
9596 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9597 if test -n "$PKG_CONFIG"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9599 $as_echo "$PKG_CONFIG" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9603 fi
9604
9605
9606
9607 if test "$PKG_CONFIG" = "no" ; then
9608 :
9609 else
9610 PKG_CONFIG_MIN_VERSION=0.9.0
9611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9613 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9614
9615 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9617 $as_echo "yes" >&6; }
9618 succeeded=yes
9619
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9621 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9622 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9624 $as_echo "$RSVG_CFLAGS" >&6; }
9625
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9627 $as_echo_n "checking RSVG_LIBS... " >&6; }
9628 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9630 $as_echo "$RSVG_LIBS" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9634 RSVG_CFLAGS=""
9635 RSVG_LIBS=""
9636 ## If we have a custom action on failure, don't print errors, but
9637 ## do set a variable so people can do so.
9638 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9639
9640 fi
9641
9642
9643
9644 else
9645 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9646 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9647 fi
9648 fi
9649
9650 if test $succeeded = yes; then
9651 HAVE_RSVG=yes
9652 else
9653 :
9654 fi
9655
9656
9657
9658
9659 if test $HAVE_RSVG = yes; then
9660
9661 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9662
9663 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9664 LIBS="$RSVG_LIBS $LIBS"
9665 fi
9666 fi
9667 fi
9668
9669 HAVE_IMAGEMAGICK=no
9670 if test "${HAVE_X11}" = "yes"; then
9671 if test "${with_imagemagick}" != "no"; then
9672 IMAGEMAGICK_MODULE="Wand"
9673
9674 succeeded=no
9675
9676 # Extract the first word of "pkg-config", so it can be a program name with args.
9677 set dummy pkg-config; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 case $PKG_CONFIG in
9684 [\\/]* | ?:[\\/]*)
9685 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9686 ;;
9687 *)
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9690 do
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9695 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 break 2
9698 fi
9699 done
9700 done
9701 IFS=$as_save_IFS
9702
9703 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9704 ;;
9705 esac
9706 fi
9707 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9708 if test -n "$PKG_CONFIG"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9710 $as_echo "$PKG_CONFIG" >&6; }
9711 else
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9714 fi
9715
9716
9717
9718 if test "$PKG_CONFIG" = "no" ; then
9719 :
9720 else
9721 PKG_CONFIG_MIN_VERSION=0.9.0
9722 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9724 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9725
9726 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9728 $as_echo "yes" >&6; }
9729 succeeded=yes
9730
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9732 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9733 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9735 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9736
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9738 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9739 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9741 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9745 IMAGEMAGICK_CFLAGS=""
9746 IMAGEMAGICK_LIBS=""
9747 ## If we have a custom action on failure, don't print errors, but
9748 ## do set a variable so people can do so.
9749 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9750
9751 fi
9752
9753
9754
9755 else
9756 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9757 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9758 fi
9759 fi
9760
9761 if test $succeeded = yes; then
9762 HAVE_IMAGEMAGICK=yes
9763 else
9764 :
9765 fi
9766
9767
9768
9769
9770 if test $HAVE_IMAGEMAGICK = yes; then
9771
9772 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9773
9774 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9775 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9776 for ac_func in MagickExportImagePixels
9777 do :
9778 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9779 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
9780 cat >>confdefs.h <<_ACEOF
9781 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9782 _ACEOF
9783
9784 fi
9785 done
9786
9787 fi
9788 fi
9789 fi
9790
9791
9792 HAVE_GTK=no
9793 if test "${with_gtk3}" = "yes"; then
9794 GLIB_REQUIRED=2.6
9795 GTK_REQUIRED=2.90
9796 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9797
9798
9799 succeeded=no
9800
9801 # Extract the first word of "pkg-config", so it can be a program name with args.
9802 set dummy pkg-config; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 case $PKG_CONFIG in
9809 [\\/]* | ?:[\\/]*)
9810 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9811 ;;
9812 *)
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9820 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 break 2
9823 fi
9824 done
9825 done
9826 IFS=$as_save_IFS
9827
9828 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9829 ;;
9830 esac
9831 fi
9832 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9833 if test -n "$PKG_CONFIG"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9835 $as_echo "$PKG_CONFIG" >&6; }
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9839 fi
9840
9841
9842
9843 if test "$PKG_CONFIG" = "no" ; then
9844 pkg_check_gtk=no
9845 else
9846 PKG_CONFIG_MIN_VERSION=0.9.0
9847 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9849 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9850
9851 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9853 $as_echo "yes" >&6; }
9854 succeeded=yes
9855
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9857 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9858 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9860 $as_echo "$GTK_CFLAGS" >&6; }
9861
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9863 $as_echo_n "checking GTK_LIBS... " >&6; }
9864 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9866 $as_echo "$GTK_LIBS" >&6; }
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9870 GTK_CFLAGS=""
9871 GTK_LIBS=""
9872 ## If we have a custom action on failure, don't print errors, but
9873 ## do set a variable so people can do so.
9874 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9875
9876 fi
9877
9878
9879
9880 else
9881 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9882 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9883 fi
9884 fi
9885
9886 if test $succeeded = yes; then
9887 pkg_check_gtk=yes
9888 else
9889 pkg_check_gtk=no
9890 fi
9891
9892 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9893 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9894 fi
9895 fi
9896
9897 if test "$pkg_check_gtk" != "yes"; then
9898 HAVE_GTK=no
9899 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9900 GLIB_REQUIRED=2.6
9901 GTK_REQUIRED=2.6
9902 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9903
9904
9905 succeeded=no
9906
9907 # Extract the first word of "pkg-config", so it can be a program name with args.
9908 set dummy pkg-config; ac_word=$2
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910 $as_echo_n "checking for $ac_word... " >&6; }
9911 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 case $PKG_CONFIG in
9915 [\\/]* | ?:[\\/]*)
9916 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9917 ;;
9918 *)
9919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920 for as_dir in $PATH
9921 do
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9926 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9929 fi
9930 done
9931 done
9932 IFS=$as_save_IFS
9933
9934 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9935 ;;
9936 esac
9937 fi
9938 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9939 if test -n "$PKG_CONFIG"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9941 $as_echo "$PKG_CONFIG" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9945 fi
9946
9947
9948
9949 if test "$PKG_CONFIG" = "no" ; then
9950 pkg_check_gtk=no
9951 else
9952 PKG_CONFIG_MIN_VERSION=0.9.0
9953 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9955 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9956
9957 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9959 $as_echo "yes" >&6; }
9960 succeeded=yes
9961
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9963 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9964 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9966 $as_echo "$GTK_CFLAGS" >&6; }
9967
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9969 $as_echo_n "checking GTK_LIBS... " >&6; }
9970 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9972 $as_echo "$GTK_LIBS" >&6; }
9973 else
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9976 GTK_CFLAGS=""
9977 GTK_LIBS=""
9978 ## If we have a custom action on failure, don't print errors, but
9979 ## do set a variable so people can do so.
9980 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9981
9982 fi
9983
9984
9985
9986 else
9987 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9988 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9989 fi
9990 fi
9991
9992 if test $succeeded = yes; then
9993 pkg_check_gtk=yes
9994 else
9995 pkg_check_gtk=no
9996 fi
9997
9998 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9999 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10000 fi
10001 fi
10002 fi
10003
10004 GTK_OBJ=
10005 if test x"$pkg_check_gtk" = xyes; then
10006
10007
10008
10009 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10010 CFLAGS="$CFLAGS $GTK_CFLAGS"
10011 LIBS="$GTK_LIBS $LIBS"
10012 GTK_COMPILES=no
10013 for ac_func in gtk_main
10014 do :
10015 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10016 if test "x$ac_cv_func_gtk_main" = xyes; then :
10017 cat >>confdefs.h <<_ACEOF
10018 #define HAVE_GTK_MAIN 1
10019 _ACEOF
10020 GTK_COMPILES=yes
10021 fi
10022 done
10023
10024 if test "${GTK_COMPILES}" != "yes"; then
10025 if test "$USE_X_TOOLKIT" != "maybe"; then
10026 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10027 fi
10028 else
10029 HAVE_GTK=yes
10030
10031 $as_echo "#define USE_GTK 1" >>confdefs.h
10032
10033 GTK_OBJ=gtkutil.o
10034 USE_X_TOOLKIT=none
10035 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10036 :
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10039 closing open displays. This is no problem if you just use
10040 one display, but if you use more than one and close one of them
10041 Emacs may crash." >&5
10042 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10043 closing open displays. This is no problem if you just use
10044 one display, but if you use more than one and close one of them
10045 Emacs may crash." >&2;}
10046 sleep 3
10047 fi
10048 fi
10049
10050 fi
10051
10052
10053
10054 if test "${HAVE_GTK}" = "yes"; then
10055
10056 if test "$with_toolkit_scroll_bars" != no; then
10057 with_toolkit_scroll_bars=yes
10058 fi
10059
10060 HAVE_GTK_FILE_SELECTION=no
10061 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10062 #include <gtk/gtk.h>
10063 "
10064 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10065 HAVE_GTK_FILE_SELECTION=yes
10066 else
10067 HAVE_GTK_FILE_SELECTION=no
10068 fi
10069
10070 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10071 for ac_func in gtk_file_selection_new
10072 do :
10073 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10074 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10075 cat >>confdefs.h <<_ACEOF
10076 #define HAVE_GTK_FILE_SELECTION_NEW 1
10077 _ACEOF
10078
10079 fi
10080 done
10081
10082 fi
10083
10084 HAVE_GTK_AND_PTHREAD=no
10085 for ac_header in pthread.h
10086 do :
10087 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10088 if test "x$ac_cv_header_pthread_h" = xyes; then :
10089 cat >>confdefs.h <<_ACEOF
10090 #define HAVE_PTHREAD_H 1
10091 _ACEOF
10092
10093 fi
10094
10095 done
10096
10097 if test "$ac_cv_header_pthread_h"; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10099 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10100 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-lpthread $LIBS"
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107
10108 /* Override any GCC internal prototype to avoid an error.
10109 Use char because int might match the return type of a GCC
10110 builtin and then its argument prototype would still apply. */
10111 #ifdef __cplusplus
10112 extern "C"
10113 #endif
10114 char pthread_self ();
10115 int
10116 main ()
10117 {
10118 return pthread_self ();
10119 ;
10120 return 0;
10121 }
10122 _ACEOF
10123 if ac_fn_c_try_link "$LINENO"; then :
10124 ac_cv_lib_pthread_pthread_self=yes
10125 else
10126 ac_cv_lib_pthread_pthread_self=no
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
10130 LIBS=$ac_check_lib_save_LIBS
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10133 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10134 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10135 HAVE_GTK_AND_PTHREAD=yes
10136 fi
10137
10138 fi
10139 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10140 case "${canonical}" in
10141 *-hpux*) ;;
10142 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10143 esac
10144
10145 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10146
10147 fi
10148
10149 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10150 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10151 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10152 gtk_orientable_set_orientation
10153 do :
10154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10155 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10156 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10157 cat >>confdefs.h <<_ACEOF
10158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10159 _ACEOF
10160
10161 fi
10162 done
10163
10164
10165 fi
10166
10167 HAVE_DBUS=no
10168 DBUS_OBJ=
10169 if test "${with_dbus}" = "yes"; then
10170
10171 succeeded=no
10172
10173 # Extract the first word of "pkg-config", so it can be a program name with args.
10174 set dummy pkg-config; ac_word=$2
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10176 $as_echo_n "checking for $ac_word... " >&6; }
10177 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 case $PKG_CONFIG in
10181 [\\/]* | ?:[\\/]*)
10182 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10183 ;;
10184 *)
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10187 do
10188 IFS=$as_save_IFS
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10192 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10194 break 2
10195 fi
10196 done
10197 done
10198 IFS=$as_save_IFS
10199
10200 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10201 ;;
10202 esac
10203 fi
10204 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10205 if test -n "$PKG_CONFIG"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10207 $as_echo "$PKG_CONFIG" >&6; }
10208 else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10211 fi
10212
10213
10214
10215 if test "$PKG_CONFIG" = "no" ; then
10216 HAVE_DBUS=no
10217 else
10218 PKG_CONFIG_MIN_VERSION=0.9.0
10219 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10221 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10222
10223 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10225 $as_echo "yes" >&6; }
10226 succeeded=yes
10227
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10229 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10230 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10232 $as_echo "$DBUS_CFLAGS" >&6; }
10233
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10235 $as_echo_n "checking DBUS_LIBS... " >&6; }
10236 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10238 $as_echo "$DBUS_LIBS" >&6; }
10239 else
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10242 DBUS_CFLAGS=""
10243 DBUS_LIBS=""
10244 ## If we have a custom action on failure, don't print errors, but
10245 ## do set a variable so people can do so.
10246 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10247
10248 fi
10249
10250
10251
10252 else
10253 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10254 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10255 fi
10256 fi
10257
10258 if test $succeeded = yes; then
10259 HAVE_DBUS=yes
10260 else
10261 HAVE_DBUS=no
10262 fi
10263
10264 if test "$HAVE_DBUS" = yes; then
10265 LIBS="$LIBS $DBUS_LIBS"
10266
10267 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10268
10269 for ac_func in dbus_watch_get_unix_fd
10270 do :
10271 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10272 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10273 cat >>confdefs.h <<_ACEOF
10274 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10275 _ACEOF
10276
10277 fi
10278 done
10279
10280 DBUS_OBJ=dbusbind.o
10281 fi
10282 fi
10283
10284
10285 HAVE_GCONF=no
10286 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10287
10288 succeeded=no
10289
10290 # Extract the first word of "pkg-config", so it can be a program name with args.
10291 set dummy pkg-config; ac_word=$2
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10293 $as_echo_n "checking for $ac_word... " >&6; }
10294 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 case $PKG_CONFIG in
10298 [\\/]* | ?:[\\/]*)
10299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10300 ;;
10301 *)
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10304 do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10312 fi
10313 done
10314 done
10315 IFS=$as_save_IFS
10316
10317 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10318 ;;
10319 esac
10320 fi
10321 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10322 if test -n "$PKG_CONFIG"; then
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10324 $as_echo "$PKG_CONFIG" >&6; }
10325 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327 $as_echo "no" >&6; }
10328 fi
10329
10330
10331
10332 if test "$PKG_CONFIG" = "no" ; then
10333 HAVE_GCONF=no
10334 else
10335 PKG_CONFIG_MIN_VERSION=0.9.0
10336 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10338 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10339
10340 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10342 $as_echo "yes" >&6; }
10343 succeeded=yes
10344
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10346 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10347 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10349 $as_echo "$GCONF_CFLAGS" >&6; }
10350
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10352 $as_echo_n "checking GCONF_LIBS... " >&6; }
10353 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10355 $as_echo "$GCONF_LIBS" >&6; }
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 GCONF_CFLAGS=""
10360 GCONF_LIBS=""
10361 ## If we have a custom action on failure, don't print errors, but
10362 ## do set a variable so people can do so.
10363 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10364
10365 fi
10366
10367
10368
10369 else
10370 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10371 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10372 fi
10373 fi
10374
10375 if test $succeeded = yes; then
10376 HAVE_GCONF=yes
10377 else
10378 HAVE_GCONF=no
10379 fi
10380
10381 if test "$HAVE_GCONF" = yes; then
10382
10383 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10384
10385 for ac_func in g_type_init
10386 do :
10387 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10388 if test "x$ac_cv_func_g_type_init" = xyes; then :
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_G_TYPE_INIT 1
10391 _ACEOF
10392
10393 fi
10394 done
10395
10396 fi
10397 fi
10398
10399 HAVE_LIBSELINUX=no
10400 LIBSELINUX_LIBS=
10401 if test "${with_selinux}" = "yes"; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10403 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10404 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-lselinux $LIBS"
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411
10412 /* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10415 #ifdef __cplusplus
10416 extern "C"
10417 #endif
10418 char lgetfilecon ();
10419 int
10420 main ()
10421 {
10422 return lgetfilecon ();
10423 ;
10424 return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428 ac_cv_lib_selinux_lgetfilecon=yes
10429 else
10430 ac_cv_lib_selinux_lgetfilecon=no
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 LIBS=$ac_check_lib_save_LIBS
10435 fi
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10437 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10438 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10439 HAVE_LIBSELINUX=yes
10440 else
10441 HAVE_LIBSELINUX=no
10442 fi
10443
10444 if test "$HAVE_LIBSELINUX" = yes; then
10445
10446 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10447
10448 LIBSELINUX_LIBS=-lselinux
10449 fi
10450 fi
10451
10452
10453 HAVE_GNUTLS=no
10454 if test "${with_gnutls}" = "yes" ; then
10455
10456 succeeded=no
10457
10458 # Extract the first word of "pkg-config", so it can be a program name with args.
10459 set dummy pkg-config; ac_word=$2
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461 $as_echo_n "checking for $ac_word... " >&6; }
10462 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 case $PKG_CONFIG in
10466 [\\/]* | ?:[\\/]*)
10467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10468 ;;
10469 *)
10470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471 for as_dir in $PATH
10472 do
10473 IFS=$as_save_IFS
10474 test -z "$as_dir" && as_dir=.
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10477 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10479 break 2
10480 fi
10481 done
10482 done
10483 IFS=$as_save_IFS
10484
10485 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10486 ;;
10487 esac
10488 fi
10489 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10490 if test -n "$PKG_CONFIG"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10492 $as_echo "$PKG_CONFIG" >&6; }
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497
10498
10499
10500 if test "$PKG_CONFIG" = "no" ; then
10501 HAVE_GNUTLS=no
10502 else
10503 PKG_CONFIG_MIN_VERSION=0.9.0
10504 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10506 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10507
10508 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10510 $as_echo "yes" >&6; }
10511 succeeded=yes
10512
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10514 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10515 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10517 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10518
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10520 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10521 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10523 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10527 LIBGNUTLS_CFLAGS=""
10528 LIBGNUTLS_LIBS=""
10529 ## If we have a custom action on failure, don't print errors, but
10530 ## do set a variable so people can do so.
10531 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10532
10533 fi
10534
10535
10536
10537 else
10538 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10539 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10540 fi
10541 fi
10542
10543 if test $succeeded = yes; then
10544 HAVE_GNUTLS=yes
10545 else
10546 HAVE_GNUTLS=no
10547 fi
10548
10549 if test "${HAVE_GNUTLS}" = "yes"; then
10550
10551 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10552
10553 fi
10554 fi
10555
10556
10557
10558 HAVE_XAW3D=no
10559 LUCID_LIBW=
10560 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10561 if test "$with_xaw3d" != no; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10563 $as_echo_n "checking for xaw3d... " >&6; }
10564 if ${emacs_cv_xaw3d+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10569
10570 #include <X11/Intrinsic.h>
10571 #include <X11/Xaw3d/Simple.h>
10572 int
10573 main ()
10574 {
10575
10576 ;
10577 return 0;
10578 }
10579 _ACEOF
10580 if ac_fn_c_try_link "$LINENO"; then :
10581 emacs_cv_xaw3d=yes
10582 else
10583 emacs_cv_xaw3d=no
10584 fi
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 fi
10588
10589 else
10590 emacs_cv_xaw3d=no
10591 fi
10592 if test $emacs_cv_xaw3d = yes; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10594 $as_echo "yes; using Lucid toolkit" >&6; }
10595 USE_X_TOOLKIT=LUCID
10596 HAVE_XAW3D=yes
10597 LUCID_LIBW=-lXaw3d
10598
10599 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10600
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10605 $as_echo_n "checking for libXaw... " >&6; }
10606 if ${emacs_cv_xaw+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611
10612 #include <X11/Intrinsic.h>
10613 #include <X11/Xaw/Simple.h>
10614 int
10615 main ()
10616 {
10617
10618 ;
10619 return 0;
10620 }
10621 _ACEOF
10622 if ac_fn_c_try_link "$LINENO"; then :
10623 emacs_cv_xaw=yes
10624 else
10625 emacs_cv_xaw=no
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 fi
10630
10631 if test $emacs_cv_xaw = yes; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10633 $as_echo "yes; using Lucid toolkit" >&6; }
10634 USE_X_TOOLKIT=LUCID
10635 LUCID_LIBW=-lXaw
10636 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10637 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10640 $as_echo "no; do not use toolkit by default" >&6; }
10641 USE_X_TOOLKIT=none
10642 fi
10643 fi
10644 fi
10645
10646 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10647
10648 LIBXTR6=
10649 if test "${USE_X_TOOLKIT}" != "none"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10651 $as_echo_n "checking X11 toolkit version... " >&6; }
10652 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #include <X11/Intrinsic.h>
10658 int
10659 main ()
10660 {
10661 #if XtSpecificationRelease < 6
10662 fail;
10663 #endif
10664
10665 ;
10666 return 0;
10667 }
10668 _ACEOF
10669 if ac_fn_c_try_link "$LINENO"; then :
10670 emacs_cv_x11_toolkit_version_6=yes
10671 else
10672 emacs_cv_x11_toolkit_version_6=no
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 fi
10677
10678 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10679 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10681 $as_echo "6 or newer" >&6; }
10682
10683 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10684
10685 LIBXTR6="-lSM -lICE"
10686 case "$opsys" in
10687 ## Use libw.a along with X11R6 Xt.
10688 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10689 esac
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10692 $as_echo "before 6" >&6; }
10693 fi
10694
10695 OLDLIBS="$LIBS"
10696 if test x$HAVE_X11XTR6 = xyes; then
10697 LIBS="-lXt -lSM -lICE $LIBS"
10698 else
10699 LIBS="-lXt $LIBS"
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10702 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10703 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-lXmu $LIBS"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char XmuConvertStandardSelection ();
10718 int
10719 main ()
10720 {
10721 return XmuConvertStandardSelection ();
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10728 else
10729 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10730 fi
10731 rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10734 fi
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10736 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10737 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
10738 cat >>confdefs.h <<_ACEOF
10739 #define HAVE_LIBXMU 1
10740 _ACEOF
10741
10742 LIBS="-lXmu $LIBS"
10743
10744 fi
10745
10746 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10747 fi
10748
10749
10750 LIBXMU=-lXmu
10751 case $opsys in
10752 ## These systems don't supply Xmu.
10753 hpux* | aix4-2 )
10754 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10755 ;;
10756 esac
10757
10758
10759 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10760 if test "${HAVE_X11}" = "yes"; then
10761 if test "${USE_X_TOOLKIT}" != "none"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10763 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10764 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-lXext $LIBS"
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char XShapeQueryExtension ();
10779 int
10780 main ()
10781 {
10782 return XShapeQueryExtension ();
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"; then :
10788 ac_cv_lib_Xext_XShapeQueryExtension=yes
10789 else
10790 ac_cv_lib_Xext_XShapeQueryExtension=no
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10795 fi
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10797 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10798 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10799 cat >>confdefs.h <<_ACEOF
10800 #define HAVE_LIBXEXT 1
10801 _ACEOF
10802
10803 LIBS="-lXext $LIBS"
10804
10805 fi
10806
10807 fi
10808 fi
10809
10810 LIBXP=
10811 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10813 $as_echo_n "checking for Motif version 2.1... " >&6; }
10814 if ${emacs_cv_motif_version_2_1+:} false; then :
10815 $as_echo_n "(cached) " >&6
10816 else
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819 #include <Xm/Xm.h>
10820 int
10821 main ()
10822 {
10823 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10824 int x = 5;
10825 #else
10826 Motif version prior to 2.1.
10827 #endif
10828 ;
10829 return 0;
10830 }
10831 _ACEOF
10832 if ac_fn_c_try_compile "$LINENO"; then :
10833 emacs_cv_motif_version_2_1=yes
10834 else
10835 emacs_cv_motif_version_2_1=no
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838 fi
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10840 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10841 if test $emacs_cv_motif_version_2_1 = yes; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10843 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10844 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 ac_check_lib_save_LIBS=$LIBS
10848 LIBS="-lXp $LIBS"
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851
10852 /* Override any GCC internal prototype to avoid an error.
10853 Use char because int might match the return type of a GCC
10854 builtin and then its argument prototype would still apply. */
10855 #ifdef __cplusplus
10856 extern "C"
10857 #endif
10858 char XpCreateContext ();
10859 int
10860 main ()
10861 {
10862 return XpCreateContext ();
10863 ;
10864 return 0;
10865 }
10866 _ACEOF
10867 if ac_fn_c_try_link "$LINENO"; then :
10868 ac_cv_lib_Xp_XpCreateContext=yes
10869 else
10870 ac_cv_lib_Xp_XpCreateContext=no
10871 fi
10872 rm -f core conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874 LIBS=$ac_check_lib_save_LIBS
10875 fi
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10877 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10878 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
10879 LIBXP=-lXp
10880 fi
10881
10882 else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10884 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10885 if ${emacs_cv_lesstif+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 # We put this in CFLAGS temporarily to precede other -I options
10889 # that might be in CFLAGS temporarily.
10890 # We put this in CPPFLAGS where it precedes the other -I options.
10891 OLD_CPPFLAGS=$CPPFLAGS
10892 OLD_CFLAGS=$CFLAGS
10893 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10894 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10898 int
10899 main ()
10900 {
10901 int x = 5;
10902 ;
10903 return 0;
10904 }
10905 _ACEOF
10906 if ac_fn_c_try_compile "$LINENO"; then :
10907 emacs_cv_lesstif=yes
10908 else
10909 emacs_cv_lesstif=no
10910 fi
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 fi
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10914 $as_echo "$emacs_cv_lesstif" >&6; }
10915 if test $emacs_cv_lesstif = yes; then
10916 # Make sure this -I option remains in CPPFLAGS after it is set
10917 # back to REAL_CPPFLAGS.
10918 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10919 # have those other -I options anyway. Ultimately, having this
10920 # directory ultimately in CPPFLAGS will be enough.
10921 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10922 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10923 else
10924 CFLAGS=$OLD_CFLAGS
10925 CPPFLAGS=$OLD_CPPFLAGS
10926 fi
10927 fi
10928 fi
10929
10930
10931 USE_TOOLKIT_SCROLL_BARS=no
10932 if test "${with_toolkit_scroll_bars}" != "no"; then
10933 if test "${USE_X_TOOLKIT}" != "none"; then
10934 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10935 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10936
10937 HAVE_XAW3D=no
10938 USE_TOOLKIT_SCROLL_BARS=yes
10939 elif test "${HAVE_XAW3D}" = "yes"; then
10940 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10941
10942 USE_TOOLKIT_SCROLL_BARS=yes
10943 fi
10944 elif test "${HAVE_GTK}" = "yes"; then
10945 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10946
10947 USE_TOOLKIT_SCROLL_BARS=yes
10948 elif test "${HAVE_NS}" = "yes"; then
10949 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10950
10951 USE_TOOLKIT_SCROLL_BARS=yes
10952 fi
10953 fi
10954
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957
10958 #include <X11/Xlib.h>
10959 #include <X11/Xresource.h>
10960 int
10961 main ()
10962 {
10963 XIMProc callback;
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_c_try_compile "$LINENO"; then :
10969 HAVE_XIM=yes
10970
10971 $as_echo "#define HAVE_XIM 1" >>confdefs.h
10972
10973 else
10974 HAVE_XIM=no
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977
10978
10979 if test "${with_xim}" != "no"; then
10980
10981 $as_echo "#define USE_XIM 1" >>confdefs.h
10982
10983 fi
10984
10985
10986 if test "${HAVE_XIM}" != "no"; then
10987 late_CFLAGS=$CFLAGS
10988 if test "$GCC" = yes; then
10989 CFLAGS="$CFLAGS --pedantic-errors"
10990 fi
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10993
10994 #include <X11/Xlib.h>
10995 #include <X11/Xresource.h>
10996 int
10997 main ()
10998 {
10999 Display *display;
11000 XrmDatabase db;
11001 char *res_name;
11002 char *res_class;
11003 XIMProc callback;
11004 XPointer *client_data;
11005 #ifndef __GNUC__
11006 /* If we're not using GCC, it's probably not XFree86, and this is
11007 probably right, but we can't use something like --pedantic-errors. */
11008 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11009 char*, XIMProc, XPointer*);
11010 #endif
11011 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11012 client_data);
11013 ;
11014 return 0;
11015 }
11016 _ACEOF
11017 if ac_fn_c_try_compile "$LINENO"; then :
11018 emacs_cv_arg6_star=yes
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 if test "$emacs_cv_arg6_star" = yes; then
11022 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11023
11024 else
11025 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11026
11027 fi
11028 CFLAGS=$late_CFLAGS
11029 fi
11030
11031 ### Start of font-backend (under any platform) section.
11032 # (nothing here yet -- this is a placeholder)
11033 ### End of font-backend (under any platform) section.
11034
11035 ### Start of font-backend (under X11) section.
11036 if test "${HAVE_X11}" = "yes"; then
11037
11038 succeeded=no
11039
11040 # Extract the first word of "pkg-config", so it can be a program name with args.
11041 set dummy pkg-config; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 case $PKG_CONFIG in
11048 [\\/]* | ?:[\\/]*)
11049 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11050 ;;
11051 *)
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11054 do
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11059 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11062 fi
11063 done
11064 done
11065 IFS=$as_save_IFS
11066
11067 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11068 ;;
11069 esac
11070 fi
11071 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11072 if test -n "$PKG_CONFIG"; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11074 $as_echo "$PKG_CONFIG" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11078 fi
11079
11080
11081
11082 if test "$PKG_CONFIG" = "no" ; then
11083 HAVE_FC=no
11084 else
11085 PKG_CONFIG_MIN_VERSION=0.9.0
11086 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11088 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11089
11090 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11092 $as_echo "yes" >&6; }
11093 succeeded=yes
11094
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11096 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11097 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11099 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11100
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11102 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11103 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11105 $as_echo "$FONTCONFIG_LIBS" >&6; }
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11109 FONTCONFIG_CFLAGS=""
11110 FONTCONFIG_LIBS=""
11111 ## If we have a custom action on failure, don't print errors, but
11112 ## do set a variable so people can do so.
11113 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11114
11115 fi
11116
11117
11118
11119 else
11120 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11121 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11122 fi
11123 fi
11124
11125 if test $succeeded = yes; then
11126 HAVE_FC=yes
11127 else
11128 HAVE_FC=no
11129 fi
11130
11131
11132 ## Use -lXft if available, unless `--with-xft=no'.
11133 HAVE_XFT=maybe
11134 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11135 with_xft="no";
11136 fi
11137 if test "x${with_xft}" != "xno"; then
11138
11139
11140 succeeded=no
11141
11142 # Extract the first word of "pkg-config", so it can be a program name with args.
11143 set dummy pkg-config; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 case $PKG_CONFIG in
11150 [\\/]* | ?:[\\/]*)
11151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11152 ;;
11153 *)
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11156 do
11157 IFS=$as_save_IFS
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 break 2
11164 fi
11165 done
11166 done
11167 IFS=$as_save_IFS
11168
11169 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11170 ;;
11171 esac
11172 fi
11173 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11174 if test -n "$PKG_CONFIG"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11176 $as_echo "$PKG_CONFIG" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11180 fi
11181
11182
11183
11184 if test "$PKG_CONFIG" = "no" ; then
11185 HAVE_XFT=no
11186 else
11187 PKG_CONFIG_MIN_VERSION=0.9.0
11188 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11190 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11191
11192 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11194 $as_echo "yes" >&6; }
11195 succeeded=yes
11196
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11198 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11199 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11201 $as_echo "$XFT_CFLAGS" >&6; }
11202
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11204 $as_echo_n "checking XFT_LIBS... " >&6; }
11205 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11207 $as_echo "$XFT_LIBS" >&6; }
11208 else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 XFT_CFLAGS=""
11212 XFT_LIBS=""
11213 ## If we have a custom action on failure, don't print errors, but
11214 ## do set a variable so people can do so.
11215 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11216
11217 fi
11218
11219
11220
11221 else
11222 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11223 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11224 fi
11225 fi
11226
11227 if test $succeeded = yes; then
11228 :
11229 else
11230 HAVE_XFT=no
11231 fi
11232
11233 ## Because xftfont.c uses XRenderQueryExtension, we also
11234 ## need to link to -lXrender.
11235 HAVE_XRENDER=no
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11237 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11238 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 ac_check_lib_save_LIBS=$LIBS
11242 LIBS="-lXrender $LIBS"
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245
11246 /* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 char XRenderQueryExtension ();
11253 int
11254 main ()
11255 {
11256 return XRenderQueryExtension ();
11257 ;
11258 return 0;
11259 }
11260 _ACEOF
11261 if ac_fn_c_try_link "$LINENO"; then :
11262 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11263 else
11264 ac_cv_lib_Xrender_XRenderQueryExtension=no
11265 fi
11266 rm -f core conftest.err conftest.$ac_objext \
11267 conftest$ac_exeext conftest.$ac_ext
11268 LIBS=$ac_check_lib_save_LIBS
11269 fi
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11271 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11272 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11273 HAVE_XRENDER=yes
11274 fi
11275
11276 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11277 OLD_CPPFLAGS="$CPPFLAGS"
11278 OLD_CFLAGS="$CFLAGS"
11279 OLD_LIBS="$LIBS"
11280 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11281 CFLAGS="$CFLAGS $XFT_CFLAGS"
11282 XFT_LIBS="-lXrender $XFT_LIBS"
11283 LIBS="$XFT_LIBS $LIBS"
11284 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11285 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11287 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11288 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 ac_check_lib_save_LIBS=$LIBS
11292 LIBS="-lXft $XFT_LIBS $LIBS"
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295
11296 /* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11299 #ifdef __cplusplus
11300 extern "C"
11301 #endif
11302 char XftFontOpen ();
11303 int
11304 main ()
11305 {
11306 return XftFontOpen ();
11307 ;
11308 return 0;
11309 }
11310 _ACEOF
11311 if ac_fn_c_try_link "$LINENO"; then :
11312 ac_cv_lib_Xft_XftFontOpen=yes
11313 else
11314 ac_cv_lib_Xft_XftFontOpen=no
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11321 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11322 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11323 HAVE_XFT=yes
11324 fi
11325
11326 fi
11327
11328
11329
11330 if test "${HAVE_XFT}" = "yes"; then
11331
11332 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11333
11334
11335 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11336 else
11337 CPPFLAGS="$OLD_CPPFLAGS"
11338 CFLAGS="$OLD_CFLAGS"
11339 LIBS="$OLD_LIBS"
11340 fi # "${HAVE_XFT}" = "yes"
11341 fi # "$HAVE_XFT" != no
11342 fi # "x${with_xft}" != "xno"
11343
11344 if test "$HAVE_XFT" != "yes"; then
11345 HAVE_XFT=no
11346 fi
11347
11348 ## We used to allow building with FreeType and without Xft.
11349 ## However, the ftx font backend driver is not in good shape.
11350 HAVE_FREETYPE=$HAVE_XFT
11351
11352 HAVE_LIBOTF=no
11353 if test "${HAVE_FREETYPE}" = "yes"; then
11354
11355 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11356
11357 if test "${with_libotf}" != "no"; then
11358
11359 succeeded=no
11360
11361 # Extract the first word of "pkg-config", so it can be a program name with args.
11362 set dummy pkg-config; ac_word=$2
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11364 $as_echo_n "checking for $ac_word... " >&6; }
11365 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 case $PKG_CONFIG in
11369 [\\/]* | ?:[\\/]*)
11370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11371 ;;
11372 *)
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11375 do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384 done
11385 done
11386 IFS=$as_save_IFS
11387
11388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11389 ;;
11390 esac
11391 fi
11392 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11393 if test -n "$PKG_CONFIG"; then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11395 $as_echo "$PKG_CONFIG" >&6; }
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11399 fi
11400
11401
11402
11403 if test "$PKG_CONFIG" = "no" ; then
11404 HAVE_LIBOTF=no
11405 else
11406 PKG_CONFIG_MIN_VERSION=0.9.0
11407 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11409 $as_echo_n "checking for libotf... " >&6; }
11410
11411 if $PKG_CONFIG --exists "libotf" 2>&5; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11413 $as_echo "yes" >&6; }
11414 succeeded=yes
11415
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11417 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11418 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11420 $as_echo "$LIBOTF_CFLAGS" >&6; }
11421
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11423 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11424 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11426 $as_echo "$LIBOTF_LIBS" >&6; }
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11430 LIBOTF_CFLAGS=""
11431 LIBOTF_LIBS=""
11432 ## If we have a custom action on failure, don't print errors, but
11433 ## do set a variable so people can do so.
11434 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11435
11436 fi
11437
11438
11439
11440 else
11441 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11442 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11443 fi
11444 fi
11445
11446 if test $succeeded = yes; then
11447 HAVE_LIBOTF=yes
11448 else
11449 HAVE_LIBOTF=no
11450 fi
11451
11452 if test "$HAVE_LIBOTF" = "yes"; then
11453
11454 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11455
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11457 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11458 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-lotf $LIBS"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 char OTF_get_variation_glyphs ();
11473 int
11474 main ()
11475 {
11476 return OTF_get_variation_glyphs ();
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11483 else
11484 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11485 fi
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11491 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11492 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11493 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11494 else
11495 HAVE_OTF_GET_VARIATION_GLYPHS=no
11496 fi
11497
11498 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11499
11500 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11501
11502 fi
11503 fi
11504 fi
11505 fi
11506
11507 HAVE_M17N_FLT=no
11508 if test "${HAVE_LIBOTF}" = yes; then
11509 if test "${with_m17n_flt}" != "no"; then
11510
11511 succeeded=no
11512
11513 # Extract the first word of "pkg-config", so it can be a program name with args.
11514 set dummy pkg-config; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 case $PKG_CONFIG in
11521 [\\/]* | ?:[\\/]*)
11522 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11523 ;;
11524 *)
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11527 do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11535 fi
11536 done
11537 done
11538 IFS=$as_save_IFS
11539
11540 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11541 ;;
11542 esac
11543 fi
11544 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11545 if test -n "$PKG_CONFIG"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11547 $as_echo "$PKG_CONFIG" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 fi
11552
11553
11554
11555 if test "$PKG_CONFIG" = "no" ; then
11556 HAVE_M17N_FLT=no
11557 else
11558 PKG_CONFIG_MIN_VERSION=0.9.0
11559 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11561 $as_echo_n "checking for m17n-flt... " >&6; }
11562
11563 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11565 $as_echo "yes" >&6; }
11566 succeeded=yes
11567
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11569 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11570 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11572 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11573
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11575 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11576 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11578 $as_echo "$M17N_FLT_LIBS" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11582 M17N_FLT_CFLAGS=""
11583 M17N_FLT_LIBS=""
11584 ## If we have a custom action on failure, don't print errors, but
11585 ## do set a variable so people can do so.
11586 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11587
11588 fi
11589
11590
11591
11592 else
11593 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11594 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11595 fi
11596 fi
11597
11598 if test $succeeded = yes; then
11599 HAVE_M17N_FLT=yes
11600 else
11601 HAVE_M17N_FLT=no
11602 fi
11603
11604 if test "$HAVE_M17N_FLT" = "yes"; then
11605
11606 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11607
11608 fi
11609 fi
11610 fi
11611 else
11612 HAVE_XFT=no
11613 HAVE_FREETYPE=no
11614 HAVE_LIBOTF=no
11615 HAVE_M17N_FLT=no
11616 fi
11617
11618 ### End of font-backend (under X11) section.
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629 ### Use -lXpm if available, unless `--with-xpm=no'.
11630 HAVE_XPM=no
11631 LIBXPM=
11632 if test "${HAVE_X11}" = "yes"; then
11633 if test "${with_xpm}" != "no"; then
11634 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11635 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11637 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11638 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 ac_check_lib_save_LIBS=$LIBS
11642 LIBS="-lXpm -lX11 $LIBS"
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645
11646 /* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 char XpmReadFileToPixmap ();
11653 int
11654 main ()
11655 {
11656 return XpmReadFileToPixmap ();
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11663 else
11664 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_lib_save_LIBS
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11671 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11672 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11673 HAVE_XPM=yes
11674 fi
11675
11676 fi
11677
11678
11679 if test "${HAVE_XPM}" = "yes"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11681 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 #include "X11/xpm.h"
11685 #ifndef XpmReturnAllocPixels
11686 no_return_alloc_pixels
11687 #endif
11688
11689 _ACEOF
11690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11691 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11692 HAVE_XPM=no
11693 else
11694 HAVE_XPM=yes
11695 fi
11696 rm -f conftest*
11697
11698
11699 if test "${HAVE_XPM}" = "yes"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11701 $as_echo "yes" >&6; }
11702 else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11705 fi
11706 fi
11707 fi
11708
11709 if test "${HAVE_XPM}" = "yes"; then
11710
11711 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11712
11713 LIBXPM=-lXpm
11714 fi
11715 fi
11716
11717
11718 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11719 HAVE_JPEG=no
11720 LIBJPEG=
11721 if test "${HAVE_X11}" = "yes"; then
11722 if test "${with_jpeg}" != "no"; then
11723 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11724 if test "x$ac_cv_header_jerror_h" = xyes; then :
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11726 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11727 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 ac_check_lib_save_LIBS=$LIBS
11731 LIBS="-ljpeg $LIBS"
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11734
11735 /* Override any GCC internal prototype to avoid an error.
11736 Use char because int might match the return type of a GCC
11737 builtin and then its argument prototype would still apply. */
11738 #ifdef __cplusplus
11739 extern "C"
11740 #endif
11741 char jpeg_destroy_compress ();
11742 int
11743 main ()
11744 {
11745 return jpeg_destroy_compress ();
11746 ;
11747 return 0;
11748 }
11749 _ACEOF
11750 if ac_fn_c_try_link "$LINENO"; then :
11751 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11752 else
11753 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11754 fi
11755 rm -f core conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
11757 LIBS=$ac_check_lib_save_LIBS
11758 fi
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11760 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11761 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
11762 HAVE_JPEG=yes
11763 fi
11764
11765 fi
11766
11767
11768 fi
11769
11770 if test "${HAVE_JPEG}" = "yes"; then
11771 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11772
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775 #include <jpeglib.h>
11776 version=JPEG_LIB_VERSION
11777
11778 _ACEOF
11779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11780 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11781 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11782
11783 else
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11785 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11786 HAVE_JPEG=no
11787 fi
11788 rm -f conftest*
11789
11790 fi
11791 if test "${HAVE_JPEG}" = "yes"; then
11792 LIBJPEG=-ljpeg
11793 fi
11794 fi
11795
11796
11797 ### Use -lpng if available, unless `--with-png=no'.
11798 HAVE_PNG=no
11799 LIBPNG=
11800 if test "${HAVE_X11}" = "yes"; then
11801 if test "${with_png}" != "no"; then
11802 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11803 # in /usr/include/libpng.
11804 for ac_header in png.h libpng/png.h
11805 do :
11806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11807 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11808 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11809 cat >>confdefs.h <<_ACEOF
11810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11811 _ACEOF
11812
11813 fi
11814
11815 done
11816
11817 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11819 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11820 if ${ac_cv_lib_png_png_get_channels+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 ac_check_lib_save_LIBS=$LIBS
11824 LIBS="-lpng -lz -lm $LIBS"
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827
11828 /* Override any GCC internal prototype to avoid an error.
11829 Use char because int might match the return type of a GCC
11830 builtin and then its argument prototype would still apply. */
11831 #ifdef __cplusplus
11832 extern "C"
11833 #endif
11834 char png_get_channels ();
11835 int
11836 main ()
11837 {
11838 return png_get_channels ();
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_c_try_link "$LINENO"; then :
11844 ac_cv_lib_png_png_get_channels=yes
11845 else
11846 ac_cv_lib_png_png_get_channels=no
11847 fi
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850 LIBS=$ac_check_lib_save_LIBS
11851 fi
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11853 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11854 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
11855 HAVE_PNG=yes
11856 fi
11857
11858 fi
11859 fi
11860
11861 if test "${HAVE_PNG}" = "yes"; then
11862
11863 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11864
11865 LIBPNG="-lpng -lz -lm"
11866 fi
11867 fi
11868
11869
11870 ### Use -ltiff if available, unless `--with-tiff=no'.
11871 HAVE_TIFF=no
11872 LIBTIFF=
11873 if test "${HAVE_X11}" = "yes"; then
11874 if test "${with_tiff}" != "no"; then
11875 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11876 if test "x$ac_cv_header_tiffio_h" = xyes; then :
11877 tifflibs="-lz -lm"
11878 # At least one tiff package requires the jpeg library.
11879 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11881 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11882 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 ac_check_lib_save_LIBS=$LIBS
11886 LIBS="-ltiff $tifflibs $LIBS"
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11889
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 char TIFFGetVersion ();
11897 int
11898 main ()
11899 {
11900 return TIFFGetVersion ();
11901 ;
11902 return 0;
11903 }
11904 _ACEOF
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 ac_cv_lib_tiff_TIFFGetVersion=yes
11907 else
11908 ac_cv_lib_tiff_TIFFGetVersion=no
11909 fi
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_lib_save_LIBS
11913 fi
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11915 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11916 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
11917 HAVE_TIFF=yes
11918 fi
11919
11920 fi
11921
11922
11923 fi
11924
11925 if test "${HAVE_TIFF}" = "yes"; then
11926
11927 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11928
11929 LIBTIFF=-ltiff
11930 fi
11931 fi
11932
11933
11934 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11935 HAVE_GIF=no
11936 LIBGIF=
11937 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11938 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11939 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
11940 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11941 # Earlier versions can crash Emacs.
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11943 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11944 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-lgif $LIBS"
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951
11952 /* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 char EGifPutExtensionLast ();
11959 int
11960 main ()
11961 {
11962 return EGifPutExtensionLast ();
11963 ;
11964 return 0;
11965 }
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 ac_cv_lib_gif_EGifPutExtensionLast=yes
11969 else
11970 ac_cv_lib_gif_EGifPutExtensionLast=no
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11977 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
11978 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
11979 HAVE_GIF=yes
11980 else
11981 HAVE_GIF=maybe
11982 fi
11983
11984 fi
11985
11986
11987
11988 if test "$HAVE_GIF" = yes; then
11989 LIBGIF=-lgif
11990 elif test "$HAVE_GIF" = maybe; then
11991 # If gif_lib.h but no libgif, try libungif.
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
11993 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
11994 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 ac_check_lib_save_LIBS=$LIBS
11998 LIBS="-lungif $LIBS"
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12001
12002 /* Override any GCC internal prototype to avoid an error.
12003 Use char because int might match the return type of a GCC
12004 builtin and then its argument prototype would still apply. */
12005 #ifdef __cplusplus
12006 extern "C"
12007 #endif
12008 char EGifPutExtensionLast ();
12009 int
12010 main ()
12011 {
12012 return EGifPutExtensionLast ();
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 if ac_fn_c_try_link "$LINENO"; then :
12018 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12019 else
12020 ac_cv_lib_ungif_EGifPutExtensionLast=no
12021 fi
12022 rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12024 LIBS=$ac_check_lib_save_LIBS
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12027 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12028 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12029 HAVE_GIF=yes
12030 else
12031 HAVE_GIF=no
12032 fi
12033
12034 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12035 fi
12036
12037 if test "${HAVE_GIF}" = "yes"; then
12038
12039 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12040
12041 fi
12042 fi
12043
12044
12045 if test "${HAVE_X11}" = "yes"; then
12046 MISSING=""
12047 WITH_NO=""
12048 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12049 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12050 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12051 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12052 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12053 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12054 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12055 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12056 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12057 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12058
12059 if test "X${MISSING}" != X; then
12060 as_fn_error $? "The following required libraries were not found:
12061 $MISSING
12062 Maybe some development libraries/packages are missing?
12063 If you don't want to link with them give
12064 $WITH_NO
12065 as options to configure" "$LINENO" 5
12066 fi
12067 fi
12068
12069 ### Use -lgpm if available, unless `--with-gpm=no'.
12070 HAVE_GPM=no
12071 LIBGPM=
12072 MOUSE_SUPPORT=
12073 if test "${with_gpm}" != "no"; then
12074 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12075 if test "x$ac_cv_header_gpm_h" = xyes; then :
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12077 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12078 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 ac_check_lib_save_LIBS=$LIBS
12082 LIBS="-lgpm $LIBS"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085
12086 /* Override any GCC internal prototype to avoid an error.
12087 Use char because int might match the return type of a GCC
12088 builtin and then its argument prototype would still apply. */
12089 #ifdef __cplusplus
12090 extern "C"
12091 #endif
12092 char Gpm_Open ();
12093 int
12094 main ()
12095 {
12096 return Gpm_Open ();
12097 ;
12098 return 0;
12099 }
12100 _ACEOF
12101 if ac_fn_c_try_link "$LINENO"; then :
12102 ac_cv_lib_gpm_Gpm_Open=yes
12103 else
12104 ac_cv_lib_gpm_Gpm_Open=no
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12109 fi
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12111 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12112 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12113 HAVE_GPM=yes
12114 fi
12115
12116 fi
12117
12118
12119
12120 if test "${HAVE_GPM}" = "yes"; then
12121
12122 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12123
12124 LIBGPM=-lgpm
12125 ## May be reset below.
12126 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12127 fi
12128 fi
12129
12130
12131 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12132 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12133
12134 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12135
12136 fi
12137
12138
12139
12140 C_SWITCH_X_SYSTEM=
12141 ### Use NeXTstep API to implement GUI.
12142 if test "${HAVE_NS}" = "yes"; then
12143
12144 $as_echo "#define HAVE_NS 1" >>confdefs.h
12145
12146 if test "${NS_IMPL_COCOA}" = "yes"; then
12147
12148 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12149
12150 GNU_OBJC_CFLAGS=
12151 fi
12152 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12153
12154 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12155
12156 # See also .m.o rule in Makefile.in */
12157 # FIXME: are all these flags really needed? Document here why. */
12158 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12159 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12160 fi
12161 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12162
12163 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12164
12165 fi
12166 # We also have mouse menus.
12167 HAVE_MENUS=yes
12168 OTHER_FILES=ns-app
12169 fi
12170
12171
12172 ### Use session management (-lSM -lICE) if available
12173 HAVE_X_SM=no
12174 LIBXSM=
12175 if test "${HAVE_X11}" = "yes"; then
12176 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12177 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12179 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12180 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 ac_check_lib_save_LIBS=$LIBS
12184 LIBS="-lSM -lICE $LIBS"
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char SmcOpenConnection ();
12195 int
12196 main ()
12197 {
12198 return SmcOpenConnection ();
12199 ;
12200 return 0;
12201 }
12202 _ACEOF
12203 if ac_fn_c_try_link "$LINENO"; then :
12204 ac_cv_lib_SM_SmcOpenConnection=yes
12205 else
12206 ac_cv_lib_SM_SmcOpenConnection=no
12207 fi
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12211 fi
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12213 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12214 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12215 HAVE_X_SM=yes
12216 fi
12217
12218 fi
12219
12220
12221
12222 if test "${HAVE_X_SM}" = "yes"; then
12223
12224 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12225
12226 LIBXSM="-lSM -lICE"
12227 case "$LIBS" in
12228 *-lSM*) ;;
12229 *) LIBS="$LIBXSM $LIBS" ;;
12230 esac
12231 fi
12232 fi
12233
12234
12235 ### Use libxml (-lxml2) if available
12236 if test "${with_xml2}" != "no"; then
12237 ### I'm not sure what the version number should be, so I just guessed.
12238
12239 succeeded=no
12240
12241 # Extract the first word of "pkg-config", so it can be a program name with args.
12242 set dummy pkg-config; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 case $PKG_CONFIG in
12249 [\\/]* | ?:[\\/]*)
12250 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12251 ;;
12252 *)
12253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12255 do
12256 IFS=$as_save_IFS
12257 test -z "$as_dir" && as_dir=.
12258 for ac_exec_ext in '' $ac_executable_extensions; do
12259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 break 2
12263 fi
12264 done
12265 done
12266 IFS=$as_save_IFS
12267
12268 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12269 ;;
12270 esac
12271 fi
12272 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12273 if test -n "$PKG_CONFIG"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12275 $as_echo "$PKG_CONFIG" >&6; }
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 fi
12280
12281
12282
12283 if test "$PKG_CONFIG" = "no" ; then
12284 HAVE_LIBXML2=no
12285 else
12286 PKG_CONFIG_MIN_VERSION=0.9.0
12287 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12289 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12290
12291 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293 $as_echo "yes" >&6; }
12294 succeeded=yes
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12297 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12298 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12300 $as_echo "$LIBXML2_CFLAGS" >&6; }
12301
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12303 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12304 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12306 $as_echo "$LIBXML2_LIBS" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12310 LIBXML2_CFLAGS=""
12311 LIBXML2_LIBS=""
12312 ## If we have a custom action on failure, don't print errors, but
12313 ## do set a variable so people can do so.
12314 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12315
12316 fi
12317
12318
12319
12320 else
12321 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12322 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12323 fi
12324 fi
12325
12326 if test $succeeded = yes; then
12327 HAVE_LIBXML2=yes
12328 else
12329 HAVE_LIBXML2=no
12330 fi
12331
12332 if test "${HAVE_LIBXML2}" = "yes"; then
12333 LIBS="$LIBXML2_LIBS $LIBS"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12335 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12336 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-lxml2 $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char htmlReadMemory ();
12351 int
12352 main ()
12353 {
12354 return htmlReadMemory ();
12355 ;
12356 return 0;
12357 }
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ac_cv_lib_xml2_htmlReadMemory=yes
12361 else
12362 ac_cv_lib_xml2_htmlReadMemory=no
12363 fi
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12367 fi
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12369 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12370 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12371 HAVE_LIBXML2=yes
12372 else
12373 HAVE_LIBXML2=no
12374 fi
12375
12376 if test "${HAVE_LIBXML2}" = "yes"; then
12377
12378 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12379
12380 else
12381 LIBXML2_LIBS=""
12382 LIBXML2_CFLAGS=""
12383 fi
12384 fi
12385 fi
12386
12387
12388
12389 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12391 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12392 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 #include <netdb.h>
12398 int
12399 main ()
12400 {
12401 return h_errno;
12402 ;
12403 return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 emacs_cv_netdb_declares_h_errno=yes
12408 else
12409 emacs_cv_netdb_declares_h_errno=no
12410 fi
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12415 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12416 if test $emacs_cv_netdb_declares_h_errno = yes; then
12417
12418 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12419
12420 fi
12421
12422 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12423 if test "x$ac_cv_type_size_t" = xyes; then :
12424
12425 else
12426
12427 cat >>confdefs.h <<_ACEOF
12428 #define size_t unsigned int
12429 _ACEOF
12430
12431 fi
12432
12433 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12434 # for constant arguments. Useless!
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12436 $as_echo_n "checking for working alloca.h... " >&6; }
12437 if ${ac_cv_working_alloca_h+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #include <alloca.h>
12443 int
12444 main ()
12445 {
12446 char *p = (char *) alloca (2 * sizeof (int));
12447 if (p) return 0;
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"; then :
12453 ac_cv_working_alloca_h=yes
12454 else
12455 ac_cv_working_alloca_h=no
12456 fi
12457 rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12461 $as_echo "$ac_cv_working_alloca_h" >&6; }
12462 if test $ac_cv_working_alloca_h = yes; then
12463
12464 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12465
12466 fi
12467
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12469 $as_echo_n "checking for alloca... " >&6; }
12470 if ${ac_cv_func_alloca_works+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12475 #ifdef __GNUC__
12476 # define alloca __builtin_alloca
12477 #else
12478 # ifdef _MSC_VER
12479 # include <malloc.h>
12480 # define alloca _alloca
12481 # else
12482 # ifdef HAVE_ALLOCA_H
12483 # include <alloca.h>
12484 # else
12485 # ifdef _AIX
12486 #pragma alloca
12487 # else
12488 # ifndef alloca /* predefined by HP cc +Olibcalls */
12489 void *alloca (size_t);
12490 # endif
12491 # endif
12492 # endif
12493 # endif
12494 #endif
12495
12496 int
12497 main ()
12498 {
12499 char *p = (char *) alloca (1);
12500 if (p) return 0;
12501 ;
12502 return 0;
12503 }
12504 _ACEOF
12505 if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_func_alloca_works=yes
12507 else
12508 ac_cv_func_alloca_works=no
12509 fi
12510 rm -f core conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12512 fi
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12514 $as_echo "$ac_cv_func_alloca_works" >&6; }
12515
12516 if test $ac_cv_func_alloca_works = yes; then
12517
12518 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12519
12520 else
12521 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12522 # that cause trouble. Some versions do not even contain alloca or
12523 # contain a buggy version. If you still want to use their alloca,
12524 # use ar to extract alloca.o from them instead of compiling alloca.c.
12525
12526 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12527
12528 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12529
12530
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12532 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12533 if ${ac_cv_os_cray+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538 #if defined CRAY && ! defined CRAY2
12539 webecray
12540 #else
12541 wenotbecray
12542 #endif
12543
12544 _ACEOF
12545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12546 $EGREP "webecray" >/dev/null 2>&1; then :
12547 ac_cv_os_cray=yes
12548 else
12549 ac_cv_os_cray=no
12550 fi
12551 rm -f conftest*
12552
12553 fi
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12555 $as_echo "$ac_cv_os_cray" >&6; }
12556 if test $ac_cv_os_cray = yes; then
12557 for ac_func in _getb67 GETB67 getb67; do
12558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12560 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12561
12562 cat >>confdefs.h <<_ACEOF
12563 #define CRAY_STACKSEG_END $ac_func
12564 _ACEOF
12565
12566 break
12567 fi
12568
12569 done
12570 fi
12571
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12573 $as_echo_n "checking stack direction for C alloca... " >&6; }
12574 if ${ac_cv_c_stack_direction+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 if test "$cross_compiling" = yes; then :
12578 ac_cv_c_stack_direction=0
12579 else
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582 $ac_includes_default
12583 int
12584 find_stack_direction ()
12585 {
12586 static char *addr = 0;
12587 auto char dummy;
12588 if (addr == 0)
12589 {
12590 addr = &dummy;
12591 return find_stack_direction ();
12592 }
12593 else
12594 return (&dummy > addr) ? 1 : -1;
12595 }
12596
12597 int
12598 main ()
12599 {
12600 return find_stack_direction () < 0;
12601 }
12602 _ACEOF
12603 if ac_fn_c_try_run "$LINENO"; then :
12604 ac_cv_c_stack_direction=1
12605 else
12606 ac_cv_c_stack_direction=-1
12607 fi
12608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12609 conftest.$ac_objext conftest.beam conftest.$ac_ext
12610 fi
12611
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12614 $as_echo "$ac_cv_c_stack_direction" >&6; }
12615 cat >>confdefs.h <<_ACEOF
12616 #define STACK_DIRECTION $ac_cv_c_stack_direction
12617 _ACEOF
12618
12619
12620 fi
12621
12622
12623 if test x"$ac_cv_func_alloca_works" != xyes; then
12624 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12625 fi
12626
12627 # fmod, logb, and frexp are found in -lm on most systems.
12628 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12630 $as_echo_n "checking for sqrt in -lm... " >&6; }
12631 if ${ac_cv_lib_m_sqrt+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633 else
12634 ac_check_lib_save_LIBS=$LIBS
12635 LIBS="-lm $LIBS"
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12638
12639 /* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
12642 #ifdef __cplusplus
12643 extern "C"
12644 #endif
12645 char sqrt ();
12646 int
12647 main ()
12648 {
12649 return sqrt ();
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 if ac_fn_c_try_link "$LINENO"; then :
12655 ac_cv_lib_m_sqrt=yes
12656 else
12657 ac_cv_lib_m_sqrt=no
12658 fi
12659 rm -f core conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661 LIBS=$ac_check_lib_save_LIBS
12662 fi
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12664 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12665 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12666 cat >>confdefs.h <<_ACEOF
12667 #define HAVE_LIBM 1
12668 _ACEOF
12669
12670 LIBS="-lm $LIBS"
12671
12672 fi
12673
12674
12675 # Check for mail-locking functions in a "mail" library. Probably this should
12676 # have the same check as for liblockfile below.
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12678 $as_echo_n "checking for maillock in -lmail... " >&6; }
12679 if ${ac_cv_lib_mail_maillock+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 ac_check_lib_save_LIBS=$LIBS
12683 LIBS="-lmail $LIBS"
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12690 #ifdef __cplusplus
12691 extern "C"
12692 #endif
12693 char maillock ();
12694 int
12695 main ()
12696 {
12697 return maillock ();
12698 ;
12699 return 0;
12700 }
12701 _ACEOF
12702 if ac_fn_c_try_link "$LINENO"; then :
12703 ac_cv_lib_mail_maillock=yes
12704 else
12705 ac_cv_lib_mail_maillock=no
12706 fi
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12710 fi
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12712 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12713 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
12714 have_mail=yes
12715 else
12716 have_mail=no
12717 fi
12718
12719 if test $have_mail = yes; then
12720 LIBS_MAIL=-lmail
12721 LIBS="$LIBS_MAIL $LIBS"
12722
12723 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12724
12725 else
12726 LIBS_MAIL=
12727 fi
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12729 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12730 if ${ac_cv_lib_lockfile_maillock+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 ac_check_lib_save_LIBS=$LIBS
12734 LIBS="-llockfile $LIBS"
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737
12738 /* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
12744 char maillock ();
12745 int
12746 main ()
12747 {
12748 return maillock ();
12749 ;
12750 return 0;
12751 }
12752 _ACEOF
12753 if ac_fn_c_try_link "$LINENO"; then :
12754 ac_cv_lib_lockfile_maillock=yes
12755 else
12756 ac_cv_lib_lockfile_maillock=no
12757 fi
12758 rm -f core conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
12760 LIBS=$ac_check_lib_save_LIBS
12761 fi
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12763 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12764 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
12765 have_lockfile=yes
12766 else
12767 have_lockfile=no
12768 fi
12769
12770 if test $have_lockfile = yes; then
12771 LIBS_MAIL=-llockfile
12772 LIBS="$LIBS_MAIL $LIBS"
12773
12774 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12775
12776 else
12777 # If we have the shared liblockfile, assume we must use it for mail
12778 # locking (e.g. Debian). If we couldn't link against liblockfile
12779 # (no liblockfile.a installed), ensure that we don't need to.
12780 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12781 set dummy liblockfile.so; ac_word=$2
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783 $as_echo_n "checking for $ac_word... " >&6; }
12784 if ${ac_cv_prog_liblockfile+:} false; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 if test -n "$liblockfile"; then
12788 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12789 else
12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12792 for as_dir in $as_dummy
12793 do
12794 IFS=$as_save_IFS
12795 test -z "$as_dir" && as_dir=.
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12798 ac_cv_prog_liblockfile="yes"
12799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12800 break 2
12801 fi
12802 done
12803 done
12804 IFS=$as_save_IFS
12805
12806 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12807 fi
12808 fi
12809 liblockfile=$ac_cv_prog_liblockfile
12810 if test -n "$liblockfile"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12812 $as_echo "$liblockfile" >&6; }
12813 else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12816 fi
12817
12818
12819 if test $ac_cv_prog_liblockfile = yes; then
12820 as_fn_error $? "Shared liblockfile found but can't link against it.
12821 This probably means that movemail could lose mail.
12822 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12823 fi
12824 fi
12825 for ac_func in touchlock
12826 do :
12827 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12828 if test "x$ac_cv_func_touchlock" = xyes; then :
12829 cat >>confdefs.h <<_ACEOF
12830 #define HAVE_TOUCHLOCK 1
12831 _ACEOF
12832
12833 fi
12834 done
12835
12836 for ac_header in maillock.h
12837 do :
12838 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12839 if test "x$ac_cv_header_maillock_h" = xyes; then :
12840 cat >>confdefs.h <<_ACEOF
12841 #define HAVE_MAILLOCK_H 1
12842 _ACEOF
12843
12844 fi
12845
12846 done
12847
12848
12849
12850 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12851 ## interlock access to the mail spool. The alternative is a lock file named
12852 ## /usr/spool/mail/$USER.lock.
12853 mail_lock=no
12854 case "$opsys" in
12855 aix4-2) mail_lock="lockf" ;;
12856
12857 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12858
12859 ## On GNU/Linux systems, both methods are used by various mail programs.
12860 ## I assume most people are using newer mailers that have heard of flock.
12861 ## Change this if you need to.
12862 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12863 ## configure gets the right answers, and that means *NOT* using flock.
12864 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12865 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12866 ## Debian maintainer hasn't provided a clean fix for Emacs.
12867 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12868 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12869 ## correct logic. -- fx
12870 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12871 ## liblockfile is a Free Software replacement for libmail, used on
12872 ## Debian systems and elsewhere. -rfr.
12873 gnu-*)
12874 mail_lock="flock"
12875 if test $have_mail = yes || test $have_lockfile = yes; then
12876 test $ac_cv_header_maillock_h = yes && mail_lock=no
12877 fi
12878 ;;
12879 esac
12880
12881 BLESSMAIL_TARGET=
12882 case "$mail_lock" in
12883 flock)
12884 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12885 ;;
12886
12887 lockf)
12888 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12889 ;;
12890
12891 *) BLESSMAIL_TARGET="need-blessmail" ;;
12892 esac
12893
12894
12895
12896 for ac_func in gethostname getdomainname dup2 \
12897 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12898 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12899 strerror fpathconf select euidaccess getpagesize tzset setlocale \
12900 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12901 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12902 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12903 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12904 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12905 cfmakeraw cfsetspeed isnan copysign __executable_start
12906 do :
12907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12908 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12909 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12910 cat >>confdefs.h <<_ACEOF
12911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12912 _ACEOF
12913
12914 fi
12915 done
12916
12917
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12919 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12920 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925
12926 int
12927 main ()
12928 {
12929 __builtin_unwind_init ();
12930 ;
12931 return 0;
12932 }
12933 _ACEOF
12934 if ac_fn_c_try_link "$LINENO"; then :
12935 emacs_cv_func___builtin_unwind_init=yes
12936 else
12937 emacs_cv_func___builtin_unwind_init=no
12938 fi
12939 rm -f core conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12941 fi
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12943 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12944 if test $emacs_cv_func___builtin_unwind_init = yes; then
12945
12946 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12947
12948 fi
12949
12950 for ac_header in sys/un.h
12951 do :
12952 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12953 if test "x$ac_cv_header_sys_un_h" = xyes; then :
12954 cat >>confdefs.h <<_ACEOF
12955 #define HAVE_SYS_UN_H 1
12956 _ACEOF
12957
12958 fi
12959
12960 done
12961
12962
12963 ac_have_func=no # yes means we've found a way to get the load average.
12964
12965 # Make sure getloadavg.c is where it belongs, at configure-time.
12966 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12967 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12968
12969 ac_save_LIBS=$LIBS
12970
12971 # Check for getloadavg, but be sure not to touch the cache variable.
12972 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12973 if test "x$ac_cv_func_getloadavg" = xyes; then :
12974 exit 0
12975 else
12976 exit 1
12977 fi
12978 ) && ac_have_func=yes
12979
12980 # On HPUX9, an unprivileged user can get load averages through this function.
12981 for ac_func in pstat_getdynamic
12982 do :
12983 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12984 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
12985 cat >>confdefs.h <<_ACEOF
12986 #define HAVE_PSTAT_GETDYNAMIC 1
12987 _ACEOF
12988
12989 fi
12990 done
12991
12992
12993 # Solaris has libkstat which does not require root.
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12995 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12996 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 ac_check_lib_save_LIBS=$LIBS
13000 LIBS="-lkstat $LIBS"
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003
13004 /* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 char kstat_open ();
13011 int
13012 main ()
13013 {
13014 return kstat_open ();
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"; then :
13020 ac_cv_lib_kstat_kstat_open=yes
13021 else
13022 ac_cv_lib_kstat_kstat_open=no
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 LIBS=$ac_check_lib_save_LIBS
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13029 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13030 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13031 cat >>confdefs.h <<_ACEOF
13032 #define HAVE_LIBKSTAT 1
13033 _ACEOF
13034
13035 LIBS="-lkstat $LIBS"
13036
13037 fi
13038
13039 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13040
13041 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13042 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13043 # to get the right answer into the cache.
13044 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13045 if test $ac_have_func = no; then
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13047 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13048 if ${ac_cv_lib_elf_elf_begin+:} false; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 ac_check_lib_save_LIBS=$LIBS
13052 LIBS="-lelf $LIBS"
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13055
13056 /* Override any GCC internal prototype to avoid an error.
13057 Use char because int might match the return type of a GCC
13058 builtin and then its argument prototype would still apply. */
13059 #ifdef __cplusplus
13060 extern "C"
13061 #endif
13062 char elf_begin ();
13063 int
13064 main ()
13065 {
13066 return elf_begin ();
13067 ;
13068 return 0;
13069 }
13070 _ACEOF
13071 if ac_fn_c_try_link "$LINENO"; then :
13072 ac_cv_lib_elf_elf_begin=yes
13073 else
13074 ac_cv_lib_elf_elf_begin=no
13075 fi
13076 rm -f core conftest.err conftest.$ac_objext \
13077 conftest$ac_exeext conftest.$ac_ext
13078 LIBS=$ac_check_lib_save_LIBS
13079 fi
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13081 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13082 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
13083 LIBS="-lelf $LIBS"
13084 fi
13085
13086 fi
13087 if test $ac_have_func = no; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13089 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13090 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 ac_check_lib_save_LIBS=$LIBS
13094 LIBS="-lkvm $LIBS"
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13097
13098 /* Override any GCC internal prototype to avoid an error.
13099 Use char because int might match the return type of a GCC
13100 builtin and then its argument prototype would still apply. */
13101 #ifdef __cplusplus
13102 extern "C"
13103 #endif
13104 char kvm_open ();
13105 int
13106 main ()
13107 {
13108 return kvm_open ();
13109 ;
13110 return 0;
13111 }
13112 _ACEOF
13113 if ac_fn_c_try_link "$LINENO"; then :
13114 ac_cv_lib_kvm_kvm_open=yes
13115 else
13116 ac_cv_lib_kvm_kvm_open=no
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13120 LIBS=$ac_check_lib_save_LIBS
13121 fi
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13123 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13124 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
13125 LIBS="-lkvm $LIBS"
13126 fi
13127
13128 # Check for the 4.4BSD definition of getloadavg.
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13130 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13131 if ${ac_cv_lib_util_getloadavg+:} false; then :
13132 $as_echo_n "(cached) " >&6
13133 else
13134 ac_check_lib_save_LIBS=$LIBS
13135 LIBS="-lutil $LIBS"
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 char getloadavg ();
13146 int
13147 main ()
13148 {
13149 return getloadavg ();
13150 ;
13151 return 0;
13152 }
13153 _ACEOF
13154 if ac_fn_c_try_link "$LINENO"; then :
13155 ac_cv_lib_util_getloadavg=yes
13156 else
13157 ac_cv_lib_util_getloadavg=no
13158 fi
13159 rm -f core conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13161 LIBS=$ac_check_lib_save_LIBS
13162 fi
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13164 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13165 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
13166 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13167 fi
13168
13169 fi
13170
13171 if test $ac_have_func = no; then
13172 # There is a commonly available library for RS/6000 AIX.
13173 # Since it is not a standard part of AIX, it might be installed locally.
13174 ac_getloadavg_LIBS=$LIBS
13175 LIBS="-L/usr/local/lib $LIBS"
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13177 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13178 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 ac_check_lib_save_LIBS=$LIBS
13182 LIBS="-lgetloadavg $LIBS"
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185
13186 /* Override any GCC internal prototype to avoid an error.
13187 Use char because int might match the return type of a GCC
13188 builtin and then its argument prototype would still apply. */
13189 #ifdef __cplusplus
13190 extern "C"
13191 #endif
13192 char getloadavg ();
13193 int
13194 main ()
13195 {
13196 return getloadavg ();
13197 ;
13198 return 0;
13199 }
13200 _ACEOF
13201 if ac_fn_c_try_link "$LINENO"; then :
13202 ac_cv_lib_getloadavg_getloadavg=yes
13203 else
13204 ac_cv_lib_getloadavg_getloadavg=no
13205 fi
13206 rm -f core conftest.err conftest.$ac_objext \
13207 conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_check_lib_save_LIBS
13209 fi
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13211 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13212 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
13213 LIBS="-lgetloadavg $LIBS"
13214 else
13215 LIBS=$ac_getloadavg_LIBS
13216 fi
13217
13218 fi
13219
13220 # Make sure it is really in the library, if we think we found it,
13221 # otherwise set up the replacement function.
13222 for ac_func in getloadavg
13223 do :
13224 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13225 if test "x$ac_cv_func_getloadavg" = xyes; then :
13226 cat >>confdefs.h <<_ACEOF
13227 #define HAVE_GETLOADAVG 1
13228 _ACEOF
13229
13230 else
13231 case " $LIBOBJS " in
13232 *" getloadavg.$ac_objext "* ) ;;
13233 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13234 ;;
13235 esac
13236
13237
13238 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13239
13240 # Figure out what our getloadavg.c needs.
13241 ac_have_func=no
13242 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13243 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
13244 ac_have_func=yes
13245
13246 $as_echo "#define DGUX 1" >>confdefs.h
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13249 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13250 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 ac_check_lib_save_LIBS=$LIBS
13254 LIBS="-ldgc $LIBS"
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13261 #ifdef __cplusplus
13262 extern "C"
13263 #endif
13264 char dg_sys_info ();
13265 int
13266 main ()
13267 {
13268 return dg_sys_info ();
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"; then :
13274 ac_cv_lib_dgc_dg_sys_info=yes
13275 else
13276 ac_cv_lib_dgc_dg_sys_info=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext conftest.$ac_ext
13280 LIBS=$ac_check_lib_save_LIBS
13281 fi
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13283 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13284 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
13285 cat >>confdefs.h <<_ACEOF
13286 #define HAVE_LIBDGC 1
13287 _ACEOF
13288
13289 LIBS="-ldgc $LIBS"
13290
13291 fi
13292
13293 fi
13294
13295
13296
13297 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13298 if test "x$ac_cv_header_locale_h" = xyes; then :
13299
13300 fi
13301
13302
13303 for ac_func in setlocale
13304 do :
13305 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13306 if test "x$ac_cv_func_setlocale" = xyes; then :
13307 cat >>confdefs.h <<_ACEOF
13308 #define HAVE_SETLOCALE 1
13309 _ACEOF
13310
13311 fi
13312 done
13313
13314
13315 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13316 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13317 # Irix 4.0.5F has the header but not the library.
13318 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13319 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13320 ac_have_func=yes
13321
13322 $as_echo "#define SVR4 1" >>confdefs.h
13323
13324 fi
13325
13326 if test $ac_have_func = no; then
13327 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13328 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
13329 ac_have_func=yes
13330
13331 $as_echo "#define UMAX 1" >>confdefs.h
13332
13333
13334 $as_echo "#define UMAX4_3 1" >>confdefs.h
13335
13336 fi
13337
13338
13339 fi
13340
13341 if test $ac_have_func = no; then
13342 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13343 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
13344 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13345
13346 fi
13347
13348
13349 fi
13350
13351 if test $ac_have_func = no; then
13352 for ac_header in mach/mach.h
13353 do :
13354 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13355 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
13356 cat >>confdefs.h <<_ACEOF
13357 #define HAVE_MACH_MACH_H 1
13358 _ACEOF
13359
13360 fi
13361
13362 done
13363
13364 fi
13365
13366 for ac_header in nlist.h
13367 do :
13368 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13369 if test "x$ac_cv_header_nlist_h" = xyes; then :
13370 cat >>confdefs.h <<_ACEOF
13371 #define HAVE_NLIST_H 1
13372 _ACEOF
13373 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13374 "
13375 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
13376
13377 cat >>confdefs.h <<_ACEOF
13378 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13379 _ACEOF
13380
13381
13382 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13383
13384 fi
13385
13386
13387 fi
13388
13389 done
13390
13391 fi
13392 done
13393
13394
13395 # Some definitions of getloadavg require that the program be installed setgid.
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13397 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13398 if ${ac_cv_func_getloadavg_setgid+:} false; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13403 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13404 #ifdef LDAV_PRIVILEGED
13405 Yowza Am I SETGID yet
13406 #endif
13407 _ACEOF
13408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13409 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13410 ac_cv_func_getloadavg_setgid=yes
13411 else
13412 ac_cv_func_getloadavg_setgid=no
13413 fi
13414 rm -f conftest*
13415
13416 fi
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13418 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13419 if test $ac_cv_func_getloadavg_setgid = yes; then
13420 NEED_SETGID=true
13421
13422 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13423
13424 else
13425 NEED_SETGID=false
13426 fi
13427
13428 if test $ac_cv_func_getloadavg_setgid = yes; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13430 $as_echo_n "checking group of /dev/kmem... " >&6; }
13431 if ${ac_cv_group_kmem+:} false; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13435 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13436 # If we got an error (system does not support symlinks), try without -L.
13437 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13438 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13439 | sed -ne 's/[ ][ ]*/ /g;
13440 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13441 / /s/.* //;p;'`
13442
13443 fi
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13445 $as_echo "$ac_cv_group_kmem" >&6; }
13446 KMEM_GROUP=$ac_cv_group_kmem
13447 fi
13448 if test "x$ac_save_LIBS" = x; then
13449 GETLOADAVG_LIBS=$LIBS
13450 else
13451 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13452 fi
13453 LIBS=$ac_save_LIBS
13454
13455
13456
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13458 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13459 if ${ac_cv_sys_largefile_source+:} false; then :
13460 $as_echo_n "(cached) " >&6
13461 else
13462 while :; do
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #include <sys/types.h> /* for off_t */
13466 #include <stdio.h>
13467 int
13468 main ()
13469 {
13470 int (*fp) (FILE *, off_t, int) = fseeko;
13471 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_link "$LINENO"; then :
13477 ac_cv_sys_largefile_source=no; break
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext \
13480 conftest$ac_exeext conftest.$ac_ext
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13483 #define _LARGEFILE_SOURCE 1
13484 #include <sys/types.h> /* for off_t */
13485 #include <stdio.h>
13486 int
13487 main ()
13488 {
13489 int (*fp) (FILE *, off_t, int) = fseeko;
13490 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13491 ;
13492 return 0;
13493 }
13494 _ACEOF
13495 if ac_fn_c_try_link "$LINENO"; then :
13496 ac_cv_sys_largefile_source=1; break
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 ac_cv_sys_largefile_source=unknown
13501 break
13502 done
13503 fi
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13505 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13506 case $ac_cv_sys_largefile_source in #(
13507 no | unknown) ;;
13508 *)
13509 cat >>confdefs.h <<_ACEOF
13510 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13511 _ACEOF
13512 ;;
13513 esac
13514 rm -rf conftest*
13515
13516 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13517 # in glibc 2.1.3, but that breaks too many other things.
13518 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13519 if test $ac_cv_sys_largefile_source != unknown; then
13520
13521 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13522
13523 fi
13524
13525
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13527 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13528 if ${ac_cv_func_getpgrp_void+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 # Use it with a single arg.
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534 $ac_includes_default
13535 int
13536 main ()
13537 {
13538 getpgrp (0);
13539 ;
13540 return 0;
13541 }
13542 _ACEOF
13543 if ac_fn_c_try_compile "$LINENO"; then :
13544 ac_cv_func_getpgrp_void=no
13545 else
13546 ac_cv_func_getpgrp_void=yes
13547 fi
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13552 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13553 if test $ac_cv_func_getpgrp_void = yes; then
13554
13555 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13556
13557 fi
13558
13559
13560 # Configure gnulib.
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571 LIBC_FATAL_STDERR_=1
13572 export LIBC_FATAL_STDERR_
13573
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13576 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13577 if ${gl_cv_func_c99_strtold+:} false; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582 /* On HP-UX before 11.23, strtold returns a struct instead of
13583 long double. Reject implementations like that, by requiring
13584 compatibility with the C99 prototype. */
13585 #include <stdlib.h>
13586 static long double (*p) (char const *, char **) = strtold;
13587 static long double
13588 test (char const *nptr, char **endptr)
13589 {
13590 long double r;
13591 r = strtold (nptr, endptr);
13592 return r;
13593 }
13594 int
13595 main ()
13596 {
13597 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13598 ;
13599 return 0;
13600 }
13601 _ACEOF
13602 if ac_fn_c_try_link "$LINENO"; then :
13603 gl_cv_func_c99_strtold=yes
13604 else
13605 gl_cv_func_c99_strtold=no
13606 fi
13607 rm -f core conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
13609 fi
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13611 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13612 if test $gl_cv_func_c99_strtold = yes; then
13613
13614 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13615
13616 fi
13617
13618
13619 GNULIB_CHOWN=0;
13620 GNULIB_CLOSE=0;
13621 GNULIB_DUP2=0;
13622 GNULIB_DUP3=0;
13623 GNULIB_ENVIRON=0;
13624 GNULIB_EUIDACCESS=0;
13625 GNULIB_FACCESSAT=0;
13626 GNULIB_FCHDIR=0;
13627 GNULIB_FCHOWNAT=0;
13628 GNULIB_FSYNC=0;
13629 GNULIB_FTRUNCATE=0;
13630 GNULIB_GETCWD=0;
13631 GNULIB_GETDOMAINNAME=0;
13632 GNULIB_GETDTABLESIZE=0;
13633 GNULIB_GETGROUPS=0;
13634 GNULIB_GETHOSTNAME=0;
13635 GNULIB_GETLOGIN=0;
13636 GNULIB_GETLOGIN_R=0;
13637 GNULIB_GETPAGESIZE=0;
13638 GNULIB_GETUSERSHELL=0;
13639 GNULIB_LCHOWN=0;
13640 GNULIB_LINK=0;
13641 GNULIB_LINKAT=0;
13642 GNULIB_LSEEK=0;
13643 GNULIB_PIPE=0;
13644 GNULIB_PIPE2=0;
13645 GNULIB_PREAD=0;
13646 GNULIB_PWRITE=0;
13647 GNULIB_READLINK=0;
13648 GNULIB_READLINKAT=0;
13649 GNULIB_RMDIR=0;
13650 GNULIB_SLEEP=0;
13651 GNULIB_SYMLINK=0;
13652 GNULIB_SYMLINKAT=0;
13653 GNULIB_TTYNAME_R=0;
13654 GNULIB_UNISTD_H_GETOPT=0;
13655 GNULIB_UNISTD_H_SIGPIPE=0;
13656 GNULIB_UNLINK=0;
13657 GNULIB_UNLINKAT=0;
13658 GNULIB_USLEEP=0;
13659 GNULIB_WRITE=0;
13660 HAVE_CHOWN=1;
13661 HAVE_DUP2=1;
13662 HAVE_DUP3=1;
13663 HAVE_EUIDACCESS=1;
13664 HAVE_FACCESSAT=1;
13665 HAVE_FCHDIR=1;
13666 HAVE_FCHOWNAT=1;
13667 HAVE_FSYNC=1;
13668 HAVE_FTRUNCATE=1;
13669 HAVE_GETDTABLESIZE=1;
13670 HAVE_GETGROUPS=1;
13671 HAVE_GETHOSTNAME=1;
13672 HAVE_GETLOGIN=1;
13673 HAVE_GETPAGESIZE=1;
13674 HAVE_LCHOWN=1;
13675 HAVE_LINK=1;
13676 HAVE_LINKAT=1;
13677 HAVE_PIPE=1;
13678 HAVE_PIPE2=1;
13679 HAVE_PREAD=1;
13680 HAVE_PWRITE=1;
13681 HAVE_READLINK=1;
13682 HAVE_READLINKAT=1;
13683 HAVE_SLEEP=1;
13684 HAVE_SYMLINK=1;
13685 HAVE_SYMLINKAT=1;
13686 HAVE_UNLINKAT=1;
13687 HAVE_USLEEP=1;
13688 HAVE_DECL_ENVIRON=1;
13689 HAVE_DECL_FCHDIR=1;
13690 HAVE_DECL_GETDOMAINNAME=1;
13691 HAVE_DECL_GETLOGIN_R=1;
13692 HAVE_DECL_GETPAGESIZE=1;
13693 HAVE_DECL_GETUSERSHELL=1;
13694 HAVE_DECL_TTYNAME_R=1;
13695 HAVE_OS_H=0;
13696 HAVE_SYS_PARAM_H=0;
13697 REPLACE_CHOWN=0;
13698 REPLACE_CLOSE=0;
13699 REPLACE_DUP=0;
13700 REPLACE_DUP2=0;
13701 REPLACE_FCHOWNAT=0;
13702 REPLACE_GETCWD=0;
13703 REPLACE_GETDOMAINNAME=0;
13704 REPLACE_GETLOGIN_R=0;
13705 REPLACE_GETGROUPS=0;
13706 REPLACE_GETPAGESIZE=0;
13707 REPLACE_LCHOWN=0;
13708 REPLACE_LINK=0;
13709 REPLACE_LINKAT=0;
13710 REPLACE_LSEEK=0;
13711 REPLACE_PREAD=0;
13712 REPLACE_PWRITE=0;
13713 REPLACE_READLINK=0;
13714 REPLACE_RMDIR=0;
13715 REPLACE_SLEEP=0;
13716 REPLACE_SYMLINK=0;
13717 REPLACE_TTYNAME_R=0;
13718 REPLACE_UNLINK=0;
13719 REPLACE_UNLINKAT=0;
13720 REPLACE_USLEEP=0;
13721 REPLACE_WRITE=0;
13722 UNISTD_H_HAVE_WINSOCK2_H=0;
13723 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13724
13725
13726
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13729 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13730 if ${gl_cv_have_include_next+:} false; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 rm -rf conftestd1a conftestd1b conftestd2
13734 mkdir conftestd1a conftestd1b conftestd2
13735 cat <<EOF > conftestd1a/conftest.h
13736 #define DEFINED_IN_CONFTESTD1
13737 #include_next <conftest.h>
13738 #ifdef DEFINED_IN_CONFTESTD2
13739 int foo;
13740 #else
13741 #error "include_next doesn't work"
13742 #endif
13743 EOF
13744 cat <<EOF > conftestd1b/conftest.h
13745 #define DEFINED_IN_CONFTESTD1
13746 #include <stdio.h>
13747 #include_next <conftest.h>
13748 #ifdef DEFINED_IN_CONFTESTD2
13749 int foo;
13750 #else
13751 #error "include_next doesn't work"
13752 #endif
13753 EOF
13754 cat <<EOF > conftestd2/conftest.h
13755 #ifndef DEFINED_IN_CONFTESTD1
13756 #error "include_next test doesn't work"
13757 #endif
13758 #define DEFINED_IN_CONFTESTD2
13759 EOF
13760 gl_save_CPPFLAGS="$CPPFLAGS"
13761 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 #include <conftest.h>
13765 _ACEOF
13766 if ac_fn_c_try_compile "$LINENO"; then :
13767 gl_cv_have_include_next=yes
13768 else
13769 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772 #include <conftest.h>
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775 gl_cv_have_include_next=buggy
13776 else
13777 gl_cv_have_include_next=no
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783 CPPFLAGS="$gl_save_CPPFLAGS"
13784 rm -rf conftestd1a conftestd1b conftestd2
13785
13786 fi
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13788 $as_echo "$gl_cv_have_include_next" >&6; }
13789 PRAGMA_SYSTEM_HEADER=
13790 if test $gl_cv_have_include_next = yes; then
13791 INCLUDE_NEXT=include_next
13792 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13793 if test -n "$GCC"; then
13794 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13795 fi
13796 else
13797 if test $gl_cv_have_include_next = buggy; then
13798 INCLUDE_NEXT=include
13799 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13800 else
13801 INCLUDE_NEXT=include
13802 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13803 fi
13804 fi
13805
13806
13807
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13809 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13810 if ${gl_cv_pragma_columns+:} false; then :
13811 $as_echo_n "(cached) " >&6
13812 else
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13815
13816 #ifdef __TANDEM
13817 choke me
13818 #endif
13819
13820 _ACEOF
13821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13822 $EGREP "choke me" >/dev/null 2>&1; then :
13823 gl_cv_pragma_columns=yes
13824 else
13825 gl_cv_pragma_columns=no
13826 fi
13827 rm -f conftest*
13828
13829
13830 fi
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13832 $as_echo "$gl_cv_pragma_columns" >&6; }
13833 if test $gl_cv_pragma_columns = yes; then
13834 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13835 else
13836 PRAGMA_COLUMNS=
13837 fi
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855 if test $gl_cv_have_include_next = yes; then
13856 gl_cv_next_getopt_h='<'getopt.h'>'
13857 else
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13859 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13860 if ${gl_cv_next_getopt_h+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863
13864 if test $ac_cv_header_getopt_h = yes; then
13865
13866
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13869 #include <getopt.h>
13870
13871 _ACEOF
13872 case "$host_os" in
13873 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13874 *) gl_absname_cpp="$ac_cpp" ;;
13875 esac
13876 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13877 sed -n '\#/getopt.h#{
13878 s#.*"\(.*/getopt.h\)".*#\1#
13879 s#^/[^/]#//&#
13880 p
13881 q
13882 }'`'"'
13883 else
13884 gl_cv_next_getopt_h='<'getopt.h'>'
13885 fi
13886
13887
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13890 $as_echo "$gl_cv_next_getopt_h" >&6; }
13891 fi
13892 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13893
13894 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13896 gl_next_as_first_directive='<'getopt.h'>'
13897 else
13898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13899 gl_next_as_first_directive=$gl_cv_next_getopt_h
13900 fi
13901 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13902
13903
13904
13905
13906 if test $ac_cv_header_getopt_h = yes; then
13907 HAVE_GETOPT_H=1
13908 else
13909 HAVE_GETOPT_H=0
13910 fi
13911
13912
13913 gl_replace_getopt=
13914
13915 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13916 for ac_header in getopt.h
13917 do :
13918 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13919 if test "x$ac_cv_header_getopt_h" = xyes; then :
13920 cat >>confdefs.h <<_ACEOF
13921 #define HAVE_GETOPT_H 1
13922 _ACEOF
13923
13924 else
13925 gl_replace_getopt=yes
13926 fi
13927
13928 done
13929
13930 fi
13931
13932 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13933 for ac_func in getopt_long_only
13934 do :
13935 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13936 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_GETOPT_LONG_ONLY 1
13939 _ACEOF
13940
13941 else
13942 gl_replace_getopt=yes
13943 fi
13944 done
13945
13946 fi
13947
13948 if test -z "$gl_replace_getopt"; then
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13950 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13951 if ${gl_cv_func_getopt_posix+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957 #include <unistd.h>
13958 int
13959 main ()
13960 {
13961 int *p = &optreset; return optreset;
13962 ;
13963 return 0;
13964 }
13965 _ACEOF
13966 if ac_fn_c_try_compile "$LINENO"; then :
13967 gl_optind_min=1
13968 else
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 #include <getopt.h>
13972 int
13973 main ()
13974 {
13975 return !getopt_clip;
13976 ;
13977 return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_compile "$LINENO"; then :
13981 gl_optind_min=1
13982 else
13983 gl_optind_min=0
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 fi
13987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988
13989 gl_save_CPPFLAGS=$CPPFLAGS
13990 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
13991 if test "$cross_compiling" = yes; then :
13992 case "$host_os" in
13993 mingw*) gl_cv_func_getopt_posix="guessing no";;
13994 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
13995 *) gl_cv_func_getopt_posix="guessing yes";;
13996 esac
13997
13998 else
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001
14002 #include <unistd.h>
14003 #include <stdlib.h>
14004 #include <string.h>
14005
14006 int
14007 main ()
14008 {
14009 {
14010 int argc = 0;
14011 char *argv[10];
14012 int c;
14013
14014 argv[argc++] = "program";
14015 argv[argc++] = "-a";
14016 argv[argc++] = "foo";
14017 argv[argc++] = "bar";
14018 argv[argc] = NULL;
14019 optind = OPTIND_MIN;
14020 opterr = 0;
14021
14022 c = getopt (argc, argv, "ab");
14023 if (!(c == 'a'))
14024 return 1;
14025 c = getopt (argc, argv, "ab");
14026 if (!(c == -1))
14027 return 2;
14028 if (!(optind == 2))
14029 return 3;
14030 }
14031 /* Some internal state exists at this point. */
14032 {
14033 int argc = 0;
14034 char *argv[10];
14035 int c;
14036
14037 argv[argc++] = "program";
14038 argv[argc++] = "donald";
14039 argv[argc++] = "-p";
14040 argv[argc++] = "billy";
14041 argv[argc++] = "duck";
14042 argv[argc++] = "-a";
14043 argv[argc++] = "bar";
14044 argv[argc] = NULL;
14045 optind = OPTIND_MIN;
14046 opterr = 0;
14047
14048 c = getopt (argc, argv, "+abp:q:");
14049 if (!(c == -1))
14050 return 4;
14051 if (!(strcmp (argv[0], "program") == 0))
14052 return 5;
14053 if (!(strcmp (argv[1], "donald") == 0))
14054 return 6;
14055 if (!(strcmp (argv[2], "-p") == 0))
14056 return 7;
14057 if (!(strcmp (argv[3], "billy") == 0))
14058 return 8;
14059 if (!(strcmp (argv[4], "duck") == 0))
14060 return 9;
14061 if (!(strcmp (argv[5], "-a") == 0))
14062 return 10;
14063 if (!(strcmp (argv[6], "bar") == 0))
14064 return 11;
14065 if (!(optind == 1))
14066 return 12;
14067 }
14068 /* Detect MacOS 10.5, AIX 7.1 bug. */
14069 {
14070 char *argv[3] = { "program", "-ab", NULL };
14071 optind = OPTIND_MIN;
14072 opterr = 0;
14073 if (getopt (2, argv, "ab:") != 'a')
14074 return 13;
14075 if (getopt (2, argv, "ab:") != '?')
14076 return 14;
14077 if (optopt != 'b')
14078 return 15;
14079 if (optind != 2)
14080 return 16;
14081 }
14082
14083 return 0;
14084 }
14085
14086 _ACEOF
14087 if ac_fn_c_try_run "$LINENO"; then :
14088 gl_cv_func_getopt_posix=yes
14089 else
14090 gl_cv_func_getopt_posix=no
14091 fi
14092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14093 conftest.$ac_objext conftest.beam conftest.$ac_ext
14094 fi
14095
14096 CPPFLAGS=$gl_save_CPPFLAGS
14097
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14100 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14101 case "$gl_cv_func_getopt_posix" in
14102 *no) gl_replace_getopt=yes ;;
14103 esac
14104 fi
14105
14106 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14108 $as_echo_n "checking for working GNU getopt function... " >&6; }
14109 if ${gl_cv_func_getopt_gnu+:} false; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14113 # optstring is necessary for programs like m4 that have POSIX-mandated
14114 # semantics for supporting options interspersed with files.
14115 # Also, since getopt_long is a GNU extension, we require optind=0.
14116 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14117 # so take care to revert to the correct (non-)export state.
14118 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14119 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14120 xx) gl_had_POSIXLY_CORRECT=exported ;;
14121 x) gl_had_POSIXLY_CORRECT=yes ;;
14122 *) gl_had_POSIXLY_CORRECT= ;;
14123 esac
14124 POSIXLY_CORRECT=1
14125 export POSIXLY_CORRECT
14126 if test "$cross_compiling" = yes; then :
14127 case $host_os:$ac_cv_have_decl_optreset in
14128 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14129 *:yes) gl_cv_func_getopt_gnu=no;;
14130 *) gl_cv_func_getopt_gnu=yes;;
14131 esac
14132
14133 else
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136 #include <getopt.h>
14137 #include <stddef.h>
14138 #include <string.h>
14139
14140 int
14141 main ()
14142 {
14143
14144 int result = 0;
14145 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14146 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14147 OSF/1 5.1, Solaris 10. */
14148 {
14149 char *myargv[3];
14150 myargv[0] = "conftest";
14151 myargv[1] = "-+";
14152 myargv[2] = 0;
14153 opterr = 0;
14154 if (getopt (2, myargv, "+a") != '?')
14155 result |= 1;
14156 }
14157 /* This code succeeds on glibc 2.8, mingw,
14158 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14159 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14160 {
14161 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14162
14163 optind = 1;
14164 if (getopt (4, argv, "p::") != 'p')
14165 result |= 2;
14166 else if (optarg != NULL)
14167 result |= 4;
14168 else if (getopt (4, argv, "p::") != -1)
14169 result |= 6;
14170 else if (optind != 2)
14171 result |= 8;
14172 }
14173 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14174 {
14175 char *argv[] = { "program", "foo", "-p", NULL };
14176 optind = 0;
14177 if (getopt (3, argv, "-p") != 1)
14178 result |= 16;
14179 else if (getopt (3, argv, "-p") != 'p')
14180 result |= 32;
14181 }
14182 /* This code fails on glibc 2.11. */
14183 {
14184 char *argv[] = { "program", "-b", "-a", NULL };
14185 optind = opterr = 0;
14186 if (getopt (3, argv, "+:a:b") != 'b')
14187 result |= 64;
14188 else if (getopt (3, argv, "+:a:b") != ':')
14189 result |= 64;
14190 }
14191 return result;
14192
14193 ;
14194 return 0;
14195 }
14196 _ACEOF
14197 if ac_fn_c_try_run "$LINENO"; then :
14198 gl_cv_func_getopt_gnu=yes
14199 else
14200 gl_cv_func_getopt_gnu=no
14201 fi
14202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14203 conftest.$ac_objext conftest.beam conftest.$ac_ext
14204 fi
14205
14206 case $gl_had_POSIXLY_CORRECT in
14207 exported) ;;
14208 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14209 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14210 esac
14211
14212 fi
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14214 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14215 if test "$gl_cv_func_getopt_gnu" = "no"; then
14216 gl_replace_getopt=yes
14217 fi
14218 fi
14219
14220 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14221 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14222 ac_have_decl=1
14223 else
14224 ac_have_decl=0
14225 fi
14226
14227 cat >>confdefs.h <<_ACEOF
14228 #define HAVE_DECL_GETENV $ac_have_decl
14229 _ACEOF
14230
14231
14232
14233
14234
14235
14236 if test -n "$gl_replace_getopt"; then :
14237
14238
14239
14240 GETOPT_H=getopt.h
14241
14242 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14243
14244
14245
14246 GNULIB_UNISTD_H_GETOPT=1
14247
14248
14249
14250
14251
14252
14253
14254
14255 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14266
14267
14268
14269
14270
14271
14272 fi
14273
14274
14275
14276 GNULIB_MKTIME=0;
14277 GNULIB_NANOSLEEP=0;
14278 GNULIB_STRPTIME=0;
14279 GNULIB_TIMEGM=0;
14280 GNULIB_TIME_R=0;
14281 HAVE_DECL_LOCALTIME_R=1;
14282 HAVE_NANOSLEEP=1;
14283 HAVE_STRPTIME=1;
14284 HAVE_TIMEGM=1;
14285 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14286 REPLACE_MKTIME=GNULIB_PORTCHECK;
14287 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14288 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14289
14290
14291
14292
14293 for ac_func in $ac_func_list
14294 do :
14295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14298 cat >>confdefs.h <<_ACEOF
14299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14300 _ACEOF
14301
14302 fi
14303 done
14304
14305
14306
14307
14308 gl_cv_c_multiarch=no
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14311 #ifndef __APPLE_CC__
14312 not a universal capable compiler
14313 #endif
14314 typedef int dummy;
14315
14316 _ACEOF
14317 if ac_fn_c_try_compile "$LINENO"; then :
14318
14319 arch=
14320 prev=
14321 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14322 if test -n "$prev"; then
14323 case $word in
14324 i?86 | x86_64 | ppc | ppc64)
14325 if test -z "$arch" || test "$arch" = "$word"; then
14326 arch="$word"
14327 else
14328 gl_cv_c_multiarch=yes
14329 fi
14330 ;;
14331 esac
14332 prev=
14333 else
14334 if test "x$word" = "x-arch"; then
14335 prev=arch
14336 fi
14337 fi
14338 done
14339
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 if test $gl_cv_c_multiarch = yes; then
14343 APPLE_UNIVERSAL_BUILD=1
14344 else
14345 APPLE_UNIVERSAL_BUILD=0
14346 fi
14347
14348
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14350 $as_echo_n "checking for inline... " >&6; }
14351 if ${ac_cv_c_inline+:} false; then :
14352 $as_echo_n "(cached) " >&6
14353 else
14354 ac_cv_c_inline=no
14355 for ac_kw in inline __inline__ __inline; do
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14358 #ifndef __cplusplus
14359 typedef int foo_t;
14360 static $ac_kw foo_t static_foo () {return 0; }
14361 $ac_kw foo_t foo () {return 0; }
14362 #endif
14363
14364 _ACEOF
14365 if ac_fn_c_try_compile "$LINENO"; then :
14366 ac_cv_c_inline=$ac_kw
14367 fi
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 test "$ac_cv_c_inline" != no && break
14370 done
14371
14372 fi
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14374 $as_echo "$ac_cv_c_inline" >&6; }
14375
14376 case $ac_cv_c_inline in
14377 inline | yes) ;;
14378 *)
14379 case $ac_cv_c_inline in
14380 no) ac_val=;;
14381 *) ac_val=$ac_cv_c_inline;;
14382 esac
14383 cat >>confdefs.h <<_ACEOF
14384 #ifndef __cplusplus
14385 #define inline $ac_val
14386 #endif
14387 _ACEOF
14388 ;;
14389 esac
14390
14391
14392 REPLACE_NULL=0;
14393 HAVE_WCHAR_T=1;
14394 STDDEF_H='';
14395
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14398 $as_echo_n "checking for wchar_t... " >&6; }
14399 if ${gt_cv_c_wchar_t+:} false; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14404 #include <stddef.h>
14405 wchar_t foo = (wchar_t)'\0';
14406 int
14407 main ()
14408 {
14409
14410 ;
14411 return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415 gt_cv_c_wchar_t=yes
14416 else
14417 gt_cv_c_wchar_t=no
14418 fi
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 fi
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14422 $as_echo "$gt_cv_c_wchar_t" >&6; }
14423 if test $gt_cv_c_wchar_t = yes; then
14424
14425 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14426
14427 fi
14428
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14430 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14431 if ${ac_cv_c_restrict+:} false; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 ac_cv_c_restrict=no
14435 # The order here caters to the fact that C++ does not require restrict.
14436 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 typedef int * int_ptr;
14440 int foo (int_ptr $ac_kw ip) {
14441 return ip[0];
14442 }
14443 int
14444 main ()
14445 {
14446 int s[1];
14447 int * $ac_kw t = s;
14448 t[0] = 0;
14449 return foo(t)
14450 ;
14451 return 0;
14452 }
14453 _ACEOF
14454 if ac_fn_c_try_compile "$LINENO"; then :
14455 ac_cv_c_restrict=$ac_kw
14456 fi
14457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 test "$ac_cv_c_restrict" != no && break
14459 done
14460
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14463 $as_echo "$ac_cv_c_restrict" >&6; }
14464
14465 case $ac_cv_c_restrict in
14466 restrict) ;;
14467 no) $as_echo "#define restrict /**/" >>confdefs.h
14468 ;;
14469 *) cat >>confdefs.h <<_ACEOF
14470 #define restrict $ac_cv_c_restrict
14471 _ACEOF
14472 ;;
14473 esac
14474
14475
14476
14477
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14480 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14481 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14482 $as_echo_n "(cached) " >&6
14483 else
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486 #include <time.h>
14487
14488 int
14489 main ()
14490 {
14491 static struct timespec x; x.tv_sec = x.tv_nsec;
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_compile "$LINENO"; then :
14497 gl_cv_sys_struct_timespec_in_time_h=yes
14498 else
14499 gl_cv_sys_struct_timespec_in_time_h=no
14500 fi
14501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502 fi
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14504 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14505
14506 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14507 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14508 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14509 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14510 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14511 else
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14513 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14514 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519 #include <sys/time.h>
14520
14521 int
14522 main ()
14523 {
14524 static struct timespec x; x.tv_sec = x.tv_nsec;
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14531 else
14532 gl_cv_sys_struct_timespec_in_sys_time_h=no
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 fi
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14537 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14538 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14539 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14542 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14543 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 #include <pthread.h>
14549
14550 int
14551 main ()
14552 {
14553 static struct timespec x; x.tv_sec = x.tv_nsec;
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_compile "$LINENO"; then :
14559 gl_cv_sys_struct_timespec_in_pthread_h=yes
14560 else
14561 gl_cv_sys_struct_timespec_in_pthread_h=no
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 fi
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14566 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14567 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14568 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14569 fi
14570 fi
14571 fi
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587 if test $gl_cv_have_include_next = yes; then
14588 gl_cv_next_time_h='<'time.h'>'
14589 else
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14591 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14592 if ${gl_cv_next_time_h+:} false; then :
14593 $as_echo_n "(cached) " >&6
14594 else
14595
14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14598 #include <time.h>
14599
14600 _ACEOF
14601 case "$host_os" in
14602 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14603 *) gl_absname_cpp="$ac_cpp" ;;
14604 esac
14605 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14606 sed -n '\#/time.h#{
14607 s#.*"\(.*/time.h\)".*#\1#
14608 s#^/[^/]#//&#
14609 p
14610 q
14611 }'`'"'
14612
14613
14614 fi
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14616 $as_echo "$gl_cv_next_time_h" >&6; }
14617 fi
14618 NEXT_TIME_H=$gl_cv_next_time_h
14619
14620 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14621 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14622 gl_next_as_first_directive='<'time.h'>'
14623 else
14624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14625 gl_next_as_first_directive=$gl_cv_next_time_h
14626 fi
14627 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14628
14629
14630
14631
14632
14633
14634 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14635 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14636 ac_have_decl=1
14637 else
14638 ac_have_decl=0
14639 fi
14640
14641 cat >>confdefs.h <<_ACEOF
14642 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14643 _ACEOF
14644
14645
14646
14647
14648 if false; then
14649 GL_COND_LIBTOOL_TRUE=
14650 GL_COND_LIBTOOL_FALSE='#'
14651 else
14652 GL_COND_LIBTOOL_TRUE='#'
14653 GL_COND_LIBTOOL_FALSE=
14654 fi
14655
14656 gl_cond_libtool=false
14657 gl_libdeps=
14658 gl_ltlibdeps=
14659 gl_m4_base='m4'
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669 gl_source_base='lib'
14670 # Code from module arg-nonnull:
14671 # Code from module c++defs:
14672 # Code from module dtoastr:
14673
14674 # Code from module extensions:
14675 # Code from module getopt-gnu:
14676
14677
14678
14679
14680
14681
14682 # Code from module getopt-posix:
14683
14684
14685
14686
14687
14688 if test -n "$gl_replace_getopt"; then :
14689
14690
14691
14692 GETOPT_H=getopt.h
14693
14694 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14695
14696
14697
14698 GNULIB_UNISTD_H_GETOPT=1
14699
14700
14701
14702
14703
14704
14705
14706
14707 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14718
14719
14720
14721
14722
14723
14724 fi
14725
14726
14727 # Code from module gettext-h:
14728
14729
14730 # Code from module include_next:
14731 # Code from module intprops:
14732 # Code from module mktime:
14733
14734
14735
14736
14737
14738 if test $APPLE_UNIVERSAL_BUILD = 1; then
14739 # A universal build on Apple MacOS X platforms.
14740 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14741 # But we need a configuration result that is valid in both modes.
14742 ac_cv_func_working_mktime=no
14743 fi
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14745 $as_echo_n "checking for working mktime... " >&6; }
14746 if ${ac_cv_func_working_mktime+:} false; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 if test "$cross_compiling" = yes; then :
14750 ac_cv_func_working_mktime=no
14751 else
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14754 /* Test program from Paul Eggert and Tony Leneis. */
14755 #include <limits.h>
14756 #include <stdlib.h>
14757 #include <time.h>
14758
14759 #ifdef HAVE_UNISTD_H
14760 # include <unistd.h>
14761 #endif
14762
14763 #ifndef HAVE_ALARM
14764 # define alarm(X) /* empty */
14765 #endif
14766
14767 /* Work around redefinition to rpl_putenv by other config tests. */
14768 #undef putenv
14769
14770 static time_t time_t_max;
14771 static time_t time_t_min;
14772
14773 /* Values we'll use to set the TZ environment variable. */
14774 static char *tz_strings[] = {
14775 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14776 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14777 };
14778 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14779
14780 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14781 Based on a problem report from Andreas Jaeger. */
14782 static int
14783 spring_forward_gap ()
14784 {
14785 /* glibc (up to about 1998-10-07) failed this test. */
14786 struct tm tm;
14787
14788 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14789 instead of "TZ=America/Vancouver" in order to detect the bug even
14790 on systems that don't support the Olson extension, or don't have the
14791 full zoneinfo tables installed. */
14792 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14793
14794 tm.tm_year = 98;
14795 tm.tm_mon = 3;
14796 tm.tm_mday = 5;
14797 tm.tm_hour = 2;
14798 tm.tm_min = 0;
14799 tm.tm_sec = 0;
14800 tm.tm_isdst = -1;
14801 return mktime (&tm) != (time_t) -1;
14802 }
14803
14804 static int
14805 mktime_test1 (time_t now)
14806 {
14807 struct tm *lt;
14808 return ! (lt = localtime (&now)) || mktime (lt) == now;
14809 }
14810
14811 static int
14812 mktime_test (time_t now)
14813 {
14814 return (mktime_test1 (now)
14815 && mktime_test1 ((time_t) (time_t_max - now))
14816 && mktime_test1 ((time_t) (time_t_min + now)));
14817 }
14818
14819 static int
14820 irix_6_4_bug ()
14821 {
14822 /* Based on code from Ariel Faigon. */
14823 struct tm tm;
14824 tm.tm_year = 96;
14825 tm.tm_mon = 3;
14826 tm.tm_mday = 0;
14827 tm.tm_hour = 0;
14828 tm.tm_min = 0;
14829 tm.tm_sec = 0;
14830 tm.tm_isdst = -1;
14831 mktime (&tm);
14832 return tm.tm_mon == 2 && tm.tm_mday == 31;
14833 }
14834
14835 static int
14836 bigtime_test (int j)
14837 {
14838 struct tm tm;
14839 time_t now;
14840 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14841 now = mktime (&tm);
14842 if (now != (time_t) -1)
14843 {
14844 struct tm *lt = localtime (&now);
14845 if (! (lt
14846 && lt->tm_year == tm.tm_year
14847 && lt->tm_mon == tm.tm_mon
14848 && lt->tm_mday == tm.tm_mday
14849 && lt->tm_hour == tm.tm_hour
14850 && lt->tm_min == tm.tm_min
14851 && lt->tm_sec == tm.tm_sec
14852 && lt->tm_yday == tm.tm_yday
14853 && lt->tm_wday == tm.tm_wday
14854 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14855 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14856 return 0;
14857 }
14858 return 1;
14859 }
14860
14861 static int
14862 year_2050_test ()
14863 {
14864 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14865 ignoring leap seconds. */
14866 unsigned long int answer = 2527315200UL;
14867
14868 struct tm tm;
14869 time_t t;
14870 tm.tm_year = 2050 - 1900;
14871 tm.tm_mon = 2 - 1;
14872 tm.tm_mday = 1;
14873 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14874 tm.tm_isdst = -1;
14875
14876 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14877 instead of "TZ=America/Vancouver" in order to detect the bug even
14878 on systems that don't support the Olson extension, or don't have the
14879 full zoneinfo tables installed. */
14880 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14881
14882 t = mktime (&tm);
14883
14884 /* Check that the result is either a failure, or close enough
14885 to the correct answer that we can assume the discrepancy is
14886 due to leap seconds. */
14887 return (t == (time_t) -1
14888 || (0 < t && answer - 120 <= t && t <= answer + 120));
14889 }
14890
14891 int
14892 main ()
14893 {
14894 int result = 0;
14895 time_t t, delta;
14896 int i, j;
14897
14898 /* This test makes some buggy mktime implementations loop.
14899 Give up after 60 seconds; a mktime slower than that
14900 isn't worth using anyway. */
14901 alarm (60);
14902
14903 for (;;)
14904 {
14905 t = (time_t_max << 1) + 1;
14906 if (t <= time_t_max)
14907 break;
14908 time_t_max = t;
14909 }
14910 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
14911
14912 delta = time_t_max / 997; /* a suitable prime number */
14913 for (i = 0; i < N_STRINGS; i++)
14914 {
14915 if (tz_strings[i])
14916 putenv (tz_strings[i]);
14917
14918 for (t = 0; t <= time_t_max - delta; t += delta)
14919 if (! mktime_test (t))
14920 result |= 1;
14921 if (! (mktime_test ((time_t) 1)
14922 && mktime_test ((time_t) (60 * 60))
14923 && mktime_test ((time_t) (60 * 60 * 24))))
14924 result |= 2;
14925
14926 for (j = 1; ; j <<= 1)
14927 if (! bigtime_test (j))
14928 result |= 4;
14929 else if (INT_MAX / 2 < j)
14930 break;
14931 if (! bigtime_test (INT_MAX))
14932 result |= 8;
14933 }
14934 if (! irix_6_4_bug ())
14935 result |= 16;
14936 if (! spring_forward_gap ())
14937 result |= 32;
14938 if (! year_2050_test ())
14939 result |= 64;
14940 return result;
14941 }
14942 _ACEOF
14943 if ac_fn_c_try_run "$LINENO"; then :
14944 ac_cv_func_working_mktime=yes
14945 else
14946 ac_cv_func_working_mktime=no
14947 fi
14948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14949 conftest.$ac_objext conftest.beam conftest.$ac_ext
14950 fi
14951
14952 fi
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
14954 $as_echo "$ac_cv_func_working_mktime" >&6; }
14955 if test $ac_cv_func_working_mktime = no; then
14956
14957
14958
14959
14960
14961
14962
14963
14964 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
14965
14966 fi
14967
14968 if test $ac_cv_func_working_mktime = no; then
14969 REPLACE_MKTIME=1
14970
14971
14972
14973 else
14974 REPLACE_MKTIME=0
14975 fi
14976
14977
14978
14979
14980 GNULIB_MKTIME=1
14981
14982
14983
14984 # Code from module multiarch:
14985
14986 # Code from module stddef:
14987
14988
14989
14990 if test $gt_cv_c_wchar_t = no; then
14991 HAVE_WCHAR_T=0
14992 STDDEF_H=stddef.h
14993 fi
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14995 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14996 if ${gl_cv_decl_null_works+:} false; then :
14997 $as_echo_n "(cached) " >&6
14998 else
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001 #include <stddef.h>
15002 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15003
15004 int
15005 main ()
15006 {
15007
15008 ;
15009 return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_compile "$LINENO"; then :
15013 gl_cv_decl_null_works=yes
15014 else
15015 gl_cv_decl_null_works=no
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 fi
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15020 $as_echo "$gl_cv_decl_null_works" >&6; }
15021 if test $gl_cv_decl_null_works = no; then
15022 REPLACE_NULL=1
15023 STDDEF_H=stddef.h
15024 fi
15025 if test -n "$STDDEF_H"; then
15026
15027
15028
15029
15030
15031
15032
15033
15034 if test $gl_cv_have_include_next = yes; then
15035 gl_cv_next_stddef_h='<'stddef.h'>'
15036 else
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15038 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15039 if ${gl_cv_next_stddef_h+:} false; then :
15040 $as_echo_n "(cached) " >&6
15041 else
15042
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045 #include <stddef.h>
15046
15047 _ACEOF
15048 case "$host_os" in
15049 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15050 *) gl_absname_cpp="$ac_cpp" ;;
15051 esac
15052 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15053 sed -n '\#/stddef.h#{
15054 s#.*"\(.*/stddef.h\)".*#\1#
15055 s#^/[^/]#//&#
15056 p
15057 q
15058 }'`'"'
15059
15060
15061 fi
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15063 $as_echo "$gl_cv_next_stddef_h" >&6; }
15064 fi
15065 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15066
15067 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15069 gl_next_as_first_directive='<'stddef.h'>'
15070 else
15071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15072 gl_next_as_first_directive=$gl_cv_next_stddef_h
15073 fi
15074 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15075
15076
15077
15078
15079 fi
15080
15081 # Code from module time:
15082
15083
15084
15085 # Code from module time_r:
15086
15087
15088
15089
15090
15091
15092
15093 if test $ac_cv_have_decl_localtime_r = no; then
15094 HAVE_DECL_LOCALTIME_R=0
15095 fi
15096
15097
15098 if test $ac_cv_func_localtime_r = yes; then
15099 HAVE_LOCALTIME_R=1
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15101 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15102 if ${gl_cv_time_r_posix+:} false; then :
15103 $as_echo_n "(cached) " >&6
15104 else
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15107 #include <time.h>
15108 int
15109 main ()
15110 {
15111 /* We don't need to append 'restrict's to the argument types,
15112 even though the POSIX signature has the 'restrict's,
15113 since C99 says they can't affect type compatibility. */
15114 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15115 if (ptr) return 0;
15116 /* Check the return type is a pointer.
15117 On HP-UX 10 it is 'int'. */
15118 *localtime_r (0, 0);
15119 ;
15120 return 0;
15121 }
15122
15123 _ACEOF
15124 if ac_fn_c_try_compile "$LINENO"; then :
15125 gl_cv_time_r_posix=yes
15126 else
15127 gl_cv_time_r_posix=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130
15131 fi
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15133 $as_echo "$gl_cv_time_r_posix" >&6; }
15134 if test $gl_cv_time_r_posix = yes; then
15135 REPLACE_LOCALTIME_R=0
15136 else
15137 REPLACE_LOCALTIME_R=1
15138 fi
15139 else
15140 HAVE_LOCALTIME_R=0
15141 fi
15142 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15143
15144
15145
15146
15147
15148
15149
15150
15151 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15152
15153
15154 :
15155
15156 fi
15157
15158
15159
15160
15161 GNULIB_TIME_R=1
15162
15163
15164
15165 # Code from module unistd:
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179 if test $gl_cv_have_include_next = yes; then
15180 gl_cv_next_unistd_h='<'unistd.h'>'
15181 else
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15183 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15184 if ${gl_cv_next_unistd_h+:} false; then :
15185 $as_echo_n "(cached) " >&6
15186 else
15187
15188 if test $ac_cv_header_unistd_h = yes; then
15189
15190
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15193 #include <unistd.h>
15194
15195 _ACEOF
15196 case "$host_os" in
15197 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15198 *) gl_absname_cpp="$ac_cpp" ;;
15199 esac
15200 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15201 sed -n '\#/unistd.h#{
15202 s#.*"\(.*/unistd.h\)".*#\1#
15203 s#^/[^/]#//&#
15204 p
15205 q
15206 }'`'"'
15207 else
15208 gl_cv_next_unistd_h='<'unistd.h'>'
15209 fi
15210
15211
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15214 $as_echo "$gl_cv_next_unistd_h" >&6; }
15215 fi
15216 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15217
15218 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15220 gl_next_as_first_directive='<'unistd.h'>'
15221 else
15222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15223 gl_next_as_first_directive=$gl_cv_next_unistd_h
15224 fi
15225 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15226
15227
15228
15229
15230 if test $ac_cv_header_unistd_h = yes; then
15231 HAVE_UNISTD_H=1
15232 else
15233 HAVE_UNISTD_H=0
15234 fi
15235
15236
15237
15238
15239 # Code from module warn-on-use:
15240 # End of code from modules
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250 gltests_libdeps=
15251 gltests_ltlibdeps=
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261 gl_source_base='tests'
15262 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
15263
15264 gl_module_indicator_condition=$gltests_WITNESS
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274 LIBGNU_LIBDEPS="$gl_libdeps"
15275
15276 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15277
15278
15279
15280 for ac_func in strftime
15281 do :
15282 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15283 if test "x$ac_cv_func_strftime" = xyes; then :
15284 cat >>confdefs.h <<_ACEOF
15285 #define HAVE_STRFTIME 1
15286 _ACEOF
15287
15288 else
15289 # strftime is in -lintl on SCO UNIX.
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15291 $as_echo_n "checking for strftime in -lintl... " >&6; }
15292 if ${ac_cv_lib_intl_strftime+:} false; then :
15293 $as_echo_n "(cached) " >&6
15294 else
15295 ac_check_lib_save_LIBS=$LIBS
15296 LIBS="-lintl $LIBS"
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299
15300 /* Override any GCC internal prototype to avoid an error.
15301 Use char because int might match the return type of a GCC
15302 builtin and then its argument prototype would still apply. */
15303 #ifdef __cplusplus
15304 extern "C"
15305 #endif
15306 char strftime ();
15307 int
15308 main ()
15309 {
15310 return strftime ();
15311 ;
15312 return 0;
15313 }
15314 _ACEOF
15315 if ac_fn_c_try_link "$LINENO"; then :
15316 ac_cv_lib_intl_strftime=yes
15317 else
15318 ac_cv_lib_intl_strftime=no
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
15322 LIBS=$ac_check_lib_save_LIBS
15323 fi
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15325 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
15326 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
15327 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15328
15329 LIBS="-lintl $LIBS"
15330 fi
15331
15332 fi
15333 done
15334
15335
15336 # UNIX98 PTYs.
15337 for ac_func in grantpt
15338 do :
15339 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15340 if test "x$ac_cv_func_grantpt" = xyes; then :
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_GRANTPT 1
15343 _ACEOF
15344
15345 fi
15346 done
15347
15348
15349 # PTY-related GNU extensions.
15350 for ac_func in getpt
15351 do :
15352 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
15353 if test "x$ac_cv_func_getpt" = xyes; then :
15354 cat >>confdefs.h <<_ACEOF
15355 #define HAVE_GETPT 1
15356 _ACEOF
15357
15358 fi
15359 done
15360
15361
15362 # Check this now, so that we will NOT find the above functions in ncurses.
15363 # That is because we have not set up to link ncurses in lib-src.
15364 # It's better to believe a function is not available
15365 # than to expect to find it in ncurses.
15366 # Also we need tputs and friends to be able to build at all.
15367 have_tputs_et_al=true
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15369 $as_echo_n "checking for library containing tputs... " >&6; }
15370 if ${ac_cv_search_tputs+:} false; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 ac_func_search_save_LIBS=$LIBS
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376
15377 /* Override any GCC internal prototype to avoid an error.
15378 Use char because int might match the return type of a GCC
15379 builtin and then its argument prototype would still apply. */
15380 #ifdef __cplusplus
15381 extern "C"
15382 #endif
15383 char tputs ();
15384 int
15385 main ()
15386 {
15387 return tputs ();
15388 ;
15389 return 0;
15390 }
15391 _ACEOF
15392 for ac_lib in '' ncurses terminfo termcap; do
15393 if test -z "$ac_lib"; then
15394 ac_res="none required"
15395 else
15396 ac_res=-l$ac_lib
15397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15398 fi
15399 if ac_fn_c_try_link "$LINENO"; then :
15400 ac_cv_search_tputs=$ac_res
15401 fi
15402 rm -f core conftest.err conftest.$ac_objext \
15403 conftest$ac_exeext
15404 if ${ac_cv_search_tputs+:} false; then :
15405 break
15406 fi
15407 done
15408 if ${ac_cv_search_tputs+:} false; then :
15409
15410 else
15411 ac_cv_search_tputs=no
15412 fi
15413 rm conftest.$ac_ext
15414 LIBS=$ac_func_search_save_LIBS
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15417 $as_echo "$ac_cv_search_tputs" >&6; }
15418 ac_res=$ac_cv_search_tputs
15419 if test "$ac_res" != no; then :
15420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15421
15422 else
15423 have_tputs_et_al=false
15424 fi
15425
15426 if test "$have_tputs_et_al" != true; then
15427 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
15428 Maybe some development libraries/packages are missing? Try installing
15429 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15430 fi
15431 # Must define this when any termcap library is found.
15432
15433 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15434
15435 ## FIXME This was the cpp logic, but I am not sure it is right.
15436 ## The above test has not necessarily found libncurses.
15437 HAVE_LIBNCURSES=yes
15438
15439 ## Use terminfo instead of termcap?
15440 ## Note only system files NOT using terminfo are:
15441 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15442 ## darwin|gnu without ncurses.
15443 TERMINFO=no
15444 LIBS_TERMCAP=
15445 case "$opsys" in
15446 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15447 ## hpux10-20: Use the system provided termcap(3) library.
15448 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15449 ## is necessary. Otherwise Emacs dumps core when run -nw.
15450 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15451
15452 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15453 ## The ncurses library has been moved out of the System framework in
15454 ## Mac OS X 10.2. So if configure detects it, set the command-line
15455 ## option to use it.
15456 darwin|gnu*)
15457 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15458 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15459 TERMINFO=yes
15460 LIBS_TERMCAP="-lncurses"
15461 fi
15462 ;;
15463
15464 freebsd)
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15466 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15467 if ${emacs_cv_freebsd_terminfo+:} false; then :
15468 $as_echo_n "(cached) " >&6
15469 else
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15472 #include <osreldate.h>
15473 int
15474 main ()
15475 {
15476 #if __FreeBSD_version < 400000
15477 fail;
15478 #endif
15479
15480 ;
15481 return 0;
15482 }
15483 _ACEOF
15484 if ac_fn_c_try_link "$LINENO"; then :
15485 emacs_cv_freebsd_terminfo=yes
15486 else
15487 emacs_cv_freebsd_terminfo=no
15488 fi
15489 rm -f core conftest.err conftest.$ac_objext \
15490 conftest$ac_exeext conftest.$ac_ext
15491 fi
15492
15493
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15495 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15496
15497 if test $emacs_cv_freebsd_terminfo = yes; then
15498 TERMINFO=yes
15499 LIBS_TERMCAP="-lncurses"
15500 else
15501 LIBS_TERMCAP="-ltermcap"
15502 fi
15503 ;;
15504
15505 netbsd)
15506 if test $ac_cv_search_tputs = -lterminfo; then
15507 TERMINFO=yes
15508 LIBS_TERMCAP="-lterminfo"
15509 else
15510 LIBS_TERMCAP="-ltermcap"
15511 fi
15512 ;;
15513
15514 esac
15515
15516 case "$opsys" in
15517 ## hpux: Make sure we get select from libc rather than from libcurses
15518 ## because libcurses on HPUX 10.10 has a broken version of select.
15519 ## We used to use -lc -lcurses, but this may be cleaner.
15520 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15521
15522 openbsd) LIBS_TERMCAP="-lncurses" ;;
15523
15524 ## Must use system termcap, if we use any termcap. It does special things.
15525 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15526 esac
15527
15528 TERMCAP_OBJ=tparam.o
15529 if test $TERMINFO = yes; then
15530
15531 $as_echo "#define TERMINFO 1" >>confdefs.h
15532
15533
15534 ## Default used to be -ltermcap. Add a case above if need something else.
15535 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15536
15537 TERMCAP_OBJ=terminfo.o
15538 fi
15539
15540
15541
15542
15543 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15544 resolv=no
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547 #include <netinet/in.h>
15548 #include <arpa/nameser.h>
15549 #include <resolv.h>
15550 int
15551 main ()
15552 {
15553 return res_init();
15554 ;
15555 return 0;
15556 }
15557 _ACEOF
15558 if ac_fn_c_try_link "$LINENO"; then :
15559 have_res_init=yes
15560 else
15561 have_res_init=no
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 if test "$have_res_init" = no; then
15566 OLIBS="$LIBS"
15567 LIBS="$LIBS -lresolv"
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15569 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15572 #include <netinet/in.h>
15573 #include <arpa/nameser.h>
15574 #include <resolv.h>
15575 int
15576 main ()
15577 {
15578 return res_init();
15579 ;
15580 return 0;
15581 }
15582 _ACEOF
15583 if ac_fn_c_try_link "$LINENO"; then :
15584 have_res_init=yes
15585 else
15586 have_res_init=no
15587 fi
15588 rm -f core conftest.err conftest.$ac_objext \
15589 conftest$ac_exeext conftest.$ac_ext
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15591 $as_echo "$have_res_init" >&6; }
15592 if test "$have_res_init" = yes ; then
15593 resolv=yes
15594 fi
15595 LIBS="$OLIBS"
15596 fi
15597
15598 if test "$have_res_init" = yes; then
15599
15600 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15601
15602 fi
15603
15604 # Do we need the Hesiod library to provide the support routines?
15605 LIBHESIOD=
15606 if test "$with_hesiod" != no ; then
15607 # Don't set $LIBS here -- see comments above. FIXME which comments?
15608 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15609 if test "x$ac_cv_func_res_send" = xyes; then :
15610
15611 else
15612 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15613 if test "x$ac_cv_func___res_send" = xyes; then :
15614
15615 else
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15617 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15618 if ${ac_cv_lib_resolv_res_send+:} false; then :
15619 $as_echo_n "(cached) " >&6
15620 else
15621 ac_check_lib_save_LIBS=$LIBS
15622 LIBS="-lresolv $LIBS"
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625
15626 /* Override any GCC internal prototype to avoid an error.
15627 Use char because int might match the return type of a GCC
15628 builtin and then its argument prototype would still apply. */
15629 #ifdef __cplusplus
15630 extern "C"
15631 #endif
15632 char res_send ();
15633 int
15634 main ()
15635 {
15636 return res_send ();
15637 ;
15638 return 0;
15639 }
15640 _ACEOF
15641 if ac_fn_c_try_link "$LINENO"; then :
15642 ac_cv_lib_resolv_res_send=yes
15643 else
15644 ac_cv_lib_resolv_res_send=no
15645 fi
15646 rm -f core conftest.err conftest.$ac_objext \
15647 conftest$ac_exeext conftest.$ac_ext
15648 LIBS=$ac_check_lib_save_LIBS
15649 fi
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15651 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15652 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
15653 resolv=yes
15654 else
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15656 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15657 if ${ac_cv_lib_resolv___res_send+:} false; then :
15658 $as_echo_n "(cached) " >&6
15659 else
15660 ac_check_lib_save_LIBS=$LIBS
15661 LIBS="-lresolv $LIBS"
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664
15665 /* Override any GCC internal prototype to avoid an error.
15666 Use char because int might match the return type of a GCC
15667 builtin and then its argument prototype would still apply. */
15668 #ifdef __cplusplus
15669 extern "C"
15670 #endif
15671 char __res_send ();
15672 int
15673 main ()
15674 {
15675 return __res_send ();
15676 ;
15677 return 0;
15678 }
15679 _ACEOF
15680 if ac_fn_c_try_link "$LINENO"; then :
15681 ac_cv_lib_resolv___res_send=yes
15682 else
15683 ac_cv_lib_resolv___res_send=no
15684 fi
15685 rm -f core conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15688 fi
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15690 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15691 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
15692 resolv=yes
15693 fi
15694
15695 fi
15696
15697 fi
15698
15699 fi
15700
15701 if test "$resolv" = yes ; then
15702 RESOLVLIB=-lresolv
15703 else
15704 RESOLVLIB=
15705 fi
15706 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15707 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
15708
15709 else
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15711 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15712 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lhesiod $RESOLVLIB $LIBS"
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15719
15720 /* Override any GCC internal prototype to avoid an error.
15721 Use char because int might match the return type of a GCC
15722 builtin and then its argument prototype would still apply. */
15723 #ifdef __cplusplus
15724 extern "C"
15725 #endif
15726 char hes_getmailhost ();
15727 int
15728 main ()
15729 {
15730 return hes_getmailhost ();
15731 ;
15732 return 0;
15733 }
15734 _ACEOF
15735 if ac_fn_c_try_link "$LINENO"; then :
15736 ac_cv_lib_hesiod_hes_getmailhost=yes
15737 else
15738 ac_cv_lib_hesiod_hes_getmailhost=no
15739 fi
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 LIBS=$ac_check_lib_save_LIBS
15743 fi
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15745 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15746 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
15747 hesiod=yes
15748 else
15749 :
15750 fi
15751
15752 fi
15753
15754
15755 if test x"$hesiod" = xyes; then
15756
15757 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15758
15759 LIBHESIOD=-lhesiod
15760 fi
15761 fi
15762
15763
15764 # Do we need libresolv (due to res_init or Hesiod)?
15765 if test "$resolv" = yes ; then
15766
15767 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15768
15769 LIBRESOLV=-lresolv
15770 else
15771 LIBRESOLV=
15772 fi
15773
15774
15775 # These tell us which Kerberos-related libraries to use.
15776 COM_ERRLIB=
15777 CRYPTOLIB=
15778 KRB5LIB=
15779 DESLIB=
15780 KRB4LIB=
15781
15782 if test "${with_kerberos}" != no; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15784 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15785 if ${ac_cv_lib_com_err_com_err+:} false; then :
15786 $as_echo_n "(cached) " >&6
15787 else
15788 ac_check_lib_save_LIBS=$LIBS
15789 LIBS="-lcom_err $LIBS"
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15792
15793 /* Override any GCC internal prototype to avoid an error.
15794 Use char because int might match the return type of a GCC
15795 builtin and then its argument prototype would still apply. */
15796 #ifdef __cplusplus
15797 extern "C"
15798 #endif
15799 char com_err ();
15800 int
15801 main ()
15802 {
15803 return com_err ();
15804 ;
15805 return 0;
15806 }
15807 _ACEOF
15808 if ac_fn_c_try_link "$LINENO"; then :
15809 ac_cv_lib_com_err_com_err=yes
15810 else
15811 ac_cv_lib_com_err_com_err=no
15812 fi
15813 rm -f core conftest.err conftest.$ac_objext \
15814 conftest$ac_exeext conftest.$ac_ext
15815 LIBS=$ac_check_lib_save_LIBS
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15818 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15819 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
15820 have_com_err=yes
15821 else
15822 have_com_err=no
15823 fi
15824
15825 if test $have_com_err = yes; then
15826 COM_ERRLIB=-lcom_err
15827 LIBS="$COM_ERRLIB $LIBS"
15828
15829 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15830
15831 fi
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15833 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15834 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lcrypto $LIBS"
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841
15842 /* Override any GCC internal prototype to avoid an error.
15843 Use char because int might match the return type of a GCC
15844 builtin and then its argument prototype would still apply. */
15845 #ifdef __cplusplus
15846 extern "C"
15847 #endif
15848 char mit_des_cbc_encrypt ();
15849 int
15850 main ()
15851 {
15852 return mit_des_cbc_encrypt ();
15853 ;
15854 return 0;
15855 }
15856 _ACEOF
15857 if ac_fn_c_try_link "$LINENO"; then :
15858 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15859 else
15860 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864 LIBS=$ac_check_lib_save_LIBS
15865 fi
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15867 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15868 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
15869 have_crypto=yes
15870 else
15871 have_crypto=no
15872 fi
15873
15874 if test $have_crypto = yes; then
15875 CRYPTOLIB=-lcrypto
15876 LIBS="$CRYPTOLIB $LIBS"
15877
15878 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15879
15880 fi
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15882 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15883 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 ac_check_lib_save_LIBS=$LIBS
15887 LIBS="-lk5crypto $LIBS"
15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890
15891 /* Override any GCC internal prototype to avoid an error.
15892 Use char because int might match the return type of a GCC
15893 builtin and then its argument prototype would still apply. */
15894 #ifdef __cplusplus
15895 extern "C"
15896 #endif
15897 char mit_des_cbc_encrypt ();
15898 int
15899 main ()
15900 {
15901 return mit_des_cbc_encrypt ();
15902 ;
15903 return 0;
15904 }
15905 _ACEOF
15906 if ac_fn_c_try_link "$LINENO"; then :
15907 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15908 else
15909 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15910 fi
15911 rm -f core conftest.err conftest.$ac_objext \
15912 conftest$ac_exeext conftest.$ac_ext
15913 LIBS=$ac_check_lib_save_LIBS
15914 fi
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15916 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15917 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
15918 have_k5crypto=yes
15919 else
15920 have_k5crypto=no
15921 fi
15922
15923 if test $have_k5crypto = yes; then
15924 CRYPTOLIB=-lk5crypto
15925 LIBS="$CRYPTOLIB $LIBS"
15926
15927 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15928
15929 fi
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15931 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15932 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15933 $as_echo_n "(cached) " >&6
15934 else
15935 ac_check_lib_save_LIBS=$LIBS
15936 LIBS="-lkrb5 $LIBS"
15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938 /* end confdefs.h. */
15939
15940 /* Override any GCC internal prototype to avoid an error.
15941 Use char because int might match the return type of a GCC
15942 builtin and then its argument prototype would still apply. */
15943 #ifdef __cplusplus
15944 extern "C"
15945 #endif
15946 char krb5_init_context ();
15947 int
15948 main ()
15949 {
15950 return krb5_init_context ();
15951 ;
15952 return 0;
15953 }
15954 _ACEOF
15955 if ac_fn_c_try_link "$LINENO"; then :
15956 ac_cv_lib_krb5_krb5_init_context=yes
15957 else
15958 ac_cv_lib_krb5_krb5_init_context=no
15959 fi
15960 rm -f core conftest.err conftest.$ac_objext \
15961 conftest$ac_exeext conftest.$ac_ext
15962 LIBS=$ac_check_lib_save_LIBS
15963 fi
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15965 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15966 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15967 have_krb5=yes
15968 else
15969 have_krb5=no
15970 fi
15971
15972 if test $have_krb5=yes; then
15973 KRB5LIB=-lkrb5
15974 LIBS="$KRB5LIB $LIBS"
15975
15976 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15977
15978 fi
15979 if test "${with_kerberos5}" = no; then
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15981 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15982 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
15983 $as_echo_n "(cached) " >&6
15984 else
15985 ac_check_lib_save_LIBS=$LIBS
15986 LIBS="-ldes425 $LIBS"
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989
15990 /* Override any GCC internal prototype to avoid an error.
15991 Use char because int might match the return type of a GCC
15992 builtin and then its argument prototype would still apply. */
15993 #ifdef __cplusplus
15994 extern "C"
15995 #endif
15996 char des_cbc_encrypt ();
15997 int
15998 main ()
15999 {
16000 return des_cbc_encrypt ();
16001 ;
16002 return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_link "$LINENO"; then :
16006 ac_cv_lib_des425_des_cbc_encrypt=yes
16007 else
16008 ac_cv_lib_des425_des_cbc_encrypt=no
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext \
16011 conftest$ac_exeext conftest.$ac_ext
16012 LIBS=$ac_check_lib_save_LIBS
16013 fi
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16015 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16016 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
16017 have_des425=yes
16018 else
16019 have_des425=no
16020 fi
16021
16022 if test $have_des425 = yes; then
16023 DESLIB=-ldes425
16024 LIBS="$DESLIB $LIBS"
16025
16026 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16027
16028 else
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16030 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16031 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16032 $as_echo_n "(cached) " >&6
16033 else
16034 ac_check_lib_save_LIBS=$LIBS
16035 LIBS="-ldes $LIBS"
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16038
16039 /* Override any GCC internal prototype to avoid an error.
16040 Use char because int might match the return type of a GCC
16041 builtin and then its argument prototype would still apply. */
16042 #ifdef __cplusplus
16043 extern "C"
16044 #endif
16045 char des_cbc_encrypt ();
16046 int
16047 main ()
16048 {
16049 return des_cbc_encrypt ();
16050 ;
16051 return 0;
16052 }
16053 _ACEOF
16054 if ac_fn_c_try_link "$LINENO"; then :
16055 ac_cv_lib_des_des_cbc_encrypt=yes
16056 else
16057 ac_cv_lib_des_des_cbc_encrypt=no
16058 fi
16059 rm -f core conftest.err conftest.$ac_objext \
16060 conftest$ac_exeext conftest.$ac_ext
16061 LIBS=$ac_check_lib_save_LIBS
16062 fi
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16064 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16065 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16066 have_des=yes
16067 else
16068 have_des=no
16069 fi
16070
16071 if test $have_des = yes; then
16072 DESLIB=-ldes
16073 LIBS="$DESLIB $LIBS"
16074
16075 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16076
16077 fi
16078 fi
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16080 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16081 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084 ac_check_lib_save_LIBS=$LIBS
16085 LIBS="-lkrb4 $LIBS"
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16088
16089 /* Override any GCC internal prototype to avoid an error.
16090 Use char because int might match the return type of a GCC
16091 builtin and then its argument prototype would still apply. */
16092 #ifdef __cplusplus
16093 extern "C"
16094 #endif
16095 char krb_get_cred ();
16096 int
16097 main ()
16098 {
16099 return krb_get_cred ();
16100 ;
16101 return 0;
16102 }
16103 _ACEOF
16104 if ac_fn_c_try_link "$LINENO"; then :
16105 ac_cv_lib_krb4_krb_get_cred=yes
16106 else
16107 ac_cv_lib_krb4_krb_get_cred=no
16108 fi
16109 rm -f core conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16111 LIBS=$ac_check_lib_save_LIBS
16112 fi
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16114 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16115 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
16116 have_krb4=yes
16117 else
16118 have_krb4=no
16119 fi
16120
16121 if test $have_krb4 = yes; then
16122 KRB4LIB=-lkrb4
16123 LIBS="$KRB4LIB $LIBS"
16124
16125 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16126
16127 else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16129 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16130 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
16131 $as_echo_n "(cached) " >&6
16132 else
16133 ac_check_lib_save_LIBS=$LIBS
16134 LIBS="-lkrb $LIBS"
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h. */
16137
16138 /* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16141 #ifdef __cplusplus
16142 extern "C"
16143 #endif
16144 char krb_get_cred ();
16145 int
16146 main ()
16147 {
16148 return krb_get_cred ();
16149 ;
16150 return 0;
16151 }
16152 _ACEOF
16153 if ac_fn_c_try_link "$LINENO"; then :
16154 ac_cv_lib_krb_krb_get_cred=yes
16155 else
16156 ac_cv_lib_krb_krb_get_cred=no
16157 fi
16158 rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16161 fi
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16163 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16164 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
16165 have_krb=yes
16166 else
16167 have_krb=no
16168 fi
16169
16170 if test $have_krb = yes; then
16171 KRB4LIB=-lkrb
16172 LIBS="$KRB4LIB $LIBS"
16173
16174 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16175
16176 fi
16177 fi
16178 fi
16179
16180 if test "${with_kerberos5}" != no; then
16181 for ac_header in krb5.h
16182 do :
16183 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16184 if test "x$ac_cv_header_krb5_h" = xyes; then :
16185 cat >>confdefs.h <<_ACEOF
16186 #define HAVE_KRB5_H 1
16187 _ACEOF
16188 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16189 "
16190 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
16191
16192 cat >>confdefs.h <<_ACEOF
16193 #define HAVE_KRB5_ERROR_TEXT 1
16194 _ACEOF
16195
16196
16197 fi
16198 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16199 "
16200 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
16201
16202 cat >>confdefs.h <<_ACEOF
16203 #define HAVE_KRB5_ERROR_E_TEXT 1
16204 _ACEOF
16205
16206
16207 fi
16208
16209 fi
16210
16211 done
16212
16213 else
16214 for ac_header in des.h
16215 do :
16216 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16217 if test "x$ac_cv_header_des_h" = xyes; then :
16218 cat >>confdefs.h <<_ACEOF
16219 #define HAVE_DES_H 1
16220 _ACEOF
16221
16222 else
16223 for ac_header in kerberosIV/des.h
16224 do :
16225 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16226 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
16227 cat >>confdefs.h <<_ACEOF
16228 #define HAVE_KERBEROSIV_DES_H 1
16229 _ACEOF
16230
16231 else
16232 for ac_header in kerberos/des.h
16233 do :
16234 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16235 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
16236 cat >>confdefs.h <<_ACEOF
16237 #define HAVE_KERBEROS_DES_H 1
16238 _ACEOF
16239
16240 fi
16241
16242 done
16243
16244 fi
16245
16246 done
16247
16248 fi
16249
16250 done
16251
16252 for ac_header in krb.h
16253 do :
16254 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16255 if test "x$ac_cv_header_krb_h" = xyes; then :
16256 cat >>confdefs.h <<_ACEOF
16257 #define HAVE_KRB_H 1
16258 _ACEOF
16259
16260 else
16261 for ac_header in kerberosIV/krb.h
16262 do :
16263 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16264 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
16265 cat >>confdefs.h <<_ACEOF
16266 #define HAVE_KERBEROSIV_KRB_H 1
16267 _ACEOF
16268
16269 else
16270 for ac_header in kerberos/krb.h
16271 do :
16272 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16273 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
16274 cat >>confdefs.h <<_ACEOF
16275 #define HAVE_KERBEROS_KRB_H 1
16276 _ACEOF
16277
16278 fi
16279
16280 done
16281
16282 fi
16283
16284 done
16285
16286 fi
16287
16288 done
16289
16290 fi
16291 for ac_header in com_err.h
16292 do :
16293 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16294 if test "x$ac_cv_header_com_err_h" = xyes; then :
16295 cat >>confdefs.h <<_ACEOF
16296 #define HAVE_COM_ERR_H 1
16297 _ACEOF
16298
16299 fi
16300
16301 done
16302
16303 fi
16304
16305
16306
16307
16308
16309
16310
16311 # Solaris requires -lintl if you want strerror (which calls dgettext)
16312 # to return localized messages.
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16314 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16315 if ${ac_cv_lib_intl_dgettext+:} false; then :
16316 $as_echo_n "(cached) " >&6
16317 else
16318 ac_check_lib_save_LIBS=$LIBS
16319 LIBS="-lintl $LIBS"
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322
16323 /* Override any GCC internal prototype to avoid an error.
16324 Use char because int might match the return type of a GCC
16325 builtin and then its argument prototype would still apply. */
16326 #ifdef __cplusplus
16327 extern "C"
16328 #endif
16329 char dgettext ();
16330 int
16331 main ()
16332 {
16333 return dgettext ();
16334 ;
16335 return 0;
16336 }
16337 _ACEOF
16338 if ac_fn_c_try_link "$LINENO"; then :
16339 ac_cv_lib_intl_dgettext=yes
16340 else
16341 ac_cv_lib_intl_dgettext=no
16342 fi
16343 rm -f core conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
16345 LIBS=$ac_check_lib_save_LIBS
16346 fi
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16348 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16349 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_LIBINTL 1
16352 _ACEOF
16353
16354 LIBS="-lintl $LIBS"
16355
16356 fi
16357
16358
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16360 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16361 if ${emacs_cv_localtime_cache+:} false; then :
16362 $as_echo_n "(cached) " >&6
16363 else
16364 if test x$ac_cv_func_tzset = xyes; then
16365 if test "$cross_compiling" = yes; then :
16366 # If we have tzset, assume the worst when cross-compiling.
16367 emacs_cv_localtime_cache=yes
16368 else
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371 #include <time.h>
16372 char TZ_GMT0[] = "TZ=GMT0";
16373 char TZ_PST8[] = "TZ=PST8";
16374 main()
16375 {
16376 time_t now = time ((time_t *) 0);
16377 int hour_GMT0, hour_unset;
16378 if (putenv (TZ_GMT0) != 0)
16379 exit (1);
16380 hour_GMT0 = localtime (&now)->tm_hour;
16381 unsetenv("TZ");
16382 hour_unset = localtime (&now)->tm_hour;
16383 if (putenv (TZ_PST8) != 0)
16384 exit (1);
16385 if (localtime (&now)->tm_hour == hour_GMT0)
16386 exit (1);
16387 unsetenv("TZ");
16388 if (localtime (&now)->tm_hour != hour_unset)
16389 exit (1);
16390 exit (0);
16391 }
16392 _ACEOF
16393 if ac_fn_c_try_run "$LINENO"; then :
16394 emacs_cv_localtime_cache=no
16395 else
16396 emacs_cv_localtime_cache=yes
16397 fi
16398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16399 conftest.$ac_objext conftest.beam conftest.$ac_ext
16400 fi
16401
16402 else
16403 # If we lack tzset, report that localtime does not cache TZ,
16404 # since we can't invalidate the cache if we don't have tzset.
16405 emacs_cv_localtime_cache=no
16406 fi
16407 fi
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16409 $as_echo "$emacs_cv_localtime_cache" >&6; }
16410 if test $emacs_cv_localtime_cache = yes; then
16411
16412 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16413
16414 fi
16415
16416 if test "x$HAVE_TIMEVAL" = xyes; then
16417 for ac_func in gettimeofday
16418 do :
16419 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16420 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16421 cat >>confdefs.h <<_ACEOF
16422 #define HAVE_GETTIMEOFDAY 1
16423 _ACEOF
16424
16425 fi
16426 done
16427
16428 if test $ac_cv_func_gettimeofday = yes; then
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16430 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16431 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
16432 $as_echo_n "(cached) " >&6
16433 else
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436
16437 #ifdef TIME_WITH_SYS_TIME
16438 #include <sys/time.h>
16439 #include <time.h>
16440 #else
16441 #ifdef HAVE_SYS_TIME_H
16442 #include <sys/time.h>
16443 #else
16444 #include <time.h>
16445 #endif
16446 #endif
16447 int
16448 main ()
16449 {
16450 struct timeval time;
16451 gettimeofday (&time, 0);
16452 ;
16453 return 0;
16454 }
16455 _ACEOF
16456 if ac_fn_c_try_compile "$LINENO"; then :
16457 emacs_cv_gettimeofday_two_arguments=yes
16458 else
16459 emacs_cv_gettimeofday_two_arguments=no
16460 fi
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462 fi
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16464 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16465 if test $emacs_cv_gettimeofday_two_arguments = no; then
16466
16467 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16468
16469 fi
16470 fi
16471 fi
16472
16473 ok_so_far=yes
16474 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16475 if test "x$ac_cv_func_socket" = xyes; then :
16476
16477 else
16478 ok_so_far=no
16479 fi
16480
16481 if test $ok_so_far = yes; then
16482 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16483 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16484
16485 else
16486 ok_so_far=no
16487 fi
16488
16489
16490 fi
16491 if test $ok_so_far = yes; then
16492 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16493 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16494
16495 else
16496 ok_so_far=no
16497 fi
16498
16499
16500 fi
16501 if test $ok_so_far = yes; then
16502
16503 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16504
16505 fi
16506
16507 if test -f /usr/lpp/X11/bin/smt.exp; then
16508
16509 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16510
16511 fi
16512
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16514 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16515 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16517 $as_echo "yes" >&6; }
16518
16519 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16520
16521 else
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523 $as_echo "no" >&6; }
16524 fi
16525
16526 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16527 if test "x$ac_cv_type_pid_t" = xyes; then :
16528
16529 else
16530
16531 cat >>confdefs.h <<_ACEOF
16532 #define pid_t int
16533 _ACEOF
16534
16535 fi
16536
16537 for ac_header in vfork.h
16538 do :
16539 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16540 if test "x$ac_cv_header_vfork_h" = xyes; then :
16541 cat >>confdefs.h <<_ACEOF
16542 #define HAVE_VFORK_H 1
16543 _ACEOF
16544
16545 fi
16546
16547 done
16548
16549 for ac_func in fork vfork
16550 do :
16551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16553 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16554 cat >>confdefs.h <<_ACEOF
16555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16556 _ACEOF
16557
16558 fi
16559 done
16560
16561 if test "x$ac_cv_func_fork" = xyes; then
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16563 $as_echo_n "checking for working fork... " >&6; }
16564 if ${ac_cv_func_fork_works+:} false; then :
16565 $as_echo_n "(cached) " >&6
16566 else
16567 if test "$cross_compiling" = yes; then :
16568 ac_cv_func_fork_works=cross
16569 else
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16572 $ac_includes_default
16573 int
16574 main ()
16575 {
16576
16577 /* By Ruediger Kuhlmann. */
16578 return fork () < 0;
16579
16580 ;
16581 return 0;
16582 }
16583 _ACEOF
16584 if ac_fn_c_try_run "$LINENO"; then :
16585 ac_cv_func_fork_works=yes
16586 else
16587 ac_cv_func_fork_works=no
16588 fi
16589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16590 conftest.$ac_objext conftest.beam conftest.$ac_ext
16591 fi
16592
16593 fi
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16595 $as_echo "$ac_cv_func_fork_works" >&6; }
16596
16597 else
16598 ac_cv_func_fork_works=$ac_cv_func_fork
16599 fi
16600 if test "x$ac_cv_func_fork_works" = xcross; then
16601 case $host in
16602 *-*-amigaos* | *-*-msdosdjgpp*)
16603 # Override, as these systems have only a dummy fork() stub
16604 ac_cv_func_fork_works=no
16605 ;;
16606 *)
16607 ac_cv_func_fork_works=yes
16608 ;;
16609 esac
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16611 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16612 fi
16613 ac_cv_func_vfork_works=$ac_cv_func_vfork
16614 if test "x$ac_cv_func_vfork" = xyes; then
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16616 $as_echo_n "checking for working vfork... " >&6; }
16617 if ${ac_cv_func_vfork_works+:} false; then :
16618 $as_echo_n "(cached) " >&6
16619 else
16620 if test "$cross_compiling" = yes; then :
16621 ac_cv_func_vfork_works=cross
16622 else
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16625 /* Thanks to Paul Eggert for this test. */
16626 $ac_includes_default
16627 #include <sys/wait.h>
16628 #ifdef HAVE_VFORK_H
16629 # include <vfork.h>
16630 #endif
16631 /* On some sparc systems, changes by the child to local and incoming
16632 argument registers are propagated back to the parent. The compiler
16633 is told about this with #include <vfork.h>, but some compilers
16634 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16635 static variable whose address is put into a register that is
16636 clobbered by the vfork. */
16637 static void
16638 #ifdef __cplusplus
16639 sparc_address_test (int arg)
16640 # else
16641 sparc_address_test (arg) int arg;
16642 #endif
16643 {
16644 static pid_t child;
16645 if (!child) {
16646 child = vfork ();
16647 if (child < 0) {
16648 perror ("vfork");
16649 _exit(2);
16650 }
16651 if (!child) {
16652 arg = getpid();
16653 write(-1, "", 0);
16654 _exit (arg);
16655 }
16656 }
16657 }
16658
16659 int
16660 main ()
16661 {
16662 pid_t parent = getpid ();
16663 pid_t child;
16664
16665 sparc_address_test (0);
16666
16667 child = vfork ();
16668
16669 if (child == 0) {
16670 /* Here is another test for sparc vfork register problems. This
16671 test uses lots of local variables, at least as many local
16672 variables as main has allocated so far including compiler
16673 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16674 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16675 reuse the register of parent for one of the local variables,
16676 since it will think that parent can't possibly be used any more
16677 in this routine. Assigning to the local variable will thus
16678 munge parent in the parent process. */
16679 pid_t
16680 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16681 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16682 /* Convince the compiler that p..p7 are live; otherwise, it might
16683 use the same hardware register for all 8 local variables. */
16684 if (p != p1 || p != p2 || p != p3 || p != p4
16685 || p != p5 || p != p6 || p != p7)
16686 _exit(1);
16687
16688 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16689 from child file descriptors. If the child closes a descriptor
16690 before it execs or exits, this munges the parent's descriptor
16691 as well. Test for this by closing stdout in the child. */
16692 _exit(close(fileno(stdout)) != 0);
16693 } else {
16694 int status;
16695 struct stat st;
16696
16697 while (wait(&status) != child)
16698 ;
16699 return (
16700 /* Was there some problem with vforking? */
16701 child < 0
16702
16703 /* Did the child fail? (This shouldn't happen.) */
16704 || status
16705
16706 /* Did the vfork/compiler bug occur? */
16707 || parent != getpid()
16708
16709 /* Did the file descriptor bug occur? */
16710 || fstat(fileno(stdout), &st) != 0
16711 );
16712 }
16713 }
16714 _ACEOF
16715 if ac_fn_c_try_run "$LINENO"; then :
16716 ac_cv_func_vfork_works=yes
16717 else
16718 ac_cv_func_vfork_works=no
16719 fi
16720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16721 conftest.$ac_objext conftest.beam conftest.$ac_ext
16722 fi
16723
16724 fi
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16726 $as_echo "$ac_cv_func_vfork_works" >&6; }
16727
16728 fi;
16729 if test "x$ac_cv_func_fork_works" = xcross; then
16730 ac_cv_func_vfork_works=$ac_cv_func_vfork
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16732 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16733 fi
16734
16735 if test "x$ac_cv_func_vfork_works" = xyes; then
16736
16737 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16738
16739 else
16740
16741 $as_echo "#define vfork fork" >>confdefs.h
16742
16743 fi
16744 if test "x$ac_cv_func_fork_works" = xyes; then
16745
16746 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16747
16748 fi
16749
16750
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16752 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16753 if ${emacs_cv_langinfo_codeset+:} false; then :
16754 $as_echo_n "(cached) " >&6
16755 else
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16758 #include <langinfo.h>
16759 int
16760 main ()
16761 {
16762 char* cs = nl_langinfo(CODESET);
16763 ;
16764 return 0;
16765 }
16766 _ACEOF
16767 if ac_fn_c_try_link "$LINENO"; then :
16768 emacs_cv_langinfo_codeset=yes
16769 else
16770 emacs_cv_langinfo_codeset=no
16771 fi
16772 rm -f core conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16774
16775 fi
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16777 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16778 if test $emacs_cv_langinfo_codeset = yes; then
16779
16780 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16781
16782 fi
16783
16784 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16785 if test "x$ac_cv_type_size_t" = xyes; then :
16786
16787 cat >>confdefs.h <<_ACEOF
16788 #define HAVE_SIZE_T 1
16789 _ACEOF
16790
16791
16792 fi
16793
16794
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16796 $as_echo_n "checking for mbstate_t... " >&6; }
16797 if ${ac_cv_type_mbstate_t+:} false; then :
16798 $as_echo_n "(cached) " >&6
16799 else
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 $ac_includes_default
16803 # include <wchar.h>
16804 int
16805 main ()
16806 {
16807 mbstate_t x; return sizeof x;
16808 ;
16809 return 0;
16810 }
16811 _ACEOF
16812 if ac_fn_c_try_compile "$LINENO"; then :
16813 ac_cv_type_mbstate_t=yes
16814 else
16815 ac_cv_type_mbstate_t=no
16816 fi
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 fi
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16820 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16821 if test $ac_cv_type_mbstate_t = yes; then
16822
16823 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16824
16825 else
16826
16827 $as_echo "#define mbstate_t int" >>confdefs.h
16828
16829 fi
16830
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16832 $as_echo_n "checking for C restricted array declarations... " >&6; }
16833 if ${emacs_cv_c_restrict_arr+:} false; then :
16834 $as_echo_n "(cached) " >&6
16835 else
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 void fred (int x[__restrict]);
16839 int
16840 main ()
16841 {
16842
16843 ;
16844 return 0;
16845 }
16846 _ACEOF
16847 if ac_fn_c_try_compile "$LINENO"; then :
16848 emacs_cv_c_restrict_arr=yes
16849 else
16850 emacs_cv_c_restrict_arr=no
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853 fi
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16855 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16856 if test "$emacs_cv_c_restrict_arr" = yes; then
16857
16858 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16859
16860 fi
16861
16862
16863
16864 # Set up the CFLAGS for real compilation, so we can substitute it.
16865 CFLAGS="$REAL_CFLAGS"
16866 CPPFLAGS="$REAL_CPPFLAGS"
16867
16868 ## Hack to detect a buggy GCC version.
16869 if test "x$GCC" = xyes \
16870 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16871 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16872 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16873 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16874 fi
16875
16876 #### Find out which version of Emacs this is.
16877 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
16878 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
16879 if test x"${version}" = x; then
16880 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
16881 fi
16882 if test x"${version}" != x"$PACKAGE_VERSION"; then
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
16884 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
16885 fi
16886
16887 ### Specify what sort of things we'll be editing into Makefile and config.h.
16888 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16889
16890
16891 ## Unused?
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16913 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16914 ## end of LIBX_BASE, but nothing ever set it.
16915
16916
16917
16918
16919 ## Used in lwlib/Makefile.in.
16920
16921 if test -n "${machfile}"; then
16922 M_FILE="\$(srcdir)/${machfile}"
16923 else
16924 M_FILE=
16925 fi
16926 S_FILE="\$(srcdir)/${opsysfile}"
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938 cat >>confdefs.h <<_ACEOF
16939 #define EMACS_CONFIGURATION "${canonical}"
16940 _ACEOF
16941
16942
16943 cat >>confdefs.h <<_ACEOF
16944 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16945 _ACEOF
16946
16947 if test -n "$machfile"; then
16948
16949 cat >>confdefs.h <<_ACEOF
16950 #define config_machfile "${machfile}"
16951 _ACEOF
16952
16953 fi
16954
16955 cat >>confdefs.h <<_ACEOF
16956 #define config_opsysfile "${opsysfile}"
16957 _ACEOF
16958
16959
16960 XMENU_OBJ=
16961 XOBJ=
16962 FONT_OBJ=
16963 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16964
16965 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16966
16967 XMENU_OBJ=xmenu.o
16968 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16969 FONT_OBJ=xfont.o
16970 if test "$HAVE_XFT" = "yes"; then
16971 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16972 elif test "$HAVE_FREETYPE" = "yes"; then
16973 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16974 fi
16975
16976 fi
16977
16978
16979
16980
16981 WIDGET_OBJ=
16982 MOTIF_LIBW=
16983 if test "${USE_X_TOOLKIT}" != "none" ; then
16984 WIDGET_OBJ=widget.o
16985
16986 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16987
16988 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16989
16990 $as_echo "#define USE_LUCID 1" >>confdefs.h
16991
16992 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16993
16994 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16995
16996 MOTIF_LIBW=-lXm
16997 case "$opsys" in
16998 gnu-linux)
16999 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17000 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17001 ;;
17002
17003 unixware)
17004 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17005 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17006 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17007 ;;
17008
17009 aix4-2)
17010 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17011 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17012 ;;
17013 esac
17014 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17015 fi
17016 fi
17017
17018
17019 TOOLKIT_LIBW=
17020 case "$USE_X_TOOLKIT" in
17021 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17022 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17023 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17024 esac
17025
17026
17027 if test "$USE_X_TOOLKIT" = "none"; then
17028 LIBXT_OTHER="\$(LIBXSM)"
17029 OLDXMENU_TARGET="really-oldXMenu"
17030 else
17031 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17032 OLDXMENU_TARGET="really-lwlib"
17033 fi
17034
17035
17036 ## The X Menu stuff is present in the X10 distribution, but missing
17037 ## from X11. If we have X10, just use the installed library;
17038 ## otherwise, use our own copy.
17039 if test "${HAVE_X11}" = "yes" ; then
17040
17041 $as_echo "#define HAVE_X11 1" >>confdefs.h
17042
17043
17044 if test "$USE_X_TOOLKIT" = "none"; then
17045 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17046 else
17047 OLDXMENU="\${lwlibdir}/liblw.a"
17048 fi
17049 LIBXMENU="\$(OLDXMENU)"
17050 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17051 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17052 else
17053 ## For a syntactically valid Makefile; not actually used for anything.
17054 ## See comments in src/Makefile.in.
17055 OLDXMENU=nothing
17056 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17057 if test "${HAVE_X_WINDOWS}" = "yes"; then
17058 LIBXMENU="-lXMenu"
17059 else
17060 LIBXMENU=
17061 fi
17062 LIBX_OTHER=
17063 OLDXMENU_DEPS=
17064 fi
17065
17066 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17067 OLDXMENU_TARGET=
17068 OLDXMENU=nothing
17069 LIBXMENU=
17070 OLDXMENU_DEPS=
17071 fi
17072
17073
17074
17075
17076
17077
17078
17079 if test "${HAVE_MENUS}" = "yes" ; then
17080
17081 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17082
17083 fi
17084
17085 if test "${GNU_MALLOC}" = "yes" ; then
17086
17087 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17088
17089 fi
17090
17091 RALLOC_OBJ=
17092 if test "${REL_ALLOC}" = "yes" ; then
17093
17094 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17095
17096
17097 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17098 fi
17099
17100
17101 if test "$opsys" = "cygwin"; then
17102 CYGWIN_OBJ="sheap.o"
17103 ## Cygwin differs because of its unexec().
17104 PRE_ALLOC_OBJ=
17105 POST_ALLOC_OBJ=lastfile.o
17106 else
17107 CYGWIN_OBJ=
17108 PRE_ALLOC_OBJ=lastfile.o
17109 POST_ALLOC_OBJ=
17110 fi
17111
17112
17113
17114
17115
17116 case "$opsys" in
17117 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17118
17119 darwin)
17120 ## The -headerpad option tells ld (see man page) to leave room at the
17121 ## end of the header for adding load commands. Needed for dumping.
17122 ## 0x690 is the total size of 30 segment load commands (at 56
17123 ## each); under Cocoa 31 commands are required.
17124 if test "$HAVE_NS" = "yes"; then
17125 libs_nsgui="-framework AppKit"
17126 headerpad_extra=6C8
17127 else
17128 libs_nsgui=
17129 headerpad_extra=690
17130 fi
17131 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17132
17133 ## This is here because src/Makefile.in did some extra fiddling around
17134 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17135 ## #ifndef LD_SWITCH_SYSTEM
17136 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17137 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17138 ## not using gcc, darwin system not on an alpha (ie darwin, since
17139 ## darwin + alpha does not occur).
17140 ## Because this was done in src/Makefile.in, the resulting part of
17141 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17142 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17143 ## rather than LD_SWITCH_SYSTEM.
17144 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17145 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17146 ;;
17147
17148 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17149 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17150 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17151 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17152 ## had different values in configure (in ac_link) and src/Makefile.in.
17153 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17154 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17155
17156 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17157 esac
17158
17159 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17160 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17161 fi
17162
17163
17164
17165
17166 LD_FIRSTFLAG=
17167 ORDINARY_LINK=
17168 case "$opsys" in
17169 ## gnu: GNU needs its own crt0.
17170 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17171
17172 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17173 ## library search parth, i.e. it won't search /usr/lib for libc and
17174 ## friends. Using -nostartfiles instead avoids this problem, and
17175 ## will also work on earlier NetBSD releases.
17176 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17177
17178 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17179 ## MkLinux/LinuxPPC needs this.
17180 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17181 gnu-*)
17182 case "$machine" in
17183 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17184 esac
17185 ;;
17186 esac
17187
17188
17189 if test "x$ORDINARY_LINK" = "xyes"; then
17190
17191 LD_FIRSTFLAG=""
17192
17193 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17194
17195
17196 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17197 ## freebsd, gnu-* not on macppc|ibms390x.
17198 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17199
17200 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17201 ## places that are difficult to figure out at make time. Fortunately,
17202 ## these same versions allow you to pass arbitrary flags on to the
17203 ## linker, so there is no reason not to use it as a linker.
17204 ##
17205 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17206 ## searching for libraries in its internal directories, so we have to
17207 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17208 LD_FIRSTFLAG="-nostdlib"
17209 fi
17210
17211 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17212 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17213
17214
17215
17216
17217 ## FIXME? The logic here is not precisely the same as that above.
17218 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17219 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17220 LIB_GCC=
17221 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17222
17223 case "$opsys" in
17224 freebsd|netbsd|openbsd) LIB_GCC= ;;
17225
17226 gnu-*)
17227 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17228 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17229 case $host_cpu in
17230 arm*)
17231 LIB_GCC="-lgcc_s"
17232 ;;
17233 *)
17234 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17235 ## immediately undefine it again and redefine it to empty.
17236 ## Was the C_SWITCH_X_SITE part really necessary?
17237 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17238 LIB_GCC=
17239 ;;
17240 esac
17241 ;;
17242
17243 ## Ask GCC where to find libgcc.a.
17244 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17245 esac
17246 fi
17247
17248
17249 TOOLTIP_SUPPORT=
17250 WINDOW_SUPPORT=
17251 ## If we're using X11/GNUstep, define some consequences.
17252 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17253
17254 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17255
17256
17257 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17258
17259 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17260 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17261
17262 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17263 test "$HAVE_X_WINDOWS" = "yes" && \
17264 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17265
17266 fi
17267
17268
17269
17270
17271
17272
17273
17274 #### Report on what we decided to do.
17275 #### Report GTK as a toolkit, even if it doesn't use Xt.
17276 #### It makes printing result more understandable as using GTK sets
17277 #### toolkit_scroll_bars to yes by default.
17278 if test "${HAVE_GTK}" = "yes"; then
17279 USE_X_TOOLKIT=GTK
17280 fi
17281
17282 and_machfile=
17283 if test -n "$machfile"; then
17284 and_machfile=" and \`${machfile}'"
17285 fi
17286
17287 echo "
17288 Configured for \`${canonical}'.
17289
17290 Where should the build process find the source code? ${srcdir}
17291 What operating system and machine description files should Emacs use?
17292 \`${opsysfile}'${and_machfile}
17293 What compiler should emacs be built with? ${CC} ${CFLAGS}
17294 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17295 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17296 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17297 What window system should Emacs use? ${window_system}
17298 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17299
17300 if test -n "${x_includes}"; then
17301 echo " Where do we find X Windows header files? ${x_includes}"
17302 else
17303 echo " Where do we find X Windows header files? Standard dirs"
17304 fi
17305 if test -n "${x_libraries}"; then
17306 echo " Where do we find X Windows libraries? ${x_libraries}"
17307 else
17308 echo " Where do we find X Windows libraries? Standard dirs"
17309 fi
17310
17311 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17312 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17313 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17314 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17315 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17316 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17317 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17318 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17319
17320 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17321 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17322 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17323 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17324 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17325 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17326
17327 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17328 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17329 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17330 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17331
17332 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17333 echo
17334
17335 if test $USE_XASSERTS = yes; then
17336 echo " Compiling with asserts turned on."
17337 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17338 fi
17339
17340 echo
17341
17342 if test "$HAVE_NS" = "yes"; then
17343 echo
17344 echo "You must run \"make install\" in order to test the built application.
17345 The installed application will go to nextstep/Emacs.app and can be
17346 run or moved from there."
17347 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17348 echo "The application will be fully self-contained."
17349 else
17350 echo "The lisp resources for the application will be installed under ${prefix}.
17351 You may need to run \"make install\" with sudo. The application will fail
17352 to run if these resources are not installed."
17353 fi
17354 echo
17355 fi
17356
17357
17358 # Remove any trailing slashes in these variables.
17359 test "${prefix}" != NONE &&
17360 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17361 test "${exec_prefix}" != NONE &&
17362 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17363
17364 ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile"
17365
17366 ac_config_commands="$ac_config_commands default"
17367
17368 cat >confcache <<\_ACEOF
17369 # This file is a shell script that caches the results of configure
17370 # tests run on this system so they can be shared between configure
17371 # scripts and configure runs, see configure's option --config-cache.
17372 # It is not useful on other systems. If it contains results you don't
17373 # want to keep, you may remove or edit it.
17374 #
17375 # config.status only pays attention to the cache file if you give it
17376 # the --recheck option to rerun configure.
17377 #
17378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17380 # following values.
17381
17382 _ACEOF
17383
17384 # The following way of writing the cache mishandles newlines in values,
17385 # but we know of no workaround that is simple, portable, and efficient.
17386 # So, we kill variables containing newlines.
17387 # Ultrix sh set writes to stderr and can't be redirected directly,
17388 # and sets the high bit in the cache file unless we assign to the vars.
17389 (
17390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17391 eval ac_val=\$$ac_var
17392 case $ac_val in #(
17393 *${as_nl}*)
17394 case $ac_var in #(
17395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17397 esac
17398 case $ac_var in #(
17399 _ | IFS | as_nl) ;; #(
17400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17401 *) { eval $ac_var=; unset $ac_var;} ;;
17402 esac ;;
17403 esac
17404 done
17405
17406 (set) 2>&1 |
17407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17408 *${as_nl}ac_space=\ *)
17409 # `set' does not quote correctly, so add quotes: double-quote
17410 # substitution turns \\\\ into \\, and sed turns \\ into \.
17411 sed -n \
17412 "s/'/'\\\\''/g;
17413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17414 ;; #(
17415 *)
17416 # `set' quotes correctly as required by POSIX, so do not add quotes.
17417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17418 ;;
17419 esac |
17420 sort
17421 ) |
17422 sed '
17423 /^ac_cv_env_/b end
17424 t clear
17425 :clear
17426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17427 t end
17428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17429 :end' >>confcache
17430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17431 if test -w "$cache_file"; then
17432 if test "x$cache_file" != "x/dev/null"; then
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17434 $as_echo "$as_me: updating cache $cache_file" >&6;}
17435 if test ! -f "$cache_file" || test -h "$cache_file"; then
17436 cat confcache >"$cache_file"
17437 else
17438 case $cache_file in #(
17439 */* | ?:*)
17440 mv -f confcache "$cache_file"$$ &&
17441 mv -f "$cache_file"$$ "$cache_file" ;; #(
17442 *)
17443 mv -f confcache "$cache_file" ;;
17444 esac
17445 fi
17446 fi
17447 else
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17449 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17450 fi
17451 fi
17452 rm -f confcache
17453
17454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17455 # Let make expand exec_prefix.
17456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17457
17458 DEFS=-DHAVE_CONFIG_H
17459
17460 ac_libobjs=
17461 ac_ltlibobjs=
17462 U=
17463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17464 # 1. Remove the extension, and $U if already installed.
17465 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17466 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17467 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17468 # will be set to the directory where LIBOBJS objects are built.
17469 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17470 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17471 done
17472 LIBOBJS=$ac_libobjs
17473
17474 LTLIBOBJS=$ac_ltlibobjs
17475
17476
17477 if test -n "$EXEEXT"; then
17478 am__EXEEXT_TRUE=
17479 am__EXEEXT_FALSE='#'
17480 else
17481 am__EXEEXT_TRUE='#'
17482 am__EXEEXT_FALSE=
17483 fi
17484
17485 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17486 as_fn_error $? "conditional \"AMDEP\" was never defined.
17487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17488 fi
17489 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17490 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17492 fi
17493
17494 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17495 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17497 fi
17498
17499 gl_libobjs=
17500 gl_ltlibobjs=
17501 if test -n "$gl_LIBOBJS"; then
17502 # Remove the extension.
17503 sed_drop_objext='s/\.o$//;s/\.obj$//'
17504 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17505 gl_libobjs="$gl_libobjs $i.$ac_objext"
17506 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17507 done
17508 fi
17509 gl_LIBOBJS=$gl_libobjs
17510
17511 gl_LTLIBOBJS=$gl_ltlibobjs
17512
17513
17514
17515 gltests_libobjs=
17516 gltests_ltlibobjs=
17517 if test -n "$gltests_LIBOBJS"; then
17518 # Remove the extension.
17519 sed_drop_objext='s/\.o$//;s/\.obj$//'
17520 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17521 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17522 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17523 done
17524 fi
17525 gltests_LIBOBJS=$gltests_libobjs
17526
17527 gltests_LTLIBOBJS=$gltests_ltlibobjs
17528
17529
17530
17531 : "${CONFIG_STATUS=./config.status}"
17532 ac_write_fail=0
17533 ac_clean_files_save=$ac_clean_files
17534 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17536 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17537 as_write_fail=0
17538 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17539 #! $SHELL
17540 # Generated by $as_me.
17541 # Run this file to recreate the current configuration.
17542 # Compiler output produced by configure, useful for debugging
17543 # configure, is in config.log if it exists.
17544
17545 debug=false
17546 ac_cs_recheck=false
17547 ac_cs_silent=false
17548
17549 SHELL=\${CONFIG_SHELL-$SHELL}
17550 export SHELL
17551 _ASEOF
17552 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17553 ## -------------------- ##
17554 ## M4sh Initialization. ##
17555 ## -------------------- ##
17556
17557 # Be more Bourne compatible
17558 DUALCASE=1; export DUALCASE # for MKS sh
17559 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17560 emulate sh
17561 NULLCMD=:
17562 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17563 # is contrary to our usage. Disable this feature.
17564 alias -g '${1+"$@"}'='"$@"'
17565 setopt NO_GLOB_SUBST
17566 else
17567 case `(set -o) 2>/dev/null` in #(
17568 *posix*) :
17569 set -o posix ;; #(
17570 *) :
17571 ;;
17572 esac
17573 fi
17574
17575
17576 as_nl='
17577 '
17578 export as_nl
17579 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17580 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17581 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17582 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17583 # Prefer a ksh shell builtin over an external printf program on Solaris,
17584 # but without wasting forks for bash or zsh.
17585 if test -z "$BASH_VERSION$ZSH_VERSION" \
17586 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17587 as_echo='print -r --'
17588 as_echo_n='print -rn --'
17589 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17590 as_echo='printf %s\n'
17591 as_echo_n='printf %s'
17592 else
17593 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17594 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17595 as_echo_n='/usr/ucb/echo -n'
17596 else
17597 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17598 as_echo_n_body='eval
17599 arg=$1;
17600 case $arg in #(
17601 *"$as_nl"*)
17602 expr "X$arg" : "X\\(.*\\)$as_nl";
17603 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17604 esac;
17605 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17606 '
17607 export as_echo_n_body
17608 as_echo_n='sh -c $as_echo_n_body as_echo'
17609 fi
17610 export as_echo_body
17611 as_echo='sh -c $as_echo_body as_echo'
17612 fi
17613
17614 # The user is always right.
17615 if test "${PATH_SEPARATOR+set}" != set; then
17616 PATH_SEPARATOR=:
17617 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17618 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17619 PATH_SEPARATOR=';'
17620 }
17621 fi
17622
17623
17624 # IFS
17625 # We need space, tab and new line, in precisely that order. Quoting is
17626 # there to prevent editors from complaining about space-tab.
17627 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17628 # splitting by setting IFS to empty value.)
17629 IFS=" "" $as_nl"
17630
17631 # Find who we are. Look in the path if we contain no directory separator.
17632 as_myself=
17633 case $0 in #((
17634 *[\\/]* ) as_myself=$0 ;;
17635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17636 for as_dir in $PATH
17637 do
17638 IFS=$as_save_IFS
17639 test -z "$as_dir" && as_dir=.
17640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17641 done
17642 IFS=$as_save_IFS
17643
17644 ;;
17645 esac
17646 # We did not find ourselves, most probably we were run as `sh COMMAND'
17647 # in which case we are not to be found in the path.
17648 if test "x$as_myself" = x; then
17649 as_myself=$0
17650 fi
17651 if test ! -f "$as_myself"; then
17652 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17653 exit 1
17654 fi
17655
17656 # Unset variables that we do not need and which cause bugs (e.g. in
17657 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17658 # suppresses any "Segmentation fault" message there. '((' could
17659 # trigger a bug in pdksh 5.2.14.
17660 for as_var in BASH_ENV ENV MAIL MAILPATH
17661 do eval test x\${$as_var+set} = xset \
17662 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17663 done
17664 PS1='$ '
17665 PS2='> '
17666 PS4='+ '
17667
17668 # NLS nuisances.
17669 LC_ALL=C
17670 export LC_ALL
17671 LANGUAGE=C
17672 export LANGUAGE
17673
17674 # CDPATH.
17675 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17676
17677
17678 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17679 # ----------------------------------------
17680 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17681 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17682 # script with STATUS, using 1 if that was 0.
17683 as_fn_error ()
17684 {
17685 as_status=$1; test $as_status -eq 0 && as_status=1
17686 if test "$4"; then
17687 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17688 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17689 fi
17690 $as_echo "$as_me: error: $2" >&2
17691 as_fn_exit $as_status
17692 } # as_fn_error
17693
17694
17695 # as_fn_set_status STATUS
17696 # -----------------------
17697 # Set $? to STATUS, without forking.
17698 as_fn_set_status ()
17699 {
17700 return $1
17701 } # as_fn_set_status
17702
17703 # as_fn_exit STATUS
17704 # -----------------
17705 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17706 as_fn_exit ()
17707 {
17708 set +e
17709 as_fn_set_status $1
17710 exit $1
17711 } # as_fn_exit
17712
17713 # as_fn_unset VAR
17714 # ---------------
17715 # Portably unset VAR.
17716 as_fn_unset ()
17717 {
17718 { eval $1=; unset $1;}
17719 }
17720 as_unset=as_fn_unset
17721 # as_fn_append VAR VALUE
17722 # ----------------------
17723 # Append the text in VALUE to the end of the definition contained in VAR. Take
17724 # advantage of any shell optimizations that allow amortized linear growth over
17725 # repeated appends, instead of the typical quadratic growth present in naive
17726 # implementations.
17727 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17728 eval 'as_fn_append ()
17729 {
17730 eval $1+=\$2
17731 }'
17732 else
17733 as_fn_append ()
17734 {
17735 eval $1=\$$1\$2
17736 }
17737 fi # as_fn_append
17738
17739 # as_fn_arith ARG...
17740 # ------------------
17741 # Perform arithmetic evaluation on the ARGs, and store the result in the
17742 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17743 # must be portable across $(()) and expr.
17744 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17745 eval 'as_fn_arith ()
17746 {
17747 as_val=$(( $* ))
17748 }'
17749 else
17750 as_fn_arith ()
17751 {
17752 as_val=`expr "$@" || test $? -eq 1`
17753 }
17754 fi # as_fn_arith
17755
17756
17757 if expr a : '\(a\)' >/dev/null 2>&1 &&
17758 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17759 as_expr=expr
17760 else
17761 as_expr=false
17762 fi
17763
17764 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17765 as_basename=basename
17766 else
17767 as_basename=false
17768 fi
17769
17770 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17771 as_dirname=dirname
17772 else
17773 as_dirname=false
17774 fi
17775
17776 as_me=`$as_basename -- "$0" ||
17777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17778 X"$0" : 'X\(//\)$' \| \
17779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17780 $as_echo X/"$0" |
17781 sed '/^.*\/\([^/][^/]*\)\/*$/{
17782 s//\1/
17783 q
17784 }
17785 /^X\/\(\/\/\)$/{
17786 s//\1/
17787 q
17788 }
17789 /^X\/\(\/\).*/{
17790 s//\1/
17791 q
17792 }
17793 s/.*/./; q'`
17794
17795 # Avoid depending upon Character Ranges.
17796 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17797 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17798 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17799 as_cr_digits='0123456789'
17800 as_cr_alnum=$as_cr_Letters$as_cr_digits
17801
17802 ECHO_C= ECHO_N= ECHO_T=
17803 case `echo -n x` in #(((((
17804 -n*)
17805 case `echo 'xy\c'` in
17806 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17807 xy) ECHO_C='\c';;
17808 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17809 ECHO_T=' ';;
17810 esac;;
17811 *)
17812 ECHO_N='-n';;
17813 esac
17814
17815 rm -f conf$$ conf$$.exe conf$$.file
17816 if test -d conf$$.dir; then
17817 rm -f conf$$.dir/conf$$.file
17818 else
17819 rm -f conf$$.dir
17820 mkdir conf$$.dir 2>/dev/null
17821 fi
17822 if (echo >conf$$.file) 2>/dev/null; then
17823 if ln -s conf$$.file conf$$ 2>/dev/null; then
17824 as_ln_s='ln -s'
17825 # ... but there are two gotchas:
17826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17828 # In both cases, we have to default to `cp -p'.
17829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17830 as_ln_s='cp -p'
17831 elif ln conf$$.file conf$$ 2>/dev/null; then
17832 as_ln_s=ln
17833 else
17834 as_ln_s='cp -p'
17835 fi
17836 else
17837 as_ln_s='cp -p'
17838 fi
17839 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17840 rmdir conf$$.dir 2>/dev/null
17841
17842
17843 # as_fn_mkdir_p
17844 # -------------
17845 # Create "$as_dir" as a directory, including parents if necessary.
17846 as_fn_mkdir_p ()
17847 {
17848
17849 case $as_dir in #(
17850 -*) as_dir=./$as_dir;;
17851 esac
17852 test -d "$as_dir" || eval $as_mkdir_p || {
17853 as_dirs=
17854 while :; do
17855 case $as_dir in #(
17856 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17857 *) as_qdir=$as_dir;;
17858 esac
17859 as_dirs="'$as_qdir' $as_dirs"
17860 as_dir=`$as_dirname -- "$as_dir" ||
17861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17862 X"$as_dir" : 'X\(//\)[^/]' \| \
17863 X"$as_dir" : 'X\(//\)$' \| \
17864 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17865 $as_echo X"$as_dir" |
17866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17867 s//\1/
17868 q
17869 }
17870 /^X\(\/\/\)[^/].*/{
17871 s//\1/
17872 q
17873 }
17874 /^X\(\/\/\)$/{
17875 s//\1/
17876 q
17877 }
17878 /^X\(\/\).*/{
17879 s//\1/
17880 q
17881 }
17882 s/.*/./; q'`
17883 test -d "$as_dir" && break
17884 done
17885 test -z "$as_dirs" || eval "mkdir $as_dirs"
17886 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17887
17888
17889 } # as_fn_mkdir_p
17890 if mkdir -p . 2>/dev/null; then
17891 as_mkdir_p='mkdir -p "$as_dir"'
17892 else
17893 test -d ./-p && rmdir ./-p
17894 as_mkdir_p=false
17895 fi
17896
17897 if test -x / >/dev/null 2>&1; then
17898 as_test_x='test -x'
17899 else
17900 if ls -dL / >/dev/null 2>&1; then
17901 as_ls_L_option=L
17902 else
17903 as_ls_L_option=
17904 fi
17905 as_test_x='
17906 eval sh -c '\''
17907 if test -d "$1"; then
17908 test -d "$1/.";
17909 else
17910 case $1 in #(
17911 -*)set "./$1";;
17912 esac;
17913 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17914 ???[sx]*):;;*)false;;esac;fi
17915 '\'' sh
17916 '
17917 fi
17918 as_executable_p=$as_test_x
17919
17920 # Sed expression to map a string onto a valid CPP name.
17921 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17922
17923 # Sed expression to map a string onto a valid variable name.
17924 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17925
17926
17927 exec 6>&1
17928 ## ----------------------------------- ##
17929 ## Main body of $CONFIG_STATUS script. ##
17930 ## ----------------------------------- ##
17931 _ASEOF
17932 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17933
17934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17935 # Save the log message, to keep $0 and so on meaningful, and to
17936 # report actual input values of CONFIG_FILES etc. instead of their
17937 # values after options handling.
17938 ac_log="
17939 This file was extended by emacs $as_me 24.0.50, which was
17940 generated by GNU Autoconf 2.68. Invocation command line was
17941
17942 CONFIG_FILES = $CONFIG_FILES
17943 CONFIG_HEADERS = $CONFIG_HEADERS
17944 CONFIG_LINKS = $CONFIG_LINKS
17945 CONFIG_COMMANDS = $CONFIG_COMMANDS
17946 $ $0 $@
17947
17948 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17949 "
17950
17951 _ACEOF
17952
17953 case $ac_config_files in *"
17954 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17955 esac
17956
17957 case $ac_config_headers in *"
17958 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17959 esac
17960
17961
17962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17963 # Files that config.status was made for.
17964 config_files="$ac_config_files"
17965 config_headers="$ac_config_headers"
17966 config_commands="$ac_config_commands"
17967
17968 _ACEOF
17969
17970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17971 ac_cs_usage="\
17972 \`$as_me' instantiates files and other configuration actions
17973 from templates according to the current configuration. Unless the files
17974 and actions are specified as TAGs, all are instantiated by default.
17975
17976 Usage: $0 [OPTION]... [TAG]...
17977
17978 -h, --help print this help, then exit
17979 -V, --version print version number and configuration settings, then exit
17980 --config print configuration, then exit
17981 -q, --quiet, --silent
17982 do not print progress messages
17983 -d, --debug don't remove temporary files
17984 --recheck update $as_me by reconfiguring in the same conditions
17985 --file=FILE[:TEMPLATE]
17986 instantiate the configuration file FILE
17987 --header=FILE[:TEMPLATE]
17988 instantiate the configuration header FILE
17989
17990 Configuration files:
17991 $config_files
17992
17993 Configuration headers:
17994 $config_headers
17995
17996 Configuration commands:
17997 $config_commands
17998
17999 Report bugs to the package provider."
18000
18001 _ACEOF
18002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18003 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18004 ac_cs_version="\\
18005 emacs config.status 24.0.50
18006 configured by $0, generated by GNU Autoconf 2.68,
18007 with options \\"\$ac_cs_config\\"
18008
18009 Copyright (C) 2010 Free Software Foundation, Inc.
18010 This config.status script is free software; the Free Software Foundation
18011 gives unlimited permission to copy, distribute and modify it."
18012
18013 ac_pwd='$ac_pwd'
18014 srcdir='$srcdir'
18015 INSTALL='$INSTALL'
18016 MKDIR_P='$MKDIR_P'
18017 AWK='$AWK'
18018 test -n "\$AWK" || AWK=awk
18019 _ACEOF
18020
18021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18022 # The default lists apply if the user does not specify any file.
18023 ac_need_defaults=:
18024 while test $# != 0
18025 do
18026 case $1 in
18027 --*=?*)
18028 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18029 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18030 ac_shift=:
18031 ;;
18032 --*=)
18033 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18034 ac_optarg=
18035 ac_shift=:
18036 ;;
18037 *)
18038 ac_option=$1
18039 ac_optarg=$2
18040 ac_shift=shift
18041 ;;
18042 esac
18043
18044 case $ac_option in
18045 # Handling of the options.
18046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18047 ac_cs_recheck=: ;;
18048 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18049 $as_echo "$ac_cs_version"; exit ;;
18050 --config | --confi | --conf | --con | --co | --c )
18051 $as_echo "$ac_cs_config"; exit ;;
18052 --debug | --debu | --deb | --de | --d | -d )
18053 debug=: ;;
18054 --file | --fil | --fi | --f )
18055 $ac_shift
18056 case $ac_optarg in
18057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18058 '') as_fn_error $? "missing file argument" ;;
18059 esac
18060 as_fn_append CONFIG_FILES " '$ac_optarg'"
18061 ac_need_defaults=false;;
18062 --header | --heade | --head | --hea )
18063 $ac_shift
18064 case $ac_optarg in
18065 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18066 esac
18067 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18068 ac_need_defaults=false;;
18069 --he | --h)
18070 # Conflict between --help and --header
18071 as_fn_error $? "ambiguous option: \`$1'
18072 Try \`$0 --help' for more information.";;
18073 --help | --hel | -h )
18074 $as_echo "$ac_cs_usage"; exit ;;
18075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18076 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18077 ac_cs_silent=: ;;
18078
18079 # This is an error.
18080 -*) as_fn_error $? "unrecognized option: \`$1'
18081 Try \`$0 --help' for more information." ;;
18082
18083 *) as_fn_append ac_config_targets " $1"
18084 ac_need_defaults=false ;;
18085
18086 esac
18087 shift
18088 done
18089
18090 ac_configure_extra_args=
18091
18092 if $ac_cs_silent; then
18093 exec 6>/dev/null
18094 ac_configure_extra_args="$ac_configure_extra_args --silent"
18095 fi
18096
18097 _ACEOF
18098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18099 if \$ac_cs_recheck; then
18100 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18101 shift
18102 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18103 CONFIG_SHELL='$SHELL'
18104 export CONFIG_SHELL
18105 exec "\$@"
18106 fi
18107
18108 _ACEOF
18109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18110 exec 5>>config.log
18111 {
18112 echo
18113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18114 ## Running $as_me. ##
18115 _ASBOX
18116 $as_echo "$ac_log"
18117 } >&5
18118
18119 _ACEOF
18120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18121 #
18122 # INIT-COMMANDS
18123 #
18124 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18125 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18126
18127 _ACEOF
18128
18129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18130
18131 # Handling of arguments.
18132 for ac_config_target in $ac_config_targets
18133 do
18134 case $ac_config_target in
18135 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18136 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18137 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18138 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18139 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18140 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18141 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18142 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18143 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18144 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18145 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18146 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18147 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18148 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18149 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
18150 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18151
18152 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18153 esac
18154 done
18155
18156
18157 # If the user did not use the arguments to specify the items to instantiate,
18158 # then the envvar interface is used. Set only those that are not.
18159 # We use the long form for the default assignment because of an extremely
18160 # bizarre bug on SunOS 4.1.3.
18161 if $ac_need_defaults; then
18162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18165 fi
18166
18167 # Have a temporary directory for convenience. Make it in the build tree
18168 # simply because there is no reason against having it here, and in addition,
18169 # creating and moving files from /tmp can sometimes cause problems.
18170 # Hook for its removal unless debugging.
18171 # Note that there is a small window in which the directory will not be cleaned:
18172 # after its creation but before its name has been assigned to `$tmp'.
18173 $debug ||
18174 {
18175 tmp= ac_tmp=
18176 trap 'exit_status=$?
18177 : "${ac_tmp:=$tmp}"
18178 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18179 ' 0
18180 trap 'as_fn_exit 1' 1 2 13 15
18181 }
18182 # Create a (secure) tmp directory for tmp files.
18183
18184 {
18185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18186 test -d "$tmp"
18187 } ||
18188 {
18189 tmp=./conf$$-$RANDOM
18190 (umask 077 && mkdir "$tmp")
18191 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18192 ac_tmp=$tmp
18193
18194 # Set up the scripts for CONFIG_FILES section.
18195 # No need to generate them if there are no CONFIG_FILES.
18196 # This happens for instance with `./config.status config.h'.
18197 if test -n "$CONFIG_FILES"; then
18198
18199 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18200 ac_cs_awk_getline=:
18201 ac_cs_awk_pipe_init=
18202 ac_cs_awk_read_file='
18203 while ((getline aline < (F[key])) > 0)
18204 print(aline)
18205 close(F[key])'
18206 ac_cs_awk_pipe_fini=
18207 else
18208 ac_cs_awk_getline=false
18209 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18210 ac_cs_awk_read_file='
18211 print "|#_!!_#|"
18212 print "cat " F[key] " &&"
18213 '$ac_cs_awk_pipe_init
18214 # The final `:' finishes the AND list.
18215 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18216 fi
18217 ac_cr=`echo X | tr X '\015'`
18218 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18219 # But we know of no other shell where ac_cr would be empty at this
18220 # point, so we can use a bashism as a fallback.
18221 if test "x$ac_cr" = x; then
18222 eval ac_cr=\$\'\\r\'
18223 fi
18224 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18225 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18226 ac_cs_awk_cr='\\r'
18227 else
18228 ac_cs_awk_cr=$ac_cr
18229 fi
18230
18231 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18232 _ACEOF
18233
18234 # Create commands to substitute file output variables.
18235 {
18236 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18237 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18238 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18239 echo "_ACAWK" &&
18240 echo "_ACEOF"
18241 } >conf$$files.sh &&
18242 . ./conf$$files.sh ||
18243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18244 rm -f conf$$files.sh
18245
18246 {
18247 echo "cat >conf$$subs.awk <<_ACEOF" &&
18248 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18249 echo "_ACEOF"
18250 } >conf$$subs.sh ||
18251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18252 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18253 ac_delim='%!_!# '
18254 for ac_last_try in false false false false false :; do
18255 . ./conf$$subs.sh ||
18256 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18257
18258 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18259 if test $ac_delim_n = $ac_delim_num; then
18260 break
18261 elif $ac_last_try; then
18262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18263 else
18264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18265 fi
18266 done
18267 rm -f conf$$subs.sh
18268
18269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18270 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18271 _ACEOF
18272 sed -n '
18273 h
18274 s/^/S["/; s/!.*/"]=/
18275 p
18276 g
18277 s/^[^!]*!//
18278 :repl
18279 t repl
18280 s/'"$ac_delim"'$//
18281 t delim
18282 :nl
18283 h
18284 s/\(.\{148\}\)..*/\1/
18285 t more1
18286 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18287 p
18288 n
18289 b repl
18290 :more1
18291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18292 p
18293 g
18294 s/.\{148\}//
18295 t nl
18296 :delim
18297 h
18298 s/\(.\{148\}\)..*/\1/
18299 t more2
18300 s/["\\]/\\&/g; s/^/"/; s/$/"/
18301 p
18302 b
18303 :more2
18304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18305 p
18306 g
18307 s/.\{148\}//
18308 t delim
18309 ' <conf$$subs.awk | sed '
18310 /^[^""]/{
18311 N
18312 s/\n//
18313 }
18314 ' >>$CONFIG_STATUS || ac_write_fail=1
18315 rm -f conf$$subs.awk
18316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18317 _ACAWK
18318 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18319 for (key in S) S_is_set[key] = 1
18320 FS = "\a"
18321 \$ac_cs_awk_pipe_init
18322 }
18323 {
18324 line = $ 0
18325 nfields = split(line, field, "@")
18326 substed = 0
18327 len = length(field[1])
18328 for (i = 2; i < nfields; i++) {
18329 key = field[i]
18330 keylen = length(key)
18331 if (S_is_set[key]) {
18332 value = S[key]
18333 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18334 len += length(value) + length(field[++i])
18335 substed = 1
18336 } else
18337 len += 1 + keylen
18338 }
18339 if (nfields == 3 && !substed) {
18340 key = field[2]
18341 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18342 \$ac_cs_awk_read_file
18343 next
18344 }
18345 }
18346 print line
18347 }
18348 \$ac_cs_awk_pipe_fini
18349 _ACAWK
18350 _ACEOF
18351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18352 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18353 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18354 else
18355 cat
18356 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18357 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18358 _ACEOF
18359
18360 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18361 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18362 # trailing colons and then remove the whole line if VPATH becomes empty
18363 # (actually we leave an empty line to preserve line numbers).
18364 if test "x$srcdir" = x.; then
18365 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18366 h
18367 s///
18368 s/^/:/
18369 s/[ ]*$/:/
18370 s/:\$(srcdir):/:/g
18371 s/:\${srcdir}:/:/g
18372 s/:@srcdir@:/:/g
18373 s/^:*//
18374 s/:*$//
18375 x
18376 s/\(=[ ]*\).*/\1/
18377 G
18378 s/\n//
18379 s/^[^=]*=[ ]*$//
18380 }'
18381 fi
18382
18383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18384 fi # test -n "$CONFIG_FILES"
18385
18386 # Set up the scripts for CONFIG_HEADERS section.
18387 # No need to generate them if there are no CONFIG_HEADERS.
18388 # This happens for instance with `./config.status Makefile'.
18389 if test -n "$CONFIG_HEADERS"; then
18390 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18391 BEGIN {
18392 _ACEOF
18393
18394 # Transform confdefs.h into an awk script `defines.awk', embedded as
18395 # here-document in config.status, that substitutes the proper values into
18396 # config.h.in to produce config.h.
18397
18398 # Create a delimiter string that does not exist in confdefs.h, to ease
18399 # handling of long lines.
18400 ac_delim='%!_!# '
18401 for ac_last_try in false false :; do
18402 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18403 if test -z "$ac_tt"; then
18404 break
18405 elif $ac_last_try; then
18406 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18407 else
18408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18409 fi
18410 done
18411
18412 # For the awk script, D is an array of macro values keyed by name,
18413 # likewise P contains macro parameters if any. Preserve backslash
18414 # newline sequences.
18415
18416 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18417 sed -n '
18418 s/.\{148\}/&'"$ac_delim"'/g
18419 t rset
18420 :rset
18421 s/^[ ]*#[ ]*define[ ][ ]*/ /
18422 t def
18423 d
18424 :def
18425 s/\\$//
18426 t bsnl
18427 s/["\\]/\\&/g
18428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18429 D["\1"]=" \3"/p
18430 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18431 d
18432 :bsnl
18433 s/["\\]/\\&/g
18434 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18435 D["\1"]=" \3\\\\\\n"\\/p
18436 t cont
18437 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18438 t cont
18439 d
18440 :cont
18441 n
18442 s/.\{148\}/&'"$ac_delim"'/g
18443 t clear
18444 :clear
18445 s/\\$//
18446 t bsnlc
18447 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18448 d
18449 :bsnlc
18450 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18451 b cont
18452 ' <confdefs.h | sed '
18453 s/'"$ac_delim"'/"\\\
18454 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18455
18456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18457 for (key in D) D_is_set[key] = 1
18458 FS = "\a"
18459 }
18460 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18461 line = \$ 0
18462 split(line, arg, " ")
18463 if (arg[1] == "#") {
18464 defundef = arg[2]
18465 mac1 = arg[3]
18466 } else {
18467 defundef = substr(arg[1], 2)
18468 mac1 = arg[2]
18469 }
18470 split(mac1, mac2, "(") #)
18471 macro = mac2[1]
18472 prefix = substr(line, 1, index(line, defundef) - 1)
18473 if (D_is_set[macro]) {
18474 # Preserve the white space surrounding the "#".
18475 print prefix "define", macro P[macro] D[macro]
18476 next
18477 } else {
18478 # Replace #undef with comments. This is necessary, for example,
18479 # in the case of _POSIX_SOURCE, which is predefined and required
18480 # on some systems where configure will not decide to define it.
18481 if (defundef == "undef") {
18482 print "/*", prefix defundef, macro, "*/"
18483 next
18484 }
18485 }
18486 }
18487 { print }
18488 _ACAWK
18489 _ACEOF
18490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18491 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18492 fi # test -n "$CONFIG_HEADERS"
18493
18494
18495 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18496 shift
18497 for ac_tag
18498 do
18499 case $ac_tag in
18500 :[FHLC]) ac_mode=$ac_tag; continue;;
18501 esac
18502 case $ac_mode$ac_tag in
18503 :[FHL]*:*);;
18504 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18505 :[FH]-) ac_tag=-:-;;
18506 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18507 esac
18508 ac_save_IFS=$IFS
18509 IFS=:
18510 set x $ac_tag
18511 IFS=$ac_save_IFS
18512 shift
18513 ac_file=$1
18514 shift
18515
18516 case $ac_mode in
18517 :L) ac_source=$1;;
18518 :[FH])
18519 ac_file_inputs=
18520 for ac_f
18521 do
18522 case $ac_f in
18523 -) ac_f="$ac_tmp/stdin";;
18524 *) # Look for the file first in the build tree, then in the source tree
18525 # (if the path is not absolute). The absolute path cannot be DOS-style,
18526 # because $ac_f cannot contain `:'.
18527 test -f "$ac_f" ||
18528 case $ac_f in
18529 [\\/$]*) false;;
18530 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18531 esac ||
18532 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18533 esac
18534 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18535 as_fn_append ac_file_inputs " '$ac_f'"
18536 done
18537
18538 # Let's still pretend it is `configure' which instantiates (i.e., don't
18539 # use $as_me), people would be surprised to read:
18540 # /* config.h. Generated by config.status. */
18541 configure_input='Generated from '`
18542 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18543 `' by configure.'
18544 if test x"$ac_file" != x-; then
18545 configure_input="$ac_file. $configure_input"
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18547 $as_echo "$as_me: creating $ac_file" >&6;}
18548 fi
18549 # Neutralize special characters interpreted by sed in replacement strings.
18550 case $configure_input in #(
18551 *\&* | *\|* | *\\* )
18552 ac_sed_conf_input=`$as_echo "$configure_input" |
18553 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18554 *) ac_sed_conf_input=$configure_input;;
18555 esac
18556
18557 case $ac_tag in
18558 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18560 esac
18561 ;;
18562 esac
18563
18564 ac_dir=`$as_dirname -- "$ac_file" ||
18565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18566 X"$ac_file" : 'X\(//\)[^/]' \| \
18567 X"$ac_file" : 'X\(//\)$' \| \
18568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18569 $as_echo X"$ac_file" |
18570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18571 s//\1/
18572 q
18573 }
18574 /^X\(\/\/\)[^/].*/{
18575 s//\1/
18576 q
18577 }
18578 /^X\(\/\/\)$/{
18579 s//\1/
18580 q
18581 }
18582 /^X\(\/\).*/{
18583 s//\1/
18584 q
18585 }
18586 s/.*/./; q'`
18587 as_dir="$ac_dir"; as_fn_mkdir_p
18588 ac_builddir=.
18589
18590 case "$ac_dir" in
18591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18592 *)
18593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18594 # A ".." for each directory in $ac_dir_suffix.
18595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18596 case $ac_top_builddir_sub in
18597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18599 esac ;;
18600 esac
18601 ac_abs_top_builddir=$ac_pwd
18602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18603 # for backward compatibility:
18604 ac_top_builddir=$ac_top_build_prefix
18605
18606 case $srcdir in
18607 .) # We are building in place.
18608 ac_srcdir=.
18609 ac_top_srcdir=$ac_top_builddir_sub
18610 ac_abs_top_srcdir=$ac_pwd ;;
18611 [\\/]* | ?:[\\/]* ) # Absolute name.
18612 ac_srcdir=$srcdir$ac_dir_suffix;
18613 ac_top_srcdir=$srcdir
18614 ac_abs_top_srcdir=$srcdir ;;
18615 *) # Relative name.
18616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18617 ac_top_srcdir=$ac_top_build_prefix$srcdir
18618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18619 esac
18620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18621
18622
18623 case $ac_mode in
18624 :F)
18625 #
18626 # CONFIG_FILE
18627 #
18628
18629 case $INSTALL in
18630 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18631 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18632 esac
18633 ac_MKDIR_P=$MKDIR_P
18634 case $MKDIR_P in
18635 [\\/$]* | ?:[\\/]* ) ;;
18636 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18637 esac
18638 _ACEOF
18639
18640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18641 # If the template does not know about datarootdir, expand it.
18642 # FIXME: This hack should be removed a few years after 2.60.
18643 ac_datarootdir_hack=; ac_datarootdir_seen=
18644 ac_sed_dataroot='
18645 /datarootdir/ {
18646 p
18647 q
18648 }
18649 /@datadir@/p
18650 /@docdir@/p
18651 /@infodir@/p
18652 /@localedir@/p
18653 /@mandir@/p'
18654 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18655 *datarootdir*) ac_datarootdir_seen=yes;;
18656 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18658 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18659 _ACEOF
18660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18661 ac_datarootdir_hack='
18662 s&@datadir@&$datadir&g
18663 s&@docdir@&$docdir&g
18664 s&@infodir@&$infodir&g
18665 s&@localedir@&$localedir&g
18666 s&@mandir@&$mandir&g
18667 s&\\\${datarootdir}&$datarootdir&g' ;;
18668 esac
18669 _ACEOF
18670
18671 # Neutralize VPATH when `$srcdir' = `.'.
18672 # Shell code in configure.ac might set extrasub.
18673 # FIXME: do we really want to maintain this feature?
18674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18675 ac_sed_extra="$ac_vpsub
18676 $extrasub
18677 _ACEOF
18678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18679 :t
18680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18681 s|@configure_input@|$ac_sed_conf_input|;t t
18682 s&@top_builddir@&$ac_top_builddir_sub&;t t
18683 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18684 s&@srcdir@&$ac_srcdir&;t t
18685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18686 s&@top_srcdir@&$ac_top_srcdir&;t t
18687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18688 s&@builddir@&$ac_builddir&;t t
18689 s&@abs_builddir@&$ac_abs_builddir&;t t
18690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18691 s&@INSTALL@&$ac_INSTALL&;t t
18692 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18693 $ac_datarootdir_hack
18694 "
18695 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18696 if $ac_cs_awk_getline; then
18697 $AWK -f "$ac_tmp/subs.awk"
18698 else
18699 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18700 fi \
18701 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18702
18703 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18704 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18705 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18706 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18708 which seems to be undefined. Please make sure it is defined" >&5
18709 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18710 which seems to be undefined. Please make sure it is defined" >&2;}
18711
18712 rm -f "$ac_tmp/stdin"
18713 case $ac_file in
18714 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18715 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18716 esac \
18717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18718 ;;
18719 :H)
18720 #
18721 # CONFIG_HEADER
18722 #
18723 if test x"$ac_file" != x-; then
18724 {
18725 $as_echo "/* $configure_input */" \
18726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18727 } >"$ac_tmp/config.h" \
18728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18729 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18731 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18732 else
18733 rm -f "$ac_file"
18734 mv "$ac_tmp/config.h" "$ac_file" \
18735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18736 fi
18737 else
18738 $as_echo "/* $configure_input */" \
18739 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18740 || as_fn_error $? "could not create -" "$LINENO" 5
18741 fi
18742 # Compute "$ac_file"'s index in $config_headers.
18743 _am_arg="$ac_file"
18744 _am_stamp_count=1
18745 for _am_header in $config_headers :; do
18746 case $_am_header in
18747 $_am_arg | $_am_arg:* )
18748 break ;;
18749 * )
18750 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18751 esac
18752 done
18753 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18754 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18755 X"$_am_arg" : 'X\(//\)[^/]' \| \
18756 X"$_am_arg" : 'X\(//\)$' \| \
18757 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18758 $as_echo X"$_am_arg" |
18759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18760 s//\1/
18761 q
18762 }
18763 /^X\(\/\/\)[^/].*/{
18764 s//\1/
18765 q
18766 }
18767 /^X\(\/\/\)$/{
18768 s//\1/
18769 q
18770 }
18771 /^X\(\/\).*/{
18772 s//\1/
18773 q
18774 }
18775 s/.*/./; q'`/stamp-h$_am_stamp_count
18776 ;;
18777
18778 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18779 $as_echo "$as_me: executing $ac_file commands" >&6;}
18780 ;;
18781 esac
18782
18783
18784 case $ac_file$ac_mode in
18785 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18786 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18787 # are listed without --file. Let's play safe and only enable the eval
18788 # if we detect the quoting.
18789 case $CONFIG_FILES in
18790 *\'*) eval set x "$CONFIG_FILES" ;;
18791 *) set x $CONFIG_FILES ;;
18792 esac
18793 shift
18794 for mf
18795 do
18796 # Strip MF so we end up with the name of the file.
18797 mf=`echo "$mf" | sed -e 's/:.*$//'`
18798 # Check whether this is an Automake generated Makefile or not.
18799 # We used to match only the files named `Makefile.in', but
18800 # some people rename them; so instead we look at the file content.
18801 # Grep'ing the first line is not enough: some people post-process
18802 # each Makefile.in and add a new line on top of each file to say so.
18803 # Grep'ing the whole file is not good either: AIX grep has a line
18804 # limit of 2048, but all sed's we know have understand at least 4000.
18805 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18806 dirpart=`$as_dirname -- "$mf" ||
18807 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18808 X"$mf" : 'X\(//\)[^/]' \| \
18809 X"$mf" : 'X\(//\)$' \| \
18810 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18811 $as_echo X"$mf" |
18812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18813 s//\1/
18814 q
18815 }
18816 /^X\(\/\/\)[^/].*/{
18817 s//\1/
18818 q
18819 }
18820 /^X\(\/\/\)$/{
18821 s//\1/
18822 q
18823 }
18824 /^X\(\/\).*/{
18825 s//\1/
18826 q
18827 }
18828 s/.*/./; q'`
18829 else
18830 continue
18831 fi
18832 # Extract the definition of DEPDIR, am__include, and am__quote
18833 # from the Makefile without running `make'.
18834 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18835 test -z "$DEPDIR" && continue
18836 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18837 test -z "am__include" && continue
18838 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18839 # When using ansi2knr, U may be empty or an underscore; expand it
18840 U=`sed -n 's/^U = //p' < "$mf"`
18841 # Find all dependency output files, they are included files with
18842 # $(DEPDIR) in their names. We invoke sed twice because it is the
18843 # simplest approach to changing $(DEPDIR) to its actual value in the
18844 # expansion.
18845 for file in `sed -n "
18846 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18847 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18848 # Make sure the directory exists.
18849 test -f "$dirpart/$file" && continue
18850 fdir=`$as_dirname -- "$file" ||
18851 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18852 X"$file" : 'X\(//\)[^/]' \| \
18853 X"$file" : 'X\(//\)$' \| \
18854 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18855 $as_echo X"$file" |
18856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18857 s//\1/
18858 q
18859 }
18860 /^X\(\/\/\)[^/].*/{
18861 s//\1/
18862 q
18863 }
18864 /^X\(\/\/\)$/{
18865 s//\1/
18866 q
18867 }
18868 /^X\(\/\).*/{
18869 s//\1/
18870 q
18871 }
18872 s/.*/./; q'`
18873 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18874 # echo "creating $dirpart/$file"
18875 echo '# dummy' > "$dirpart/$file"
18876 done
18877 done
18878 }
18879 ;;
18880 "default":C)
18881
18882 ### Make the necessary directories, if they don't exist.
18883 for dir in etc lisp ; do
18884 test -d ${dir} || mkdir ${dir}
18885 done
18886
18887 echo creating src/epaths.h
18888 ${MAKE-make} epaths-force
18889
18890 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
18891 echo creating src/.gdbinit
18892 echo source $srcdir/src/.gdbinit > src/.gdbinit
18893 fi
18894
18895 ;;
18896
18897 esac
18898 done # for ac_tag
18899
18900
18901 as_fn_exit 0
18902 _ACEOF
18903 ac_clean_files=$ac_clean_files_save
18904
18905 test $ac_write_fail = 0 ||
18906 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18907
18908
18909 # configure is writing to config.log, and then calls config.status.
18910 # config.status does its own redirection, appending to config.log.
18911 # Unfortunately, on DOS this fails, as config.log is still kept open
18912 # by configure, so config.status won't be able to write to it; its
18913 # output is simply discarded. So we exec the FD to /dev/null,
18914 # effectively closing config.log, so it can be properly (re)opened and
18915 # appended to by config.status. When coming back to configure, we
18916 # need to make the FD available again.
18917 if test "$no_create" != yes; then
18918 ac_cs_success=:
18919 ac_config_status_args=
18920 test "$silent" = yes &&
18921 ac_config_status_args="$ac_config_status_args --quiet"
18922 exec 5>/dev/null
18923 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18924 exec 5>>config.log
18925 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18926 # would make configure fail if this is the last instruction.
18927 $ac_cs_success || as_fn_exit 1
18928 fi
18929 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18931 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18932 fi
18933