]> code.delx.au - gnu-emacs/blob - configure
Regenerate.
[gnu-emacs] / 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 " stddef.h"
2662 as_fn_append ac_header_list " time.h"
2663 as_fn_append ac_header_list " sys/time.h"
2664 as_fn_append ac_func_list " localtime_r"
2665 # Check that the precious variables saved in the cache have kept the same
2666 # value.
2667 ac_cache_corrupted=false
2668 for ac_var in $ac_precious_vars; do
2669 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2670 eval ac_new_set=\$ac_env_${ac_var}_set
2671 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2672 eval ac_new_val=\$ac_env_${ac_var}_value
2673 case $ac_old_set,$ac_new_set in
2674 set,)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2676 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2677 ac_cache_corrupted=: ;;
2678 ,set)
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2680 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2682 ,);;
2683 *)
2684 if test "x$ac_old_val" != "x$ac_new_val"; then
2685 # differences in whitespace do not lead to failure.
2686 ac_old_val_w=`echo x $ac_old_val`
2687 ac_new_val_w=`echo x $ac_new_val`
2688 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2690 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2691 ac_cache_corrupted=:
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2694 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2695 eval $ac_var=\$ac_old_val
2696 fi
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2698 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2700 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2701 fi;;
2702 esac
2703 # Pass precious variables to config.status.
2704 if test "$ac_new_set" = set; then
2705 case $ac_new_val in
2706 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2707 *) ac_arg=$ac_var=$ac_new_val ;;
2708 esac
2709 case " $ac_configure_args " in
2710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2711 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2712 esac
2713 fi
2714 done
2715 if $ac_cache_corrupted; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2719 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2720 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2721 fi
2722 ## -------------------- ##
2723 ## Main body of script. ##
2724 ## -------------------- ##
2725
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732
2733 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2734
2735
2736 am__api_version='1.11'
2737
2738 ac_aux_dir=
2739 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2740 if test -f "$ac_dir/install-sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install-sh -c"
2743 break
2744 elif test -f "$ac_dir/install.sh"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/install.sh -c"
2747 break
2748 elif test -f "$ac_dir/shtool"; then
2749 ac_aux_dir=$ac_dir
2750 ac_install_sh="$ac_aux_dir/shtool install -c"
2751 break
2752 fi
2753 done
2754 if test -z "$ac_aux_dir"; then
2755 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2756 fi
2757
2758 # These three variables are undocumented and unsupported,
2759 # and are intended to be withdrawn in a future Autoconf release.
2760 # They can cause serious problems if a builder's source tree is in a directory
2761 # whose full name contains unusual characters.
2762 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2763 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2764 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2765
2766
2767 # Find a good install program. We prefer a C program (faster),
2768 # so one script is as good as another. But avoid the broken or
2769 # incompatible versions:
2770 # SysV /etc/install, /usr/sbin/install
2771 # SunOS /usr/etc/install
2772 # IRIX /sbin/install
2773 # AIX /bin/install
2774 # AmigaOS /C/install, which installs bootblocks on floppy discs
2775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2778 # OS/2's system install, which has a completely different semantic
2779 # ./install, which can be erroneously created by make from ./install.sh.
2780 # Reject install programs that cannot install multiple files.
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2782 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2783 if test -z "$INSTALL"; then
2784 if ${ac_cv_path_install+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 # Account for people who put trailing slashes in PATH elements.
2793 case $as_dir/ in #((
2794 ./ | .// | /[cC]/* | \
2795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2796 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2797 /usr/ucb/* ) ;;
2798 *)
2799 # OSF1 and SCO ODT 3.0 have their own names for install.
2800 # Don't use installbsd from OSF since it installs stuff as root
2801 # by default.
2802 for ac_prog in ginstall scoinst install; do
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2805 if test $ac_prog = install &&
2806 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2807 # AIX install. It has an incompatible calling convention.
2808 :
2809 elif test $ac_prog = install &&
2810 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2811 # program-specific install script used by HP pwplus--don't use.
2812 :
2813 else
2814 rm -rf conftest.one conftest.two conftest.dir
2815 echo one > conftest.one
2816 echo two > conftest.two
2817 mkdir conftest.dir
2818 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2819 test -s conftest.one && test -s conftest.two &&
2820 test -s conftest.dir/conftest.one &&
2821 test -s conftest.dir/conftest.two
2822 then
2823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2824 break 3
2825 fi
2826 fi
2827 fi
2828 done
2829 done
2830 ;;
2831 esac
2832
2833 done
2834 IFS=$as_save_IFS
2835
2836 rm -rf conftest.one conftest.two conftest.dir
2837
2838 fi
2839 if test "${ac_cv_path_install+set}" = set; then
2840 INSTALL=$ac_cv_path_install
2841 else
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for INSTALL within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 INSTALL=$ac_install_sh
2847 fi
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2850 $as_echo "$INSTALL" >&6; }
2851
2852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2853 # It thinks the first close brace ends the variable substitution.
2854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2855
2856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2857
2858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2861 $as_echo_n "checking whether build environment is sane... " >&6; }
2862 # Just in case
2863 sleep 1
2864 echo timestamp > conftest.file
2865 # Reject unsafe characters in $srcdir or the absolute working directory
2866 # name. Accept space and tab only in the latter.
2867 am_lf='
2868 '
2869 case `pwd` in
2870 *[\\\"\#\$\&\'\`$am_lf]*)
2871 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2872 esac
2873 case $srcdir in
2874 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2875 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2876 esac
2877
2878 # Do `set' in a subshell so we don't clobber the current shell's
2879 # arguments. Must try -L first in case configure is actually a
2880 # symlink; some systems play weird games with the mod time of symlinks
2881 # (eg FreeBSD returns the mod time of the symlink's containing
2882 # directory).
2883 if (
2884 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2885 if test "$*" = "X"; then
2886 # -L didn't work.
2887 set X `ls -t "$srcdir/configure" conftest.file`
2888 fi
2889 rm -f conftest.file
2890 if test "$*" != "X $srcdir/configure conftest.file" \
2891 && test "$*" != "X conftest.file $srcdir/configure"; then
2892
2893 # If neither matched, then we have a broken ls. This can happen
2894 # if, for instance, CONFIG_SHELL is bash and it inherits a
2895 # broken ls alias from the environment. This has actually
2896 # happened. Such a system could not be considered "sane".
2897 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2898 alias in your environment" "$LINENO" 5
2899 fi
2900
2901 test "$2" = conftest.file
2902 )
2903 then
2904 # Ok.
2905 :
2906 else
2907 as_fn_error $? "newly created file is older than distributed files!
2908 Check your system clock" "$LINENO" 5
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2912 test "$program_prefix" != NONE &&
2913 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2914 # Use a double $ so make ignores it.
2915 test "$program_suffix" != NONE &&
2916 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2917 # Double any \ or $.
2918 # By default was `s,x,x', remove it if useless.
2919 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2920 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2921
2922 # expand $ac_aux_dir to an absolute path
2923 am_aux_dir=`cd $ac_aux_dir && pwd`
2924
2925 if test x"${MISSING+set}" != xset; then
2926 case $am_aux_dir in
2927 *\ * | *\ *)
2928 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2929 *)
2930 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2931 esac
2932 fi
2933 # Use eval to expand $SHELL
2934 if eval "$MISSING --run true"; then
2935 am_missing_run="$MISSING --run "
2936 else
2937 am_missing_run=
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2939 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2940 fi
2941
2942 if test x"${install_sh}" != xset; then
2943 case $am_aux_dir in
2944 *\ * | *\ *)
2945 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2946 *)
2947 install_sh="\${SHELL} $am_aux_dir/install-sh"
2948 esac
2949 fi
2950
2951 # Installed binaries are usually stripped using `strip' when the user
2952 # run `make install-strip'. However `strip' might not be the right
2953 # tool to use in cross-compilation environments, therefore Automake
2954 # will honor the `STRIP' environment variable to overrule this program.
2955 if test "$cross_compiling" != no; then
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2958 set dummy ${ac_tool_prefix}strip; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_STRIP+:} false; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 if test -n "$STRIP"; then
2965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978 done
2979 done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 STRIP=$ac_cv_prog_STRIP
2985 if test -n "$STRIP"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2987 $as_echo "$STRIP" >&6; }
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994 fi
2995 if test -z "$ac_cv_prog_STRIP"; then
2996 ac_ct_STRIP=$STRIP
2997 # Extract the first word of "strip", so it can be a program name with args.
2998 set dummy strip; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 if test -n "$ac_ct_STRIP"; then
3005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_STRIP="strip"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018 done
3019 done
3020 IFS=$as_save_IFS
3021
3022 fi
3023 fi
3024 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3025 if test -n "$ac_ct_STRIP"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3027 $as_echo "$ac_ct_STRIP" >&6; }
3028 else
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3031 fi
3032
3033 if test "x$ac_ct_STRIP" = x; then
3034 STRIP=":"
3035 else
3036 case $cross_compiling:$ac_tool_warned in
3037 yes:)
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040 ac_tool_warned=yes ;;
3041 esac
3042 STRIP=$ac_ct_STRIP
3043 fi
3044 else
3045 STRIP="$ac_cv_prog_STRIP"
3046 fi
3047
3048 fi
3049 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3050
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3052 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3053 if test -z "$MKDIR_P"; then
3054 if ${ac_cv_path_mkdir+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3059 do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_prog in mkdir gmkdir; do
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3065 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3066 'mkdir (GNU coreutils) '* | \
3067 'mkdir (coreutils) '* | \
3068 'mkdir (fileutils) '4.1*)
3069 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3070 break 3;;
3071 esac
3072 done
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078
3079 test -d ./--version && rmdir ./--version
3080 if test "${ac_cv_path_mkdir+set}" = set; then
3081 MKDIR_P="$ac_cv_path_mkdir -p"
3082 else
3083 # As a last resort, use the slow shell script. Don't cache a
3084 # value for MKDIR_P within a source directory, because that will
3085 # break other packages using the cache if that directory is
3086 # removed, or if the value is a relative name.
3087 MKDIR_P="$ac_install_sh -d"
3088 fi
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3091 $as_echo "$MKDIR_P" >&6; }
3092
3093
3094 mkdir_p="$MKDIR_P"
3095 case $mkdir_p in
3096 [\\/$]* | ?:[\\/]*) ;;
3097 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3098 esac
3099
3100 for ac_prog in gawk mawk nawk awk
3101 do
3102 # Extract the first word of "$ac_prog", so it can be a program name with args.
3103 set dummy $ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_AWK+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$AWK"; then
3110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_AWK="$ac_prog"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 AWK=$ac_cv_prog_AWK
3130 if test -n "$AWK"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3132 $as_echo "$AWK" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139 test -n "$AWK" && break
3140 done
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144 set x ${MAKE-make}
3145 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3146 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 cat >conftest.make <<\_ACEOF
3150 SHELL = /bin/sh
3151 all:
3152 @echo '@@@%%%=$(MAKE)=@@@%%%'
3153 _ACEOF
3154 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3155 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3156 *@@@%%%=?*=@@@%%%*)
3157 eval ac_cv_prog_make_${ac_make}_set=yes;;
3158 *)
3159 eval ac_cv_prog_make_${ac_make}_set=no;;
3160 esac
3161 rm -f conftest.make
3162 fi
3163 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3166 SET_MAKE=
3167 else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 SET_MAKE="MAKE=${MAKE-make}"
3171 fi
3172
3173 rm -rf .tst 2>/dev/null
3174 mkdir .tst 2>/dev/null
3175 if test -d .tst; then
3176 am__leading_dot=.
3177 else
3178 am__leading_dot=_
3179 fi
3180 rmdir .tst 2>/dev/null
3181
3182 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184 # is not polluted with repeated "-I."
3185 am__isrc=' -I$(srcdir)'
3186 # test to see if srcdir already configured
3187 if test -f $srcdir/config.status; then
3188 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3189 fi
3190 fi
3191
3192 # test whether we have cygpath
3193 if test -z "$CYGPATH_W"; then
3194 if (cygpath --version) >/dev/null 2>/dev/null; then
3195 CYGPATH_W='cygpath -w'
3196 else
3197 CYGPATH_W=echo
3198 fi
3199 fi
3200
3201
3202 # Define the identity of the package.
3203 PACKAGE='emacs'
3204 VERSION='24.0.50'
3205
3206
3207 cat >>confdefs.h <<_ACEOF
3208 #define PACKAGE "$PACKAGE"
3209 _ACEOF
3210
3211
3212 cat >>confdefs.h <<_ACEOF
3213 #define VERSION "$VERSION"
3214 _ACEOF
3215
3216 # Some tools Automake needs.
3217
3218 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3219
3220
3221 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3222
3223
3224 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3225
3226
3227 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3228
3229
3230 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3231
3232 # We need awk for the "check" target. The system "awk" is bad on
3233 # some platforms.
3234 # Always define AMTAR for backward compatibility.
3235
3236 AMTAR=${AMTAR-"${am_missing_run}tar"}
3237
3238 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3239
3240
3241
3242
3243
3244
3245
3246
3247 lispdir='${datadir}/emacs/${version}/lisp'
3248 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3249 '${datadir}/emacs/site-lisp'
3250 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3251 etcdir='${datadir}/emacs/${version}/etc'
3252 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3253 docdir='${datadir}/emacs/${version}/etc'
3254 gamedir='${localstatedir}/games/emacs'
3255
3256
3257
3258
3259 # Check whether --with-pop was given.
3260 if test "${with_pop+set}" = set; then :
3261 withval=$with_pop;
3262 else
3263 with_pop=yes
3264 fi
3265
3266 if test "$with_pop" = yes; then
3267 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3268
3269 fi
3270
3271
3272 # Check whether --with-kerberos was given.
3273 if test "${with_kerberos+set}" = set; then :
3274 withval=$with_kerberos;
3275 else
3276 with_kerberos=no
3277 fi
3278
3279 if test "$with_kerberos" != no; then
3280 $as_echo "#define KERBEROS 1" >>confdefs.h
3281
3282 fi
3283
3284
3285 # Check whether --with-kerberos5 was given.
3286 if test "${with_kerberos5+set}" = set; then :
3287 withval=$with_kerberos5;
3288 else
3289 with_kerberos5=no
3290 fi
3291
3292 if test "${with_kerberos5}" != no; then
3293 if test "${with_kerberos}" = no; then
3294 with_kerberos=yes
3295 $as_echo "#define KERBEROS 1" >>confdefs.h
3296
3297 fi
3298
3299 $as_echo "#define KERBEROS5 1" >>confdefs.h
3300
3301 fi
3302
3303
3304 # Check whether --with-hesiod was given.
3305 if test "${with_hesiod+set}" = set; then :
3306 withval=$with_hesiod;
3307 else
3308 with_hesiod=no
3309 fi
3310
3311 if test "$with_hesiod" != no; then
3312
3313 $as_echo "#define HESIOD 1" >>confdefs.h
3314
3315 fi
3316
3317
3318 # Check whether --with-mmdf was given.
3319 if test "${with_mmdf+set}" = set; then :
3320 withval=$with_mmdf;
3321 else
3322 with_mmdf=no
3323 fi
3324
3325 if test "$with_mmdf" != no; then
3326
3327 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3328
3329 fi
3330
3331
3332 # Check whether --with-mail-unlink was given.
3333 if test "${with_mail_unlink+set}" = set; then :
3334 withval=$with_mail_unlink;
3335 else
3336 with_mail_unlink=no
3337 fi
3338
3339 if test "$with_mail_unlink" != no; then
3340
3341 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3342
3343 fi
3344
3345
3346 # Check whether --with-mailhost was given.
3347 if test "${with_mailhost+set}" = set; then :
3348 withval=$with_mailhost;
3349 cat >>confdefs.h <<_ACEOF
3350 #define MAILHOST "$withval"
3351 _ACEOF
3352
3353 fi
3354
3355
3356
3357 # Check whether --with-sound was given.
3358 if test "${with_sound+set}" = set; then :
3359 withval=$with_sound;
3360 else
3361 with_sound=yes
3362 fi
3363
3364
3365
3366 # Check whether --with-sync-input was given.
3367 if test "${with_sync_input+set}" = set; then :
3368 withval=$with_sync_input;
3369 else
3370 with_sync_input=yes
3371 fi
3372
3373 if test "$with_sync_input" = yes; then
3374
3375 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3376
3377 fi
3378
3379
3380 # Check whether --with-x-toolkit was given.
3381 if test "${with_x_toolkit+set}" = set; then :
3382 withval=$with_x_toolkit; case "${withval}" in
3383 y | ye | yes ) val=gtk ;;
3384 n | no ) val=no ;;
3385 l | lu | luc | luci | lucid ) val=lucid ;;
3386 a | at | ath | athe | athen | athena ) val=athena ;;
3387 m | mo | mot | moti | motif ) val=motif ;;
3388 g | gt | gtk ) val=gtk ;;
3389 gtk3 ) val=gtk3 ;;
3390 * )
3391 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3392 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3393 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3394 ;;
3395 esac
3396 with_x_toolkit=$val
3397
3398 fi
3399
3400
3401
3402 # Check whether --with-xpm was given.
3403 if test "${with_xpm+set}" = set; then :
3404 withval=$with_xpm;
3405 else
3406 with_xpm=yes
3407 fi
3408
3409
3410 # Check whether --with-jpeg was given.
3411 if test "${with_jpeg+set}" = set; then :
3412 withval=$with_jpeg;
3413 else
3414 with_jpeg=yes
3415 fi
3416
3417
3418 # Check whether --with-tiff was given.
3419 if test "${with_tiff+set}" = set; then :
3420 withval=$with_tiff;
3421 else
3422 with_tiff=yes
3423 fi
3424
3425
3426 # Check whether --with-gif was given.
3427 if test "${with_gif+set}" = set; then :
3428 withval=$with_gif;
3429 else
3430 with_gif=yes
3431 fi
3432
3433
3434 # Check whether --with-png was given.
3435 if test "${with_png+set}" = set; then :
3436 withval=$with_png;
3437 else
3438 with_png=yes
3439 fi
3440
3441
3442 # Check whether --with-rsvg was given.
3443 if test "${with_rsvg+set}" = set; then :
3444 withval=$with_rsvg;
3445 else
3446 with_rsvg=yes
3447 fi
3448
3449
3450 # Check whether --with-xml2 was given.
3451 if test "${with_xml2+set}" = set; then :
3452 withval=$with_xml2;
3453 else
3454 with_xml2=yes
3455 fi
3456
3457
3458 # Check whether --with-imagemagick was given.
3459 if test "${with_imagemagick+set}" = set; then :
3460 withval=$with_imagemagick;
3461 else
3462 with_imagemagick=yes
3463 fi
3464
3465
3466
3467 # Check whether --with-xft was given.
3468 if test "${with_xft+set}" = set; then :
3469 withval=$with_xft;
3470 else
3471 with_xft=yes
3472 fi
3473
3474
3475 # Check whether --with-libotf was given.
3476 if test "${with_libotf+set}" = set; then :
3477 withval=$with_libotf;
3478 else
3479 with_libotf=yes
3480 fi
3481
3482
3483 # Check whether --with-m17n-flt was given.
3484 if test "${with_m17n_flt+set}" = set; then :
3485 withval=$with_m17n_flt;
3486 else
3487 with_m17n_flt=yes
3488 fi
3489
3490
3491
3492 # Check whether --with-toolkit-scroll-bars was given.
3493 if test "${with_toolkit_scroll_bars+set}" = set; then :
3494 withval=$with_toolkit_scroll_bars;
3495 else
3496 with_toolkit_scroll_bars=yes
3497 fi
3498
3499
3500 # Check whether --with-xaw3d was given.
3501 if test "${with_xaw3d+set}" = set; then :
3502 withval=$with_xaw3d;
3503 else
3504 with_xaw3d=yes
3505 fi
3506
3507
3508 # Check whether --with-xim was given.
3509 if test "${with_xim+set}" = set; then :
3510 withval=$with_xim;
3511 else
3512 with_xim=yes
3513 fi
3514
3515
3516 # Check whether --with-ns was given.
3517 if test "${with_ns+set}" = set; then :
3518 withval=$with_ns;
3519 else
3520 with_ns=no
3521 fi
3522
3523
3524
3525 # Check whether --with-gpm was given.
3526 if test "${with_gpm+set}" = set; then :
3527 withval=$with_gpm;
3528 else
3529 with_gpm=yes
3530 fi
3531
3532
3533 # Check whether --with-dbus was given.
3534 if test "${with_dbus+set}" = set; then :
3535 withval=$with_dbus;
3536 else
3537 with_dbus=yes
3538 fi
3539
3540
3541 # Check whether --with-gconf was given.
3542 if test "${with_gconf+set}" = set; then :
3543 withval=$with_gconf;
3544 else
3545 with_gconf=yes
3546 fi
3547
3548
3549 # Check whether --with-selinux was given.
3550 if test "${with_selinux+set}" = set; then :
3551 withval=$with_selinux;
3552 else
3553 with_selinux=yes
3554 fi
3555
3556
3557 # Check whether --with-gnutls was given.
3558 if test "${with_gnutls+set}" = set; then :
3559 withval=$with_gnutls;
3560 else
3561 with_gnutls=yes
3562 fi
3563
3564
3565 ## For the times when you want to build Emacs but don't have
3566 ## a suitable makeinfo, and can live without the manuals.
3567
3568 # Check whether --with-makeinfo was given.
3569 if test "${with_makeinfo+set}" = set; then :
3570 withval=$with_makeinfo;
3571 else
3572 with_makeinfo=yes
3573 fi
3574
3575
3576 ## This is an option because I do not know if all info/man support
3577 ## compressed files, nor how to test if they do so.
3578
3579 # Check whether --with-compress-info was given.
3580 if test "${with_compress_info+set}" = set; then :
3581 withval=$with_compress_info;
3582 else
3583 with_compress_info=yes
3584 fi
3585
3586 if test $with_compress_info = yes; then
3587 GZIP_INFO=yes
3588 else
3589 GZIP_INFO=
3590 fi
3591
3592
3593
3594 # Check whether --with-pkg-config-prog was given.
3595 if test "${with_pkg_config_prog+set}" = set; then :
3596 withval=$with_pkg_config_prog;
3597 fi
3598
3599 if test "X${with_pkg_config_prog}" != X; then
3600 if test "${with_pkg_config_prog}" != yes; then
3601 PKG_CONFIG="${with_pkg_config_prog}"
3602 fi
3603 fi
3604
3605 CRT_DIR=
3606
3607 # Check whether --with-crt-dir was given.
3608 if test "${with_crt_dir+set}" = set; then :
3609 withval=$with_crt_dir;
3610 fi
3611
3612 CRT_DIR="${with_crt_dir}"
3613
3614
3615 # Check whether --with-gameuser was given.
3616 if test "${with_gameuser+set}" = set; then :
3617 withval=$with_gameuser;
3618 fi
3619
3620 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3621 && gameuser="${with_gameuser}"
3622 test "X$gameuser" = X && gameuser=games
3623
3624
3625 # Check whether --with-gnustep-conf was given.
3626 if test "${with_gnustep_conf+set}" = set; then :
3627 withval=$with_gnustep_conf;
3628 fi
3629
3630 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3631 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3632 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3633 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3634
3635 # Check whether --enable-ns-self-contained was given.
3636 if test "${enable_ns_self_contained+set}" = set; then :
3637 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3638 else
3639 EN_NS_SELF_CONTAINED=yes
3640 fi
3641
3642
3643 # Check whether --enable-asserts was given.
3644 if test "${enable_asserts+set}" = set; then :
3645 enableval=$enable_asserts; USE_XASSERTS=$enableval
3646 else
3647 USE_XASSERTS=no
3648 fi
3649
3650
3651 # Check whether --enable-maintainer-mode was given.
3652 if test "${enable_maintainer_mode+set}" = set; then :
3653 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3654 else
3655 USE_MAINTAINER_MODE=no
3656 fi
3657
3658 if test $USE_MAINTAINER_MODE = yes; then
3659 MAINT=
3660 else
3661 MAINT=#
3662 fi
3663
3664
3665 # Check whether --enable-locallisppath was given.
3666 if test "${enable_locallisppath+set}" = set; then :
3667 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3668 locallisppath=
3669 elif test "${enableval}" != "yes"; then
3670 locallisppath=${enableval}
3671 fi
3672 fi
3673
3674
3675 # Check whether --enable-checking was given.
3676 if test "${enable_checking+set}" = set; then :
3677 enableval=$enable_checking; ac_checking_flags="${enableval}"
3678 fi
3679
3680 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3681 for check in $ac_checking_flags
3682 do
3683 case $check in
3684 # these set all the flags to specific states
3685 yes) ac_enable_checking=1 ;;
3686 no) ac_enable_checking= ;
3687 ac_gc_check_stringbytes= ;
3688 ac_gc_check_string_overrun= ;
3689 ac_gc_check_string_free_list= ;
3690 ac_xmalloc_overrun= ;
3691 ac_gc_check_cons_list= ;;
3692 all) ac_enable_checking=1 ;
3693 ac_gc_check_stringbytes=1 ;
3694 ac_gc_check_string_overrun=1 ;
3695 ac_gc_check_string_free_list=1 ;
3696 ac_xmalloc_overrun=1 ;
3697 ac_gc_check_cons_list=1 ;;
3698 # these enable particular checks
3699 stringbytes) ac_gc_check_stringbytes=1 ;;
3700 stringoverrun) ac_gc_check_string_overrun=1 ;;
3701 stringfreelist) ac_gc_check_string_free_list=1 ;;
3702 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3703 conslist) ac_gc_check_cons_list=1 ;;
3704 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3705 esac
3706 done
3707 IFS="$ac_save_IFS"
3708
3709 if test x$ac_enable_checking != x ; then
3710
3711 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3712
3713 fi
3714 if test x$ac_gc_check_stringbytes != x ; then
3715
3716 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3717
3718 fi
3719 if test x$ac_gc_check_stringoverrun != x ; then
3720
3721 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3722
3723 fi
3724 if test x$ac_gc_check_string_free_list != x ; then
3725
3726 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3727
3728 fi
3729 if test x$ac_xmalloc_overrun != x ; then
3730
3731 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3732
3733 fi
3734 if test x$ac_gc_check_cons_list != x ; then
3735
3736 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3737
3738 fi
3739
3740 # Check whether --enable-use-lisp-union-type was given.
3741 if test "${enable_use_lisp_union_type+set}" = set; then :
3742 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3743
3744 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3745
3746 fi
3747 fi
3748
3749
3750
3751 # Check whether --enable-profiling was given.
3752 if test "${enable_profiling+set}" = set; then :
3753 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3754 fi
3755
3756 if test x$ac_enable_profiling != x ; then
3757 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3758 else
3759 PROFILING_CFLAGS=
3760 fi
3761
3762
3763 # Check whether --enable-autodepend was given.
3764 if test "${enable_autodepend+set}" = set; then :
3765 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3766 else
3767 ac_enable_autodepend=yes
3768 fi
3769
3770
3771 #### Make srcdir absolute, if it isn't already. It's important to
3772 #### avoid running the path through pwd unnecessarily, since pwd can
3773 #### give you automounter prefixes, which can go away. We do all this
3774 #### so Emacs can find its files when run uninstalled.
3775 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3776 unset CDPATH
3777 case "${srcdir}" in
3778 /* ) ;;
3779 . )
3780 ## We may be able to use the $PWD environment variable to make this
3781 ## absolute. But sometimes PWD is inaccurate.
3782 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3783 ## but that tested only for a well-formed and valid PWD,
3784 ## it did not object when PWD was well-formed and valid but just wrong.
3785 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3786 then
3787 srcdir="$PWD"
3788 else
3789 srcdir="`(cd ${srcdir}; pwd)`"
3790 fi
3791 ;;
3792 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3793 esac
3794
3795 #### Check if the source directory already has a configured system in it.
3796 if test `pwd` != `(cd ${srcdir} && pwd)` \
3797 && test -f "${srcdir}/src/config.h" ; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3799 as a build directory right now; it has been configured in its own
3800 right. To configure in another directory as well, you MUST
3801 use GNU make. If you do not have GNU make, then you must
3802 now do \`make distclean' in ${srcdir},
3803 and then run $0 again." >&5
3804 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3805 as a build directory right now; it has been configured in its own
3806 right. To configure in another directory as well, you MUST
3807 use GNU make. If you do not have GNU make, then you must
3808 now do \`make distclean' in ${srcdir},
3809 and then run $0 again." >&2;}
3810 fi
3811
3812 #### Given the configuration name, set machfile and opsysfile to the
3813 #### names of the m/*.h and s/*.h files we should use.
3814
3815 ### Canonicalize the configuration name.
3816
3817 # Make sure we can run config.sub.
3818 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3819 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3822 $as_echo_n "checking build system type... " >&6; }
3823 if ${ac_cv_build+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 ac_build_alias=$build_alias
3827 test "x$ac_build_alias" = x &&
3828 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3829 test "x$ac_build_alias" = x &&
3830 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3831 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3833
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3836 $as_echo "$ac_cv_build" >&6; }
3837 case $ac_cv_build in
3838 *-*-*) ;;
3839 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3840 esac
3841 build=$ac_cv_build
3842 ac_save_IFS=$IFS; IFS='-'
3843 set x $ac_cv_build
3844 shift
3845 build_cpu=$1
3846 build_vendor=$2
3847 shift; shift
3848 # Remember, the first character of IFS is used to create $*,
3849 # except with old shells:
3850 build_os=$*
3851 IFS=$ac_save_IFS
3852 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3853
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3856 $as_echo_n "checking host system type... " >&6; }
3857 if ${ac_cv_host+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test "x$host_alias" = x; then
3861 ac_cv_host=$ac_cv_build
3862 else
3863 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3864 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3865 fi
3866
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3869 $as_echo "$ac_cv_host" >&6; }
3870 case $ac_cv_host in
3871 *-*-*) ;;
3872 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3873 esac
3874 host=$ac_cv_host
3875 ac_save_IFS=$IFS; IFS='-'
3876 set x $ac_cv_host
3877 shift
3878 host_cpu=$1
3879 host_vendor=$2
3880 shift; shift
3881 # Remember, the first character of IFS is used to create $*,
3882 # except with old shells:
3883 host_os=$*
3884 IFS=$ac_save_IFS
3885 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3886
3887
3888 canonical=$host
3889 configuration=${host_alias-${build_alias-$host}}
3890
3891
3892
3893 ### If you add support for a new configuration, add code to this
3894 ### switch statement to recognize your configuration name and select
3895 ### the appropriate operating system and machine description files.
3896
3897 ### You would hope that you could choose an m/*.h file pretty much
3898 ### based on the machine portion of the configuration name, and an s/*.h
3899 ### file based on the operating system portion. However, it turns out
3900 ### that each m/*.h file is pretty manufacturer-specific - for
3901 ### example mips.h is MIPS
3902 ### So we basically have to have a special case for each
3903 ### configuration name.
3904 ###
3905 ### As far as handling version numbers on operating systems is
3906 ### concerned, make sure things will fail in a fixable way. If
3907 ### /etc/MACHINES doesn't say anything about version numbers, be
3908 ### prepared to handle anything reasonably. If version numbers
3909 ### matter, be sure /etc/MACHINES says something about it.
3910
3911 machine='' opsys='' unported=no
3912 case "${canonical}" in
3913
3914 ## GNU/Linux ports
3915 *-*-linux-gnu*)
3916 opsys=gnu-linux
3917 case ${canonical} in
3918 alpha*) machine=alpha ;;
3919 s390-*) machine=ibms390 ;;
3920 s390x-*) machine=ibms390x ;;
3921 powerpc*) machine=macppc ;;
3922 sparc*) machine=sparc ;;
3923 ia64*) machine=ia64 ;;
3924 m68k*) machine=m68k ;;
3925 x86_64*) machine=amdx86-64 ;;
3926 esac
3927 ;;
3928
3929 ## FreeBSD ports
3930 *-*-freebsd* )
3931 opsys=freebsd
3932 case "${canonical}" in
3933 alpha*) machine=alpha ;;
3934 amd64-*|x86_64-*) machine=amdx86-64 ;;
3935 ia64-*) machine=ia64 ;;
3936 i[3456]86-*) machine=intel386 ;;
3937 powerpc-*) machine=macppc ;;
3938 sparc-*) machine=sparc ;;
3939 sparc64-*) machine=sparc ;;
3940 esac
3941 ;;
3942
3943 ## FreeBSD kernel + glibc based userland
3944 *-*-kfreebsd*gnu* )
3945 opsys=gnu-kfreebsd
3946 case "${canonical}" in
3947 alpha*) machine=alpha ;;
3948 amd64-*|x86_64-*) machine=amdx86-64 ;;
3949 ia64-*) machine=ia64 ;;
3950 i[3456]86-*) machine=intel386 ;;
3951 powerpc-*) machine=macppc ;;
3952 sparc-*) machine=sparc ;;
3953 sparc64-*) machine=sparc ;;
3954 esac
3955 ;;
3956
3957 ## NetBSD ports
3958 *-*-netbsd* )
3959 opsys=netbsd
3960 case "${canonical}" in
3961 alpha*) machine=alpha ;;
3962 x86_64-*) machine=amdx86-64 ;;
3963 i[3456]86-*) machine=intel386 ;;
3964 m68k-*) machine=m68k ;;
3965 powerpc-*) machine=macppc ;;
3966 sparc*-) machine=sparc ;;
3967 vax-*) machine=vax ;;
3968 esac
3969 ;;
3970
3971 ## OpenBSD ports
3972 *-*-openbsd* )
3973 opsys=openbsd
3974 case "${canonical}" in
3975 alpha*) machine=alpha ;;
3976 x86_64-*) machine=amdx86-64 ;;
3977 i386-*) machine=intel386 ;;
3978 powerpc-*) machine=macppc ;;
3979 sparc*) machine=sparc ;;
3980 vax-*) machine=vax ;;
3981 esac
3982 ;;
3983
3984 ## Apple Darwin / Mac OS X
3985 *-apple-darwin* )
3986 case "${canonical}" in
3987 i[3456]86-* ) machine=intel386 ;;
3988 powerpc-* ) machine=macppc ;;
3989 x86_64-* ) machine=amdx86-64 ;;
3990 * ) unported=yes ;;
3991 esac
3992 opsys=darwin
3993 # Define CPP as follows to make autoconf work correctly.
3994 CPP="${CC-cc} -E -no-cpp-precomp"
3995 # Use fink packages if available.
3996 if test -d /sw/include && test -d /sw/lib; then
3997 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3998 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3999 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4000 fi
4001 ;;
4002
4003 ## HP 9000 series 700 and 800, running HP/UX
4004 hppa*-hp-hpux10.2* )
4005 opsys=hpux10-20
4006 ;;
4007 hppa*-hp-hpux1[1-9]* )
4008 opsys=hpux11
4009 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4010 ;;
4011
4012 ## IBM machines
4013 rs6000-ibm-aix4.[23]* )
4014 machine=ibmrs6000 opsys=aix4-2
4015 ;;
4016 powerpc-ibm-aix4.[23]* )
4017 machine=ibmrs6000 opsys=aix4-2
4018 ;;
4019 rs6000-ibm-aix[56]* )
4020 machine=ibmrs6000 opsys=aix4-2
4021 ;;
4022 powerpc-ibm-aix[56]* )
4023 machine=ibmrs6000 opsys=aix4-2
4024 ;;
4025
4026 ## Silicon Graphics machines
4027 ## Iris 4D
4028 mips-sgi-irix6.5 )
4029 machine=iris4d opsys=irix6-5
4030 # Without defining _LANGUAGE_C, things get masked out in the headers
4031 # so that, for instance, grepping for `free' in stdlib.h fails and
4032 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4033 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4034 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4035 ;;
4036
4037 ## Suns
4038 *-sun-solaris* \
4039 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4040 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4041 case "${canonical}" in
4042 i[3456]86-*-* ) machine=intel386 ;;
4043 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4044 sparc* ) machine=sparc ;;
4045 * ) unported=yes ;;
4046 esac
4047 case "${canonical}" in
4048 *-sunos5.6* | *-solaris2.6* )
4049 opsys=sol2-6
4050 NON_GNU_CPP=/usr/ccs/lib/cpp
4051 RANLIB="ar -ts"
4052 ;;
4053 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4054 opsys=sol2-6
4055 emacs_check_sunpro_c=yes
4056 NON_GNU_CPP=/usr/ccs/lib/cpp
4057 ;;
4058 *-sunos5* | *-solaris* )
4059 opsys=sol2-10
4060 emacs_check_sunpro_c=yes
4061 NON_GNU_CPP=/usr/ccs/lib/cpp
4062 ;;
4063 esac
4064 ## Watch out for a compiler that we know will not work.
4065 case "${canonical}" in
4066 *-solaris* | *-sunos5* )
4067 if [ "x$CC" = x/usr/ucb/cc ]; then
4068 ## /usr/ucb/cc doesn't work;
4069 ## we should find some other compiler that does work.
4070 unset CC
4071 fi
4072 ;;
4073 *) ;;
4074 esac
4075 ;;
4076
4077 ## Intel 386 machines where we don't care about the manufacturer.
4078 i[3456]86-*-* )
4079 machine=intel386
4080 case "${canonical}" in
4081 *-cygwin ) opsys=cygwin ;;
4082 *-darwin* ) opsys=darwin
4083 CPP="${CC-cc} -E -no-cpp-precomp"
4084 ;;
4085 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4086 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4087 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4088 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4089 esac
4090 ;;
4091
4092 * )
4093 unported=yes
4094 ;;
4095 esac
4096
4097 ### If the code above didn't choose an operating system, just choose
4098 ### an operating system based on the configuration name. You really
4099 ### only want to use this when you have no idea what the right
4100 ### operating system is; if you know what operating systems a machine
4101 ### runs, it's cleaner to make it explicit in the case statement
4102 ### above.
4103 if test x"${opsys}" = x; then
4104 case "${canonical}" in
4105 *-gnu* ) opsys=gnu ;;
4106 * )
4107 unported=yes
4108 ;;
4109 esac
4110 fi
4111
4112
4113
4114 if test $unported = yes; then
4115 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4116 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4117 fi
4118
4119 if test -n "$machine"; then
4120 machfile="m/${machine}.h"
4121 else
4122 machfile=
4123 fi
4124 opsysfile="s/${opsys}.h"
4125
4126
4127 #### Choose a compiler.
4128 test -n "$CC" && cc_specified=yes
4129
4130 # Save the value of CFLAGS that the user specified.
4131 SPECIFIED_CFLAGS="$CFLAGS"
4132
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160 done
4161 done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 CC=$ac_cv_prog_CC
4167 if test -n "$CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4170 else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176 fi
4177 if test -z "$ac_cv_prog_CC"; then
4178 ac_ct_CC=$CC
4179 # Extract the first word of "gcc", so it can be a program name with args.
4180 set dummy gcc; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$ac_ct_CC"; then
4187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_ac_ct_CC="gcc"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4207 if test -n "$ac_ct_CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4209 $as_echo "$ac_ct_CC" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213 fi
4214
4215 if test "x$ac_ct_CC" = x; then
4216 CC=""
4217 else
4218 case $cross_compiling:$ac_tool_warned in
4219 yes:)
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4222 ac_tool_warned=yes ;;
4223 esac
4224 CC=$ac_ct_CC
4225 fi
4226 else
4227 CC="$ac_cv_prog_CC"
4228 fi
4229
4230 if test -z "$CC"; then
4231 if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4233 set dummy ${ac_tool_prefix}cc; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_CC+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC="$CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_CC="${ac_tool_prefix}cc"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 fi
4258 fi
4259 CC=$ac_cv_prog_CC
4260 if test -n "$CC"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4262 $as_echo "$CC" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4266 fi
4267
4268
4269 fi
4270 fi
4271 if test -z "$CC"; then
4272 # Extract the first word of "cc", so it can be a program name with args.
4273 set dummy cc; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_CC+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 else
4282 ac_prog_rejected=no
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4291 ac_prog_rejected=yes
4292 continue
4293 fi
4294 ac_cv_prog_CC="cc"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298 done
4299 done
4300 IFS=$as_save_IFS
4301
4302 if test $ac_prog_rejected = yes; then
4303 # We found a bogon in the path, so make sure we never use it.
4304 set dummy $ac_cv_prog_CC
4305 shift
4306 if test $# != 0; then
4307 # We chose a different compiler from the bogus one.
4308 # However, it has the same basename, so the bogon will be chosen
4309 # first if we set CC to just the basename; use the full file name.
4310 shift
4311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4312 fi
4313 fi
4314 fi
4315 fi
4316 CC=$ac_cv_prog_CC
4317 if test -n "$CC"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4319 $as_echo "$CC" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 fi
4324
4325
4326 fi
4327 if test -z "$CC"; then
4328 if test -n "$ac_tool_prefix"; then
4329 for ac_prog in cl.exe
4330 do
4331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if ${ac_cv_prog_CC+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -n "$CC"; then
4339 ac_cv_prog_CC="$CC" # Let the user override the test.
4340 else
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4343 do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4351 fi
4352 done
4353 done
4354 IFS=$as_save_IFS
4355
4356 fi
4357 fi
4358 CC=$ac_cv_prog_CC
4359 if test -n "$CC"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4361 $as_echo "$CC" >&6; }
4362 else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4365 fi
4366
4367
4368 test -n "$CC" && break
4369 done
4370 fi
4371 if test -z "$CC"; then
4372 ac_ct_CC=$CC
4373 for ac_prog in cl.exe
4374 do
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376 set dummy $ac_prog; ac_word=$2
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378 $as_echo_n "checking for $ac_word... " >&6; }
4379 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 if test -n "$ac_ct_CC"; then
4383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_ac_ct_CC="$ac_prog"
4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4395 fi
4396 done
4397 done
4398 IFS=$as_save_IFS
4399
4400 fi
4401 fi
4402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4403 if test -n "$ac_ct_CC"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4405 $as_echo "$ac_ct_CC" >&6; }
4406 else
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4409 fi
4410
4411
4412 test -n "$ac_ct_CC" && break
4413 done
4414
4415 if test "x$ac_ct_CC" = x; then
4416 CC=""
4417 else
4418 case $cross_compiling:$ac_tool_warned in
4419 yes:)
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422 ac_tool_warned=yes ;;
4423 esac
4424 CC=$ac_ct_CC
4425 fi
4426 fi
4427
4428 fi
4429
4430
4431 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433 as_fn_error $? "no acceptable C compiler found in \$PATH
4434 See \`config.log' for more details" "$LINENO" 5; }
4435
4436 # Provide some information about the compiler.
4437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4438 set X $ac_compile
4439 ac_compiler=$2
4440 for ac_option in --version -v -V -qversion; do
4441 { { ac_try="$ac_compiler $ac_option >&5"
4442 case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447 $as_echo "$ac_try_echo"; } >&5
4448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4449 ac_status=$?
4450 if test -s conftest.err; then
4451 sed '10a\
4452 ... rest of stderr output deleted ...
4453 10q' conftest.err >conftest.er1
4454 cat conftest.er1 >&5
4455 fi
4456 rm -f conftest.er1 conftest.err
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }
4459 done
4460
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463
4464 int
4465 main ()
4466 {
4467
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 ac_clean_files_save=$ac_clean_files
4473 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4474 # Try to create an executable without -o first, disregard a.out.
4475 # It will help us diagnose broken compilers, and finding out an intuition
4476 # of exeext.
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4478 $as_echo_n "checking whether the C compiler works... " >&6; }
4479 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4480
4481 # The possible output files:
4482 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4483
4484 ac_rmfiles=
4485 for ac_file in $ac_files
4486 do
4487 case $ac_file in
4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4490 esac
4491 done
4492 rm -f $ac_rmfiles
4493
4494 if { { ac_try="$ac_link_default"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link_default") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; then :
4505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4506 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4507 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4508 # so that the user can short-circuit this test for compilers unknown to
4509 # Autoconf.
4510 for ac_file in $ac_files ''
4511 do
4512 test -f "$ac_file" || continue
4513 case $ac_file in
4514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4515 ;;
4516 [ab].out )
4517 # We found the default executable, but exeext='' is most
4518 # certainly right.
4519 break;;
4520 *.* )
4521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4522 then :; else
4523 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 fi
4525 # We set ac_cv_exeext here because the later test for it is not
4526 # safe: cross compilers may not add the suffix if given an `-o'
4527 # argument, so we may need to know it at that point already.
4528 # Even if this section looks crufty: it has the advantage of
4529 # actually working.
4530 break;;
4531 * )
4532 break;;
4533 esac
4534 done
4535 test "$ac_cv_exeext" = no && ac_cv_exeext=
4536
4537 else
4538 ac_file=''
4539 fi
4540 if test -z "$ac_file"; then :
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 $as_echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error 77 "C compiler cannot create executables
4549 See \`config.log' for more details" "$LINENO" 5; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4555 $as_echo_n "checking for C compiler default output file name... " >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4557 $as_echo "$ac_file" >&6; }
4558 ac_exeext=$ac_cv_exeext
4559
4560 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4561 ac_clean_files=$ac_clean_files_save
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4563 $as_echo_n "checking for suffix of executables... " >&6; }
4564 if { { ac_try="$ac_link"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_link") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; then :
4575 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4576 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4577 # work properly (i.e., refer to `conftest.exe'), while it won't with
4578 # `rm'.
4579 for ac_file in conftest.exe conftest conftest.*; do
4580 test -f "$ac_file" || continue
4581 case $ac_file in
4582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4583 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4584 break;;
4585 * ) break;;
4586 esac
4587 done
4588 else
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4592 See \`config.log' for more details" "$LINENO" 5; }
4593 fi
4594 rm -f conftest conftest$ac_cv_exeext
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4596 $as_echo "$ac_cv_exeext" >&6; }
4597
4598 rm -f conftest.$ac_ext
4599 EXEEXT=$ac_cv_exeext
4600 ac_exeext=$EXEEXT
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 #include <stdio.h>
4604 int
4605 main ()
4606 {
4607 FILE *f = fopen ("conftest.out", "w");
4608 return ferror (f) || fclose (f) != 0;
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 ac_clean_files="$ac_clean_files conftest.out"
4615 # Check that the compiler produces executables we can run. If not, either
4616 # the compiler is broken, or we cross compile.
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4618 $as_echo_n "checking whether we are cross compiling... " >&6; }
4619 if test "$cross_compiling" != yes; then
4620 { { ac_try="$ac_link"
4621 case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_link") 2>&5
4628 ac_status=$?
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }
4631 if { ac_try='./conftest$ac_cv_exeext'
4632 { { case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637 $as_echo "$ac_try_echo"; } >&5
4638 (eval "$ac_try") 2>&5
4639 ac_status=$?
4640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }; }; then
4642 cross_compiling=no
4643 else
4644 if test "$cross_compiling" = maybe; then
4645 cross_compiling=yes
4646 else
4647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4649 as_fn_error $? "cannot run C compiled programs.
4650 If you meant to cross compile, use \`--host'.
4651 See \`config.log' for more details" "$LINENO" 5; }
4652 fi
4653 fi
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4656 $as_echo "$cross_compiling" >&6; }
4657
4658 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4659 ac_clean_files=$ac_clean_files_save
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4661 $as_echo_n "checking for suffix of object files... " >&6; }
4662 if ${ac_cv_objext+:} false; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667
4668 int
4669 main ()
4670 {
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.o conftest.obj
4677 if { { ac_try="$ac_compile"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683 $as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compile") 2>&5
4685 ac_status=$?
4686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4687 test $ac_status = 0; }; then :
4688 for ac_file in conftest.o conftest.obj conftest.*; do
4689 test -f "$ac_file" || continue;
4690 case $ac_file in
4691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4693 break;;
4694 esac
4695 done
4696 else
4697 $as_echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702 as_fn_error $? "cannot compute suffix of object files: cannot compile
4703 See \`config.log' for more details" "$LINENO" 5; }
4704 fi
4705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4708 $as_echo "$ac_cv_objext" >&6; }
4709 OBJEXT=$ac_cv_objext
4710 ac_objext=$OBJEXT
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4713 if ${ac_cv_c_compiler_gnu+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718
4719 int
4720 main ()
4721 {
4722 #ifndef __GNUC__
4723 choke me
4724 #endif
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_compiler_gnu=yes
4732 else
4733 ac_compiler_gnu=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4737
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4741 if test $ac_compiler_gnu = yes; then
4742 GCC=yes
4743 else
4744 GCC=
4745 fi
4746 ac_test_CFLAGS=${CFLAGS+set}
4747 ac_save_CFLAGS=$CFLAGS
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4750 if ${ac_cv_prog_cc_g+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 ac_save_c_werror_flag=$ac_c_werror_flag
4754 ac_c_werror_flag=yes
4755 ac_cv_prog_cc_g=no
4756 CFLAGS="-g"
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759
4760 int
4761 main ()
4762 {
4763
4764 ;
4765 return 0;
4766 }
4767 _ACEOF
4768 if ac_fn_c_try_compile "$LINENO"; then :
4769 ac_cv_prog_cc_g=yes
4770 else
4771 CFLAGS=""
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774
4775 int
4776 main ()
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784
4785 else
4786 ac_c_werror_flag=$ac_save_c_werror_flag
4787 CFLAGS="-g"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_prog_cc_g=yes
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 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_c_werror_flag=$ac_save_c_werror_flag
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4810 $as_echo "$ac_cv_prog_cc_g" >&6; }
4811 if test "$ac_test_CFLAGS" = set; then
4812 CFLAGS=$ac_save_CFLAGS
4813 elif test $ac_cv_prog_cc_g = yes; then
4814 if test "$GCC" = yes; then
4815 CFLAGS="-g -O2"
4816 else
4817 CFLAGS="-g"
4818 fi
4819 else
4820 if test "$GCC" = yes; then
4821 CFLAGS="-O2"
4822 else
4823 CFLAGS=
4824 fi
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4828 if ${ac_cv_prog_cc_c89+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 ac_cv_prog_cc_c89=no
4832 ac_save_CC=$CC
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #include <stdarg.h>
4836 #include <stdio.h>
4837 #include <sys/types.h>
4838 #include <sys/stat.h>
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4843 char **p;
4844 int i;
4845 {
4846 return p[i];
4847 }
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4849 {
4850 char *s;
4851 va_list v;
4852 va_start (v,p);
4853 s = g (p, va_arg (v,int));
4854 va_end (v);
4855 return s;
4856 }
4857
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
4861 as 'x'. The following induces an error, until -std is added to get
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
4864 that's true only with -std. */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866
4867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868 inside strings and character constants. */
4869 #define FOO(x) 'x'
4870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4876 int argc;
4877 char **argv;
4878 int
4879 main ()
4880 {
4881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4888 do
4889 CC="$ac_save_CC $ac_arg"
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 ac_cv_prog_cc_c89=$ac_arg
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext
4894 test "x$ac_cv_prog_cc_c89" != "xno" && break
4895 done
4896 rm -f conftest.$ac_ext
4897 CC=$ac_save_CC
4898
4899 fi
4900 # AC_CACHE_VAL
4901 case "x$ac_cv_prog_cc_c89" in
4902 x)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4904 $as_echo "none needed" >&6; } ;;
4905 xno)
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4907 $as_echo "unsupported" >&6; } ;;
4908 *)
4909 CC="$CC $ac_cv_prog_cc_c89"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4912 esac
4913 if test "x$ac_cv_prog_cc_c89" != xno; then :
4914
4915 fi
4916
4917 ac_ext=c
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922 DEPDIR="${am__leading_dot}deps"
4923
4924 ac_config_commands="$ac_config_commands depfiles"
4925
4926
4927 am_make=${MAKE-make}
4928 cat > confinc << 'END'
4929 am__doit:
4930 @echo this is the am__doit target
4931 .PHONY: am__doit
4932 END
4933 # If we don't find an include directive, just comment out the code.
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4935 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4936 am__include="#"
4937 am__quote=
4938 _am_result=none
4939 # First try GNU make style include.
4940 echo "include confinc" > confmf
4941 # Ignore all kinds of additional output from `make'.
4942 case `$am_make -s -f confmf 2> /dev/null` in #(
4943 *the\ am__doit\ target*)
4944 am__include=include
4945 am__quote=
4946 _am_result=GNU
4947 ;;
4948 esac
4949 # Now try BSD make style include.
4950 if test "$am__include" = "#"; then
4951 echo '.include "confinc"' > confmf
4952 case `$am_make -s -f confmf 2> /dev/null` in #(
4953 *the\ am__doit\ target*)
4954 am__include=.include
4955 am__quote="\""
4956 _am_result=BSD
4957 ;;
4958 esac
4959 fi
4960
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4963 $as_echo "$_am_result" >&6; }
4964 rm -f confinc confmf
4965
4966 # Check whether --enable-dependency-tracking was given.
4967 if test "${enable_dependency_tracking+set}" = set; then :
4968 enableval=$enable_dependency_tracking;
4969 fi
4970
4971 if test "x$enable_dependency_tracking" != xno; then
4972 am_depcomp="$ac_aux_dir/depcomp"
4973 AMDEPBACKSLASH='\'
4974 fi
4975 if test "x$enable_dependency_tracking" != xno; then
4976 AMDEP_TRUE=
4977 AMDEP_FALSE='#'
4978 else
4979 AMDEP_TRUE='#'
4980 AMDEP_FALSE=
4981 fi
4982
4983
4984
4985 depcc="$CC" am_compiler_list=
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4988 $as_echo_n "checking dependency style of $depcc... " >&6; }
4989 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4993 # We make a subdir and do the tests there. Otherwise we can end up
4994 # making bogus files that we don't know about and never remove. For
4995 # instance it was reported that on HP-UX the gcc test will end up
4996 # making a dummy file named `D' -- because `-MD' means `put the output
4997 # in D'.
4998 mkdir conftest.dir
4999 # Copy depcomp to subdir because otherwise we won't find it if we're
5000 # using a relative directory.
5001 cp "$am_depcomp" conftest.dir
5002 cd conftest.dir
5003 # We will build objects and dependencies in a subdirectory because
5004 # it helps to detect inapplicable dependency modes. For instance
5005 # both Tru64's cc and ICC support -MD to output dependencies as a
5006 # side effect of compilation, but ICC will put the dependencies in
5007 # the current directory while Tru64 will put them in the object
5008 # directory.
5009 mkdir sub
5010
5011 am_cv_CC_dependencies_compiler_type=none
5012 if test "$am_compiler_list" = ""; then
5013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5014 fi
5015 am__universal=false
5016 case " $depcc " in #(
5017 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5018 esac
5019
5020 for depmode in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5024 #
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5028 : > sub/conftest.c
5029 for i in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5032 # Solaris 8's {/usr,}/bin/sh.
5033 touch sub/conftst$i.h
5034 done
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5036
5037 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle `-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs
5041 am__obj=sub/conftest.${OBJEXT-o}
5042 am__minus_obj="-o $am__obj"
5043 case $depmode in
5044 gcc)
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false || continue
5047 ;;
5048 nosideeffect)
5049 # after this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested
5051 if test "x$enable_dependency_tracking" = xyes; then
5052 continue
5053 else
5054 break
5055 fi
5056 ;;
5057 msvisualcpp | msvcmsys)
5058 # This compiler won't grok `-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj=conftest.${OBJEXT-o}
5062 am__minus_obj=
5063 ;;
5064 none) break ;;
5065 esac
5066 if depmode=$depmode \
5067 source=sub/conftest.c object=$am__obj \
5068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070 >/dev/null 2>conftest.err &&
5071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thusly:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CC_dependencies_compiler_type=$depmode
5085 break
5086 fi
5087 fi
5088 done
5089
5090 cd ..
5091 rm -rf conftest.dir
5092 else
5093 am_cv_CC_dependencies_compiler_type=none
5094 fi
5095
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5098 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5099 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5100
5101 if
5102 test "x$enable_dependency_tracking" != xno \
5103 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5104 am__fastdepCC_TRUE=
5105 am__fastdepCC_FALSE='#'
5106 else
5107 am__fastdepCC_TRUE='#'
5108 am__fastdepCC_FALSE=
5109 fi
5110
5111
5112 if test "x$CC" != xcc; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5114 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5117 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5118 fi
5119 set dummy $CC; ac_cc=`$as_echo "$2" |
5120 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5121 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126
5127 int
5128 main ()
5129 {
5130
5131 ;
5132 return 0;
5133 }
5134 _ACEOF
5135 # Make sure it works both with $CC and with simple cc.
5136 # We do the test twice because some compilers refuse to overwrite an
5137 # existing .o file with -o, though they will create one.
5138 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5139 rm -f conftest2.*
5140 if { { case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5145 $as_echo "$ac_try_echo"; } >&5
5146 (eval "$ac_try") 2>&5
5147 ac_status=$?
5148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149 test $ac_status = 0; } &&
5150 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5155 $as_echo "$ac_try_echo"; } >&5
5156 (eval "$ac_try") 2>&5
5157 ac_status=$?
5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5159 test $ac_status = 0; };
5160 then
5161 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5162 if test "x$CC" != xcc; then
5163 # Test first that cc exists at all.
5164 if { ac_try='cc -c conftest.$ac_ext >&5'
5165 { { case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170 $as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_try") 2>&5
5172 ac_status=$?
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }; }; then
5175 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5176 rm -f conftest2.*
5177 if { { case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180 esac
5181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5182 $as_echo "$ac_try_echo"; } >&5
5183 (eval "$ac_try") 2>&5
5184 ac_status=$?
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; } &&
5187 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5190 esac
5191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5192 $as_echo "$ac_try_echo"; } >&5
5193 (eval "$ac_try") 2>&5
5194 ac_status=$?
5195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5196 test $ac_status = 0; };
5197 then
5198 # cc works too.
5199 :
5200 else
5201 # cc exists but doesn't like -o.
5202 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5203 fi
5204 fi
5205 fi
5206 else
5207 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5208 fi
5209 rm -f core conftest*
5210
5211 fi
5212 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214 $as_echo "yes" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218
5219 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5220
5221 fi
5222
5223 # FIXME: we rely on the cache variable name because
5224 # there is no other way.
5225 set dummy $CC
5226 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5227 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5228 if test "$am_t" != yes; then
5229 # Losing compiler, so override with the script.
5230 # FIXME: It is wrong to rewrite CC.
5231 # But if we don't then we get into trouble of one sort or another.
5232 # A longer-term fix would be to have automake use am__CC in this case,
5233 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5234 CC="$am_aux_dir/compile $CC"
5235 fi
5236
5237
5238
5239 # Initialize gnulib right after verifying that the C compiler works.
5240 if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_RANLIB+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$RANLIB"; then
5249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262 done
5263 done
5264 IFS=$as_save_IFS
5265
5266 fi
5267 fi
5268 RANLIB=$ac_cv_prog_RANLIB
5269 if test -n "$RANLIB"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5271 $as_echo "$RANLIB" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275 fi
5276
5277
5278 fi
5279 if test -z "$ac_cv_prog_RANLIB"; then
5280 ac_ct_RANLIB=$RANLIB
5281 # Extract the first word of "ranlib", so it can be a program name with args.
5282 set dummy ranlib; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$ac_ct_RANLIB"; then
5289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_ac_ct_RANLIB="ranlib"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302 done
5303 done
5304 IFS=$as_save_IFS
5305
5306 fi
5307 fi
5308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5309 if test -n "$ac_ct_RANLIB"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5311 $as_echo "$ac_ct_RANLIB" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317 if test "x$ac_ct_RANLIB" = x; then
5318 RANLIB=":"
5319 else
5320 case $cross_compiling:$ac_tool_warned in
5321 yes:)
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5325 esac
5326 RANLIB=$ac_ct_RANLIB
5327 fi
5328 else
5329 RANLIB="$ac_cv_prog_RANLIB"
5330 fi
5331
5332
5333 ac_ext=c
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5339 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5340 # On Suns, sometimes $CPP names a directory.
5341 if test -n "$CPP" && test -d "$CPP"; then
5342 CPP=
5343 fi
5344 if test -z "$CPP"; then
5345 if ${ac_cv_prog_CPP+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 # Double quotes because CPP needs to be expanded
5349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5350 do
5351 ac_preproc_ok=false
5352 for ac_c_preproc_warn_flag in '' yes
5353 do
5354 # Use a header file that comes with gcc, so configuring glibc
5355 # with a fresh cross-compiler works.
5356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 # <limits.h> exists even on freestanding compilers.
5358 # On the NeXT, cc -E runs the code through the compiler's parser,
5359 # not just through cpp. "Syntax error" is here to catch this case.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #ifdef __STDC__
5363 # include <limits.h>
5364 #else
5365 # include <assert.h>
5366 #endif
5367 Syntax error
5368 _ACEOF
5369 if ac_fn_c_try_cpp "$LINENO"; then :
5370
5371 else
5372 # Broken: fails on valid input.
5373 continue
5374 fi
5375 rm -f conftest.err conftest.i conftest.$ac_ext
5376
5377 # OK, works on sane cases. Now check whether nonexistent headers
5378 # can be detected and how.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <ac_nonexistent.h>
5382 _ACEOF
5383 if ac_fn_c_try_cpp "$LINENO"; then :
5384 # Broken: success on invalid input.
5385 continue
5386 else
5387 # Passes both tests.
5388 ac_preproc_ok=:
5389 break
5390 fi
5391 rm -f conftest.err conftest.i conftest.$ac_ext
5392
5393 done
5394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5395 rm -f conftest.i conftest.err conftest.$ac_ext
5396 if $ac_preproc_ok; then :
5397 break
5398 fi
5399
5400 done
5401 ac_cv_prog_CPP=$CPP
5402
5403 fi
5404 CPP=$ac_cv_prog_CPP
5405 else
5406 ac_cv_prog_CPP=$CPP
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5409 $as_echo "$CPP" >&6; }
5410 ac_preproc_ok=false
5411 for ac_c_preproc_warn_flag in '' yes
5412 do
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421 #ifdef __STDC__
5422 # include <limits.h>
5423 #else
5424 # include <assert.h>
5425 #endif
5426 Syntax error
5427 _ACEOF
5428 if ac_fn_c_try_cpp "$LINENO"; then :
5429
5430 else
5431 # Broken: fails on valid input.
5432 continue
5433 fi
5434 rm -f conftest.err conftest.i conftest.$ac_ext
5435
5436 # OK, works on sane cases. Now check whether nonexistent headers
5437 # can be detected and how.
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <ac_nonexistent.h>
5441 _ACEOF
5442 if ac_fn_c_try_cpp "$LINENO"; then :
5443 # Broken: success on invalid input.
5444 continue
5445 else
5446 # Passes both tests.
5447 ac_preproc_ok=:
5448 break
5449 fi
5450 rm -f conftest.err conftest.i conftest.$ac_ext
5451
5452 done
5453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5454 rm -f conftest.i conftest.err conftest.$ac_ext
5455 if $ac_preproc_ok; then :
5456
5457 else
5458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5460 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5461 See \`config.log' for more details" "$LINENO" 5; }
5462 fi
5463
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5472 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5473 if ${ac_cv_path_GREP+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -z "$GREP"; then
5477 ac_path_GREP_found=false
5478 # Loop through the user's path and test for each of PROGNAME-LIST
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_prog in grep ggrep; do
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5487 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5488 # Check for GNU ac_path_GREP and select it if it is found.
5489 # Check for GNU $ac_path_GREP
5490 case `"$ac_path_GREP" --version 2>&1` in
5491 *GNU*)
5492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5493 *)
5494 ac_count=0
5495 $as_echo_n 0123456789 >"conftest.in"
5496 while :
5497 do
5498 cat "conftest.in" "conftest.in" >"conftest.tmp"
5499 mv "conftest.tmp" "conftest.in"
5500 cp "conftest.in" "conftest.nl"
5501 $as_echo 'GREP' >> "conftest.nl"
5502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504 as_fn_arith $ac_count + 1 && ac_count=$as_val
5505 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5506 # Best one so far, save it but keep looking for a better one
5507 ac_cv_path_GREP="$ac_path_GREP"
5508 ac_path_GREP_max=$ac_count
5509 fi
5510 # 10*(2^10) chars as input seems more than enough
5511 test $ac_count -gt 10 && break
5512 done
5513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514 esac
5515
5516 $ac_path_GREP_found && break 3
5517 done
5518 done
5519 done
5520 IFS=$as_save_IFS
5521 if test -z "$ac_cv_path_GREP"; then
5522 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5523 fi
5524 else
5525 ac_cv_path_GREP=$GREP
5526 fi
5527
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5530 $as_echo "$ac_cv_path_GREP" >&6; }
5531 GREP="$ac_cv_path_GREP"
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5535 $as_echo_n "checking for egrep... " >&6; }
5536 if ${ac_cv_path_EGREP+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5540 then ac_cv_path_EGREP="$GREP -E"
5541 else
5542 if test -z "$EGREP"; then
5543 ac_path_EGREP_found=false
5544 # Loop through the user's path and test for each of PROGNAME-LIST
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_prog in egrep; do
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5553 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5554 # Check for GNU ac_path_EGREP and select it if it is found.
5555 # Check for GNU $ac_path_EGREP
5556 case `"$ac_path_EGREP" --version 2>&1` in
5557 *GNU*)
5558 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5559 *)
5560 ac_count=0
5561 $as_echo_n 0123456789 >"conftest.in"
5562 while :
5563 do
5564 cat "conftest.in" "conftest.in" >"conftest.tmp"
5565 mv "conftest.tmp" "conftest.in"
5566 cp "conftest.in" "conftest.nl"
5567 $as_echo 'EGREP' >> "conftest.nl"
5568 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5570 as_fn_arith $ac_count + 1 && ac_count=$as_val
5571 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5572 # Best one so far, save it but keep looking for a better one
5573 ac_cv_path_EGREP="$ac_path_EGREP"
5574 ac_path_EGREP_max=$ac_count
5575 fi
5576 # 10*(2^10) chars as input seems more than enough
5577 test $ac_count -gt 10 && break
5578 done
5579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5580 esac
5581
5582 $ac_path_EGREP_found && break 3
5583 done
5584 done
5585 done
5586 IFS=$as_save_IFS
5587 if test -z "$ac_cv_path_EGREP"; then
5588 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5589 fi
5590 else
5591 ac_cv_path_EGREP=$EGREP
5592 fi
5593
5594 fi
5595 fi
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5597 $as_echo "$ac_cv_path_EGREP" >&6; }
5598 EGREP="$ac_cv_path_EGREP"
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5602 $as_echo_n "checking for ANSI C header files... " >&6; }
5603 if ${ac_cv_header_stdc+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #include <stdlib.h>
5609 #include <stdarg.h>
5610 #include <string.h>
5611 #include <float.h>
5612
5613 int
5614 main ()
5615 {
5616
5617 ;
5618 return 0;
5619 }
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"; then :
5622 ac_cv_header_stdc=yes
5623 else
5624 ac_cv_header_stdc=no
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627
5628 if test $ac_cv_header_stdc = yes; then
5629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <string.h>
5633
5634 _ACEOF
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "memchr" >/dev/null 2>&1; then :
5637
5638 else
5639 ac_cv_header_stdc=no
5640 fi
5641 rm -f conftest*
5642
5643 fi
5644
5645 if test $ac_cv_header_stdc = yes; then
5646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 #include <stdlib.h>
5650
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "free" >/dev/null 2>&1; then :
5654
5655 else
5656 ac_cv_header_stdc=no
5657 fi
5658 rm -f conftest*
5659
5660 fi
5661
5662 if test $ac_cv_header_stdc = yes; then
5663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5664 if test "$cross_compiling" = yes; then :
5665 :
5666 else
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <ctype.h>
5670 #include <stdlib.h>
5671 #if ((' ' & 0x0FF) == 0x020)
5672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5674 #else
5675 # define ISLOWER(c) \
5676 (('a' <= (c) && (c) <= 'i') \
5677 || ('j' <= (c) && (c) <= 'r') \
5678 || ('s' <= (c) && (c) <= 'z'))
5679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5680 #endif
5681
5682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5683 int
5684 main ()
5685 {
5686 int i;
5687 for (i = 0; i < 256; i++)
5688 if (XOR (islower (i), ISLOWER (i))
5689 || toupper (i) != TOUPPER (i))
5690 return 2;
5691 return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_run "$LINENO"; then :
5695
5696 else
5697 ac_cv_header_stdc=no
5698 fi
5699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5700 conftest.$ac_objext conftest.beam conftest.$ac_ext
5701 fi
5702
5703 fi
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5706 $as_echo "$ac_cv_header_stdc" >&6; }
5707 if test $ac_cv_header_stdc = yes; then
5708
5709 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5710
5711 fi
5712
5713 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5715 inttypes.h stdint.h unistd.h
5716 do :
5717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5718 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5719 "
5720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5721 cat >>confdefs.h <<_ACEOF
5722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5723 _ACEOF
5724
5725 fi
5726
5727 done
5728
5729
5730
5731
5732
5733 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5734 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5735 MINIX=yes
5736 else
5737 MINIX=
5738 fi
5739
5740
5741 if test "$MINIX" = yes; then
5742
5743 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5744
5745
5746 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5747
5748
5749 $as_echo "#define _MINIX 1" >>confdefs.h
5750
5751 fi
5752
5753 case "$host_os" in
5754 hpux*)
5755
5756 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5757
5758 ;;
5759 esac
5760
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5763 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5764 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769
5770 # define __EXTENSIONS__ 1
5771 $ac_includes_default
5772 int
5773 main ()
5774 {
5775
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 ac_cv_safe_to_define___extensions__=yes
5782 else
5783 ac_cv_safe_to_define___extensions__=no
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5788 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5789 test $ac_cv_safe_to_define___extensions__ = yes &&
5790 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5791
5792 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5793
5794 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5795
5796 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5797
5798 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809 # Code from module arg-nonnull:
5810 # Code from module c++defs:
5811 # Code from module extensions:
5812
5813 # Code from module ftoastr:
5814 # Code from module getopt-gnu:
5815 # Code from module getopt-posix:
5816 # Code from module gettext-h:
5817 # Code from module include_next:
5818 # Code from module intprops:
5819 # Code from module mktime:
5820 # Code from module multiarch:
5821 # Code from module stddef:
5822 # Code from module time:
5823 # Code from module time_r:
5824 # Code from module unistd:
5825 # Code from module warn-on-use:
5826
5827
5828 # On Suns, sometimes $CPP names a directory.
5829 if test -n "$CPP" && test -d "$CPP"; then
5830 CPP=
5831 fi
5832
5833 ## If not using gcc, and on Solaris, and no CPP specified, see if
5834 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5835 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5836 test x"$CPP" = x; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5838 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5839 if ${emacs_cv_sunpro_c+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844
5845 int
5846 main ()
5847 {
5848 #ifndef __SUNPRO_C
5849 fail;
5850 #endif
5851
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 if ac_fn_c_try_link "$LINENO"; then :
5857 emacs_cv_sunpro_c=yes
5858 else
5859 emacs_cv_sunpro_c=no
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5863 fi
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5866 $as_echo "$emacs_cv_sunpro_c" >&6; }
5867
5868 if test x"$emacs_cv_sunpro_c" = xyes; then
5869 NON_GNU_CPP="$CC -E -Xs"
5870 fi
5871 fi
5872
5873 #### Some systems specify a CPP to use unless we are using GCC.
5874 #### Now that we know whether we are using GCC, we can decide whether
5875 #### to use that one.
5876 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5877 then
5878 CPP="$NON_GNU_CPP"
5879 fi
5880
5881 #### Some systems specify a CC to use unless we are using GCC.
5882 #### Now that we know whether we are using GCC, we can decide whether
5883 #### to use that one.
5884 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5885 test x$cc_specified != xyes
5886 then
5887 CC="$NON_GNU_CC"
5888 fi
5889
5890 if test x$GCC = xyes; then
5891 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5892 else
5893 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5894 fi
5895
5896
5897
5898 ### Use -Wno-pointer-sign if the compiler supports it
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5900 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5901 SAVE_CFLAGS="$CFLAGS"
5902 CFLAGS="$CFLAGS -Wno-pointer-sign"
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905
5906 int
5907 main ()
5908 {
5909
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_compile "$LINENO"; then :
5915 has_option=yes
5916 else
5917 has_option=no
5918 fi
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 if test $has_option = yes; then
5921 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5924 $as_echo "$has_option" >&6; }
5925 CFLAGS="$SAVE_CFLAGS"
5926 unset has_option
5927 unset SAVE_CFLAGS
5928
5929 ### Use -Wdeclaration-after-statement if the compiler supports it
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5931 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5932 SAVE_CFLAGS="$CFLAGS"
5933 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936
5937 int
5938 main ()
5939 {
5940
5941 ;
5942 return 0;
5943 }
5944 _ACEOF
5945 if ac_fn_c_try_compile "$LINENO"; then :
5946 has_option=yes
5947 else
5948 has_option=no
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 if test $has_option = yes; then
5952 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5953 fi
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5955 $as_echo "$has_option" >&6; }
5956 CFLAGS="$SAVE_CFLAGS"
5957 unset has_option
5958 unset SAVE_CFLAGS
5959
5960 ### Use -Wold-style-definition if the compiler supports it
5961 # This can be removed when conversion to standard C is finished.
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5963 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5964 SAVE_CFLAGS="$CFLAGS"
5965 CFLAGS="$CFLAGS -Wold-style-definition"
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968
5969 int
5970 main ()
5971 {
5972
5973 ;
5974 return 0;
5975 }
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"; then :
5978 has_option=yes
5979 else
5980 has_option=no
5981 fi
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 if test $has_option = yes; then
5984 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5987 $as_echo "$has_option" >&6; }
5988 CFLAGS="$SAVE_CFLAGS"
5989 unset has_option
5990 unset SAVE_CFLAGS
5991
5992 ### Use -Wimplicit-function-declaration if the compiler supports it
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5994 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5995 SAVE_CFLAGS="$CFLAGS"
5996 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999
6000 int
6001 main ()
6002 {
6003
6004 ;
6005 return 0;
6006 }
6007 _ACEOF
6008 if ac_fn_c_try_compile "$LINENO"; then :
6009 has_option=yes
6010 else
6011 has_option=no
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014 if test $has_option = yes; then
6015 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6018 $as_echo "$has_option" >&6; }
6019 CFLAGS="$SAVE_CFLAGS"
6020 unset has_option
6021 unset SAVE_CFLAGS
6022
6023
6024
6025
6026 #### Some other nice autoconf tests.
6027
6028 ac_ext=c
6029 ac_cpp='$CPP $CPPFLAGS'
6030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6034 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6035 # On Suns, sometimes $CPP names a directory.
6036 if test -n "$CPP" && test -d "$CPP"; then
6037 CPP=
6038 fi
6039 if test -z "$CPP"; then
6040 if ${ac_cv_prog_CPP+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 # Double quotes because CPP needs to be expanded
6044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6045 do
6046 ac_preproc_ok=false
6047 for ac_c_preproc_warn_flag in '' yes
6048 do
6049 # Use a header file that comes with gcc, so configuring glibc
6050 # with a fresh cross-compiler works.
6051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6052 # <limits.h> exists even on freestanding compilers.
6053 # On the NeXT, cc -E runs the code through the compiler's parser,
6054 # not just through cpp. "Syntax error" is here to catch this case.
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 #ifdef __STDC__
6058 # include <limits.h>
6059 #else
6060 # include <assert.h>
6061 #endif
6062 Syntax error
6063 _ACEOF
6064 if ac_fn_c_try_cpp "$LINENO"; then :
6065
6066 else
6067 # Broken: fails on valid input.
6068 continue
6069 fi
6070 rm -f conftest.err conftest.i conftest.$ac_ext
6071
6072 # OK, works on sane cases. Now check whether nonexistent headers
6073 # can be detected and how.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <ac_nonexistent.h>
6077 _ACEOF
6078 if ac_fn_c_try_cpp "$LINENO"; then :
6079 # Broken: success on invalid input.
6080 continue
6081 else
6082 # Passes both tests.
6083 ac_preproc_ok=:
6084 break
6085 fi
6086 rm -f conftest.err conftest.i conftest.$ac_ext
6087
6088 done
6089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6090 rm -f conftest.i conftest.err conftest.$ac_ext
6091 if $ac_preproc_ok; then :
6092 break
6093 fi
6094
6095 done
6096 ac_cv_prog_CPP=$CPP
6097
6098 fi
6099 CPP=$ac_cv_prog_CPP
6100 else
6101 ac_cv_prog_CPP=$CPP
6102 fi
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6104 $as_echo "$CPP" >&6; }
6105 ac_preproc_ok=false
6106 for ac_c_preproc_warn_flag in '' yes
6107 do
6108 # Use a header file that comes with gcc, so configuring glibc
6109 # with a fresh cross-compiler works.
6110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111 # <limits.h> exists even on freestanding compilers.
6112 # On the NeXT, cc -E runs the code through the compiler's parser,
6113 # not just through cpp. "Syntax error" is here to catch this case.
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 #ifdef __STDC__
6117 # include <limits.h>
6118 #else
6119 # include <assert.h>
6120 #endif
6121 Syntax error
6122 _ACEOF
6123 if ac_fn_c_try_cpp "$LINENO"; then :
6124
6125 else
6126 # Broken: fails on valid input.
6127 continue
6128 fi
6129 rm -f conftest.err conftest.i conftest.$ac_ext
6130
6131 # OK, works on sane cases. Now check whether nonexistent headers
6132 # can be detected and how.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <ac_nonexistent.h>
6136 _ACEOF
6137 if ac_fn_c_try_cpp "$LINENO"; then :
6138 # Broken: success on invalid input.
6139 continue
6140 else
6141 # Passes both tests.
6142 ac_preproc_ok=:
6143 break
6144 fi
6145 rm -f conftest.err conftest.i conftest.$ac_ext
6146
6147 done
6148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6149 rm -f conftest.i conftest.err conftest.$ac_ext
6150 if $ac_preproc_ok; then :
6151
6152 else
6153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6155 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6156 See \`config.log' for more details" "$LINENO" 5; }
6157 fi
6158
6159 ac_ext=c
6160 ac_cpp='$CPP $CPPFLAGS'
6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165
6166 if test "x$RANLIB" = x; then
6167 if test -n "$ac_tool_prefix"; then
6168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if ${ac_cv_prog_RANLIB+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$RANLIB"; then
6176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 RANLIB=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6198 $as_echo "$RANLIB" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204
6205 fi
6206 if test -z "$ac_cv_prog_RANLIB"; then
6207 ac_ct_RANLIB=$RANLIB
6208 # Extract the first word of "ranlib", so it can be a program name with args.
6209 set dummy ranlib; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 if test -n "$ac_ct_RANLIB"; then
6216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_ac_ct_RANLIB="ranlib"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6236 if test -n "$ac_ct_RANLIB"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6238 $as_echo "$ac_ct_RANLIB" >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243
6244 if test "x$ac_ct_RANLIB" = x; then
6245 RANLIB=":"
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253 RANLIB=$ac_ct_RANLIB
6254 fi
6255 else
6256 RANLIB="$ac_cv_prog_RANLIB"
6257 fi
6258
6259 fi
6260
6261 ## Although we're running on an amd64 kernel, we're actually compiling for
6262 ## the x86 architecture. The user should probably have provided an
6263 ## explicit --build to `configure', but if everything else than the kernel
6264 ## is running in i386 mode, we can help them out.
6265 if test "$machine" = "amdx86-64"; then
6266 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6267 if test "x$ac_cv_have_decl_i386" = xyes; then :
6268
6269 fi
6270
6271 if test "$ac_cv_have_decl_i386" = "yes"; then
6272 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6273 machine=intel386
6274 machfile="m/${machine}.h"
6275 fi
6276 fi
6277
6278 # Extract the first word of "install-info", so it can be a program name with args.
6279 set dummy install-info; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 case $INSTALL_INFO in
6286 [\\/]* | ?:[\\/]*)
6287 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6288 ;;
6289 *)
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 ;;
6306 esac
6307 fi
6308 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6309 if test -n "$INSTALL_INFO"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6311 $as_echo "$INSTALL_INFO" >&6; }
6312 else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316
6317
6318 # Extract the first word of "install-info", so it can be a program name with args.
6319 set dummy install-info; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 case $INSTALL_INFO in
6326 [\\/]* | ?:[\\/]*)
6327 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6328 ;;
6329 *)
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in /usr/sbin
6332 do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6344
6345 ;;
6346 esac
6347 fi
6348 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6349 if test -n "$INSTALL_INFO"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6351 $as_echo "$INSTALL_INFO" >&6; }
6352 else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6355 fi
6356
6357
6358 # Extract the first word of "install-info", so it can be a program name with args.
6359 set dummy install-info; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 case $INSTALL_INFO in
6366 [\\/]* | ?:[\\/]*)
6367 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6368 ;;
6369 *)
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in /sbin
6372 do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381 done
6382 done
6383 IFS=$as_save_IFS
6384
6385 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6386 ;;
6387 esac
6388 fi
6389 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6390 if test -n "$INSTALL_INFO"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6392 $as_echo "$INSTALL_INFO" >&6; }
6393 else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398
6399 # Extract the first word of "gzip", so it can be a program name with args.
6400 set dummy gzip; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_path_GZIP_PROG+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 case $GZIP_PROG in
6407 [\\/]* | ?:[\\/]*)
6408 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6409 ;;
6410 *)
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6421 fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426 ;;
6427 esac
6428 fi
6429 GZIP_PROG=$ac_cv_path_GZIP_PROG
6430 if test -n "$GZIP_PROG"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6432 $as_echo "$GZIP_PROG" >&6; }
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6436 fi
6437
6438
6439
6440
6441 ## Need makeinfo >= 4.6 (?) to build the manuals.
6442 # Extract the first word of "makeinfo", so it can be a program name with args.
6443 set dummy makeinfo; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if ${ac_cv_path_MAKEINFO+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 case $MAKEINFO in
6450 [\\/]* | ?:[\\/]*)
6451 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6452 ;;
6453 *)
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6470 ;;
6471 esac
6472 fi
6473 MAKEINFO=$ac_cv_path_MAKEINFO
6474 if test -n "$MAKEINFO"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6476 $as_echo "$MAKEINFO" >&6; }
6477 else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482
6483 if test "$MAKEINFO" != "no" && \
6484 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
6485 MAKEINFO=no
6486 fi
6487
6488 ## Makeinfo is unusual. For a released Emacs, the manuals are
6489 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6490 ## therefore in the category of "special tools" not normally required, which
6491 ## configure does not have to check for (eg autoconf itself).
6492 ## In a Bazaar checkout on the other hand, the manuals are not included.
6493 ## So makeinfo is a requirement to build from Bazaar, and configure
6494 ## should test for it as it does for any other build requirement.
6495 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6496 ## with pre-built manuals, from a Bazaar checkout.
6497 HAVE_MAKEINFO=yes
6498
6499 if test "$MAKEINFO" = "no"; then
6500 MAKEINFO=makeinfo
6501 if test "x${with_makeinfo}" = "xno"; then
6502 HAVE_MAKEINFO=no
6503 elif test ! -e $srcdir/info/emacs; then
6504 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6505 source tree does not seem to have pre-built manuals in the \`info' directory.
6506 Either install a suitable version of makeinfo, or re-run configure
6507 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6508 fi
6509 fi
6510
6511
6512
6513 if test x$GCC = xyes; then
6514 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6515 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6516 else
6517 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6518 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6519 fi
6520
6521
6522 late_LDFLAGS=$LDFLAGS
6523 if test x$GCC = xyes; then
6524 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6525 else
6526 LDFLAGS="$LDFLAGS -znocombreloc"
6527 fi
6528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6530 $as_echo_n "checking for -znocombreloc... " >&6; }
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533
6534 int
6535 main ()
6536 {
6537
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_c_try_link "$LINENO"; then :
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6544 $as_echo "yes" >&6; }
6545 else
6546 LDFLAGS=$late_LDFLAGS
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6552
6553
6554 # The value of CPP is a quoted variable reference, so we need to do this
6555 # to get its actual value...
6556 CPP=`eval "echo $CPP"`
6557
6558
6559 CANNOT_DUMP=no
6560 case "$opsys" in
6561 your-opsys-here)
6562 CANNOT_DUMP=yes
6563
6564 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6565
6566 ;;
6567 esac
6568
6569
6570
6571 UNEXEC_OBJ=unexelf.o
6572 case "$opsys" in
6573 # MSDOS uses unexcoff.o
6574 # MSWindows uses unexw32.o
6575 aix4-2)
6576 UNEXEC_OBJ=unexaix.o
6577 ;;
6578 cygwin)
6579 UNEXEC_OBJ=unexcw.o
6580 ;;
6581 darwin)
6582 UNEXEC_OBJ=unexmacosx.o
6583 ;;
6584 hpux10-20 | hpux11)
6585 UNEXEC_OBJ=unexhp9k800.o
6586 ;;
6587 sol2-10)
6588 # Use the Solaris dldump() function, called from unexsol.c, to dump
6589 # emacs, instead of the generic ELF dump code found in unexelf.c.
6590 # The resulting binary has a complete symbol table, and is better
6591 # for debugging and other observability tools (debuggers, pstack, etc).
6592 #
6593 # If you encounter a problem using dldump(), please consider sending
6594 # a message to the OpenSolaris tools-linking mailing list:
6595 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6596 #
6597 # It is likely that dldump() works with older Solaris too, but this has
6598 # not been tested, so for now this change is for Solaris 10 or newer.
6599 UNEXEC_OBJ=unexsol.o
6600 ;;
6601 esac
6602
6603 LD_SWITCH_SYSTEM=
6604 case "$opsys" in
6605 freebsd)
6606 ## Let `ld' find image libs and similar things in /usr/local/lib.
6607 ## The system compiler, GCC, has apparently been modified to not
6608 ## look there, contrary to what a stock GCC would do.
6609 LD_SWITCH_SYSTEM=-L/usr/local/lib
6610 ;;
6611
6612 gnu-linux)
6613 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6614 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6615 ;;
6616
6617 netbsd)
6618 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6619 ;;
6620
6621 openbsd)
6622 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6623 ## otherwise Emacs dumps core on elf systems.
6624 LD_SWITCH_SYSTEM="-Z"
6625 ;;
6626 esac
6627
6628
6629 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6630
6631 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6632 ## which has not been defined yet. When this was handled with cpp,
6633 ## it was expanded to null when configure sourced the s/*.h file.
6634 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6635 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6636 ## (or somesuch), but because it is supposed to go at the _front_
6637 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6638 ## Compare with the gnu-linux case below, which added to the end
6639 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6640 ## LD_SWITCH_SYSTEM_TEMACS.
6641 case "$opsys" in
6642 netbsd|openbsd)
6643 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6644 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6645 esac
6646
6647
6648 C_SWITCH_MACHINE=
6649 if test "$machine" = "alpha"; then
6650 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6651 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6652
6653 fi
6654
6655 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6656 ## With ELF, make sure that all common symbols get allocated to in the
6657 ## data section. Otherwise, the dump of temacs may miss variables in
6658 ## the shared library that have been initialized. For example, with
6659 ## GNU libc, __malloc_initialized would normally be resolved to the
6660 ## shared library's .bss section, which is fatal.
6661 if test "x$GCC" = "xyes"; then
6662 C_SWITCH_MACHINE="-fno-common"
6663 else
6664 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6665 fi
6666 else
6667 UNEXEC_OBJ=unexalpha.o
6668 fi
6669 fi
6670
6671
6672
6673
6674 C_SWITCH_SYSTEM=
6675 ## Some programs in src produce warnings saying certain subprograms
6676 ## are too complex and need a MAXMEM value greater than 2000 for
6677 ## additional optimization. --nils@exp-math.uni-essen.de
6678 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6679 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6680 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6681 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6682
6683
6684
6685 LIBS_SYSTEM=
6686 case "$opsys" in
6687 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6688 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6689
6690 freebsd) LIBS_SYSTEM="-lutil" ;;
6691
6692 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6693
6694 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6695
6696 ## Motif needs -lgen.
6697 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6698 esac
6699
6700
6701
6702 ### Make sure subsequent tests use flags consistent with the build flags.
6703
6704 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6705 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6706 else
6707 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6708 fi
6709
6710
6711
6712 # Check whether --enable-largefile was given.
6713 if test "${enable_largefile+set}" = set; then :
6714 enableval=$enable_largefile;
6715 fi
6716
6717 if test "$enable_largefile" != no; then
6718
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6720 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6721 if ${ac_cv_sys_largefile_CC+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 ac_cv_sys_largefile_CC=no
6725 if test "$GCC" != yes; then
6726 ac_save_CC=$CC
6727 while :; do
6728 # IRIX 6.2 and later do not support large files by default,
6729 # so use the C compiler's -n32 option if that helps.
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732 #include <sys/types.h>
6733 /* Check that off_t can represent 2**63 - 1 correctly.
6734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6735 since some C++ compilers masquerading as C compilers
6736 incorrectly reject 9223372036854775807. */
6737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6739 && LARGE_OFF_T % 2147483647 == 1)
6740 ? 1 : -1];
6741 int
6742 main ()
6743 {
6744
6745 ;
6746 return 0;
6747 }
6748 _ACEOF
6749 if ac_fn_c_try_compile "$LINENO"; then :
6750 break
6751 fi
6752 rm -f core conftest.err conftest.$ac_objext
6753 CC="$CC -n32"
6754 if ac_fn_c_try_compile "$LINENO"; then :
6755 ac_cv_sys_largefile_CC=' -n32'; break
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext
6758 break
6759 done
6760 CC=$ac_save_CC
6761 rm -f conftest.$ac_ext
6762 fi
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6765 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6766 if test "$ac_cv_sys_largefile_CC" != no; then
6767 CC=$CC$ac_cv_sys_largefile_CC
6768 fi
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6771 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6772 if ${ac_cv_sys_file_offset_bits+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 while :; do
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 #include <sys/types.h>
6779 /* Check that off_t can represent 2**63 - 1 correctly.
6780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6781 since some C++ compilers masquerading as C compilers
6782 incorrectly reject 9223372036854775807. */
6783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6785 && LARGE_OFF_T % 2147483647 == 1)
6786 ? 1 : -1];
6787 int
6788 main ()
6789 {
6790
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 if ac_fn_c_try_compile "$LINENO"; then :
6796 ac_cv_sys_file_offset_bits=no; break
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 #define _FILE_OFFSET_BITS 64
6802 #include <sys/types.h>
6803 /* Check that off_t can represent 2**63 - 1 correctly.
6804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6805 since some C++ compilers masquerading as C compilers
6806 incorrectly reject 9223372036854775807. */
6807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6809 && LARGE_OFF_T % 2147483647 == 1)
6810 ? 1 : -1];
6811 int
6812 main ()
6813 {
6814
6815 ;
6816 return 0;
6817 }
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 ac_cv_sys_file_offset_bits=64; break
6821 fi
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 ac_cv_sys_file_offset_bits=unknown
6824 break
6825 done
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6828 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6829 case $ac_cv_sys_file_offset_bits in #(
6830 no | unknown) ;;
6831 *)
6832 cat >>confdefs.h <<_ACEOF
6833 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6834 _ACEOF
6835 ;;
6836 esac
6837 rm -rf conftest*
6838 if test $ac_cv_sys_file_offset_bits = unknown; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6840 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6841 if ${ac_cv_sys_large_files+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 while :; do
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <sys/types.h>
6848 /* Check that off_t can represent 2**63 - 1 correctly.
6849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6850 since some C++ compilers masquerading as C compilers
6851 incorrectly reject 9223372036854775807. */
6852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6854 && LARGE_OFF_T % 2147483647 == 1)
6855 ? 1 : -1];
6856 int
6857 main ()
6858 {
6859
6860 ;
6861 return 0;
6862 }
6863 _ACEOF
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 ac_cv_sys_large_files=no; break
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 #define _LARGE_FILES 1
6871 #include <sys/types.h>
6872 /* Check that off_t can represent 2**63 - 1 correctly.
6873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6874 since some C++ compilers masquerading as C compilers
6875 incorrectly reject 9223372036854775807. */
6876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6878 && LARGE_OFF_T % 2147483647 == 1)
6879 ? 1 : -1];
6880 int
6881 main ()
6882 {
6883
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 if ac_fn_c_try_compile "$LINENO"; then :
6889 ac_cv_sys_large_files=1; break
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 ac_cv_sys_large_files=unknown
6893 break
6894 done
6895 fi
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6897 $as_echo "$ac_cv_sys_large_files" >&6; }
6898 case $ac_cv_sys_large_files in #(
6899 no | unknown) ;;
6900 *)
6901 cat >>confdefs.h <<_ACEOF
6902 #define _LARGE_FILES $ac_cv_sys_large_files
6903 _ACEOF
6904 ;;
6905 esac
6906 rm -rf conftest*
6907 fi
6908 fi
6909
6910
6911
6912 ## If user specified a crt-dir, use that unconditionally.
6913 if test "X$CRT_DIR" = "X"; then
6914
6915 case "$canonical" in
6916 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6917 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6918 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6919 ## For anything else (eg /usr/lib32), it is up the user to specify
6920 ## the location (bug#5655).
6921 ## Test for crtn.o, not just the directory, because sometimes the
6922 ## directory exists but does not have the relevant files (bug#1287).
6923 ## FIXME better to test for binary compatibility somehow.
6924 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6925 ;;
6926
6927 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6928 esac
6929
6930 case "$opsys" in
6931 hpux10-20) CRT_DIR=/lib ;;
6932 esac
6933
6934 ## Default is /usr/lib.
6935 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6936
6937 else
6938
6939 ## Some platforms don't use any of these files, so it is not
6940 ## appropriate to put this test outside the if block.
6941 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6942 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
6943
6944 fi
6945
6946
6947
6948 LIB_MATH=-lm
6949 LIB_STANDARD=
6950 START_FILES=
6951
6952 case $opsys in
6953 cygwin )
6954 LIB_MATH=
6955 START_FILES='pre-crt0.o'
6956 ;;
6957 darwin )
6958 ## Adding -lm confuses the dynamic linker, so omit it.
6959 LIB_MATH=
6960 START_FILES='pre-crt0.o'
6961 ;;
6962 freebsd )
6963 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6964 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6965 ;;
6966 gnu-linux | gnu-kfreebsd )
6967 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6968 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6969 ;;
6970 hpux10-20 | hpux11 )
6971 LIB_STANDARD=-lc
6972 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6973 ;;
6974 netbsd | openbsd )
6975 if test -f $CRT_DIR/crti.o; then
6976 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6977 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6978 else
6979 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6980 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6981 fi
6982 ;;
6983 esac
6984
6985
6986
6987
6988
6989
6990
6991 if test "${with_sound}" != "no"; then
6992 # Sound support for GNU/Linux and the free BSDs.
6993 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6994 do :
6995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6996 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6998 cat >>confdefs.h <<_ACEOF
6999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7000 _ACEOF
7001 have_sound_header=yes
7002 fi
7003
7004 done
7005
7006 # Emulation library used on NetBSD.
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7008 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7009 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 ac_check_lib_save_LIBS=$LIBS
7013 LIBS="-lossaudio $LIBS"
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016
7017 /* Override any GCC internal prototype to avoid an error.
7018 Use char because int might match the return type of a GCC
7019 builtin and then its argument prototype would still apply. */
7020 #ifdef __cplusplus
7021 extern "C"
7022 #endif
7023 char _oss_ioctl ();
7024 int
7025 main ()
7026 {
7027 return _oss_ioctl ();
7028 ;
7029 return 0;
7030 }
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033 ac_cv_lib_ossaudio__oss_ioctl=yes
7034 else
7035 ac_cv_lib_ossaudio__oss_ioctl=no
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7039 LIBS=$ac_check_lib_save_LIBS
7040 fi
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7042 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7043 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7044 LIBSOUND=-lossaudio
7045 else
7046 LIBSOUND=
7047 fi
7048
7049
7050
7051 ALSA_REQUIRED=1.0.0
7052 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7053
7054 succeeded=no
7055
7056 # Extract the first word of "pkg-config", so it can be a program name with args.
7057 set dummy pkg-config; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 case $PKG_CONFIG in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7084 ;;
7085 esac
7086 fi
7087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7088 if test -n "$PKG_CONFIG"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7090 $as_echo "$PKG_CONFIG" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096
7097
7098 if test "$PKG_CONFIG" = "no" ; then
7099 HAVE_ALSA=no
7100 else
7101 PKG_CONFIG_MIN_VERSION=0.9.0
7102 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7104 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7105
7106 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7108 $as_echo "yes" >&6; }
7109 succeeded=yes
7110
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7112 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7113 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7115 $as_echo "$ALSA_CFLAGS" >&6; }
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7118 $as_echo_n "checking ALSA_LIBS... " >&6; }
7119 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7121 $as_echo "$ALSA_LIBS" >&6; }
7122 else
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7125 ALSA_CFLAGS=""
7126 ALSA_LIBS=""
7127 ## If we have a custom action on failure, don't print errors, but
7128 ## do set a variable so people can do so.
7129 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7130
7131 fi
7132
7133
7134
7135 else
7136 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7137 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7138 fi
7139 fi
7140
7141 if test $succeeded = yes; then
7142 HAVE_ALSA=yes
7143 else
7144 HAVE_ALSA=no
7145 fi
7146
7147 if test $HAVE_ALSA = yes; then
7148 SAVE_CFLAGS="$CFLAGS"
7149 SAVE_LDFLAGS="$LDFLAGS"
7150 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7151 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 #include <asoundlib.h>
7155 int
7156 main ()
7157 {
7158 snd_lib_error_set_handler (0);
7159 ;
7160 return 0;
7161 }
7162 _ACEOF
7163 if ac_fn_c_try_compile "$LINENO"; then :
7164 emacs_alsa_normal=yes
7165 else
7166 emacs_alsa_normal=no
7167 fi
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 if test "$emacs_alsa_normal" != yes; then
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 #include <alsa/asoundlib.h>
7173 int
7174 main ()
7175 {
7176 snd_lib_error_set_handler (0);
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"; then :
7182 emacs_alsa_subdir=yes
7183 else
7184 emacs_alsa_subdir=no
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187 if test "$emacs_alsa_subdir" != yes; then
7188 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7189 fi
7190 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7191 fi
7192
7193 CFLAGS="$SAVE_CFLAGS"
7194 LDFLAGS="$SAVE_LDFLAGS"
7195 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7196 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7197
7198 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7199
7200 fi
7201
7202 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7203 case "$opsys" in
7204 gnu-linux|freebsd|netbsd)
7205
7206 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7207
7208 ;;
7209 esac
7210 fi
7211
7212
7213 fi
7214
7215 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7216 linux/version.h sys/systeminfo.h limits.h \
7217 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7218 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7219 sys/utsname.h pwd.h utmp.h dirent.h util.h
7220 do :
7221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7223 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7224 cat >>confdefs.h <<_ACEOF
7225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7226 _ACEOF
7227
7228 fi
7229
7230 done
7231
7232
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7234 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 #include <sys/personality.h>
7238 int
7239 main ()
7240 {
7241 personality (PER_LINUX32)
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 if ac_fn_c_try_compile "$LINENO"; then :
7247 emacs_cv_personality_linux32=yes
7248 else
7249 emacs_cv_personality_linux32=no
7250 fi
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7253 $as_echo "$emacs_cv_personality_linux32" >&6; }
7254
7255 if test $emacs_cv_personality_linux32 = yes; then
7256
7257 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7258
7259 fi
7260
7261 for ac_header in term.h
7262 do :
7263 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7264 if test "x$ac_cv_header_term_h" = xyes; then :
7265 cat >>confdefs.h <<_ACEOF
7266 #define HAVE_TERM_H 1
7267 _ACEOF
7268
7269 fi
7270
7271 done
7272
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7274 $as_echo_n "checking for ANSI C header files... " >&6; }
7275 if ${ac_cv_header_stdc+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7280 #include <stdlib.h>
7281 #include <stdarg.h>
7282 #include <string.h>
7283 #include <float.h>
7284
7285 int
7286 main ()
7287 {
7288
7289 ;
7290 return 0;
7291 }
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"; then :
7294 ac_cv_header_stdc=yes
7295 else
7296 ac_cv_header_stdc=no
7297 fi
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299
7300 if test $ac_cv_header_stdc = yes; then
7301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <string.h>
7305
7306 _ACEOF
7307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308 $EGREP "memchr" >/dev/null 2>&1; then :
7309
7310 else
7311 ac_cv_header_stdc=no
7312 fi
7313 rm -f conftest*
7314
7315 fi
7316
7317 if test $ac_cv_header_stdc = yes; then
7318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 #include <stdlib.h>
7322
7323 _ACEOF
7324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7325 $EGREP "free" >/dev/null 2>&1; then :
7326
7327 else
7328 ac_cv_header_stdc=no
7329 fi
7330 rm -f conftest*
7331
7332 fi
7333
7334 if test $ac_cv_header_stdc = yes; then
7335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7336 if test "$cross_compiling" = yes; then :
7337 :
7338 else
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 #include <ctype.h>
7342 #include <stdlib.h>
7343 #if ((' ' & 0x0FF) == 0x020)
7344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7346 #else
7347 # define ISLOWER(c) \
7348 (('a' <= (c) && (c) <= 'i') \
7349 || ('j' <= (c) && (c) <= 'r') \
7350 || ('s' <= (c) && (c) <= 'z'))
7351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7352 #endif
7353
7354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7355 int
7356 main ()
7357 {
7358 int i;
7359 for (i = 0; i < 256; i++)
7360 if (XOR (islower (i), ISLOWER (i))
7361 || toupper (i) != TOUPPER (i))
7362 return 2;
7363 return 0;
7364 }
7365 _ACEOF
7366 if ac_fn_c_try_run "$LINENO"; then :
7367
7368 else
7369 ac_cv_header_stdc=no
7370 fi
7371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7372 conftest.$ac_objext conftest.beam conftest.$ac_ext
7373 fi
7374
7375 fi
7376 fi
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7378 $as_echo "$ac_cv_header_stdc" >&6; }
7379 if test $ac_cv_header_stdc = yes; then
7380
7381 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7382
7383 fi
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7386 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7387 if ${ac_cv_header_time+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #include <sys/types.h>
7393 #include <sys/time.h>
7394 #include <time.h>
7395
7396 int
7397 main ()
7398 {
7399 if ((struct tm *) 0)
7400 return 0;
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406 ac_cv_header_time=yes
7407 else
7408 ac_cv_header_time=no
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 fi
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7413 $as_echo "$ac_cv_header_time" >&6; }
7414 if test $ac_cv_header_time = yes; then
7415
7416 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7417
7418 fi
7419
7420 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7421 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7422 ac_have_decl=1
7423 else
7424 ac_have_decl=0
7425 fi
7426
7427 cat >>confdefs.h <<_ACEOF
7428 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7429 _ACEOF
7430
7431 if test $ac_cv_have_decl_sys_siglist != yes; then
7432 # For Tru64, at least:
7433 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7434 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7435 ac_have_decl=1
7436 else
7437 ac_have_decl=0
7438 fi
7439
7440 cat >>confdefs.h <<_ACEOF
7441 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7442 _ACEOF
7443
7444 if test $ac_cv_have_decl___sys_siglist = yes; then
7445
7446 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7447
7448 fi
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7451 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7452 if ${ac_cv_header_sys_wait_h+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 #include <sys/types.h>
7458 #include <sys/wait.h>
7459 #ifndef WEXITSTATUS
7460 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7461 #endif
7462 #ifndef WIFEXITED
7463 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7464 #endif
7465
7466 int
7467 main ()
7468 {
7469 int s;
7470 wait (&s);
7471 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 ac_cv_header_sys_wait_h=yes
7478 else
7479 ac_cv_header_sys_wait_h=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7484 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7485 if test $ac_cv_header_sys_wait_h = yes; then
7486
7487 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7488
7489 fi
7490
7491
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7493 $as_echo_n "checking for struct utimbuf... " >&6; }
7494 if ${emacs_cv_struct_utimbuf+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #ifdef TIME_WITH_SYS_TIME
7500 #include <sys/time.h>
7501 #include <time.h>
7502 #else
7503 #ifdef HAVE_SYS_TIME_H
7504 #include <sys/time.h>
7505 #else
7506 #include <time.h>
7507 #endif
7508 #endif
7509 #ifdef HAVE_UTIME_H
7510 #include <utime.h>
7511 #endif
7512 int
7513 main ()
7514 {
7515 static struct utimbuf x; x.actime = x.modtime;
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_compile "$LINENO"; then :
7521 emacs_cv_struct_utimbuf=yes
7522 else
7523 emacs_cv_struct_utimbuf=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7528 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7529 if test $emacs_cv_struct_utimbuf = yes; then
7530
7531 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7532
7533 fi
7534
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7536 $as_echo_n "checking return type of signal handlers... " >&6; }
7537 if ${ac_cv_type_signal+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 #include <sys/types.h>
7543 #include <signal.h>
7544
7545 int
7546 main ()
7547 {
7548 return *(signal (0, 0)) (0) == 1;
7549 ;
7550 return 0;
7551 }
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 ac_cv_type_signal=int
7555 else
7556 ac_cv_type_signal=void
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7561 $as_echo "$ac_cv_type_signal" >&6; }
7562
7563 cat >>confdefs.h <<_ACEOF
7564 #define RETSIGTYPE $ac_cv_type_signal
7565 _ACEOF
7566
7567
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7570 $as_echo_n "checking for speed_t... " >&6; }
7571 if ${emacs_cv_speed_t+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576 #include <termios.h>
7577 int
7578 main ()
7579 {
7580 speed_t x = 1;
7581 ;
7582 return 0;
7583 }
7584 _ACEOF
7585 if ac_fn_c_try_compile "$LINENO"; then :
7586 emacs_cv_speed_t=yes
7587 else
7588 emacs_cv_speed_t=no
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 fi
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7593 $as_echo "$emacs_cv_speed_t" >&6; }
7594 if test $emacs_cv_speed_t = yes; then
7595
7596 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7597
7598 fi
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7601 $as_echo_n "checking for struct timeval... " >&6; }
7602 if ${emacs_cv_struct_timeval+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 #ifdef TIME_WITH_SYS_TIME
7608 #include <sys/time.h>
7609 #include <time.h>
7610 #else
7611 #ifdef HAVE_SYS_TIME_H
7612 #include <sys/time.h>
7613 #else
7614 #include <time.h>
7615 #endif
7616 #endif
7617 int
7618 main ()
7619 {
7620 static struct timeval x; x.tv_sec = x.tv_usec;
7621 ;
7622 return 0;
7623 }
7624 _ACEOF
7625 if ac_fn_c_try_compile "$LINENO"; then :
7626 emacs_cv_struct_timeval=yes
7627 else
7628 emacs_cv_struct_timeval=no
7629 fi
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 fi
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7633 $as_echo "$emacs_cv_struct_timeval" >&6; }
7634 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7635 if test $emacs_cv_struct_timeval = yes; then
7636
7637 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7638
7639 fi
7640
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7642 $as_echo_n "checking for struct exception... " >&6; }
7643 if ${emacs_cv_struct_exception+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 #include <math.h>
7649 int
7650 main ()
7651 {
7652 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 if ac_fn_c_try_compile "$LINENO"; then :
7658 emacs_cv_struct_exception=yes
7659 else
7660 emacs_cv_struct_exception=no
7661 fi
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7665 $as_echo "$emacs_cv_struct_exception" >&6; }
7666 HAVE_EXCEPTION=$emacs_cv_struct_exception
7667 if test $emacs_cv_struct_exception != yes; then
7668
7669 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7670
7671 fi
7672
7673 for ac_header in sys/socket.h
7674 do :
7675 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7676 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7677 cat >>confdefs.h <<_ACEOF
7678 #define HAVE_SYS_SOCKET_H 1
7679 _ACEOF
7680
7681 fi
7682
7683 done
7684
7685 for ac_header in net/if.h
7686 do :
7687 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7688 #if HAVE_SYS_SOCKET_H
7689 #include <sys/socket.h>
7690 #endif
7691 "
7692 if test "x$ac_cv_header_net_if_h" = xyes; then :
7693 cat >>confdefs.h <<_ACEOF
7694 #define HAVE_NET_IF_H 1
7695 _ACEOF
7696
7697 fi
7698
7699 done
7700
7701
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7703 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7704 if ${ac_cv_struct_tm+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 #include <sys/types.h>
7710 #include <time.h>
7711
7712 int
7713 main ()
7714 {
7715 struct tm tm;
7716 int *p = &tm.tm_sec;
7717 return !p;
7718 ;
7719 return 0;
7720 }
7721 _ACEOF
7722 if ac_fn_c_try_compile "$LINENO"; then :
7723 ac_cv_struct_tm=time.h
7724 else
7725 ac_cv_struct_tm=sys/time.h
7726 fi
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 fi
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7730 $as_echo "$ac_cv_struct_tm" >&6; }
7731 if test $ac_cv_struct_tm = sys/time.h; then
7732
7733 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7734
7735 fi
7736
7737 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7738 #include <$ac_cv_struct_tm>
7739
7740 "
7741 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7742
7743 cat >>confdefs.h <<_ACEOF
7744 #define HAVE_STRUCT_TM_TM_ZONE 1
7745 _ACEOF
7746
7747
7748 fi
7749
7750 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7751
7752 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7753
7754 else
7755 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7756 "
7757 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7758 ac_have_decl=1
7759 else
7760 ac_have_decl=0
7761 fi
7762
7763 cat >>confdefs.h <<_ACEOF
7764 #define HAVE_DECL_TZNAME $ac_have_decl
7765 _ACEOF
7766
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7768 $as_echo_n "checking for tzname... " >&6; }
7769 if ${ac_cv_var_tzname+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 #include <time.h>
7775 #if !HAVE_DECL_TZNAME
7776 extern char *tzname[];
7777 #endif
7778
7779 int
7780 main ()
7781 {
7782 return tzname[0][0];
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_link "$LINENO"; then :
7788 ac_cv_var_tzname=yes
7789 else
7790 ac_cv_var_tzname=no
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7796 $as_echo "$ac_cv_var_tzname" >&6; }
7797 if test $ac_cv_var_tzname = yes; then
7798
7799 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7800
7801 fi
7802 fi
7803
7804 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7805 "
7806 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7807
7808 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7809
7810 fi
7811
7812 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7813 #if HAVE_SYS_SOCKET_H
7814 #include <sys/socket.h>
7815 #endif
7816 #if HAVE_NET_IF_H
7817 #include <net/if.h>
7818 #endif
7819 "
7820 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
7821
7822 cat >>confdefs.h <<_ACEOF
7823 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7824 _ACEOF
7825
7826
7827 fi
7828 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7829 #if HAVE_SYS_SOCKET_H
7830 #include <sys/socket.h>
7831 #endif
7832 #if HAVE_NET_IF_H
7833 #include <net/if.h>
7834 #endif
7835 "
7836 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
7837
7838 cat >>confdefs.h <<_ACEOF
7839 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7840 _ACEOF
7841
7842
7843 fi
7844 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7845 #if HAVE_SYS_SOCKET_H
7846 #include <sys/socket.h>
7847 #endif
7848 #if HAVE_NET_IF_H
7849 #include <net/if.h>
7850 #endif
7851 "
7852 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
7853
7854 cat >>confdefs.h <<_ACEOF
7855 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7856 _ACEOF
7857
7858
7859 fi
7860 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7861 #if HAVE_SYS_SOCKET_H
7862 #include <sys/socket.h>
7863 #endif
7864 #if HAVE_NET_IF_H
7865 #include <net/if.h>
7866 #endif
7867 "
7868 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
7869
7870 cat >>confdefs.h <<_ACEOF
7871 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7872 _ACEOF
7873
7874
7875 fi
7876 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7877 #if HAVE_SYS_SOCKET_H
7878 #include <sys/socket.h>
7879 #endif
7880 #if HAVE_NET_IF_H
7881 #include <net/if.h>
7882 #endif
7883 "
7884 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
7885
7886 cat >>confdefs.h <<_ACEOF
7887 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7888 _ACEOF
7889
7890
7891 fi
7892
7893
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7896 $as_echo_n "checking for function prototypes... " >&6; }
7897 if test "$ac_cv_prog_cc_c89" != no; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7899 $as_echo "yes" >&6; }
7900
7901 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7902
7903
7904 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7905
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7912 $as_echo_n "checking for working volatile... " >&6; }
7913 if ${ac_cv_c_volatile+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918
7919 int
7920 main ()
7921 {
7922
7923 volatile int x;
7924 int * volatile y = (int *) 0;
7925 return !x && !y;
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 if ac_fn_c_try_compile "$LINENO"; then :
7931 ac_cv_c_volatile=yes
7932 else
7933 ac_cv_c_volatile=no
7934 fi
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936 fi
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7938 $as_echo "$ac_cv_c_volatile" >&6; }
7939 if test $ac_cv_c_volatile = no; then
7940
7941 $as_echo "#define volatile /**/" >>confdefs.h
7942
7943 fi
7944
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7946 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7947 if ${ac_cv_c_const+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952
7953 int
7954 main ()
7955 {
7956 /* FIXME: Include the comments suggested by Paul. */
7957 #ifndef __cplusplus
7958 /* Ultrix mips cc rejects this. */
7959 typedef int charset[2];
7960 const charset cs;
7961 /* SunOS 4.1.1 cc rejects this. */
7962 char const *const *pcpcc;
7963 char **ppc;
7964 /* NEC SVR4.0.2 mips cc rejects this. */
7965 struct point {int x, y;};
7966 static struct point const zero = {0,0};
7967 /* AIX XL C 1.02.0.0 rejects this.
7968 It does not let you subtract one const X* pointer from another in
7969 an arm of an if-expression whose if-part is not a constant
7970 expression */
7971 const char *g = "string";
7972 pcpcc = &g + (g ? g-g : 0);
7973 /* HPUX 7.0 cc rejects these. */
7974 ++pcpcc;
7975 ppc = (char**) pcpcc;
7976 pcpcc = (char const *const *) ppc;
7977 { /* SCO 3.2v4 cc rejects this. */
7978 char *t;
7979 char const *s = 0 ? (char *) 0 : (char const *) 0;
7980
7981 *t++ = 0;
7982 if (s) return 0;
7983 }
7984 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7985 int x[] = {25, 17};
7986 const int *foo = &x[0];
7987 ++foo;
7988 }
7989 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7990 typedef const int *iptr;
7991 iptr p = 0;
7992 ++p;
7993 }
7994 { /* AIX XL C 1.02.0.0 rejects this saying
7995 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7996 struct s { int j; const int *ap[3]; };
7997 struct s *b; b->j = 5;
7998 }
7999 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8000 const int foo = 10;
8001 if (!foo) return 0;
8002 }
8003 return !cs[0] && !zero.x;
8004 #endif
8005
8006 ;
8007 return 0;
8008 }
8009 _ACEOF
8010 if ac_fn_c_try_compile "$LINENO"; then :
8011 ac_cv_c_const=yes
8012 else
8013 ac_cv_c_const=no
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 fi
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8018 $as_echo "$ac_cv_c_const" >&6; }
8019 if test $ac_cv_c_const = no; then
8020
8021 $as_echo "#define const /**/" >>confdefs.h
8022
8023 fi
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8026 $as_echo_n "checking for void * support... " >&6; }
8027 if ${emacs_cv_void_star+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8032
8033 int
8034 main ()
8035 {
8036 void * foo;
8037 ;
8038 return 0;
8039 }
8040 _ACEOF
8041 if ac_fn_c_try_compile "$LINENO"; then :
8042 emacs_cv_void_star=yes
8043 else
8044 emacs_cv_void_star=no
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 fi
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8049 $as_echo "$emacs_cv_void_star" >&6; }
8050 if test $emacs_cv_void_star = yes; then
8051 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8052
8053 else
8054 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8055
8056 fi
8057
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8059 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8060 if ${ac_cv_c_bigendian+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 ac_cv_c_bigendian=unknown
8064 # See if we're dealing with a universal compiler.
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 #ifndef __APPLE_CC__
8068 not a universal capable compiler
8069 #endif
8070 typedef int dummy;
8071
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074
8075 # Check for potential -arch flags. It is not universal unless
8076 # there are at least two -arch flags with different values.
8077 ac_arch=
8078 ac_prev=
8079 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8080 if test -n "$ac_prev"; then
8081 case $ac_word in
8082 i?86 | x86_64 | ppc | ppc64)
8083 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8084 ac_arch=$ac_word
8085 else
8086 ac_cv_c_bigendian=universal
8087 break
8088 fi
8089 ;;
8090 esac
8091 ac_prev=
8092 elif test "x$ac_word" = "x-arch"; then
8093 ac_prev=arch
8094 fi
8095 done
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 if test $ac_cv_c_bigendian = unknown; then
8099 # See if sys/param.h defines the BYTE_ORDER macro.
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 #include <sys/types.h>
8103 #include <sys/param.h>
8104
8105 int
8106 main ()
8107 {
8108 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8109 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8110 && LITTLE_ENDIAN)
8111 bogus endian macros
8112 #endif
8113
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_compile "$LINENO"; then :
8119 # It does; now see whether it defined to BIG_ENDIAN or not.
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8122 #include <sys/types.h>
8123 #include <sys/param.h>
8124
8125 int
8126 main ()
8127 {
8128 #if BYTE_ORDER != BIG_ENDIAN
8129 not big endian
8130 #endif
8131
8132 ;
8133 return 0;
8134 }
8135 _ACEOF
8136 if ac_fn_c_try_compile "$LINENO"; then :
8137 ac_cv_c_bigendian=yes
8138 else
8139 ac_cv_c_bigendian=no
8140 fi
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 fi
8145 if test $ac_cv_c_bigendian = unknown; then
8146 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #include <limits.h>
8150
8151 int
8152 main ()
8153 {
8154 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8155 bogus endian macros
8156 #endif
8157
8158 ;
8159 return 0;
8160 }
8161 _ACEOF
8162 if ac_fn_c_try_compile "$LINENO"; then :
8163 # It does; now see whether it defined to _BIG_ENDIAN or not.
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #include <limits.h>
8167
8168 int
8169 main ()
8170 {
8171 #ifndef _BIG_ENDIAN
8172 not big endian
8173 #endif
8174
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_compile "$LINENO"; then :
8180 ac_cv_c_bigendian=yes
8181 else
8182 ac_cv_c_bigendian=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 fi
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 fi
8188 if test $ac_cv_c_bigendian = unknown; then
8189 # Compile a test program.
8190 if test "$cross_compiling" = yes; then :
8191 # Try to guess by grepping values from an object file.
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 short int ascii_mm[] =
8195 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8196 short int ascii_ii[] =
8197 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8198 int use_ascii (int i) {
8199 return ascii_mm[i] + ascii_ii[i];
8200 }
8201 short int ebcdic_ii[] =
8202 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8203 short int ebcdic_mm[] =
8204 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8205 int use_ebcdic (int i) {
8206 return ebcdic_mm[i] + ebcdic_ii[i];
8207 }
8208 extern int foo;
8209
8210 int
8211 main ()
8212 {
8213 return use_ascii (foo) == use_ebcdic (foo);
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8220 ac_cv_c_bigendian=yes
8221 fi
8222 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8223 if test "$ac_cv_c_bigendian" = unknown; then
8224 ac_cv_c_bigendian=no
8225 else
8226 # finding both strings is unlikely to happen, but who knows?
8227 ac_cv_c_bigendian=unknown
8228 fi
8229 fi
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 else
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8235 $ac_includes_default
8236 int
8237 main ()
8238 {
8239
8240 /* Are we little or big endian? From Harbison&Steele. */
8241 union
8242 {
8243 long int l;
8244 char c[sizeof (long int)];
8245 } u;
8246 u.l = 1;
8247 return u.c[sizeof (long int) - 1] == 1;
8248
8249 ;
8250 return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_run "$LINENO"; then :
8254 ac_cv_c_bigendian=no
8255 else
8256 ac_cv_c_bigendian=yes
8257 fi
8258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8259 conftest.$ac_objext conftest.beam conftest.$ac_ext
8260 fi
8261
8262 fi
8263 fi
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8265 $as_echo "$ac_cv_c_bigendian" >&6; }
8266 case $ac_cv_c_bigendian in #(
8267 yes)
8268 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8269 ;; #(
8270 no)
8271 ;; #(
8272 universal)
8273
8274 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8275
8276 ;; #(
8277 *)
8278 as_fn_error $? "unknown endianness
8279 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8280 esac
8281
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8284 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8285 set x ${MAKE-make}
8286 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8287 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 cat >conftest.make <<\_ACEOF
8291 SHELL = /bin/sh
8292 all:
8293 @echo '@@@%%%=$(MAKE)=@@@%%%'
8294 _ACEOF
8295 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8296 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8297 *@@@%%%=?*=@@@%%%*)
8298 eval ac_cv_prog_make_${ac_make}_set=yes;;
8299 *)
8300 eval ac_cv_prog_make_${ac_make}_set=no;;
8301 esac
8302 rm -f conftest.make
8303 fi
8304 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8306 $as_echo "yes" >&6; }
8307 SET_MAKE=
8308 else
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8311 SET_MAKE="MAKE=${MAKE-make}"
8312 fi
8313
8314
8315 DEPFLAGS=
8316 MKDEPDIR=":"
8317 deps_frag=deps.mk
8318 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8320 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8321 HAVE_GNU_MAKE=no
8322 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8323 if test "x$testval" != x; then
8324 HAVE_GNU_MAKE=yes
8325 else
8326 ac_enable_autodepend=no
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8329 $as_echo "$HAVE_GNU_MAKE" >&6; }
8330 if test $HAVE_GNU_MAKE = yes; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8332 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8333 SAVE_CFLAGS="$CFLAGS"
8334 CFLAGS="$CFLAGS -MMD -MF deps.d"
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337
8338 int
8339 main ()
8340 {
8341
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_compile "$LINENO"; then :
8347
8348 else
8349 ac_enable_autodepend=no
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 CFLAGS="$SAVE_CFLAGS"
8353 test -f deps.d || ac_enable_autodepend=no
8354 rm -rf deps.d
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8356 $as_echo "$ac_enable_autodepend" >&6; }
8357 fi
8358 if test $ac_enable_autodepend = yes; then
8359 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8360 ## In parallel builds, another make might create depdir between
8361 ## the first test and mkdir, so stick another test on the end.
8362 ## Or use mkinstalldirs? mkdir -p is not portable.
8363 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8364 deps_frag=autodeps.mk
8365 fi
8366 fi
8367 deps_frag=$srcdir/src/$deps_frag
8368
8369
8370
8371
8372
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8374 $as_echo_n "checking for long file names... " >&6; }
8375 if ${ac_cv_sys_long_file_names+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 ac_cv_sys_long_file_names=yes
8379 # Test for long file names in all the places we know might matter:
8380 # . the current directory, where building will happen
8381 # $prefix/lib where we will be installing things
8382 # $exec_prefix/lib likewise
8383 # $TMPDIR if set, where it might want to write temporary files
8384 # /tmp where it might want to write temporary files
8385 # /var/tmp likewise
8386 # /usr/tmp likewise
8387 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8388 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8389 # in the usual case where exec_prefix is '${prefix}'.
8390 case $ac_dir in #(
8391 . | /* | ?:[\\/]*) ;; #(
8392 *) continue;;
8393 esac
8394 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8395 ac_xdir=$ac_dir/cf$$
8396 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8397 ac_tf1=$ac_xdir/conftest9012345
8398 ac_tf2=$ac_xdir/conftest9012346
8399 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8400 ac_cv_sys_long_file_names=no
8401 rm -f -r "$ac_xdir" 2>/dev/null
8402 test $ac_cv_sys_long_file_names = no && break
8403 done
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8406 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8407 if test $ac_cv_sys_long_file_names = yes; then
8408
8409 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8410
8411 fi
8412
8413
8414 #### Choose a window system.
8415
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8417 $as_echo_n "checking for X... " >&6; }
8418
8419
8420 # Check whether --with-x was given.
8421 if test "${with_x+set}" = set; then :
8422 withval=$with_x;
8423 fi
8424
8425 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8426 if test "x$with_x" = xno; then
8427 # The user explicitly disabled X.
8428 have_x=disabled
8429 else
8430 case $x_includes,$x_libraries in #(
8431 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8432 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 # One or both of the vars are not set, and there is no cached value.
8436 ac_x_includes=no ac_x_libraries=no
8437 rm -f -r conftest.dir
8438 if mkdir conftest.dir; then
8439 cd conftest.dir
8440 cat >Imakefile <<'_ACEOF'
8441 incroot:
8442 @echo incroot='${INCROOT}'
8443 usrlibdir:
8444 @echo usrlibdir='${USRLIBDIR}'
8445 libdir:
8446 @echo libdir='${LIBDIR}'
8447 _ACEOF
8448 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8449 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8450 for ac_var in incroot usrlibdir libdir; do
8451 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8452 done
8453 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8454 for ac_extension in a so sl dylib la dll; do
8455 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8456 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8457 ac_im_usrlibdir=$ac_im_libdir; break
8458 fi
8459 done
8460 # Screen out bogus values from the imake configuration. They are
8461 # bogus both because they are the default anyway, and because
8462 # using them would break gcc on systems where it needs fixed includes.
8463 case $ac_im_incroot in
8464 /usr/include) ac_x_includes= ;;
8465 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8466 esac
8467 case $ac_im_usrlibdir in
8468 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8469 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8470 esac
8471 fi
8472 cd ..
8473 rm -f -r conftest.dir
8474 fi
8475
8476 # Standard set of common directories for X headers.
8477 # Check X11 before X11Rn because it is often a symlink to the current release.
8478 ac_x_header_dirs='
8479 /usr/X11/include
8480 /usr/X11R7/include
8481 /usr/X11R6/include
8482 /usr/X11R5/include
8483 /usr/X11R4/include
8484
8485 /usr/include/X11
8486 /usr/include/X11R7
8487 /usr/include/X11R6
8488 /usr/include/X11R5
8489 /usr/include/X11R4
8490
8491 /usr/local/X11/include
8492 /usr/local/X11R7/include
8493 /usr/local/X11R6/include
8494 /usr/local/X11R5/include
8495 /usr/local/X11R4/include
8496
8497 /usr/local/include/X11
8498 /usr/local/include/X11R7
8499 /usr/local/include/X11R6
8500 /usr/local/include/X11R5
8501 /usr/local/include/X11R4
8502
8503 /usr/X386/include
8504 /usr/x386/include
8505 /usr/XFree86/include/X11
8506
8507 /usr/include
8508 /usr/local/include
8509 /usr/unsupported/include
8510 /usr/athena/include
8511 /usr/local/x11r5/include
8512 /usr/lpp/Xamples/include
8513
8514 /usr/openwin/include
8515 /usr/openwin/share/include'
8516
8517 if test "$ac_x_includes" = no; then
8518 # Guess where to find include files, by looking for Xlib.h.
8519 # First, try using that file with no special directory specified.
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 #include <X11/Xlib.h>
8523 _ACEOF
8524 if ac_fn_c_try_cpp "$LINENO"; then :
8525 # We can compile using X headers with no special include directory.
8526 ac_x_includes=
8527 else
8528 for ac_dir in $ac_x_header_dirs; do
8529 if test -r "$ac_dir/X11/Xlib.h"; then
8530 ac_x_includes=$ac_dir
8531 break
8532 fi
8533 done
8534 fi
8535 rm -f conftest.err conftest.i conftest.$ac_ext
8536 fi # $ac_x_includes = no
8537
8538 if test "$ac_x_libraries" = no; then
8539 # Check for the libraries.
8540 # See if we find them without any special options.
8541 # Don't add to $LIBS permanently.
8542 ac_save_LIBS=$LIBS
8543 LIBS="-lX11 $LIBS"
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 #include <X11/Xlib.h>
8547 int
8548 main ()
8549 {
8550 XrmInitialize ()
8551 ;
8552 return 0;
8553 }
8554 _ACEOF
8555 if ac_fn_c_try_link "$LINENO"; then :
8556 LIBS=$ac_save_LIBS
8557 # We can link X programs with no special library path.
8558 ac_x_libraries=
8559 else
8560 LIBS=$ac_save_LIBS
8561 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8562 do
8563 # Don't even attempt the hair of trying to link an X program!
8564 for ac_extension in a so sl dylib la dll; do
8565 if test -r "$ac_dir/libX11.$ac_extension"; then
8566 ac_x_libraries=$ac_dir
8567 break 2
8568 fi
8569 done
8570 done
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 fi # $ac_x_libraries = no
8575
8576 case $ac_x_includes,$ac_x_libraries in #(
8577 no,* | *,no | *\'*)
8578 # Didn't find X, or a directory has "'" in its name.
8579 ac_cv_have_x="have_x=no";; #(
8580 *)
8581 # Record where we found X for the cache.
8582 ac_cv_have_x="have_x=yes\
8583 ac_x_includes='$ac_x_includes'\
8584 ac_x_libraries='$ac_x_libraries'"
8585 esac
8586 fi
8587 ;; #(
8588 *) have_x=yes;;
8589 esac
8590 eval "$ac_cv_have_x"
8591 fi # $with_x != no
8592
8593 if test "$have_x" != yes; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8595 $as_echo "$have_x" >&6; }
8596 no_x=yes
8597 else
8598 # If each of the values was on the command line, it overrides each guess.
8599 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8600 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8601 # Update the cache value to reflect the command line values.
8602 ac_cv_have_x="have_x=yes\
8603 ac_x_includes='$x_includes'\
8604 ac_x_libraries='$x_libraries'"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8606 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8607 fi
8608
8609 if test "$no_x" = yes; then
8610 window_system=none
8611 else
8612 window_system=x11
8613 fi
8614
8615 ## Workaround for bug in autoconf <= 2.62.
8616 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8617 ## No need to do anything special for these standard directories.
8618 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8619
8620 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8621
8622 fi
8623
8624 LD_SWITCH_X_SITE_AUX=
8625 LD_SWITCH_X_SITE_AUX_RPATH=
8626 if test "${x_libraries}" != NONE; then
8627 if test -n "${x_libraries}"; then
8628 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8629 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8630 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8631 fi
8632 x_default_search_path=""
8633 x_search_path=${x_libraries}
8634 if test -z "${x_search_path}"; then
8635 x_search_path=/usr/lib
8636 fi
8637 for x_library in `echo ${x_search_path}: | \
8638 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8639 x_search_path="\
8640 ${x_library}/X11/%L/%T/%N%C%S:\
8641 ${x_library}/X11/%l/%T/%N%C%S:\
8642 ${x_library}/X11/%T/%N%C%S:\
8643 ${x_library}/X11/%L/%T/%N%S:\
8644 ${x_library}/X11/%l/%T/%N%S:\
8645 ${x_library}/X11/%T/%N%S"
8646 if test x"${x_default_search_path}" = x; then
8647 x_default_search_path=${x_search_path}
8648 else
8649 x_default_search_path="${x_search_path}:${x_default_search_path}"
8650 fi
8651 done
8652 fi
8653
8654
8655
8656 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8657 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8658 fi
8659
8660 if test x"${x_includes}" = x; then
8661 bitmapdir=/usr/include/X11/bitmaps
8662 else
8663 # accumulate include directories that have X11 bitmap subdirectories
8664 bmd_acc="dummyval"
8665 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8666 if test -d "${bmd}/X11/bitmaps"; then
8667 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8668 fi
8669 if test -d "${bmd}/bitmaps"; then
8670 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8671 fi
8672 done
8673 if test ${bmd_acc} != "dummyval"; then
8674 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8675 fi
8676 fi
8677
8678 HAVE_NS=no
8679 NS_IMPL_COCOA=no
8680 NS_IMPL_GNUSTEP=no
8681 tmp_CPPFLAGS="$CPPFLAGS"
8682 tmp_CFLAGS="$CFLAGS"
8683 CPPFLAGS="$CPPFLAGS -x objective-c"
8684 CFLAGS="$CFLAGS -x objective-c"
8685 TEMACS_LDFLAGS2="\${LDFLAGS}"
8686 if test "${with_ns}" != no; then
8687 if test "${opsys}" = darwin; then
8688 NS_IMPL_COCOA=yes
8689 ns_appdir=`pwd`/nextstep/Emacs.app
8690 ns_appbindir=${ns_appdir}/Contents/MacOS/
8691 ns_appresdir=${ns_appdir}/Contents/Resources
8692 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8693 elif test -f $GNUSTEP_CONFIG_FILE; then
8694 NS_IMPL_GNUSTEP=yes
8695 ns_appdir=`pwd`/nextstep/Emacs.app
8696 ns_appbindir=${ns_appdir}/
8697 ns_appresdir=${ns_appdir}/Resources
8698 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8699 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8700 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8701 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8702 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8703 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8704 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8705 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8706 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8707 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8708 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8709 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8710 LIB_STANDARD=
8711 START_FILES=
8712 TEMACS_LDFLAGS2=
8713 fi
8714 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8715 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8716 HAVE_NS=yes
8717 else
8718 as_fn_error $? "\`--with-ns' was specified, but the include
8719 files are missing or cannot be compiled." "$LINENO" 5
8720 fi
8721
8722
8723 NS_HAVE_NSINTEGER=yes
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 #include <Foundation/NSObjCRuntime.h>
8727 int
8728 main ()
8729 {
8730 NSInteger i;
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 if ac_fn_c_try_compile "$LINENO"; then :
8736 ns_have_nsinteger=yes
8737 else
8738 ns_have_nsinteger=no
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 if test $ns_have_nsinteger = no; then
8742 NS_HAVE_NSINTEGER=no
8743 fi
8744 fi
8745
8746
8747 ns_frag=/dev/null
8748 NS_OBJ=
8749 NS_SUPPORT=
8750 if test "${HAVE_NS}" = yes; then
8751 window_system=nextstep
8752 with_xft=no
8753 # set up packaging dirs
8754 exec_prefix=${ns_appbindir}
8755 libexecdir=${ns_appbindir}/libexec
8756 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8757 prefix=${ns_appresdir}
8758 fi
8759 ns_frag=$srcdir/src/ns.mk
8760 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8761 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8762 fi
8763 CFLAGS="$tmp_CFLAGS"
8764 CPPFLAGS="$tmp_CPPFLAGS"
8765
8766
8767
8768
8769
8770 case "${window_system}" in
8771 x11 )
8772 HAVE_X_WINDOWS=yes
8773 HAVE_X11=yes
8774 case "${with_x_toolkit}" in
8775 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8776 motif ) USE_X_TOOLKIT=MOTIF ;;
8777 gtk ) with_gtk=yes
8778 USE_X_TOOLKIT=none ;;
8779 gtk3 ) with_gtk3=yes
8780 USE_X_TOOLKIT=none ;;
8781 no ) USE_X_TOOLKIT=none ;;
8782 * ) USE_X_TOOLKIT=maybe ;;
8783 esac
8784 ;;
8785 nextstep | none )
8786 HAVE_X_WINDOWS=no
8787 HAVE_X11=no
8788 USE_X_TOOLKIT=none
8789 ;;
8790 esac
8791
8792 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8793 # Extract the first word of "X", so it can be a program name with args.
8794 set dummy X; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 if test -n "$HAVE_XSERVER"; then
8801 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8802 else
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8805 do
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8810 ac_cv_prog_HAVE_XSERVER="true"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8813 fi
8814 done
8815 done
8816 IFS=$as_save_IFS
8817
8818 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8819 fi
8820 fi
8821 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8822 if test -n "$HAVE_XSERVER"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8824 $as_echo "$HAVE_XSERVER" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830
8831 if test "$HAVE_XSERVER" = true ||
8832 test -n "$DISPLAY" ||
8833 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8834 as_fn_error $? "You seem to be running X, but no X development libraries
8835 were found. You should install the relevant development files for X
8836 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8837 sure you have development files for image handling, i.e.
8838 tiff, gif, jpeg, png and xpm.
8839 If you are sure you want Emacs compiled without X window support, pass
8840 --without-x
8841 to configure." "$LINENO" 5
8842 fi
8843 fi
8844
8845 ### If we're using X11, we should use the X menu package.
8846 HAVE_MENUS=no
8847 case ${HAVE_X11} in
8848 yes ) HAVE_MENUS=yes ;;
8849 esac
8850
8851 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8852 # Assume not, until told otherwise.
8853 GNU_MALLOC=yes
8854 doug_lea_malloc=yes
8855 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8856 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
8857
8858 else
8859 doug_lea_malloc=no
8860 fi
8861
8862 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8863 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
8864
8865 else
8866 doug_lea_malloc=no
8867 fi
8868
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8870 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8871 if ${emacs_cv_var___after_morecore_hook+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 extern void (* __after_morecore_hook)();
8877 int
8878 main ()
8879 {
8880 __after_morecore_hook = 0
8881 ;
8882 return 0;
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 emacs_cv_var___after_morecore_hook=yes
8887 else
8888 emacs_cv_var___after_morecore_hook=no
8889 fi
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8894 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8895 if test $emacs_cv_var___after_morecore_hook = no; then
8896 doug_lea_malloc=no
8897 fi
8898
8899
8900 system_malloc=no
8901 case "$opsys" in
8902 ## darwin ld insists on the use of malloc routines in the System framework.
8903 darwin|sol2-10) system_malloc=yes ;;
8904 esac
8905
8906 if test "${system_malloc}" = "yes"; then
8907
8908 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8909
8910 GNU_MALLOC=no
8911 GNU_MALLOC_reason="
8912 (The GNU allocators don't work with this system configuration.)"
8913 GMALLOC_OBJ=
8914 VMLIMIT_OBJ=
8915 else
8916 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8917 VMLIMIT_OBJ=vm-limit.o
8918 fi
8919
8920
8921
8922 if test "$doug_lea_malloc" = "yes" ; then
8923 if test "$GNU_MALLOC" = yes ; then
8924 GNU_MALLOC_reason="
8925 (Using Doug Lea's new malloc from the GNU C Library.)"
8926 fi
8927
8928 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8929
8930
8931 ## Use mmap directly for allocating larger buffers.
8932 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8933 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8934 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8935 case "$opsys" in
8936 gnu*) REL_ALLOC=no ;;
8937 esac
8938 fi
8939
8940 if test x"${REL_ALLOC}" = x; then
8941 REL_ALLOC=${GNU_MALLOC}
8942 fi
8943
8944 use_mmap_for_buffers=no
8945 case "$opsys" in
8946 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8947 esac
8948
8949
8950
8951
8952 for ac_header in $ac_header_list
8953 do :
8954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8955 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8956 "
8957 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8958 cat >>confdefs.h <<_ACEOF
8959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8960 _ACEOF
8961
8962 fi
8963
8964 done
8965
8966
8967
8968
8969
8970
8971
8972
8973 for ac_func in getpagesize
8974 do :
8975 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8976 if test "x$ac_cv_func_getpagesize" = xyes; then :
8977 cat >>confdefs.h <<_ACEOF
8978 #define HAVE_GETPAGESIZE 1
8979 _ACEOF
8980
8981 fi
8982 done
8983
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8985 $as_echo_n "checking for working mmap... " >&6; }
8986 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 if test "$cross_compiling" = yes; then :
8990 ac_cv_func_mmap_fixed_mapped=no
8991 else
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 $ac_includes_default
8995 /* malloc might have been renamed as rpl_malloc. */
8996 #undef malloc
8997
8998 /* Thanks to Mike Haertel and Jim Avera for this test.
8999 Here is a matrix of mmap possibilities:
9000 mmap private not fixed
9001 mmap private fixed at somewhere currently unmapped
9002 mmap private fixed at somewhere already mapped
9003 mmap shared not fixed
9004 mmap shared fixed at somewhere currently unmapped
9005 mmap shared fixed at somewhere already mapped
9006 For private mappings, we should verify that changes cannot be read()
9007 back from the file, nor mmap's back from the file at a different
9008 address. (There have been systems where private was not correctly
9009 implemented like the infamous i386 svr4.0, and systems where the
9010 VM page cache was not coherent with the file system buffer cache
9011 like early versions of FreeBSD and possibly contemporary NetBSD.)
9012 For shared mappings, we should conversely verify that changes get
9013 propagated back to all the places they're supposed to be.
9014
9015 Grep wants private fixed already mapped.
9016 The main things grep needs to know about mmap are:
9017 * does it exist and is it safe to write into the mmap'd area
9018 * how to use it (BSD variants) */
9019
9020 #include <fcntl.h>
9021 #include <sys/mman.h>
9022
9023 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9024 char *malloc ();
9025 #endif
9026
9027 /* This mess was copied from the GNU getpagesize.h. */
9028 #ifndef HAVE_GETPAGESIZE
9029 # ifdef _SC_PAGESIZE
9030 # define getpagesize() sysconf(_SC_PAGESIZE)
9031 # else /* no _SC_PAGESIZE */
9032 # ifdef HAVE_SYS_PARAM_H
9033 # include <sys/param.h>
9034 # ifdef EXEC_PAGESIZE
9035 # define getpagesize() EXEC_PAGESIZE
9036 # else /* no EXEC_PAGESIZE */
9037 # ifdef NBPG
9038 # define getpagesize() NBPG * CLSIZE
9039 # ifndef CLSIZE
9040 # define CLSIZE 1
9041 # endif /* no CLSIZE */
9042 # else /* no NBPG */
9043 # ifdef NBPC
9044 # define getpagesize() NBPC
9045 # else /* no NBPC */
9046 # ifdef PAGESIZE
9047 # define getpagesize() PAGESIZE
9048 # endif /* PAGESIZE */
9049 # endif /* no NBPC */
9050 # endif /* no NBPG */
9051 # endif /* no EXEC_PAGESIZE */
9052 # else /* no HAVE_SYS_PARAM_H */
9053 # define getpagesize() 8192 /* punt totally */
9054 # endif /* no HAVE_SYS_PARAM_H */
9055 # endif /* no _SC_PAGESIZE */
9056
9057 #endif /* no HAVE_GETPAGESIZE */
9058
9059 int
9060 main ()
9061 {
9062 char *data, *data2, *data3;
9063 const char *cdata2;
9064 int i, pagesize;
9065 int fd, fd2;
9066
9067 pagesize = getpagesize ();
9068
9069 /* First, make a file with some known garbage in it. */
9070 data = (char *) malloc (pagesize);
9071 if (!data)
9072 return 1;
9073 for (i = 0; i < pagesize; ++i)
9074 *(data + i) = rand ();
9075 umask (0);
9076 fd = creat ("conftest.mmap", 0600);
9077 if (fd < 0)
9078 return 2;
9079 if (write (fd, data, pagesize) != pagesize)
9080 return 3;
9081 close (fd);
9082
9083 /* Next, check that the tail of a page is zero-filled. File must have
9084 non-zero length, otherwise we risk SIGBUS for entire page. */
9085 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9086 if (fd2 < 0)
9087 return 4;
9088 cdata2 = "";
9089 if (write (fd2, cdata2, 1) != 1)
9090 return 5;
9091 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9092 if (data2 == MAP_FAILED)
9093 return 6;
9094 for (i = 0; i < pagesize; ++i)
9095 if (*(data2 + i))
9096 return 7;
9097 close (fd2);
9098 if (munmap (data2, pagesize))
9099 return 8;
9100
9101 /* Next, try to mmap the file at a fixed address which already has
9102 something else allocated at it. If we can, also make sure that
9103 we see the same garbage. */
9104 fd = open ("conftest.mmap", O_RDWR);
9105 if (fd < 0)
9106 return 9;
9107 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9108 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9109 return 10;
9110 for (i = 0; i < pagesize; ++i)
9111 if (*(data + i) != *(data2 + i))
9112 return 11;
9113
9114 /* Finally, make sure that changes to the mapped area do not
9115 percolate back to the file as seen by read(). (This is a bug on
9116 some variants of i386 svr4.0.) */
9117 for (i = 0; i < pagesize; ++i)
9118 *(data2 + i) = *(data2 + i) + 1;
9119 data3 = (char *) malloc (pagesize);
9120 if (!data3)
9121 return 12;
9122 if (read (fd, data3, pagesize) != pagesize)
9123 return 13;
9124 for (i = 0; i < pagesize; ++i)
9125 if (*(data + i) != *(data3 + i))
9126 return 14;
9127 close (fd);
9128 return 0;
9129 }
9130 _ACEOF
9131 if ac_fn_c_try_run "$LINENO"; then :
9132 ac_cv_func_mmap_fixed_mapped=yes
9133 else
9134 ac_cv_func_mmap_fixed_mapped=no
9135 fi
9136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9137 conftest.$ac_objext conftest.beam conftest.$ac_ext
9138 fi
9139
9140 fi
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9142 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9143 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9144
9145 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9146
9147 fi
9148 rm -f conftest.mmap conftest.txt
9149
9150 if test $use_mmap_for_buffers = yes; then
9151
9152 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9153
9154 REL_ALLOC=no
9155 fi
9156
9157 LIBS="$LIBS_SYSTEM $LIBS"
9158
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9160 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9161 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 ac_check_lib_save_LIBS=$LIBS
9165 LIBS="-ldnet $LIBS"
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168
9169 /* Override any GCC internal prototype to avoid an error.
9170 Use char because int might match the return type of a GCC
9171 builtin and then its argument prototype would still apply. */
9172 #ifdef __cplusplus
9173 extern "C"
9174 #endif
9175 char dnet_ntoa ();
9176 int
9177 main ()
9178 {
9179 return dnet_ntoa ();
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_link "$LINENO"; then :
9185 ac_cv_lib_dnet_dnet_ntoa=yes
9186 else
9187 ac_cv_lib_dnet_dnet_ntoa=no
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 LIBS=$ac_check_lib_save_LIBS
9192 fi
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9194 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9195 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9196 cat >>confdefs.h <<_ACEOF
9197 #define HAVE_LIBDNET 1
9198 _ACEOF
9199
9200 LIBS="-ldnet $LIBS"
9201
9202 fi
9203
9204
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9206 $as_echo_n "checking for main in -lXbsd... " >&6; }
9207 if ${ac_cv_lib_Xbsd_main+:} false; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 ac_check_lib_save_LIBS=$LIBS
9211 LIBS="-lXbsd $LIBS"
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214
9215
9216 int
9217 main ()
9218 {
9219 return main ();
9220 ;
9221 return 0;
9222 }
9223 _ACEOF
9224 if ac_fn_c_try_link "$LINENO"; then :
9225 ac_cv_lib_Xbsd_main=yes
9226 else
9227 ac_cv_lib_Xbsd_main=no
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LIBS=$ac_check_lib_save_LIBS
9232 fi
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9234 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9235 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9236 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9237 fi
9238
9239
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9241 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9242 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 ac_check_lib_save_LIBS=$LIBS
9246 LIBS="-lpthreads $LIBS"
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249
9250 /* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
9253 #ifdef __cplusplus
9254 extern "C"
9255 #endif
9256 char cma_open ();
9257 int
9258 main ()
9259 {
9260 return cma_open ();
9261 ;
9262 return 0;
9263 }
9264 _ACEOF
9265 if ac_fn_c_try_link "$LINENO"; then :
9266 ac_cv_lib_pthreads_cma_open=yes
9267 else
9268 ac_cv_lib_pthreads_cma_open=no
9269 fi
9270 rm -f core conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272 LIBS=$ac_check_lib_save_LIBS
9273 fi
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9275 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9276 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9277 cat >>confdefs.h <<_ACEOF
9278 #define HAVE_LIBPTHREADS 1
9279 _ACEOF
9280
9281 LIBS="-lpthreads $LIBS"
9282
9283 fi
9284
9285
9286 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9287 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9288 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9289 ## added to LIBS in configure would never contain the pthreads part,
9290 ## but the value used in Makefiles might. FIXME?
9291 ##
9292 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9293 ## be harmless on older versions of X where it happens to exist.
9294 test "$opsys" = "aix4-2" && \
9295 test $ac_cv_lib_pthreads_cma_open = yes && \
9296 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9297
9298
9299 case ${host_os} in
9300 aix*)
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9302 $as_echo_n "checking for -bbigtoc option... " >&6; }
9303 if ${gdb_cv_bigtoc+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306
9307 case $GCC in
9308 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9309 *) gdb_cv_bigtoc=-bbigtoc ;;
9310 esac
9311
9312 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315
9316 int
9317 main ()
9318 {
9319 int i;
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 if ac_fn_c_try_link "$LINENO"; then :
9325
9326 else
9327 gdb_cv_bigtoc=
9328 fi
9329 rm -f core conftest.err conftest.$ac_objext \
9330 conftest$ac_exeext conftest.$ac_ext
9331
9332 fi
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9334 $as_echo "$gdb_cv_bigtoc" >&6; }
9335 ;;
9336 esac
9337
9338 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9339 # used for the tests that follow. We set them back to REAL_CFLAGS and
9340 # REAL_CPPFLAGS later on.
9341
9342 REAL_CFLAGS="$CFLAGS"
9343 REAL_CPPFLAGS="$CPPFLAGS"
9344
9345 if test "${HAVE_X11}" = "yes"; then
9346 DEFS="$C_SWITCH_X_SITE $DEFS"
9347 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9348 LIBS="-lX11 $LIBS"
9349 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9350 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9351
9352 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9353 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9354 # but it's more convenient here to set LD_RUN_PATH
9355 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9356 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9357 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9358 export LD_RUN_PATH
9359 fi
9360
9361 if test "${opsys}" = "gnu-linux"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9363 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366
9367 int
9368 main ()
9369 {
9370 XOpenDisplay ("foo");
9371 ;
9372 return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376 xlinux_first_failure=no
9377 else
9378 xlinux_first_failure=yes
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 if test "${xlinux_first_failure}" = "yes"; then
9383 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9384 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9385 OLD_CPPFLAGS="$CPPFLAGS"
9386 OLD_LIBS="$LIBS"
9387 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9388 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9389 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9390 LIBS="$LIBS -b i486-linuxaout"
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_second_failure=no
9404 else
9405 xlinux_second_failure=yes
9406 fi
9407 rm -f core conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9409 if test "${xlinux_second_failure}" = "yes"; then
9410 # If we get the same failure with -b, there is no use adding -b.
9411 # So take it out. This plays safe.
9412 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9413 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9414 CPPFLAGS="$OLD_CPPFLAGS"
9415 LIBS="$OLD_LIBS"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9418 else
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9420 $as_echo "yes" >&6; }
9421 fi
9422 else
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424 $as_echo "no" >&6; }
9425 fi
9426 fi
9427
9428 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9429 # header files included from there.
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9431 $as_echo_n "checking for Xkb... " >&6; }
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #include <X11/Xlib.h>
9435 #include <X11/XKBlib.h>
9436 int
9437 main ()
9438 {
9439 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9440 ;
9441 return 0;
9442 }
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 emacs_xkb=yes
9446 else
9447 emacs_xkb=no
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9452 $as_echo "$emacs_xkb" >&6; }
9453 if test $emacs_xkb = yes; then
9454
9455 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9456
9457 fi
9458
9459 for ac_func in XrmSetDatabase XScreenResourceString \
9460 XScreenNumberOfScreen XSetWMProtocols
9461 do :
9462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9463 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9464 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9465 cat >>confdefs.h <<_ACEOF
9466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9467 _ACEOF
9468
9469 fi
9470 done
9471
9472 fi
9473
9474 if test "${window_system}" = "x11"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9476 $as_echo_n "checking X11 version 6... " >&6; }
9477 if ${emacs_cv_x11_version_6+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 #include <X11/Xlib.h>
9483 int
9484 main ()
9485 {
9486 #if XlibSpecificationRelease < 6
9487 fail;
9488 #endif
9489
9490 ;
9491 return 0;
9492 }
9493 _ACEOF
9494 if ac_fn_c_try_link "$LINENO"; then :
9495 emacs_cv_x11_version_6=yes
9496 else
9497 emacs_cv_x11_version_6=no
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 fi
9502
9503 if test $emacs_cv_x11_version_6 = yes; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9505 $as_echo "6 or newer" >&6; }
9506
9507 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9508
9509
9510 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9511
9512 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9513 ## XIM support.
9514 case "$opsys" in
9515 sol2-*) : ;;
9516 *)
9517 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9518
9519 ;;
9520 esac
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9523 $as_echo "before 6" >&6; }
9524 fi
9525 fi
9526
9527
9528 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9529 HAVE_RSVG=no
9530 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9531 if test "${with_rsvg}" != "no"; then
9532 RSVG_REQUIRED=2.11.0
9533 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9534
9535
9536 succeeded=no
9537
9538 # Extract the first word of "pkg-config", so it can be a program name with args.
9539 set dummy pkg-config; ac_word=$2
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9541 $as_echo_n "checking for $ac_word... " >&6; }
9542 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 case $PKG_CONFIG in
9546 [\\/]* | ?:[\\/]*)
9547 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9548 ;;
9549 *)
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9552 do
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9557 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 break 2
9560 fi
9561 done
9562 done
9563 IFS=$as_save_IFS
9564
9565 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9566 ;;
9567 esac
9568 fi
9569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9570 if test -n "$PKG_CONFIG"; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9572 $as_echo "$PKG_CONFIG" >&6; }
9573 else
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9576 fi
9577
9578
9579
9580 if test "$PKG_CONFIG" = "no" ; then
9581 :
9582 else
9583 PKG_CONFIG_MIN_VERSION=0.9.0
9584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9586 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9587
9588 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9590 $as_echo "yes" >&6; }
9591 succeeded=yes
9592
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9594 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9595 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9597 $as_echo "$RSVG_CFLAGS" >&6; }
9598
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9600 $as_echo_n "checking RSVG_LIBS... " >&6; }
9601 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9603 $as_echo "$RSVG_LIBS" >&6; }
9604 else
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 $as_echo "no" >&6; }
9607 RSVG_CFLAGS=""
9608 RSVG_LIBS=""
9609 ## If we have a custom action on failure, don't print errors, but
9610 ## do set a variable so people can do so.
9611 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9612
9613 fi
9614
9615
9616
9617 else
9618 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9619 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9620 fi
9621 fi
9622
9623 if test $succeeded = yes; then
9624 HAVE_RSVG=yes
9625 else
9626 :
9627 fi
9628
9629
9630
9631
9632 if test $HAVE_RSVG = yes; then
9633
9634 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9635
9636 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9637 LIBS="$RSVG_LIBS $LIBS"
9638 fi
9639 fi
9640 fi
9641
9642 HAVE_IMAGEMAGICK=no
9643 if test "${HAVE_X11}" = "yes"; then
9644 if test "${with_imagemagick}" != "no"; then
9645 IMAGEMAGICK_MODULE="Wand"
9646
9647 succeeded=no
9648
9649 # Extract the first word of "pkg-config", so it can be a program name with args.
9650 set dummy pkg-config; ac_word=$2
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9652 $as_echo_n "checking for $ac_word... " >&6; }
9653 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 case $PKG_CONFIG in
9657 [\\/]* | ?:[\\/]*)
9658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9659 ;;
9660 *)
9661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662 for as_dir in $PATH
9663 do
9664 IFS=$as_save_IFS
9665 test -z "$as_dir" && as_dir=.
9666 for ac_exec_ext in '' $ac_executable_extensions; do
9667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9670 break 2
9671 fi
9672 done
9673 done
9674 IFS=$as_save_IFS
9675
9676 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9677 ;;
9678 esac
9679 fi
9680 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9681 if test -n "$PKG_CONFIG"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9683 $as_echo "$PKG_CONFIG" >&6; }
9684 else
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9687 fi
9688
9689
9690
9691 if test "$PKG_CONFIG" = "no" ; then
9692 :
9693 else
9694 PKG_CONFIG_MIN_VERSION=0.9.0
9695 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9697 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9698
9699 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9701 $as_echo "yes" >&6; }
9702 succeeded=yes
9703
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9705 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9706 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9708 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9709
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9711 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9712 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9714 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9715 else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9718 IMAGEMAGICK_CFLAGS=""
9719 IMAGEMAGICK_LIBS=""
9720 ## If we have a custom action on failure, don't print errors, but
9721 ## do set a variable so people can do so.
9722 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9723
9724 fi
9725
9726
9727
9728 else
9729 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9730 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9731 fi
9732 fi
9733
9734 if test $succeeded = yes; then
9735 HAVE_IMAGEMAGICK=yes
9736 else
9737 :
9738 fi
9739
9740
9741
9742
9743 if test $HAVE_IMAGEMAGICK = yes; then
9744
9745 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9746
9747 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9748 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9749 for ac_func in MagickExportImagePixels
9750 do :
9751 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9752 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
9753 cat >>confdefs.h <<_ACEOF
9754 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9755 _ACEOF
9756
9757 fi
9758 done
9759
9760 fi
9761 fi
9762 fi
9763
9764
9765 HAVE_GTK=no
9766 if test "${with_gtk3}" = "yes"; then
9767 GLIB_REQUIRED=2.6
9768 GTK_REQUIRED=2.90
9769 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9770
9771
9772 succeeded=no
9773
9774 # Extract the first word of "pkg-config", so it can be a program name with args.
9775 set dummy pkg-config; ac_word=$2
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 case $PKG_CONFIG in
9782 [\\/]* | ?:[\\/]*)
9783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9784 ;;
9785 *)
9786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787 for as_dir in $PATH
9788 do
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
9791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9793 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 break 2
9796 fi
9797 done
9798 done
9799 IFS=$as_save_IFS
9800
9801 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9802 ;;
9803 esac
9804 fi
9805 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9806 if test -n "$PKG_CONFIG"; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9808 $as_echo "$PKG_CONFIG" >&6; }
9809 else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811 $as_echo "no" >&6; }
9812 fi
9813
9814
9815
9816 if test "$PKG_CONFIG" = "no" ; then
9817 pkg_check_gtk=no
9818 else
9819 PKG_CONFIG_MIN_VERSION=0.9.0
9820 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9822 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9823
9824 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9826 $as_echo "yes" >&6; }
9827 succeeded=yes
9828
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9830 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9831 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9833 $as_echo "$GTK_CFLAGS" >&6; }
9834
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9836 $as_echo_n "checking GTK_LIBS... " >&6; }
9837 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9839 $as_echo "$GTK_LIBS" >&6; }
9840 else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9843 GTK_CFLAGS=""
9844 GTK_LIBS=""
9845 ## If we have a custom action on failure, don't print errors, but
9846 ## do set a variable so people can do so.
9847 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9848
9849 fi
9850
9851
9852
9853 else
9854 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9855 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9856 fi
9857 fi
9858
9859 if test $succeeded = yes; then
9860 pkg_check_gtk=yes
9861 else
9862 pkg_check_gtk=no
9863 fi
9864
9865 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9866 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9867 fi
9868 fi
9869
9870 if test "$pkg_check_gtk" != "yes"; then
9871 HAVE_GTK=no
9872 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9873 GLIB_REQUIRED=2.6
9874 GTK_REQUIRED=2.6
9875 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9876
9877
9878 succeeded=no
9879
9880 # Extract the first word of "pkg-config", so it can be a program name with args.
9881 set dummy pkg-config; ac_word=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 case $PKG_CONFIG in
9888 [\\/]* | ?:[\\/]*)
9889 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9890 ;;
9891 *)
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $PATH
9894 do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9899 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901 break 2
9902 fi
9903 done
9904 done
9905 IFS=$as_save_IFS
9906
9907 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9908 ;;
9909 esac
9910 fi
9911 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9912 if test -n "$PKG_CONFIG"; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9914 $as_echo "$PKG_CONFIG" >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 $as_echo "no" >&6; }
9918 fi
9919
9920
9921
9922 if test "$PKG_CONFIG" = "no" ; then
9923 pkg_check_gtk=no
9924 else
9925 PKG_CONFIG_MIN_VERSION=0.9.0
9926 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9928 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9929
9930 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9932 $as_echo "yes" >&6; }
9933 succeeded=yes
9934
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9936 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9937 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9939 $as_echo "$GTK_CFLAGS" >&6; }
9940
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9942 $as_echo_n "checking GTK_LIBS... " >&6; }
9943 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9945 $as_echo "$GTK_LIBS" >&6; }
9946 else
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9949 GTK_CFLAGS=""
9950 GTK_LIBS=""
9951 ## If we have a custom action on failure, don't print errors, but
9952 ## do set a variable so people can do so.
9953 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9954
9955 fi
9956
9957
9958
9959 else
9960 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9961 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9962 fi
9963 fi
9964
9965 if test $succeeded = yes; then
9966 pkg_check_gtk=yes
9967 else
9968 pkg_check_gtk=no
9969 fi
9970
9971 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9972 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9973 fi
9974 fi
9975 fi
9976
9977 GTK_OBJ=
9978 if test x"$pkg_check_gtk" = xyes; then
9979
9980
9981
9982 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9983 CFLAGS="$CFLAGS $GTK_CFLAGS"
9984 LIBS="$GTK_LIBS $LIBS"
9985 GTK_COMPILES=no
9986 for ac_func in gtk_main
9987 do :
9988 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
9989 if test "x$ac_cv_func_gtk_main" = xyes; then :
9990 cat >>confdefs.h <<_ACEOF
9991 #define HAVE_GTK_MAIN 1
9992 _ACEOF
9993 GTK_COMPILES=yes
9994 fi
9995 done
9996
9997 if test "${GTK_COMPILES}" != "yes"; then
9998 if test "$USE_X_TOOLKIT" != "maybe"; then
9999 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10000 fi
10001 else
10002 HAVE_GTK=yes
10003
10004 $as_echo "#define USE_GTK 1" >>confdefs.h
10005
10006 GTK_OBJ=gtkutil.o
10007 USE_X_TOOLKIT=none
10008 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10009 :
10010 else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10012 closing open displays. This is no problem if you just use
10013 one display, but if you use more than one and close one of them
10014 Emacs may crash." >&5
10015 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10016 closing open displays. This is no problem if you just use
10017 one display, but if you use more than one and close one of them
10018 Emacs may crash." >&2;}
10019 sleep 3
10020 fi
10021 fi
10022
10023 fi
10024
10025
10026
10027 if test "${HAVE_GTK}" = "yes"; then
10028
10029 if test "$with_toolkit_scroll_bars" != no; then
10030 with_toolkit_scroll_bars=yes
10031 fi
10032
10033 HAVE_GTK_FILE_SELECTION=no
10034 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10035 #include <gtk/gtk.h>
10036 "
10037 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10038 HAVE_GTK_FILE_SELECTION=yes
10039 else
10040 HAVE_GTK_FILE_SELECTION=no
10041 fi
10042
10043 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10044 for ac_func in gtk_file_selection_new
10045 do :
10046 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10047 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10048 cat >>confdefs.h <<_ACEOF
10049 #define HAVE_GTK_FILE_SELECTION_NEW 1
10050 _ACEOF
10051
10052 fi
10053 done
10054
10055 fi
10056
10057 HAVE_GTK_AND_PTHREAD=no
10058 for ac_header in pthread.h
10059 do :
10060 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10061 if test "x$ac_cv_header_pthread_h" = xyes; then :
10062 cat >>confdefs.h <<_ACEOF
10063 #define HAVE_PTHREAD_H 1
10064 _ACEOF
10065
10066 fi
10067
10068 done
10069
10070 if test "$ac_cv_header_pthread_h"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10072 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10073 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 ac_check_lib_save_LIBS=$LIBS
10077 LIBS="-lpthread $LIBS"
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char pthread_self ();
10088 int
10089 main ()
10090 {
10091 return pthread_self ();
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 if ac_fn_c_try_link "$LINENO"; then :
10097 ac_cv_lib_pthread_pthread_self=yes
10098 else
10099 ac_cv_lib_pthread_pthread_self=no
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103 LIBS=$ac_check_lib_save_LIBS
10104 fi
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10106 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10107 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10108 HAVE_GTK_AND_PTHREAD=yes
10109 fi
10110
10111 fi
10112 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10113 case "${canonical}" in
10114 *-hpux*) ;;
10115 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10116 esac
10117
10118 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10119
10120 fi
10121
10122 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10123 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10124 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10125 gtk_orientable_set_orientation
10126 do :
10127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10130 cat >>confdefs.h <<_ACEOF
10131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10132 _ACEOF
10133
10134 fi
10135 done
10136
10137
10138 fi
10139
10140 HAVE_DBUS=no
10141 DBUS_OBJ=
10142 if test "${with_dbus}" = "yes"; then
10143
10144 succeeded=no
10145
10146 # Extract the first word of "pkg-config", so it can be a program name with args.
10147 set dummy pkg-config; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 case $PKG_CONFIG in
10154 [\\/]* | ?:[\\/]*)
10155 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10156 ;;
10157 *)
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10160 do
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
10163 for ac_exec_ext in '' $ac_executable_extensions; do
10164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10165 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167 break 2
10168 fi
10169 done
10170 done
10171 IFS=$as_save_IFS
10172
10173 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10174 ;;
10175 esac
10176 fi
10177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10178 if test -n "$PKG_CONFIG"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10180 $as_echo "$PKG_CONFIG" >&6; }
10181 else
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10184 fi
10185
10186
10187
10188 if test "$PKG_CONFIG" = "no" ; then
10189 HAVE_DBUS=no
10190 else
10191 PKG_CONFIG_MIN_VERSION=0.9.0
10192 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10194 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10195
10196 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10198 $as_echo "yes" >&6; }
10199 succeeded=yes
10200
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10202 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10203 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10205 $as_echo "$DBUS_CFLAGS" >&6; }
10206
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10208 $as_echo_n "checking DBUS_LIBS... " >&6; }
10209 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10211 $as_echo "$DBUS_LIBS" >&6; }
10212 else
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10214 $as_echo "no" >&6; }
10215 DBUS_CFLAGS=""
10216 DBUS_LIBS=""
10217 ## If we have a custom action on failure, don't print errors, but
10218 ## do set a variable so people can do so.
10219 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10220
10221 fi
10222
10223
10224
10225 else
10226 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10227 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10228 fi
10229 fi
10230
10231 if test $succeeded = yes; then
10232 HAVE_DBUS=yes
10233 else
10234 HAVE_DBUS=no
10235 fi
10236
10237 if test "$HAVE_DBUS" = yes; then
10238 LIBS="$LIBS $DBUS_LIBS"
10239
10240 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10241
10242 for ac_func in dbus_watch_get_unix_fd
10243 do :
10244 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10245 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10246 cat >>confdefs.h <<_ACEOF
10247 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10248 _ACEOF
10249
10250 fi
10251 done
10252
10253 DBUS_OBJ=dbusbind.o
10254 fi
10255 fi
10256
10257
10258 HAVE_GCONF=no
10259 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10260
10261 succeeded=no
10262
10263 # Extract the first word of "pkg-config", so it can be a program name with args.
10264 set dummy pkg-config; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 case $PKG_CONFIG in
10271 [\\/]* | ?:[\\/]*)
10272 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10273 ;;
10274 *)
10275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276 for as_dir in $PATH
10277 do
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10282 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10285 fi
10286 done
10287 done
10288 IFS=$as_save_IFS
10289
10290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10291 ;;
10292 esac
10293 fi
10294 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10295 if test -n "$PKG_CONFIG"; then
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10297 $as_echo "$PKG_CONFIG" >&6; }
10298 else
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; }
10301 fi
10302
10303
10304
10305 if test "$PKG_CONFIG" = "no" ; then
10306 HAVE_GCONF=no
10307 else
10308 PKG_CONFIG_MIN_VERSION=0.9.0
10309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10311 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10312
10313 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10315 $as_echo "yes" >&6; }
10316 succeeded=yes
10317
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10319 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10320 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10322 $as_echo "$GCONF_CFLAGS" >&6; }
10323
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10325 $as_echo_n "checking GCONF_LIBS... " >&6; }
10326 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10328 $as_echo "$GCONF_LIBS" >&6; }
10329 else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10332 GCONF_CFLAGS=""
10333 GCONF_LIBS=""
10334 ## If we have a custom action on failure, don't print errors, but
10335 ## do set a variable so people can do so.
10336 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10337
10338 fi
10339
10340
10341
10342 else
10343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10345 fi
10346 fi
10347
10348 if test $succeeded = yes; then
10349 HAVE_GCONF=yes
10350 else
10351 HAVE_GCONF=no
10352 fi
10353
10354 if test "$HAVE_GCONF" = yes; then
10355
10356 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10357
10358 for ac_func in g_type_init
10359 do :
10360 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10361 if test "x$ac_cv_func_g_type_init" = xyes; then :
10362 cat >>confdefs.h <<_ACEOF
10363 #define HAVE_G_TYPE_INIT 1
10364 _ACEOF
10365
10366 fi
10367 done
10368
10369 fi
10370 fi
10371
10372 HAVE_LIBSELINUX=no
10373 LIBSELINUX_LIBS=
10374 if test "${with_selinux}" = "yes"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10376 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10377 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-lselinux $LIBS"
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10388 #ifdef __cplusplus
10389 extern "C"
10390 #endif
10391 char lgetfilecon ();
10392 int
10393 main ()
10394 {
10395 return lgetfilecon ();
10396 ;
10397 return 0;
10398 }
10399 _ACEOF
10400 if ac_fn_c_try_link "$LINENO"; then :
10401 ac_cv_lib_selinux_lgetfilecon=yes
10402 else
10403 ac_cv_lib_selinux_lgetfilecon=no
10404 fi
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 LIBS=$ac_check_lib_save_LIBS
10408 fi
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10410 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10411 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10412 HAVE_LIBSELINUX=yes
10413 else
10414 HAVE_LIBSELINUX=no
10415 fi
10416
10417 if test "$HAVE_LIBSELINUX" = yes; then
10418
10419 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10420
10421 LIBSELINUX_LIBS=-lselinux
10422 fi
10423 fi
10424
10425
10426 HAVE_GNUTLS=no
10427 if test "${with_gnutls}" = "yes" ; then
10428
10429 succeeded=no
10430
10431 # Extract the first word of "pkg-config", so it can be a program name with args.
10432 set dummy pkg-config; ac_word=$2
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 case $PKG_CONFIG in
10439 [\\/]* | ?:[\\/]*)
10440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10441 ;;
10442 *)
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10445 do
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10453 fi
10454 done
10455 done
10456 IFS=$as_save_IFS
10457
10458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10459 ;;
10460 esac
10461 fi
10462 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10463 if test -n "$PKG_CONFIG"; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10465 $as_echo "$PKG_CONFIG" >&6; }
10466 else
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10469 fi
10470
10471
10472
10473 if test "$PKG_CONFIG" = "no" ; then
10474 HAVE_GNUTLS=no
10475 else
10476 PKG_CONFIG_MIN_VERSION=0.9.0
10477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10479 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10480
10481 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10483 $as_echo "yes" >&6; }
10484 succeeded=yes
10485
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10487 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10488 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10490 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10491
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10493 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10494 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10496 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10497 else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; }
10500 LIBGNUTLS_CFLAGS=""
10501 LIBGNUTLS_LIBS=""
10502 ## If we have a custom action on failure, don't print errors, but
10503 ## do set a variable so people can do so.
10504 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10505
10506 fi
10507
10508
10509
10510 else
10511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10513 fi
10514 fi
10515
10516 if test $succeeded = yes; then
10517 HAVE_GNUTLS=yes
10518 else
10519 HAVE_GNUTLS=no
10520 fi
10521
10522 if test "${HAVE_GNUTLS}" = "yes"; then
10523
10524 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10525
10526 fi
10527 fi
10528
10529
10530
10531 HAVE_XAW3D=no
10532 LUCID_LIBW=
10533 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10534 if test "$with_xaw3d" != no; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10536 $as_echo_n "checking for xaw3d... " >&6; }
10537 if ${emacs_cv_xaw3d+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542
10543 #include <X11/Intrinsic.h>
10544 #include <X11/Xaw3d/Simple.h>
10545 int
10546 main ()
10547 {
10548
10549 ;
10550 return 0;
10551 }
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"; then :
10554 emacs_cv_xaw3d=yes
10555 else
10556 emacs_cv_xaw3d=no
10557 fi
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 fi
10561
10562 else
10563 emacs_cv_xaw3d=no
10564 fi
10565 if test $emacs_cv_xaw3d = yes; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10567 $as_echo "yes; using Lucid toolkit" >&6; }
10568 USE_X_TOOLKIT=LUCID
10569 HAVE_XAW3D=yes
10570 LUCID_LIBW=-lXaw3d
10571
10572 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10573
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10578 $as_echo_n "checking for libXaw... " >&6; }
10579 if ${emacs_cv_xaw+:} false; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h. */
10584
10585 #include <X11/Intrinsic.h>
10586 #include <X11/Xaw/Simple.h>
10587 int
10588 main ()
10589 {
10590
10591 ;
10592 return 0;
10593 }
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596 emacs_cv_xaw=yes
10597 else
10598 emacs_cv_xaw=no
10599 fi
10600 rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 fi
10603
10604 if test $emacs_cv_xaw = yes; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10606 $as_echo "yes; using Lucid toolkit" >&6; }
10607 USE_X_TOOLKIT=LUCID
10608 LUCID_LIBW=-lXaw
10609 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10610 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10613 $as_echo "no; do not use toolkit by default" >&6; }
10614 USE_X_TOOLKIT=none
10615 fi
10616 fi
10617 fi
10618
10619 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10620
10621 LIBXTR6=
10622 if test "${USE_X_TOOLKIT}" != "none"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10624 $as_echo_n "checking X11 toolkit version... " >&6; }
10625 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630 #include <X11/Intrinsic.h>
10631 int
10632 main ()
10633 {
10634 #if XtSpecificationRelease < 6
10635 fail;
10636 #endif
10637
10638 ;
10639 return 0;
10640 }
10641 _ACEOF
10642 if ac_fn_c_try_link "$LINENO"; then :
10643 emacs_cv_x11_toolkit_version_6=yes
10644 else
10645 emacs_cv_x11_toolkit_version_6=no
10646 fi
10647 rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 fi
10650
10651 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10652 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10654 $as_echo "6 or newer" >&6; }
10655
10656 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10657
10658 LIBXTR6="-lSM -lICE"
10659 case "$opsys" in
10660 ## Use libw.a along with X11R6 Xt.
10661 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10662 esac
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10665 $as_echo "before 6" >&6; }
10666 fi
10667
10668 OLDLIBS="$LIBS"
10669 if test x$HAVE_X11XTR6 = xyes; then
10670 LIBS="-lXt -lSM -lICE $LIBS"
10671 else
10672 LIBS="-lXt $LIBS"
10673 fi
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10675 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10676 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 ac_check_lib_save_LIBS=$LIBS
10680 LIBS="-lXmu $LIBS"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683
10684 /* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
10687 #ifdef __cplusplus
10688 extern "C"
10689 #endif
10690 char XmuConvertStandardSelection ();
10691 int
10692 main ()
10693 {
10694 return XmuConvertStandardSelection ();
10695 ;
10696 return 0;
10697 }
10698 _ACEOF
10699 if ac_fn_c_try_link "$LINENO"; then :
10700 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10701 else
10702 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10709 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10710 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
10711 cat >>confdefs.h <<_ACEOF
10712 #define HAVE_LIBXMU 1
10713 _ACEOF
10714
10715 LIBS="-lXmu $LIBS"
10716
10717 fi
10718
10719 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10720 fi
10721
10722
10723 LIBXMU=-lXmu
10724 case $opsys in
10725 ## These systems don't supply Xmu.
10726 hpux* | aix4-2 )
10727 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10728 ;;
10729 esac
10730
10731
10732 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10733 if test "${HAVE_X11}" = "yes"; then
10734 if test "${USE_X_TOOLKIT}" != "none"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10736 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10737 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 ac_check_lib_save_LIBS=$LIBS
10741 LIBS="-lXext $LIBS"
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744
10745 /* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
10748 #ifdef __cplusplus
10749 extern "C"
10750 #endif
10751 char XShapeQueryExtension ();
10752 int
10753 main ()
10754 {
10755 return XShapeQueryExtension ();
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 if ac_fn_c_try_link "$LINENO"; then :
10761 ac_cv_lib_Xext_XShapeQueryExtension=yes
10762 else
10763 ac_cv_lib_Xext_XShapeQueryExtension=no
10764 fi
10765 rm -f core conftest.err conftest.$ac_objext \
10766 conftest$ac_exeext conftest.$ac_ext
10767 LIBS=$ac_check_lib_save_LIBS
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10770 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10771 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10772 cat >>confdefs.h <<_ACEOF
10773 #define HAVE_LIBXEXT 1
10774 _ACEOF
10775
10776 LIBS="-lXext $LIBS"
10777
10778 fi
10779
10780 fi
10781 fi
10782
10783 LIBXP=
10784 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10786 $as_echo_n "checking for Motif version 2.1... " >&6; }
10787 if ${emacs_cv_motif_version_2_1+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792 #include <Xm/Xm.h>
10793 int
10794 main ()
10795 {
10796 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10797 int x = 5;
10798 #else
10799 Motif version prior to 2.1.
10800 #endif
10801 ;
10802 return 0;
10803 }
10804 _ACEOF
10805 if ac_fn_c_try_compile "$LINENO"; then :
10806 emacs_cv_motif_version_2_1=yes
10807 else
10808 emacs_cv_motif_version_2_1=no
10809 fi
10810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811 fi
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10813 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10814 if test $emacs_cv_motif_version_2_1 = yes; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10816 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10817 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-lXp $LIBS"
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 char XpCreateContext ();
10832 int
10833 main ()
10834 {
10835 return XpCreateContext ();
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841 ac_cv_lib_Xp_XpCreateContext=yes
10842 else
10843 ac_cv_lib_Xp_XpCreateContext=no
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10848 fi
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10850 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10851 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
10852 LIBXP=-lXp
10853 fi
10854
10855 else
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10857 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10858 if ${emacs_cv_lesstif+:} false; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 # We put this in CFLAGS temporarily to precede other -I options
10862 # that might be in CFLAGS temporarily.
10863 # We put this in CPPFLAGS where it precedes the other -I options.
10864 OLD_CPPFLAGS=$CPPFLAGS
10865 OLD_CFLAGS=$CFLAGS
10866 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10867 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10871 int
10872 main ()
10873 {
10874 int x = 5;
10875 ;
10876 return 0;
10877 }
10878 _ACEOF
10879 if ac_fn_c_try_compile "$LINENO"; then :
10880 emacs_cv_lesstif=yes
10881 else
10882 emacs_cv_lesstif=no
10883 fi
10884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10885 fi
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10887 $as_echo "$emacs_cv_lesstif" >&6; }
10888 if test $emacs_cv_lesstif = yes; then
10889 # Make sure this -I option remains in CPPFLAGS after it is set
10890 # back to REAL_CPPFLAGS.
10891 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10892 # have those other -I options anyway. Ultimately, having this
10893 # directory ultimately in CPPFLAGS will be enough.
10894 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10895 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10896 else
10897 CFLAGS=$OLD_CFLAGS
10898 CPPFLAGS=$OLD_CPPFLAGS
10899 fi
10900 fi
10901 fi
10902
10903
10904 USE_TOOLKIT_SCROLL_BARS=no
10905 if test "${with_toolkit_scroll_bars}" != "no"; then
10906 if test "${USE_X_TOOLKIT}" != "none"; then
10907 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10908 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10909
10910 HAVE_XAW3D=no
10911 USE_TOOLKIT_SCROLL_BARS=yes
10912 elif test "${HAVE_XAW3D}" = "yes"; then
10913 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10914
10915 USE_TOOLKIT_SCROLL_BARS=yes
10916 fi
10917 elif test "${HAVE_GTK}" = "yes"; then
10918 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10919
10920 USE_TOOLKIT_SCROLL_BARS=yes
10921 elif test "${HAVE_NS}" = "yes"; then
10922 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10923
10924 USE_TOOLKIT_SCROLL_BARS=yes
10925 fi
10926 fi
10927
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10930
10931 #include <X11/Xlib.h>
10932 #include <X11/Xresource.h>
10933 int
10934 main ()
10935 {
10936 XIMProc callback;
10937 ;
10938 return 0;
10939 }
10940 _ACEOF
10941 if ac_fn_c_try_compile "$LINENO"; then :
10942 HAVE_XIM=yes
10943
10944 $as_echo "#define HAVE_XIM 1" >>confdefs.h
10945
10946 else
10947 HAVE_XIM=no
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950
10951
10952 if test "${with_xim}" != "no"; then
10953
10954 $as_echo "#define USE_XIM 1" >>confdefs.h
10955
10956 fi
10957
10958
10959 if test "${HAVE_XIM}" != "no"; then
10960 late_CFLAGS=$CFLAGS
10961 if test "$GCC" = yes; then
10962 CFLAGS="$CFLAGS --pedantic-errors"
10963 fi
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10966
10967 #include <X11/Xlib.h>
10968 #include <X11/Xresource.h>
10969 int
10970 main ()
10971 {
10972 Display *display;
10973 XrmDatabase db;
10974 char *res_name;
10975 char *res_class;
10976 XIMProc callback;
10977 XPointer *client_data;
10978 #ifndef __GNUC__
10979 /* If we're not using GCC, it's probably not XFree86, and this is
10980 probably right, but we can't use something like --pedantic-errors. */
10981 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10982 char*, XIMProc, XPointer*);
10983 #endif
10984 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10985 client_data);
10986 ;
10987 return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_compile "$LINENO"; then :
10991 emacs_cv_arg6_star=yes
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 if test "$emacs_cv_arg6_star" = yes; then
10995 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
10996
10997 else
10998 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
10999
11000 fi
11001 CFLAGS=$late_CFLAGS
11002 fi
11003
11004 ### Start of font-backend (under any platform) section.
11005 # (nothing here yet -- this is a placeholder)
11006 ### End of font-backend (under any platform) section.
11007
11008 ### Start of font-backend (under X11) section.
11009 if test "${HAVE_X11}" = "yes"; then
11010
11011 succeeded=no
11012
11013 # Extract the first word of "pkg-config", so it can be a program name with args.
11014 set dummy pkg-config; ac_word=$2
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 case $PKG_CONFIG in
11021 [\\/]* | ?:[\\/]*)
11022 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11023 ;;
11024 *)
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11027 do
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11032 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11035 fi
11036 done
11037 done
11038 IFS=$as_save_IFS
11039
11040 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11041 ;;
11042 esac
11043 fi
11044 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11045 if test -n "$PKG_CONFIG"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11047 $as_echo "$PKG_CONFIG" >&6; }
11048 else
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050 $as_echo "no" >&6; }
11051 fi
11052
11053
11054
11055 if test "$PKG_CONFIG" = "no" ; then
11056 HAVE_FC=no
11057 else
11058 PKG_CONFIG_MIN_VERSION=0.9.0
11059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11061 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11062
11063 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11065 $as_echo "yes" >&6; }
11066 succeeded=yes
11067
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11069 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11070 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11072 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11075 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11076 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11078 $as_echo "$FONTCONFIG_LIBS" >&6; }
11079 else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11082 FONTCONFIG_CFLAGS=""
11083 FONTCONFIG_LIBS=""
11084 ## If we have a custom action on failure, don't print errors, but
11085 ## do set a variable so people can do so.
11086 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11087
11088 fi
11089
11090
11091
11092 else
11093 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11094 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11095 fi
11096 fi
11097
11098 if test $succeeded = yes; then
11099 HAVE_FC=yes
11100 else
11101 HAVE_FC=no
11102 fi
11103
11104
11105 ## Use -lXft if available, unless `--with-xft=no'.
11106 HAVE_XFT=maybe
11107 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11108 with_xft="no";
11109 fi
11110 if test "x${with_xft}" != "xno"; then
11111
11112
11113 succeeded=no
11114
11115 # Extract the first word of "pkg-config", so it can be a program name with args.
11116 set dummy pkg-config; ac_word=$2
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118 $as_echo_n "checking for $ac_word... " >&6; }
11119 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 case $PKG_CONFIG in
11123 [\\/]* | ?:[\\/]*)
11124 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11125 ;;
11126 *)
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11129 do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11137 fi
11138 done
11139 done
11140 IFS=$as_save_IFS
11141
11142 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11143 ;;
11144 esac
11145 fi
11146 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11147 if test -n "$PKG_CONFIG"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11149 $as_echo "$PKG_CONFIG" >&6; }
11150 else
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11153 fi
11154
11155
11156
11157 if test "$PKG_CONFIG" = "no" ; then
11158 HAVE_XFT=no
11159 else
11160 PKG_CONFIG_MIN_VERSION=0.9.0
11161 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11163 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11164
11165 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; }
11168 succeeded=yes
11169
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11171 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11172 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11174 $as_echo "$XFT_CFLAGS" >&6; }
11175
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11177 $as_echo_n "checking XFT_LIBS... " >&6; }
11178 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11180 $as_echo "$XFT_LIBS" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11184 XFT_CFLAGS=""
11185 XFT_LIBS=""
11186 ## If we have a custom action on failure, don't print errors, but
11187 ## do set a variable so people can do so.
11188 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11189
11190 fi
11191
11192
11193
11194 else
11195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11197 fi
11198 fi
11199
11200 if test $succeeded = yes; then
11201 :
11202 else
11203 HAVE_XFT=no
11204 fi
11205
11206 ## Because xftfont.c uses XRenderQueryExtension, we also
11207 ## need to link to -lXrender.
11208 HAVE_XRENDER=no
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11210 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11211 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-lXrender $LIBS"
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218
11219 /* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11222 #ifdef __cplusplus
11223 extern "C"
11224 #endif
11225 char XRenderQueryExtension ();
11226 int
11227 main ()
11228 {
11229 return XRenderQueryExtension ();
11230 ;
11231 return 0;
11232 }
11233 _ACEOF
11234 if ac_fn_c_try_link "$LINENO"; then :
11235 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11236 else
11237 ac_cv_lib_Xrender_XRenderQueryExtension=no
11238 fi
11239 rm -f core conftest.err conftest.$ac_objext \
11240 conftest$ac_exeext conftest.$ac_ext
11241 LIBS=$ac_check_lib_save_LIBS
11242 fi
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11244 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11245 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11246 HAVE_XRENDER=yes
11247 fi
11248
11249 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11250 OLD_CPPFLAGS="$CPPFLAGS"
11251 OLD_CFLAGS="$CFLAGS"
11252 OLD_LIBS="$LIBS"
11253 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11254 CFLAGS="$CFLAGS $XFT_CFLAGS"
11255 XFT_LIBS="-lXrender $XFT_LIBS"
11256 LIBS="$XFT_LIBS $LIBS"
11257 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11258 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11260 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11261 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 ac_check_lib_save_LIBS=$LIBS
11265 LIBS="-lXft $XFT_LIBS $LIBS"
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char XftFontOpen ();
11276 int
11277 main ()
11278 {
11279 return XftFontOpen ();
11280 ;
11281 return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285 ac_cv_lib_Xft_XftFontOpen=yes
11286 else
11287 ac_cv_lib_Xft_XftFontOpen=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11294 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11295 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11296 HAVE_XFT=yes
11297 fi
11298
11299 fi
11300
11301
11302
11303 if test "${HAVE_XFT}" = "yes"; then
11304
11305 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11306
11307
11308 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11309 else
11310 CPPFLAGS="$OLD_CPPFLAGS"
11311 CFLAGS="$OLD_CFLAGS"
11312 LIBS="$OLD_LIBS"
11313 fi # "${HAVE_XFT}" = "yes"
11314 fi # "$HAVE_XFT" != no
11315 fi # "x${with_xft}" != "xno"
11316
11317 if test "$HAVE_XFT" != "yes"; then
11318 HAVE_XFT=no
11319 fi
11320
11321
11322 HAVE_FREETYPE=no
11323 ## We used to allow building with FreeType and without Xft.
11324 ## However, the ftx font backend driver is not in good shape.
11325 if test "${HAVE_XFT}" = "yes"; then
11326 HAVE_FREETYPE=yes
11327 FONTCONFIG_CFLAGS=
11328 FONTCONFIG_LIBS=
11329 fi
11330
11331 HAVE_LIBOTF=no
11332 if test "${HAVE_FREETYPE}" = "yes"; then
11333
11334 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11335
11336 if test "${with_libotf}" != "no"; then
11337
11338 succeeded=no
11339
11340 # Extract the first word of "pkg-config", so it can be a program name with args.
11341 set dummy pkg-config; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 case $PKG_CONFIG in
11348 [\\/]* | ?:[\\/]*)
11349 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11350 ;;
11351 *)
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11359 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363 done
11364 done
11365 IFS=$as_save_IFS
11366
11367 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11368 ;;
11369 esac
11370 fi
11371 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11372 if test -n "$PKG_CONFIG"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11374 $as_echo "$PKG_CONFIG" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11378 fi
11379
11380
11381
11382 if test "$PKG_CONFIG" = "no" ; then
11383 HAVE_LIBOTF=no
11384 else
11385 PKG_CONFIG_MIN_VERSION=0.9.0
11386 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11388 $as_echo_n "checking for libotf... " >&6; }
11389
11390 if $PKG_CONFIG --exists "libotf" 2>&5; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392 $as_echo "yes" >&6; }
11393 succeeded=yes
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11396 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11397 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11399 $as_echo "$LIBOTF_CFLAGS" >&6; }
11400
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11402 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11403 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11405 $as_echo "$LIBOTF_LIBS" >&6; }
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11409 LIBOTF_CFLAGS=""
11410 LIBOTF_LIBS=""
11411 ## If we have a custom action on failure, don't print errors, but
11412 ## do set a variable so people can do so.
11413 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11414
11415 fi
11416
11417
11418
11419 else
11420 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11421 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11422 fi
11423 fi
11424
11425 if test $succeeded = yes; then
11426 HAVE_LIBOTF=yes
11427 else
11428 HAVE_LIBOTF=no
11429 fi
11430
11431 if test "$HAVE_LIBOTF" = "yes"; then
11432
11433 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11434
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11436 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11437 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 ac_check_lib_save_LIBS=$LIBS
11441 LIBS="-lotf $LIBS"
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444
11445 /* Override any GCC internal prototype to avoid an error.
11446 Use char because int might match the return type of a GCC
11447 builtin and then its argument prototype would still apply. */
11448 #ifdef __cplusplus
11449 extern "C"
11450 #endif
11451 char OTF_get_variation_glyphs ();
11452 int
11453 main ()
11454 {
11455 return OTF_get_variation_glyphs ();
11456 ;
11457 return 0;
11458 }
11459 _ACEOF
11460 if ac_fn_c_try_link "$LINENO"; then :
11461 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11462 else
11463 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11464 fi
11465 rm -f core conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11467 LIBS=$ac_check_lib_save_LIBS
11468 fi
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11470 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11471 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11472 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11473 else
11474 HAVE_OTF_GET_VARIATION_GLYPHS=no
11475 fi
11476
11477 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11478
11479 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11480
11481 fi
11482 fi
11483 fi
11484 fi
11485
11486 HAVE_M17N_FLT=no
11487 if test "${HAVE_LIBOTF}" = yes; then
11488 if test "${with_m17n_flt}" != "no"; then
11489
11490 succeeded=no
11491
11492 # Extract the first word of "pkg-config", so it can be a program name with args.
11493 set dummy pkg-config; ac_word=$2
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495 $as_echo_n "checking for $ac_word... " >&6; }
11496 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 case $PKG_CONFIG in
11500 [\\/]* | ?:[\\/]*)
11501 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11502 ;;
11503 *)
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11506 do
11507 IFS=$as_save_IFS
11508 test -z "$as_dir" && as_dir=.
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11511 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11513 break 2
11514 fi
11515 done
11516 done
11517 IFS=$as_save_IFS
11518
11519 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11520 ;;
11521 esac
11522 fi
11523 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11524 if test -n "$PKG_CONFIG"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11526 $as_echo "$PKG_CONFIG" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 fi
11531
11532
11533
11534 if test "$PKG_CONFIG" = "no" ; then
11535 HAVE_M17N_FLT=no
11536 else
11537 PKG_CONFIG_MIN_VERSION=0.9.0
11538 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11540 $as_echo_n "checking for m17n-flt... " >&6; }
11541
11542 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11544 $as_echo "yes" >&6; }
11545 succeeded=yes
11546
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11548 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11549 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11551 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11552
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11554 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11555 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11557 $as_echo "$M17N_FLT_LIBS" >&6; }
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; }
11561 M17N_FLT_CFLAGS=""
11562 M17N_FLT_LIBS=""
11563 ## If we have a custom action on failure, don't print errors, but
11564 ## do set a variable so people can do so.
11565 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11566
11567 fi
11568
11569
11570
11571 else
11572 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11573 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11574 fi
11575 fi
11576
11577 if test $succeeded = yes; then
11578 HAVE_M17N_FLT=yes
11579 else
11580 HAVE_M17N_FLT=no
11581 fi
11582
11583 if test "$HAVE_M17N_FLT" = "yes"; then
11584
11585 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11586
11587 fi
11588 fi
11589 fi
11590 else
11591 HAVE_XFT=no
11592 HAVE_FREETYPE=no
11593 HAVE_LIBOTF=no
11594 HAVE_M17N_FLT=no
11595 fi
11596
11597 ### End of font-backend (under X11) section.
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608 ### Use -lXpm if available, unless `--with-xpm=no'.
11609 HAVE_XPM=no
11610 LIBXPM=
11611 if test "${HAVE_X11}" = "yes"; then
11612 if test "${with_xpm}" != "no"; then
11613 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11614 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11616 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11617 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-lXpm -lX11 $LIBS"
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char XpmReadFileToPixmap ();
11632 int
11633 main ()
11634 {
11635 return XpmReadFileToPixmap ();
11636 ;
11637 return 0;
11638 }
11639 _ACEOF
11640 if ac_fn_c_try_link "$LINENO"; then :
11641 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11642 else
11643 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11644 fi
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_lib_save_LIBS
11648 fi
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11650 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11651 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11652 HAVE_XPM=yes
11653 fi
11654
11655 fi
11656
11657
11658 if test "${HAVE_XPM}" = "yes"; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11660 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11663 #include "X11/xpm.h"
11664 #ifndef XpmReturnAllocPixels
11665 no_return_alloc_pixels
11666 #endif
11667
11668 _ACEOF
11669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11670 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11671 HAVE_XPM=no
11672 else
11673 HAVE_XPM=yes
11674 fi
11675 rm -f conftest*
11676
11677
11678 if test "${HAVE_XPM}" = "yes"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11680 $as_echo "yes" >&6; }
11681 else
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11684 fi
11685 fi
11686 fi
11687
11688 if test "${HAVE_XPM}" = "yes"; then
11689
11690 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11691
11692 LIBXPM=-lXpm
11693 fi
11694 fi
11695
11696
11697 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11698 HAVE_JPEG=no
11699 LIBJPEG=
11700 if test "${HAVE_X11}" = "yes"; then
11701 if test "${with_jpeg}" != "no"; then
11702 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11703 if test "x$ac_cv_header_jerror_h" = xyes; then :
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11705 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11706 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 ac_check_lib_save_LIBS=$LIBS
11710 LIBS="-ljpeg $LIBS"
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713
11714 /* Override any GCC internal prototype to avoid an error.
11715 Use char because int might match the return type of a GCC
11716 builtin and then its argument prototype would still apply. */
11717 #ifdef __cplusplus
11718 extern "C"
11719 #endif
11720 char jpeg_destroy_compress ();
11721 int
11722 main ()
11723 {
11724 return jpeg_destroy_compress ();
11725 ;
11726 return 0;
11727 }
11728 _ACEOF
11729 if ac_fn_c_try_link "$LINENO"; then :
11730 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11731 else
11732 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11733 fi
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 LIBS=$ac_check_lib_save_LIBS
11737 fi
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11739 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11740 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
11741 HAVE_JPEG=yes
11742 fi
11743
11744 fi
11745
11746
11747 fi
11748
11749 if test "${HAVE_JPEG}" = "yes"; then
11750 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11751
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754 #include <jpeglib.h>
11755 version=JPEG_LIB_VERSION
11756
11757 _ACEOF
11758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11759 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11760 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11761
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11764 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11765 HAVE_JPEG=no
11766 fi
11767 rm -f conftest*
11768
11769 fi
11770 if test "${HAVE_JPEG}" = "yes"; then
11771 LIBJPEG=-ljpeg
11772 fi
11773 fi
11774
11775
11776 ### Use -lpng if available, unless `--with-png=no'.
11777 HAVE_PNG=no
11778 LIBPNG=
11779 if test "${HAVE_X11}" = "yes"; then
11780 if test "${with_png}" != "no"; then
11781 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11782 # in /usr/include/libpng.
11783 for ac_header in png.h libpng/png.h
11784 do :
11785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11786 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11787 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11788 cat >>confdefs.h <<_ACEOF
11789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11790 _ACEOF
11791
11792 fi
11793
11794 done
11795
11796 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11798 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11799 if ${ac_cv_lib_png_png_get_channels+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-lpng -lz -lm $LIBS"
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 char png_get_channels ();
11814 int
11815 main ()
11816 {
11817 return png_get_channels ();
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_link "$LINENO"; then :
11823 ac_cv_lib_png_png_get_channels=yes
11824 else
11825 ac_cv_lib_png_png_get_channels=no
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11832 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11833 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
11834 HAVE_PNG=yes
11835 fi
11836
11837 fi
11838 fi
11839
11840 if test "${HAVE_PNG}" = "yes"; then
11841
11842 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11843
11844 LIBPNG="-lpng -lz -lm"
11845 fi
11846 fi
11847
11848
11849 ### Use -ltiff if available, unless `--with-tiff=no'.
11850 HAVE_TIFF=no
11851 LIBTIFF=
11852 if test "${HAVE_X11}" = "yes"; then
11853 if test "${with_tiff}" != "no"; then
11854 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11855 if test "x$ac_cv_header_tiffio_h" = xyes; then :
11856 tifflibs="-lz -lm"
11857 # At least one tiff package requires the jpeg library.
11858 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11860 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11861 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-ltiff $tifflibs $LIBS"
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868
11869 /* Override any GCC internal prototype to avoid an error.
11870 Use char because int might match the return type of a GCC
11871 builtin and then its argument prototype would still apply. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char TIFFGetVersion ();
11876 int
11877 main ()
11878 {
11879 return TIFFGetVersion ();
11880 ;
11881 return 0;
11882 }
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"; then :
11885 ac_cv_lib_tiff_TIFFGetVersion=yes
11886 else
11887 ac_cv_lib_tiff_TIFFGetVersion=no
11888 fi
11889 rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11891 LIBS=$ac_check_lib_save_LIBS
11892 fi
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11894 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11895 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
11896 HAVE_TIFF=yes
11897 fi
11898
11899 fi
11900
11901
11902 fi
11903
11904 if test "${HAVE_TIFF}" = "yes"; then
11905
11906 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11907
11908 LIBTIFF=-ltiff
11909 fi
11910 fi
11911
11912
11913 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11914 HAVE_GIF=no
11915 LIBGIF=
11916 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11917 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11918 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
11919 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11920 # Earlier versions can crash Emacs.
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11922 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11923 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-lgif $LIBS"
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char EGifPutExtensionLast ();
11938 int
11939 main ()
11940 {
11941 return EGifPutExtensionLast ();
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 if ac_fn_c_try_link "$LINENO"; then :
11947 ac_cv_lib_gif_EGifPutExtensionLast=yes
11948 else
11949 ac_cv_lib_gif_EGifPutExtensionLast=no
11950 fi
11951 rm -f core conftest.err conftest.$ac_objext \
11952 conftest$ac_exeext conftest.$ac_ext
11953 LIBS=$ac_check_lib_save_LIBS
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11956 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
11957 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
11958 HAVE_GIF=yes
11959 else
11960 HAVE_GIF=maybe
11961 fi
11962
11963 fi
11964
11965
11966
11967 if test "$HAVE_GIF" = yes; then
11968 LIBGIF=-lgif
11969 elif test "$HAVE_GIF" = maybe; then
11970 # If gif_lib.h but no libgif, try libungif.
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
11972 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
11973 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 ac_check_lib_save_LIBS=$LIBS
11977 LIBS="-lungif $LIBS"
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980
11981 /* Override any GCC internal prototype to avoid an error.
11982 Use char because int might match the return type of a GCC
11983 builtin and then its argument prototype would still apply. */
11984 #ifdef __cplusplus
11985 extern "C"
11986 #endif
11987 char EGifPutExtensionLast ();
11988 int
11989 main ()
11990 {
11991 return EGifPutExtensionLast ();
11992 ;
11993 return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11998 else
11999 ac_cv_lib_ungif_EGifPutExtensionLast=no
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12006 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12007 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12008 HAVE_GIF=yes
12009 else
12010 HAVE_GIF=no
12011 fi
12012
12013 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12014 fi
12015
12016 if test "${HAVE_GIF}" = "yes"; then
12017
12018 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12019
12020 fi
12021 fi
12022
12023
12024 if test "${HAVE_X11}" = "yes"; then
12025 MISSING=""
12026 WITH_NO=""
12027 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12028 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12029 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12030 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12031 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12032 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12033 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12034 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12035 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12036 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12037
12038 if test "X${MISSING}" != X; then
12039 as_fn_error $? "The following required libraries were not found:
12040 $MISSING
12041 Maybe some development libraries/packages are missing?
12042 If you don't want to link with them give
12043 $WITH_NO
12044 as options to configure" "$LINENO" 5
12045 fi
12046 fi
12047
12048 ### Use -lgpm if available, unless `--with-gpm=no'.
12049 HAVE_GPM=no
12050 LIBGPM=
12051 MOUSE_SUPPORT=
12052 if test "${with_gpm}" != "no"; then
12053 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12054 if test "x$ac_cv_header_gpm_h" = xyes; then :
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12056 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12057 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 ac_check_lib_save_LIBS=$LIBS
12061 LIBS="-lgpm $LIBS"
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12064
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12068 #ifdef __cplusplus
12069 extern "C"
12070 #endif
12071 char Gpm_Open ();
12072 int
12073 main ()
12074 {
12075 return Gpm_Open ();
12076 ;
12077 return 0;
12078 }
12079 _ACEOF
12080 if ac_fn_c_try_link "$LINENO"; then :
12081 ac_cv_lib_gpm_Gpm_Open=yes
12082 else
12083 ac_cv_lib_gpm_Gpm_Open=no
12084 fi
12085 rm -f core conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
12088 fi
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12090 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12091 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12092 HAVE_GPM=yes
12093 fi
12094
12095 fi
12096
12097
12098
12099 if test "${HAVE_GPM}" = "yes"; then
12100
12101 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12102
12103 LIBGPM=-lgpm
12104 ## May be reset below.
12105 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12106 fi
12107 fi
12108
12109
12110 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12111 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12112
12113 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12114
12115 fi
12116
12117
12118
12119 C_SWITCH_X_SYSTEM=
12120 ### Use NeXTstep API to implement GUI.
12121 if test "${HAVE_NS}" = "yes"; then
12122
12123 $as_echo "#define HAVE_NS 1" >>confdefs.h
12124
12125 if test "${NS_IMPL_COCOA}" = "yes"; then
12126
12127 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12128
12129 GNU_OBJC_CFLAGS=
12130 fi
12131 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12132
12133 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12134
12135 # See also .m.o rule in Makefile.in */
12136 # FIXME: are all these flags really needed? Document here why. */
12137 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12138 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12139 fi
12140 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12141
12142 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12143
12144 fi
12145 # We also have mouse menus.
12146 HAVE_MENUS=yes
12147 OTHER_FILES=ns-app
12148 fi
12149
12150
12151 ### Use session management (-lSM -lICE) if available
12152 HAVE_X_SM=no
12153 LIBXSM=
12154 if test "${HAVE_X11}" = "yes"; then
12155 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12156 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12158 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12159 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-lSM -lICE $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char SmcOpenConnection ();
12174 int
12175 main ()
12176 {
12177 return SmcOpenConnection ();
12178 ;
12179 return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"; then :
12183 ac_cv_lib_SM_SmcOpenConnection=yes
12184 else
12185 ac_cv_lib_SM_SmcOpenConnection=no
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12192 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12193 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12194 HAVE_X_SM=yes
12195 fi
12196
12197 fi
12198
12199
12200
12201 if test "${HAVE_X_SM}" = "yes"; then
12202
12203 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12204
12205 LIBXSM="-lSM -lICE"
12206 case "$LIBS" in
12207 *-lSM*) ;;
12208 *) LIBS="$LIBXSM $LIBS" ;;
12209 esac
12210 fi
12211 fi
12212
12213
12214 ### Use libxml (-lxml2) if available
12215 if test "${with_xml2}" != "no"; then
12216 ### I'm not sure what the version number should be, so I just guessed.
12217
12218 succeeded=no
12219
12220 # Extract the first word of "pkg-config", so it can be a program name with args.
12221 set dummy pkg-config; ac_word=$2
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 case $PKG_CONFIG in
12228 [\\/]* | ?:[\\/]*)
12229 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12230 ;;
12231 *)
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12234 do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243 done
12244 done
12245 IFS=$as_save_IFS
12246
12247 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12248 ;;
12249 esac
12250 fi
12251 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12252 if test -n "$PKG_CONFIG"; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12254 $as_echo "$PKG_CONFIG" >&6; }
12255 else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12258 fi
12259
12260
12261
12262 if test "$PKG_CONFIG" = "no" ; then
12263 HAVE_LIBXML2=no
12264 else
12265 PKG_CONFIG_MIN_VERSION=0.9.0
12266 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
12268 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
12269
12270 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272 $as_echo "yes" >&6; }
12273 succeeded=yes
12274
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12276 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12277 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12279 $as_echo "$LIBXML2_CFLAGS" >&6; }
12280
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12282 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12283 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12285 $as_echo "$LIBXML2_LIBS" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 LIBXML2_CFLAGS=""
12290 LIBXML2_LIBS=""
12291 ## If we have a custom action on failure, don't print errors, but
12292 ## do set a variable so people can do so.
12293 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
12294
12295 fi
12296
12297
12298
12299 else
12300 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12301 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12302 fi
12303 fi
12304
12305 if test $succeeded = yes; then
12306 HAVE_LIBXML2=yes
12307 else
12308 HAVE_LIBXML2=no
12309 fi
12310
12311 if test "${HAVE_LIBXML2}" = "yes"; then
12312 LIBS="$LIBXML2_LIBS $LIBS"
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12314 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12315 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-lxml2 $LIBS"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322
12323 /* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char htmlReadMemory ();
12330 int
12331 main ()
12332 {
12333 return htmlReadMemory ();
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_lib_xml2_htmlReadMemory=yes
12340 else
12341 ac_cv_lib_xml2_htmlReadMemory=no
12342 fi
12343 rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 LIBS=$ac_check_lib_save_LIBS
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12348 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12349 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12350 HAVE_LIBXML2=yes
12351 else
12352 HAVE_LIBXML2=no
12353 fi
12354
12355 if test "${HAVE_LIBXML2}" = "yes"; then
12356
12357 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12358
12359 else
12360 LIBXML2_LIBS=""
12361 LIBXML2_CFLAGS=""
12362 fi
12363 fi
12364 fi
12365
12366
12367
12368 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12370 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12371 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376 #include <netdb.h>
12377 int
12378 main ()
12379 {
12380 return h_errno;
12381 ;
12382 return 0;
12383 }
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"; then :
12386 emacs_cv_netdb_declares_h_errno=yes
12387 else
12388 emacs_cv_netdb_declares_h_errno=no
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12394 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12395 if test $emacs_cv_netdb_declares_h_errno = yes; then
12396
12397 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12398
12399 fi
12400
12401 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12402 if test "x$ac_cv_type_size_t" = xyes; then :
12403
12404 else
12405
12406 cat >>confdefs.h <<_ACEOF
12407 #define size_t unsigned int
12408 _ACEOF
12409
12410 fi
12411
12412 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12413 # for constant arguments. Useless!
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12415 $as_echo_n "checking for working alloca.h... " >&6; }
12416 if ${ac_cv_working_alloca_h+:} false; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421 #include <alloca.h>
12422 int
12423 main ()
12424 {
12425 char *p = (char *) alloca (2 * sizeof (int));
12426 if (p) return 0;
12427 ;
12428 return 0;
12429 }
12430 _ACEOF
12431 if ac_fn_c_try_link "$LINENO"; then :
12432 ac_cv_working_alloca_h=yes
12433 else
12434 ac_cv_working_alloca_h=no
12435 fi
12436 rm -f core conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12438 fi
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12440 $as_echo "$ac_cv_working_alloca_h" >&6; }
12441 if test $ac_cv_working_alloca_h = yes; then
12442
12443 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12444
12445 fi
12446
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12448 $as_echo_n "checking for alloca... " >&6; }
12449 if ${ac_cv_func_alloca_works+:} false; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454 #ifdef __GNUC__
12455 # define alloca __builtin_alloca
12456 #else
12457 # ifdef _MSC_VER
12458 # include <malloc.h>
12459 # define alloca _alloca
12460 # else
12461 # ifdef HAVE_ALLOCA_H
12462 # include <alloca.h>
12463 # else
12464 # ifdef _AIX
12465 #pragma alloca
12466 # else
12467 # ifndef alloca /* predefined by HP cc +Olibcalls */
12468 void *alloca (size_t);
12469 # endif
12470 # endif
12471 # endif
12472 # endif
12473 #endif
12474
12475 int
12476 main ()
12477 {
12478 char *p = (char *) alloca (1);
12479 if (p) return 0;
12480 ;
12481 return 0;
12482 }
12483 _ACEOF
12484 if ac_fn_c_try_link "$LINENO"; then :
12485 ac_cv_func_alloca_works=yes
12486 else
12487 ac_cv_func_alloca_works=no
12488 fi
12489 rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12493 $as_echo "$ac_cv_func_alloca_works" >&6; }
12494
12495 if test $ac_cv_func_alloca_works = yes; then
12496
12497 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12498
12499 else
12500 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12501 # that cause trouble. Some versions do not even contain alloca or
12502 # contain a buggy version. If you still want to use their alloca,
12503 # use ar to extract alloca.o from them instead of compiling alloca.c.
12504
12505 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12506
12507 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12508
12509
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12511 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12512 if ${ac_cv_os_cray+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12517 #if defined CRAY && ! defined CRAY2
12518 webecray
12519 #else
12520 wenotbecray
12521 #endif
12522
12523 _ACEOF
12524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12525 $EGREP "webecray" >/dev/null 2>&1; then :
12526 ac_cv_os_cray=yes
12527 else
12528 ac_cv_os_cray=no
12529 fi
12530 rm -f conftest*
12531
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12534 $as_echo "$ac_cv_os_cray" >&6; }
12535 if test $ac_cv_os_cray = yes; then
12536 for ac_func in _getb67 GETB67 getb67; do
12537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12539 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12540
12541 cat >>confdefs.h <<_ACEOF
12542 #define CRAY_STACKSEG_END $ac_func
12543 _ACEOF
12544
12545 break
12546 fi
12547
12548 done
12549 fi
12550
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12552 $as_echo_n "checking stack direction for C alloca... " >&6; }
12553 if ${ac_cv_c_stack_direction+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 if test "$cross_compiling" = yes; then :
12557 ac_cv_c_stack_direction=0
12558 else
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561 $ac_includes_default
12562 int
12563 find_stack_direction ()
12564 {
12565 static char *addr = 0;
12566 auto char dummy;
12567 if (addr == 0)
12568 {
12569 addr = &dummy;
12570 return find_stack_direction ();
12571 }
12572 else
12573 return (&dummy > addr) ? 1 : -1;
12574 }
12575
12576 int
12577 main ()
12578 {
12579 return find_stack_direction () < 0;
12580 }
12581 _ACEOF
12582 if ac_fn_c_try_run "$LINENO"; then :
12583 ac_cv_c_stack_direction=1
12584 else
12585 ac_cv_c_stack_direction=-1
12586 fi
12587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12588 conftest.$ac_objext conftest.beam conftest.$ac_ext
12589 fi
12590
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12593 $as_echo "$ac_cv_c_stack_direction" >&6; }
12594 cat >>confdefs.h <<_ACEOF
12595 #define STACK_DIRECTION $ac_cv_c_stack_direction
12596 _ACEOF
12597
12598
12599 fi
12600
12601
12602 if test x"$ac_cv_func_alloca_works" != xyes; then
12603 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12604 fi
12605
12606 # fmod, logb, and frexp are found in -lm on most systems.
12607 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12609 $as_echo_n "checking for sqrt in -lm... " >&6; }
12610 if ${ac_cv_lib_m_sqrt+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 ac_check_lib_save_LIBS=$LIBS
12614 LIBS="-lm $LIBS"
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617
12618 /* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */
12621 #ifdef __cplusplus
12622 extern "C"
12623 #endif
12624 char sqrt ();
12625 int
12626 main ()
12627 {
12628 return sqrt ();
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"; then :
12634 ac_cv_lib_m_sqrt=yes
12635 else
12636 ac_cv_lib_m_sqrt=no
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12643 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12644 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12645 cat >>confdefs.h <<_ACEOF
12646 #define HAVE_LIBM 1
12647 _ACEOF
12648
12649 LIBS="-lm $LIBS"
12650
12651 fi
12652
12653
12654 # Check for mail-locking functions in a "mail" library. Probably this should
12655 # have the same check as for liblockfile below.
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12657 $as_echo_n "checking for maillock in -lmail... " >&6; }
12658 if ${ac_cv_lib_mail_maillock+:} false; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12661 ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-lmail $LIBS"
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665
12666 /* Override any GCC internal prototype to avoid an error.
12667 Use char because int might match the return type of a GCC
12668 builtin and then its argument prototype would still apply. */
12669 #ifdef __cplusplus
12670 extern "C"
12671 #endif
12672 char maillock ();
12673 int
12674 main ()
12675 {
12676 return maillock ();
12677 ;
12678 return 0;
12679 }
12680 _ACEOF
12681 if ac_fn_c_try_link "$LINENO"; then :
12682 ac_cv_lib_mail_maillock=yes
12683 else
12684 ac_cv_lib_mail_maillock=no
12685 fi
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12689 fi
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12691 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12692 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
12693 have_mail=yes
12694 else
12695 have_mail=no
12696 fi
12697
12698 if test $have_mail = yes; then
12699 LIBS_MAIL=-lmail
12700 LIBS="$LIBS_MAIL $LIBS"
12701
12702 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12703
12704 else
12705 LIBS_MAIL=
12706 fi
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12708 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12709 if ${ac_cv_lib_lockfile_maillock+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 ac_check_lib_save_LIBS=$LIBS
12713 LIBS="-llockfile $LIBS"
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12716
12717 /* Override any GCC internal prototype to avoid an error.
12718 Use char because int might match the return type of a GCC
12719 builtin and then its argument prototype would still apply. */
12720 #ifdef __cplusplus
12721 extern "C"
12722 #endif
12723 char maillock ();
12724 int
12725 main ()
12726 {
12727 return maillock ();
12728 ;
12729 return 0;
12730 }
12731 _ACEOF
12732 if ac_fn_c_try_link "$LINENO"; then :
12733 ac_cv_lib_lockfile_maillock=yes
12734 else
12735 ac_cv_lib_lockfile_maillock=no
12736 fi
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 LIBS=$ac_check_lib_save_LIBS
12740 fi
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12742 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12743 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
12744 have_lockfile=yes
12745 else
12746 have_lockfile=no
12747 fi
12748
12749 if test $have_lockfile = yes; then
12750 LIBS_MAIL=-llockfile
12751 LIBS="$LIBS_MAIL $LIBS"
12752
12753 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12754
12755 else
12756 # If we have the shared liblockfile, assume we must use it for mail
12757 # locking (e.g. Debian). If we couldn't link against liblockfile
12758 # (no liblockfile.a installed), ensure that we don't need to.
12759 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12760 set dummy liblockfile.so; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if ${ac_cv_prog_liblockfile+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 if test -n "$liblockfile"; then
12767 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12768 else
12769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12771 for as_dir in $as_dummy
12772 do
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12777 ac_cv_prog_liblockfile="yes"
12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 break 2
12780 fi
12781 done
12782 done
12783 IFS=$as_save_IFS
12784
12785 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12786 fi
12787 fi
12788 liblockfile=$ac_cv_prog_liblockfile
12789 if test -n "$liblockfile"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12791 $as_echo "$liblockfile" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12795 fi
12796
12797
12798 if test $ac_cv_prog_liblockfile = yes; then
12799 as_fn_error $? "Shared liblockfile found but can't link against it.
12800 This probably means that movemail could lose mail.
12801 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12802 fi
12803 fi
12804 for ac_func in touchlock
12805 do :
12806 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12807 if test "x$ac_cv_func_touchlock" = xyes; then :
12808 cat >>confdefs.h <<_ACEOF
12809 #define HAVE_TOUCHLOCK 1
12810 _ACEOF
12811
12812 fi
12813 done
12814
12815 for ac_header in maillock.h
12816 do :
12817 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12818 if test "x$ac_cv_header_maillock_h" = xyes; then :
12819 cat >>confdefs.h <<_ACEOF
12820 #define HAVE_MAILLOCK_H 1
12821 _ACEOF
12822
12823 fi
12824
12825 done
12826
12827
12828
12829 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12830 ## interlock access to the mail spool. The alternative is a lock file named
12831 ## /usr/spool/mail/$USER.lock.
12832 mail_lock=no
12833 case "$opsys" in
12834 aix4-2) mail_lock="lockf" ;;
12835
12836 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12837
12838 ## On GNU/Linux systems, both methods are used by various mail programs.
12839 ## I assume most people are using newer mailers that have heard of flock.
12840 ## Change this if you need to.
12841 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12842 ## configure gets the right answers, and that means *NOT* using flock.
12843 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12844 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12845 ## Debian maintainer hasn't provided a clean fix for Emacs.
12846 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12847 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12848 ## correct logic. -- fx
12849 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12850 ## liblockfile is a Free Software replacement for libmail, used on
12851 ## Debian systems and elsewhere. -rfr.
12852 gnu-*)
12853 mail_lock="flock"
12854 if test $have_mail = yes || test $have_lockfile = yes; then
12855 test $ac_cv_header_maillock_h = yes && mail_lock=no
12856 fi
12857 ;;
12858 esac
12859
12860 BLESSMAIL_TARGET=
12861 case "$mail_lock" in
12862 flock)
12863 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12864 ;;
12865
12866 lockf)
12867 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12868 ;;
12869
12870 *) BLESSMAIL_TARGET="need-blessmail" ;;
12871 esac
12872
12873
12874
12875 for ac_func in gethostname getdomainname dup2 \
12876 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12877 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12878 strerror fpathconf select euidaccess getpagesize tzset setlocale \
12879 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12880 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12881 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12882 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12883 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12884 cfmakeraw cfsetspeed isnan copysign __executable_start
12885 do :
12886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12887 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12888 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12889 cat >>confdefs.h <<_ACEOF
12890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12891 _ACEOF
12892
12893 fi
12894 done
12895
12896
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12898 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12899 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12904
12905 int
12906 main ()
12907 {
12908 __builtin_unwind_init ();
12909 ;
12910 return 0;
12911 }
12912 _ACEOF
12913 if ac_fn_c_try_link "$LINENO"; then :
12914 emacs_cv_func___builtin_unwind_init=yes
12915 else
12916 emacs_cv_func___builtin_unwind_init=no
12917 fi
12918 rm -f core conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
12920 fi
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12922 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12923 if test $emacs_cv_func___builtin_unwind_init = yes; then
12924
12925 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12926
12927 fi
12928
12929 for ac_header in sys/un.h
12930 do :
12931 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12932 if test "x$ac_cv_header_sys_un_h" = xyes; then :
12933 cat >>confdefs.h <<_ACEOF
12934 #define HAVE_SYS_UN_H 1
12935 _ACEOF
12936
12937 fi
12938
12939 done
12940
12941
12942 ac_have_func=no # yes means we've found a way to get the load average.
12943
12944 # Make sure getloadavg.c is where it belongs, at configure-time.
12945 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12946 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12947
12948 ac_save_LIBS=$LIBS
12949
12950 # Check for getloadavg, but be sure not to touch the cache variable.
12951 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12952 if test "x$ac_cv_func_getloadavg" = xyes; then :
12953 exit 0
12954 else
12955 exit 1
12956 fi
12957 ) && ac_have_func=yes
12958
12959 # On HPUX9, an unprivileged user can get load averages through this function.
12960 for ac_func in pstat_getdynamic
12961 do :
12962 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12963 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
12964 cat >>confdefs.h <<_ACEOF
12965 #define HAVE_PSTAT_GETDYNAMIC 1
12966 _ACEOF
12967
12968 fi
12969 done
12970
12971
12972 # Solaris has libkstat which does not require root.
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12974 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12975 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12976 $as_echo_n "(cached) " >&6
12977 else
12978 ac_check_lib_save_LIBS=$LIBS
12979 LIBS="-lkstat $LIBS"
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982
12983 /* Override any GCC internal prototype to avoid an error.
12984 Use char because int might match the return type of a GCC
12985 builtin and then its argument prototype would still apply. */
12986 #ifdef __cplusplus
12987 extern "C"
12988 #endif
12989 char kstat_open ();
12990 int
12991 main ()
12992 {
12993 return kstat_open ();
12994 ;
12995 return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_c_try_link "$LINENO"; then :
12999 ac_cv_lib_kstat_kstat_open=yes
13000 else
13001 ac_cv_lib_kstat_kstat_open=no
13002 fi
13003 rm -f core conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13005 LIBS=$ac_check_lib_save_LIBS
13006 fi
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13008 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13009 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13010 cat >>confdefs.h <<_ACEOF
13011 #define HAVE_LIBKSTAT 1
13012 _ACEOF
13013
13014 LIBS="-lkstat $LIBS"
13015
13016 fi
13017
13018 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13019
13020 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13021 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13022 # to get the right answer into the cache.
13023 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13024 if test $ac_have_func = no; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13026 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13027 if ${ac_cv_lib_elf_elf_begin+:} false; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 ac_check_lib_save_LIBS=$LIBS
13031 LIBS="-lelf $LIBS"
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char elf_begin ();
13042 int
13043 main ()
13044 {
13045 return elf_begin ();
13046 ;
13047 return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 ac_cv_lib_elf_elf_begin=yes
13052 else
13053 ac_cv_lib_elf_elf_begin=no
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13060 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13061 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
13062 LIBS="-lelf $LIBS"
13063 fi
13064
13065 fi
13066 if test $ac_have_func = no; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13068 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13069 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-lkvm $LIBS"
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char kvm_open ();
13084 int
13085 main ()
13086 {
13087 return kvm_open ();
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"; then :
13093 ac_cv_lib_kvm_kvm_open=yes
13094 else
13095 ac_cv_lib_kvm_kvm_open=no
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS
13100 fi
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13102 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13103 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
13104 LIBS="-lkvm $LIBS"
13105 fi
13106
13107 # Check for the 4.4BSD definition of getloadavg.
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13109 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13110 if ${ac_cv_lib_util_getloadavg+:} false; then :
13111 $as_echo_n "(cached) " >&6
13112 else
13113 ac_check_lib_save_LIBS=$LIBS
13114 LIBS="-lutil $LIBS"
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117
13118 /* Override any GCC internal prototype to avoid an error.
13119 Use char because int might match the return type of a GCC
13120 builtin and then its argument prototype would still apply. */
13121 #ifdef __cplusplus
13122 extern "C"
13123 #endif
13124 char getloadavg ();
13125 int
13126 main ()
13127 {
13128 return getloadavg ();
13129 ;
13130 return 0;
13131 }
13132 _ACEOF
13133 if ac_fn_c_try_link "$LINENO"; then :
13134 ac_cv_lib_util_getloadavg=yes
13135 else
13136 ac_cv_lib_util_getloadavg=no
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext \
13139 conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13141 fi
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13143 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13144 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
13145 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13146 fi
13147
13148 fi
13149
13150 if test $ac_have_func = no; then
13151 # There is a commonly available library for RS/6000 AIX.
13152 # Since it is not a standard part of AIX, it might be installed locally.
13153 ac_getloadavg_LIBS=$LIBS
13154 LIBS="-L/usr/local/lib $LIBS"
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13156 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13157 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 ac_check_lib_save_LIBS=$LIBS
13161 LIBS="-lgetloadavg $LIBS"
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13168 #ifdef __cplusplus
13169 extern "C"
13170 #endif
13171 char getloadavg ();
13172 int
13173 main ()
13174 {
13175 return getloadavg ();
13176 ;
13177 return 0;
13178 }
13179 _ACEOF
13180 if ac_fn_c_try_link "$LINENO"; then :
13181 ac_cv_lib_getloadavg_getloadavg=yes
13182 else
13183 ac_cv_lib_getloadavg_getloadavg=no
13184 fi
13185 rm -f core conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13187 LIBS=$ac_check_lib_save_LIBS
13188 fi
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13190 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13191 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
13192 LIBS="-lgetloadavg $LIBS"
13193 else
13194 LIBS=$ac_getloadavg_LIBS
13195 fi
13196
13197 fi
13198
13199 # Make sure it is really in the library, if we think we found it,
13200 # otherwise set up the replacement function.
13201 for ac_func in getloadavg
13202 do :
13203 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13204 if test "x$ac_cv_func_getloadavg" = xyes; then :
13205 cat >>confdefs.h <<_ACEOF
13206 #define HAVE_GETLOADAVG 1
13207 _ACEOF
13208
13209 else
13210 case " $LIBOBJS " in
13211 *" getloadavg.$ac_objext "* ) ;;
13212 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13213 ;;
13214 esac
13215
13216
13217 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13218
13219 # Figure out what our getloadavg.c needs.
13220 ac_have_func=no
13221 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13222 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
13223 ac_have_func=yes
13224
13225 $as_echo "#define DGUX 1" >>confdefs.h
13226
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13228 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13229 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 ac_check_lib_save_LIBS=$LIBS
13233 LIBS="-ldgc $LIBS"
13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13236
13237 /* Override any GCC internal prototype to avoid an error.
13238 Use char because int might match the return type of a GCC
13239 builtin and then its argument prototype would still apply. */
13240 #ifdef __cplusplus
13241 extern "C"
13242 #endif
13243 char dg_sys_info ();
13244 int
13245 main ()
13246 {
13247 return dg_sys_info ();
13248 ;
13249 return 0;
13250 }
13251 _ACEOF
13252 if ac_fn_c_try_link "$LINENO"; then :
13253 ac_cv_lib_dgc_dg_sys_info=yes
13254 else
13255 ac_cv_lib_dgc_dg_sys_info=no
13256 fi
13257 rm -f core conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext conftest.$ac_ext
13259 LIBS=$ac_check_lib_save_LIBS
13260 fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13262 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13263 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_LIBDGC 1
13266 _ACEOF
13267
13268 LIBS="-ldgc $LIBS"
13269
13270 fi
13271
13272 fi
13273
13274
13275
13276 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13277 if test "x$ac_cv_header_locale_h" = xyes; then :
13278
13279 fi
13280
13281
13282 for ac_func in setlocale
13283 do :
13284 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13285 if test "x$ac_cv_func_setlocale" = xyes; then :
13286 cat >>confdefs.h <<_ACEOF
13287 #define HAVE_SETLOCALE 1
13288 _ACEOF
13289
13290 fi
13291 done
13292
13293
13294 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13295 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13296 # Irix 4.0.5F has the header but not the library.
13297 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13298 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13299 ac_have_func=yes
13300
13301 $as_echo "#define SVR4 1" >>confdefs.h
13302
13303 fi
13304
13305 if test $ac_have_func = no; then
13306 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13307 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
13308 ac_have_func=yes
13309
13310 $as_echo "#define UMAX 1" >>confdefs.h
13311
13312
13313 $as_echo "#define UMAX4_3 1" >>confdefs.h
13314
13315 fi
13316
13317
13318 fi
13319
13320 if test $ac_have_func = no; then
13321 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13322 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
13323 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13324
13325 fi
13326
13327
13328 fi
13329
13330 if test $ac_have_func = no; then
13331 for ac_header in mach/mach.h
13332 do :
13333 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13334 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
13335 cat >>confdefs.h <<_ACEOF
13336 #define HAVE_MACH_MACH_H 1
13337 _ACEOF
13338
13339 fi
13340
13341 done
13342
13343 fi
13344
13345 for ac_header in nlist.h
13346 do :
13347 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13348 if test "x$ac_cv_header_nlist_h" = xyes; then :
13349 cat >>confdefs.h <<_ACEOF
13350 #define HAVE_NLIST_H 1
13351 _ACEOF
13352 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13353 "
13354 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
13355
13356 cat >>confdefs.h <<_ACEOF
13357 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13358 _ACEOF
13359
13360
13361 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13362
13363 fi
13364
13365
13366 fi
13367
13368 done
13369
13370 fi
13371 done
13372
13373
13374 # Some definitions of getloadavg require that the program be installed setgid.
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13376 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13377 if ${ac_cv_func_getloadavg_setgid+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13383 #ifdef LDAV_PRIVILEGED
13384 Yowza Am I SETGID yet
13385 #endif
13386 _ACEOF
13387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13388 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13389 ac_cv_func_getloadavg_setgid=yes
13390 else
13391 ac_cv_func_getloadavg_setgid=no
13392 fi
13393 rm -f conftest*
13394
13395 fi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13397 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13398 if test $ac_cv_func_getloadavg_setgid = yes; then
13399 NEED_SETGID=true
13400
13401 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13402
13403 else
13404 NEED_SETGID=false
13405 fi
13406
13407 if test $ac_cv_func_getloadavg_setgid = yes; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13409 $as_echo_n "checking group of /dev/kmem... " >&6; }
13410 if ${ac_cv_group_kmem+:} false; then :
13411 $as_echo_n "(cached) " >&6
13412 else
13413 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13414 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13415 # If we got an error (system does not support symlinks), try without -L.
13416 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13417 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13418 | sed -ne 's/[ ][ ]*/ /g;
13419 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13420 / /s/.* //;p;'`
13421
13422 fi
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13424 $as_echo "$ac_cv_group_kmem" >&6; }
13425 KMEM_GROUP=$ac_cv_group_kmem
13426 fi
13427 if test "x$ac_save_LIBS" = x; then
13428 GETLOADAVG_LIBS=$LIBS
13429 else
13430 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13431 fi
13432 LIBS=$ac_save_LIBS
13433
13434
13435
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13437 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13438 if ${ac_cv_sys_largefile_source+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 while :; do
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13444 #include <sys/types.h> /* for off_t */
13445 #include <stdio.h>
13446 int
13447 main ()
13448 {
13449 int (*fp) (FILE *, off_t, int) = fseeko;
13450 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13451 ;
13452 return 0;
13453 }
13454 _ACEOF
13455 if ac_fn_c_try_link "$LINENO"; then :
13456 ac_cv_sys_largefile_source=no; break
13457 fi
13458 rm -f core conftest.err conftest.$ac_objext \
13459 conftest$ac_exeext conftest.$ac_ext
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462 #define _LARGEFILE_SOURCE 1
13463 #include <sys/types.h> /* for off_t */
13464 #include <stdio.h>
13465 int
13466 main ()
13467 {
13468 int (*fp) (FILE *, off_t, int) = fseeko;
13469 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13470 ;
13471 return 0;
13472 }
13473 _ACEOF
13474 if ac_fn_c_try_link "$LINENO"; then :
13475 ac_cv_sys_largefile_source=1; break
13476 fi
13477 rm -f core conftest.err conftest.$ac_objext \
13478 conftest$ac_exeext conftest.$ac_ext
13479 ac_cv_sys_largefile_source=unknown
13480 break
13481 done
13482 fi
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13484 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13485 case $ac_cv_sys_largefile_source in #(
13486 no | unknown) ;;
13487 *)
13488 cat >>confdefs.h <<_ACEOF
13489 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13490 _ACEOF
13491 ;;
13492 esac
13493 rm -rf conftest*
13494
13495 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13496 # in glibc 2.1.3, but that breaks too many other things.
13497 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13498 if test $ac_cv_sys_largefile_source != unknown; then
13499
13500 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13501
13502 fi
13503
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13506 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13507 if ${ac_cv_func_getpgrp_void+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 # Use it with a single arg.
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 $ac_includes_default
13514 int
13515 main ()
13516 {
13517 getpgrp (0);
13518 ;
13519 return 0;
13520 }
13521 _ACEOF
13522 if ac_fn_c_try_compile "$LINENO"; then :
13523 ac_cv_func_getpgrp_void=no
13524 else
13525 ac_cv_func_getpgrp_void=yes
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13531 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13532 if test $ac_cv_func_getpgrp_void = yes; then
13533
13534 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13535
13536 fi
13537
13538
13539 # Configure gnulib.
13540
13541
13542
13543
13544 LIBC_FATAL_STDERR_=1
13545 export LIBC_FATAL_STDERR_
13546
13547
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13549 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13550 if ${gl_cv_func_c99_strtold+:} false; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555 /* On HP-UX before 11.23, strtold returns a struct instead of
13556 long double. Reject implementations like that, by requiring
13557 compatibility with the C99 prototype. */
13558 #include <stdlib.h>
13559 static long double (*p) (char const *, char **) = strtold;
13560 static long double
13561 test (char const *nptr, char **endptr)
13562 {
13563 long double r;
13564 r = strtold (nptr, endptr);
13565 return r;
13566 }
13567 int
13568 main ()
13569 {
13570 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13571 ;
13572 return 0;
13573 }
13574 _ACEOF
13575 if ac_fn_c_try_link "$LINENO"; then :
13576 gl_cv_func_c99_strtold=yes
13577 else
13578 gl_cv_func_c99_strtold=no
13579 fi
13580 rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 fi
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13584 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13585 if test $gl_cv_func_c99_strtold = yes; then
13586
13587 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13588
13589 fi
13590
13591
13592 GNULIB_CHOWN=0;
13593 GNULIB_CLOSE=0;
13594 GNULIB_DUP2=0;
13595 GNULIB_DUP3=0;
13596 GNULIB_ENVIRON=0;
13597 GNULIB_EUIDACCESS=0;
13598 GNULIB_FACCESSAT=0;
13599 GNULIB_FCHDIR=0;
13600 GNULIB_FCHOWNAT=0;
13601 GNULIB_FSYNC=0;
13602 GNULIB_FTRUNCATE=0;
13603 GNULIB_GETCWD=0;
13604 GNULIB_GETDOMAINNAME=0;
13605 GNULIB_GETDTABLESIZE=0;
13606 GNULIB_GETGROUPS=0;
13607 GNULIB_GETHOSTNAME=0;
13608 GNULIB_GETLOGIN=0;
13609 GNULIB_GETLOGIN_R=0;
13610 GNULIB_GETPAGESIZE=0;
13611 GNULIB_GETUSERSHELL=0;
13612 GNULIB_LCHOWN=0;
13613 GNULIB_LINK=0;
13614 GNULIB_LINKAT=0;
13615 GNULIB_LSEEK=0;
13616 GNULIB_PIPE=0;
13617 GNULIB_PIPE2=0;
13618 GNULIB_PREAD=0;
13619 GNULIB_PWRITE=0;
13620 GNULIB_READLINK=0;
13621 GNULIB_READLINKAT=0;
13622 GNULIB_RMDIR=0;
13623 GNULIB_SLEEP=0;
13624 GNULIB_SYMLINK=0;
13625 GNULIB_SYMLINKAT=0;
13626 GNULIB_TTYNAME_R=0;
13627 GNULIB_UNISTD_H_GETOPT=0;
13628 GNULIB_UNISTD_H_SIGPIPE=0;
13629 GNULIB_UNLINK=0;
13630 GNULIB_UNLINKAT=0;
13631 GNULIB_USLEEP=0;
13632 GNULIB_WRITE=0;
13633 HAVE_CHOWN=1;
13634 HAVE_DUP2=1;
13635 HAVE_DUP3=1;
13636 HAVE_EUIDACCESS=1;
13637 HAVE_FACCESSAT=1;
13638 HAVE_FCHDIR=1;
13639 HAVE_FCHOWNAT=1;
13640 HAVE_FSYNC=1;
13641 HAVE_FTRUNCATE=1;
13642 HAVE_GETDTABLESIZE=1;
13643 HAVE_GETGROUPS=1;
13644 HAVE_GETHOSTNAME=1;
13645 HAVE_GETLOGIN=1;
13646 HAVE_GETPAGESIZE=1;
13647 HAVE_LCHOWN=1;
13648 HAVE_LINK=1;
13649 HAVE_LINKAT=1;
13650 HAVE_PIPE=1;
13651 HAVE_PIPE2=1;
13652 HAVE_PREAD=1;
13653 HAVE_PWRITE=1;
13654 HAVE_READLINK=1;
13655 HAVE_READLINKAT=1;
13656 HAVE_SLEEP=1;
13657 HAVE_SYMLINK=1;
13658 HAVE_SYMLINKAT=1;
13659 HAVE_UNLINKAT=1;
13660 HAVE_USLEEP=1;
13661 HAVE_DECL_ENVIRON=1;
13662 HAVE_DECL_FCHDIR=1;
13663 HAVE_DECL_GETDOMAINNAME=1;
13664 HAVE_DECL_GETLOGIN_R=1;
13665 HAVE_DECL_GETPAGESIZE=1;
13666 HAVE_DECL_GETUSERSHELL=1;
13667 HAVE_DECL_TTYNAME_R=1;
13668 HAVE_OS_H=0;
13669 HAVE_SYS_PARAM_H=0;
13670 REPLACE_CHOWN=0;
13671 REPLACE_CLOSE=0;
13672 REPLACE_DUP=0;
13673 REPLACE_DUP2=0;
13674 REPLACE_FCHOWNAT=0;
13675 REPLACE_GETCWD=0;
13676 REPLACE_GETDOMAINNAME=0;
13677 REPLACE_GETLOGIN_R=0;
13678 REPLACE_GETGROUPS=0;
13679 REPLACE_GETPAGESIZE=0;
13680 REPLACE_LCHOWN=0;
13681 REPLACE_LINK=0;
13682 REPLACE_LINKAT=0;
13683 REPLACE_LSEEK=0;
13684 REPLACE_PREAD=0;
13685 REPLACE_PWRITE=0;
13686 REPLACE_READLINK=0;
13687 REPLACE_RMDIR=0;
13688 REPLACE_SLEEP=0;
13689 REPLACE_SYMLINK=0;
13690 REPLACE_TTYNAME_R=0;
13691 REPLACE_UNLINK=0;
13692 REPLACE_UNLINKAT=0;
13693 REPLACE_USLEEP=0;
13694 REPLACE_WRITE=0;
13695 UNISTD_H_HAVE_WINSOCK2_H=0;
13696 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13697
13698
13699
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13702 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13703 if ${gl_cv_have_include_next+:} false; then :
13704 $as_echo_n "(cached) " >&6
13705 else
13706 rm -rf conftestd1a conftestd1b conftestd2
13707 mkdir conftestd1a conftestd1b conftestd2
13708 cat <<EOF > conftestd1a/conftest.h
13709 #define DEFINED_IN_CONFTESTD1
13710 #include_next <conftest.h>
13711 #ifdef DEFINED_IN_CONFTESTD2
13712 int foo;
13713 #else
13714 #error "include_next doesn't work"
13715 #endif
13716 EOF
13717 cat <<EOF > conftestd1b/conftest.h
13718 #define DEFINED_IN_CONFTESTD1
13719 #include <stdio.h>
13720 #include_next <conftest.h>
13721 #ifdef DEFINED_IN_CONFTESTD2
13722 int foo;
13723 #else
13724 #error "include_next doesn't work"
13725 #endif
13726 EOF
13727 cat <<EOF > conftestd2/conftest.h
13728 #ifndef DEFINED_IN_CONFTESTD1
13729 #error "include_next test doesn't work"
13730 #endif
13731 #define DEFINED_IN_CONFTESTD2
13732 EOF
13733 gl_save_CPPFLAGS="$CPPFLAGS"
13734 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13737 #include <conftest.h>
13738 _ACEOF
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740 gl_cv_have_include_next=yes
13741 else
13742 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745 #include <conftest.h>
13746 _ACEOF
13747 if ac_fn_c_try_compile "$LINENO"; then :
13748 gl_cv_have_include_next=buggy
13749 else
13750 gl_cv_have_include_next=no
13751 fi
13752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 CPPFLAGS="$gl_save_CPPFLAGS"
13757 rm -rf conftestd1a conftestd1b conftestd2
13758
13759 fi
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13761 $as_echo "$gl_cv_have_include_next" >&6; }
13762 PRAGMA_SYSTEM_HEADER=
13763 if test $gl_cv_have_include_next = yes; then
13764 INCLUDE_NEXT=include_next
13765 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13766 if test -n "$GCC"; then
13767 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13768 fi
13769 else
13770 if test $gl_cv_have_include_next = buggy; then
13771 INCLUDE_NEXT=include
13772 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13773 else
13774 INCLUDE_NEXT=include
13775 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13776 fi
13777 fi
13778
13779
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13782 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13783 if ${gl_cv_pragma_columns+:} false; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788
13789 #ifdef __TANDEM
13790 choke me
13791 #endif
13792
13793 _ACEOF
13794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13795 $EGREP "choke me" >/dev/null 2>&1; then :
13796 gl_cv_pragma_columns=yes
13797 else
13798 gl_cv_pragma_columns=no
13799 fi
13800 rm -f conftest*
13801
13802
13803 fi
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13805 $as_echo "$gl_cv_pragma_columns" >&6; }
13806 if test $gl_cv_pragma_columns = yes; then
13807 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13808 else
13809 PRAGMA_COLUMNS=
13810 fi
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825 if test $gl_cv_have_include_next = yes; then
13826 gl_cv_next_getopt_h='<'getopt.h'>'
13827 else
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13829 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13830 if ${gl_cv_next_getopt_h+:} false; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833
13834 if test $ac_cv_header_getopt_h = yes; then
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #include <getopt.h>
13838
13839 _ACEOF
13840 case "$host_os" in
13841 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13842 *) gl_absname_cpp="$ac_cpp" ;;
13843 esac
13844 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13845 sed -n '\#/getopt.h#{
13846 s#.*"\(.*/getopt.h\)".*#\1#
13847 s#^/[^/]#//&#
13848 p
13849 q
13850 }'`'"'
13851 else
13852 gl_cv_next_getopt_h='<'getopt.h'>'
13853 fi
13854
13855 fi
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13857 $as_echo "$gl_cv_next_getopt_h" >&6; }
13858 fi
13859 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13860
13861 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13863 gl_next_as_first_directive='<'getopt.h'>'
13864 else
13865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13866 gl_next_as_first_directive=$gl_cv_next_getopt_h
13867 fi
13868 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13869
13870
13871
13872
13873 if test $ac_cv_header_getopt_h = yes; then
13874 HAVE_GETOPT_H=1
13875 else
13876 HAVE_GETOPT_H=0
13877 fi
13878
13879
13880 gl_replace_getopt=
13881
13882 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13883 for ac_header in getopt.h
13884 do :
13885 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13886 if test "x$ac_cv_header_getopt_h" = xyes; then :
13887 cat >>confdefs.h <<_ACEOF
13888 #define HAVE_GETOPT_H 1
13889 _ACEOF
13890
13891 else
13892 gl_replace_getopt=yes
13893 fi
13894
13895 done
13896
13897 fi
13898
13899 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13900 for ac_func in getopt_long_only
13901 do :
13902 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13903 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13904 cat >>confdefs.h <<_ACEOF
13905 #define HAVE_GETOPT_LONG_ONLY 1
13906 _ACEOF
13907
13908 else
13909 gl_replace_getopt=yes
13910 fi
13911 done
13912
13913 fi
13914
13915 if test -z "$gl_replace_getopt"; then
13916 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
13917 "
13918 if test "x$ac_cv_have_decl_optreset" = xyes; then :
13919 ac_have_decl=1
13920 else
13921 ac_have_decl=0
13922 fi
13923
13924 cat >>confdefs.h <<_ACEOF
13925 #define HAVE_DECL_OPTRESET $ac_have_decl
13926 _ACEOF
13927 if test $ac_have_decl = 1; then :
13928
13929 else
13930 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
13931 "
13932 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
13933 ac_have_decl=1
13934 else
13935 ac_have_decl=0
13936 fi
13937
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
13940 _ACEOF
13941
13942
13943 fi
13944
13945 fi
13946
13947 if test -z "$gl_replace_getopt"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13949 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13950 if ${gl_cv_func_getopt_posix+:} false; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953
13954 if test "$cross_compiling" = yes; then :
13955 case "$host_os" in
13956 mingw*) gl_cv_func_getopt_posix="guessing no";;
13957 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
13958 *) gl_cv_func_getopt_posix="guessing yes";;
13959 esac
13960
13961 else
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964
13965 #include <unistd.h>
13966 #include <stdlib.h>
13967 #include <string.h>
13968
13969 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
13970 # define OPTIND_MIN 0
13971 #else
13972 # define OPTIND_MIN 1
13973 #endif
13974
13975 int
13976 main ()
13977 {
13978 {
13979 int argc = 0;
13980 char *argv[10];
13981 int c;
13982
13983 argv[argc++] = "program";
13984 argv[argc++] = "-a";
13985 argv[argc++] = "foo";
13986 argv[argc++] = "bar";
13987 argv[argc] = NULL;
13988 optind = OPTIND_MIN;
13989 opterr = 0;
13990
13991 c = getopt (argc, argv, "ab");
13992 if (!(c == 'a'))
13993 return 1;
13994 c = getopt (argc, argv, "ab");
13995 if (!(c == -1))
13996 return 2;
13997 if (!(optind == 2))
13998 return 3;
13999 }
14000 /* Some internal state exists at this point. */
14001 {
14002 int argc = 0;
14003 char *argv[10];
14004 int c;
14005
14006 argv[argc++] = "program";
14007 argv[argc++] = "donald";
14008 argv[argc++] = "-p";
14009 argv[argc++] = "billy";
14010 argv[argc++] = "duck";
14011 argv[argc++] = "-a";
14012 argv[argc++] = "bar";
14013 argv[argc] = NULL;
14014 optind = OPTIND_MIN;
14015 opterr = 0;
14016
14017 c = getopt (argc, argv, "+abp:q:");
14018 if (!(c == -1))
14019 return 4;
14020 if (!(strcmp (argv[0], "program") == 0))
14021 return 5;
14022 if (!(strcmp (argv[1], "donald") == 0))
14023 return 6;
14024 if (!(strcmp (argv[2], "-p") == 0))
14025 return 7;
14026 if (!(strcmp (argv[3], "billy") == 0))
14027 return 8;
14028 if (!(strcmp (argv[4], "duck") == 0))
14029 return 9;
14030 if (!(strcmp (argv[5], "-a") == 0))
14031 return 10;
14032 if (!(strcmp (argv[6], "bar") == 0))
14033 return 11;
14034 if (!(optind == 1))
14035 return 12;
14036 }
14037 /* Detect MacOS 10.5, AIX 7.1 bug. */
14038 {
14039 char *argv[3] = { "program", "-ab", NULL };
14040 optind = OPTIND_MIN;
14041 opterr = 0;
14042 if (getopt (2, argv, "ab:") != 'a')
14043 return 13;
14044 if (getopt (2, argv, "ab:") != '?')
14045 return 14;
14046 if (optopt != 'b')
14047 return 15;
14048 if (optind != 2)
14049 return 16;
14050 }
14051
14052 return 0;
14053 }
14054
14055 _ACEOF
14056 if ac_fn_c_try_run "$LINENO"; then :
14057 gl_cv_func_getopt_posix=yes
14058 else
14059 gl_cv_func_getopt_posix=no
14060 fi
14061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14062 conftest.$ac_objext conftest.beam conftest.$ac_ext
14063 fi
14064
14065
14066 fi
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14068 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14069 case "$gl_cv_func_getopt_posix" in
14070 *no) gl_replace_getopt=yes ;;
14071 esac
14072 fi
14073
14074 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14076 $as_echo_n "checking for working GNU getopt function... " >&6; }
14077 if ${gl_cv_func_getopt_gnu+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14081 # optstring is necessary for programs like m4 that have POSIX-mandated
14082 # semantics for supporting options interspersed with files.
14083 # Also, since getopt_long is a GNU extension, we require optind=0.
14084 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14085 # so take care to revert to the correct (non-)export state.
14086 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14087 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14088 xx) gl_had_POSIXLY_CORRECT=exported ;;
14089 x) gl_had_POSIXLY_CORRECT=yes ;;
14090 *) gl_had_POSIXLY_CORRECT= ;;
14091 esac
14092 POSIXLY_CORRECT=1
14093 export POSIXLY_CORRECT
14094 if test "$cross_compiling" = yes; then :
14095 case $host_os:$ac_cv_have_decl_optreset in
14096 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14097 *:yes) gl_cv_func_getopt_gnu=no;;
14098 *) gl_cv_func_getopt_gnu=yes;;
14099 esac
14100
14101 else
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14104 #include <getopt.h>
14105 #include <stddef.h>
14106 #include <string.h>
14107
14108 int
14109 main ()
14110 {
14111
14112 int result = 0;
14113 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14114 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14115 OSF/1 5.1, Solaris 10. */
14116 {
14117 char *myargv[3];
14118 myargv[0] = "conftest";
14119 myargv[1] = "-+";
14120 myargv[2] = 0;
14121 opterr = 0;
14122 if (getopt (2, myargv, "+a") != '?')
14123 result |= 1;
14124 }
14125 /* This code succeeds on glibc 2.8, mingw,
14126 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14127 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14128 {
14129 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14130
14131 optind = 1;
14132 if (getopt (4, argv, "p::") != 'p')
14133 result |= 2;
14134 else if (optarg != NULL)
14135 result |= 4;
14136 else if (getopt (4, argv, "p::") != -1)
14137 result |= 6;
14138 else if (optind != 2)
14139 result |= 8;
14140 }
14141 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14142 {
14143 char *argv[] = { "program", "foo", "-p", NULL };
14144 optind = 0;
14145 if (getopt (3, argv, "-p") != 1)
14146 result |= 16;
14147 else if (getopt (3, argv, "-p") != 'p')
14148 result |= 32;
14149 }
14150 /* This code fails on glibc 2.11. */
14151 {
14152 char *argv[] = { "program", "-b", "-a", NULL };
14153 optind = opterr = 0;
14154 if (getopt (3, argv, "+:a:b") != 'b')
14155 result |= 64;
14156 else if (getopt (3, argv, "+:a:b") != ':')
14157 result |= 64;
14158 }
14159 return result;
14160
14161 ;
14162 return 0;
14163 }
14164 _ACEOF
14165 if ac_fn_c_try_run "$LINENO"; then :
14166 gl_cv_func_getopt_gnu=yes
14167 else
14168 gl_cv_func_getopt_gnu=no
14169 fi
14170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14171 conftest.$ac_objext conftest.beam conftest.$ac_ext
14172 fi
14173
14174 case $gl_had_POSIXLY_CORRECT in
14175 exported) ;;
14176 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14177 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14178 esac
14179
14180 fi
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14182 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14183 if test "$gl_cv_func_getopt_gnu" = "no"; then
14184 gl_replace_getopt=yes
14185 fi
14186 fi
14187
14188 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14189 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14190 ac_have_decl=1
14191 else
14192 ac_have_decl=0
14193 fi
14194
14195 cat >>confdefs.h <<_ACEOF
14196 #define HAVE_DECL_GETENV $ac_have_decl
14197 _ACEOF
14198
14199
14200
14201
14202
14203
14204 if test -n "$gl_replace_getopt"; then :
14205
14206
14207
14208 GETOPT_H=getopt.h
14209
14210 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14211
14212
14213
14214 GNULIB_UNISTD_H_GETOPT=1
14215
14216
14217
14218
14219
14220
14221
14222
14223 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14234
14235
14236
14237
14238
14239
14240 fi
14241
14242
14243
14244 GNULIB_MKTIME=0;
14245 GNULIB_NANOSLEEP=0;
14246 GNULIB_STRPTIME=0;
14247 GNULIB_TIMEGM=0;
14248 GNULIB_TIME_R=0;
14249 HAVE_DECL_LOCALTIME_R=1;
14250 HAVE_NANOSLEEP=1;
14251 HAVE_STRPTIME=1;
14252 HAVE_TIMEGM=1;
14253 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14254 REPLACE_MKTIME=GNULIB_PORTCHECK;
14255 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14256 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14257
14258
14259
14260
14261 for ac_func in $ac_func_list
14262 do :
14263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14264 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14265 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14266 cat >>confdefs.h <<_ACEOF
14267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14268 _ACEOF
14269
14270 fi
14271 done
14272
14273
14274
14275
14276 gl_cv_c_multiarch=no
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 #ifndef __APPLE_CC__
14280 not a universal capable compiler
14281 #endif
14282 typedef int dummy;
14283
14284 _ACEOF
14285 if ac_fn_c_try_compile "$LINENO"; then :
14286
14287 arch=
14288 prev=
14289 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14290 if test -n "$prev"; then
14291 case $word in
14292 i?86 | x86_64 | ppc | ppc64)
14293 if test -z "$arch" || test "$arch" = "$word"; then
14294 arch="$word"
14295 else
14296 gl_cv_c_multiarch=yes
14297 fi
14298 ;;
14299 esac
14300 prev=
14301 else
14302 if test "x$word" = "x-arch"; then
14303 prev=arch
14304 fi
14305 fi
14306 done
14307
14308 fi
14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310 if test $gl_cv_c_multiarch = yes; then
14311
14312 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14313
14314 APPLE_UNIVERSAL_BUILD=1
14315 else
14316 APPLE_UNIVERSAL_BUILD=0
14317 fi
14318
14319
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14321 $as_echo_n "checking for inline... " >&6; }
14322 if ${ac_cv_c_inline+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 ac_cv_c_inline=no
14326 for ac_kw in inline __inline__ __inline; do
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14329 #ifndef __cplusplus
14330 typedef int foo_t;
14331 static $ac_kw foo_t static_foo () {return 0; }
14332 $ac_kw foo_t foo () {return 0; }
14333 #endif
14334
14335 _ACEOF
14336 if ac_fn_c_try_compile "$LINENO"; then :
14337 ac_cv_c_inline=$ac_kw
14338 fi
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 test "$ac_cv_c_inline" != no && break
14341 done
14342
14343 fi
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14345 $as_echo "$ac_cv_c_inline" >&6; }
14346
14347 case $ac_cv_c_inline in
14348 inline | yes) ;;
14349 *)
14350 case $ac_cv_c_inline in
14351 no) ac_val=;;
14352 *) ac_val=$ac_cv_c_inline;;
14353 esac
14354 cat >>confdefs.h <<_ACEOF
14355 #ifndef __cplusplus
14356 #define inline $ac_val
14357 #endif
14358 _ACEOF
14359 ;;
14360 esac
14361
14362
14363 REPLACE_NULL=0;
14364 HAVE_WCHAR_T=1;
14365 STDDEF_H='';
14366
14367
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14369 $as_echo_n "checking for wchar_t... " >&6; }
14370 if ${gt_cv_c_wchar_t+:} false; then :
14371 $as_echo_n "(cached) " >&6
14372 else
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14375 #include <stddef.h>
14376 wchar_t foo = (wchar_t)'\0';
14377 int
14378 main ()
14379 {
14380
14381 ;
14382 return 0;
14383 }
14384 _ACEOF
14385 if ac_fn_c_try_compile "$LINENO"; then :
14386 gt_cv_c_wchar_t=yes
14387 else
14388 gt_cv_c_wchar_t=no
14389 fi
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 fi
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14393 $as_echo "$gt_cv_c_wchar_t" >&6; }
14394 if test $gt_cv_c_wchar_t = yes; then
14395
14396 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14397
14398 fi
14399
14400
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14403 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14404 if ${ac_cv_c_restrict+:} false; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 ac_cv_c_restrict=no
14408 # The order here caters to the fact that C++ does not require restrict.
14409 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 typedef int * int_ptr;
14413 int foo (int_ptr $ac_kw ip) {
14414 return ip[0];
14415 }
14416 int
14417 main ()
14418 {
14419 int s[1];
14420 int * $ac_kw t = s;
14421 t[0] = 0;
14422 return foo(t)
14423 ;
14424 return 0;
14425 }
14426 _ACEOF
14427 if ac_fn_c_try_compile "$LINENO"; then :
14428 ac_cv_c_restrict=$ac_kw
14429 fi
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 test "$ac_cv_c_restrict" != no && break
14432 done
14433
14434 fi
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14436 $as_echo "$ac_cv_c_restrict" >&6; }
14437
14438 case $ac_cv_c_restrict in
14439 restrict) ;;
14440 no) $as_echo "#define restrict /**/" >>confdefs.h
14441 ;;
14442 *) cat >>confdefs.h <<_ACEOF
14443 #define restrict $ac_cv_c_restrict
14444 _ACEOF
14445 ;;
14446 esac
14447
14448
14449
14450
14451
14452
14453
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14455 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14456 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14461 #include <time.h>
14462
14463 int
14464 main ()
14465 {
14466 static struct timespec x; x.tv_sec = x.tv_nsec;
14467 ;
14468 return 0;
14469 }
14470 _ACEOF
14471 if ac_fn_c_try_compile "$LINENO"; then :
14472 gl_cv_sys_struct_timespec_in_time_h=yes
14473 else
14474 gl_cv_sys_struct_timespec_in_time_h=no
14475 fi
14476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14477 fi
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14479 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14480
14481 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14482 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14483 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14484 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14485 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14486 else
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14488 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14489 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14490 $as_echo_n "(cached) " >&6
14491 else
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14494 #include <sys/time.h>
14495
14496 int
14497 main ()
14498 {
14499 static struct timespec x; x.tv_sec = x.tv_nsec;
14500 ;
14501 return 0;
14502 }
14503 _ACEOF
14504 if ac_fn_c_try_compile "$LINENO"; then :
14505 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14506 else
14507 gl_cv_sys_struct_timespec_in_sys_time_h=no
14508 fi
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14512 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14513 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14514 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14515 else
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14517 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14518 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522 /* end confdefs.h. */
14523 #include <pthread.h>
14524
14525 int
14526 main ()
14527 {
14528 static struct timespec x; x.tv_sec = x.tv_nsec;
14529 ;
14530 return 0;
14531 }
14532 _ACEOF
14533 if ac_fn_c_try_compile "$LINENO"; then :
14534 gl_cv_sys_struct_timespec_in_pthread_h=yes
14535 else
14536 gl_cv_sys_struct_timespec_in_pthread_h=no
14537 fi
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 fi
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14541 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14542 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14543 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14544 fi
14545 fi
14546 fi
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560 if test $gl_cv_have_include_next = yes; then
14561 gl_cv_next_time_h='<'time.h'>'
14562 else
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14564 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14565 if ${gl_cv_next_time_h+:} false; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568
14569 if test $ac_cv_header_time_h = yes; then
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14572 #include <time.h>
14573
14574 _ACEOF
14575 case "$host_os" in
14576 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14577 *) gl_absname_cpp="$ac_cpp" ;;
14578 esac
14579 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14580 sed -n '\#/time.h#{
14581 s#.*"\(.*/time.h\)".*#\1#
14582 s#^/[^/]#//&#
14583 p
14584 q
14585 }'`'"'
14586 else
14587 gl_cv_next_time_h='<'time.h'>'
14588 fi
14589
14590 fi
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14592 $as_echo "$gl_cv_next_time_h" >&6; }
14593 fi
14594 NEXT_TIME_H=$gl_cv_next_time_h
14595
14596 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14598 gl_next_as_first_directive='<'time.h'>'
14599 else
14600 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14601 gl_next_as_first_directive=$gl_cv_next_time_h
14602 fi
14603 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14604
14605
14606
14607
14608
14609 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14610 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14611 ac_have_decl=1
14612 else
14613 ac_have_decl=0
14614 fi
14615
14616 cat >>confdefs.h <<_ACEOF
14617 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14618 _ACEOF
14619
14620
14621
14622
14623 if false; then
14624 GL_COND_LIBTOOL_TRUE=
14625 GL_COND_LIBTOOL_FALSE='#'
14626 else
14627 GL_COND_LIBTOOL_TRUE='#'
14628 GL_COND_LIBTOOL_FALSE=
14629 fi
14630
14631 gl_cond_libtool=false
14632 gl_libdeps=
14633 gl_ltlibdeps=
14634 gl_m4_base='m4'
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644 gl_source_base='lib'
14645 # Code from module arg-nonnull:
14646 # Code from module c++defs:
14647 # Code from module extensions:
14648 # Code from module ftoastr:
14649
14650 # Code from module getopt-gnu:
14651
14652
14653
14654
14655
14656
14657
14658 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14659
14660
14661 # Code from module getopt-posix:
14662
14663
14664
14665
14666
14667 if test -n "$gl_replace_getopt"; then :
14668
14669
14670
14671 GETOPT_H=getopt.h
14672
14673 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14674
14675
14676
14677 GNULIB_UNISTD_H_GETOPT=1
14678
14679
14680
14681
14682
14683
14684
14685
14686 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14697
14698
14699
14700
14701
14702
14703 fi
14704
14705
14706 # Code from module gettext-h:
14707
14708
14709 # Code from module include_next:
14710 # Code from module intprops:
14711 # Code from module mktime:
14712
14713
14714
14715
14716
14717 if test $APPLE_UNIVERSAL_BUILD = 1; then
14718 # A universal build on Apple MacOS X platforms.
14719 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14720 # But we need a configuration result that is valid in both modes.
14721 ac_cv_func_working_mktime=no
14722 fi
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14724 $as_echo_n "checking for working mktime... " >&6; }
14725 if ${ac_cv_func_working_mktime+:} false; then :
14726 $as_echo_n "(cached) " >&6
14727 else
14728 if test "$cross_compiling" = yes; then :
14729 ac_cv_func_working_mktime=no
14730 else
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14733 /* Test program from Paul Eggert and Tony Leneis. */
14734 #include <limits.h>
14735 #include <stdlib.h>
14736 #include <time.h>
14737
14738 #ifdef HAVE_UNISTD_H
14739 # include <unistd.h>
14740 #endif
14741
14742 #ifndef HAVE_ALARM
14743 # define alarm(X) /* empty */
14744 #endif
14745
14746 /* Work around redefinition to rpl_putenv by other config tests. */
14747 #undef putenv
14748
14749 static time_t time_t_max;
14750 static time_t time_t_min;
14751
14752 /* Values we'll use to set the TZ environment variable. */
14753 static char *tz_strings[] = {
14754 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14755 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14756 };
14757 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14758
14759 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14760 Based on a problem report from Andreas Jaeger. */
14761 static int
14762 spring_forward_gap ()
14763 {
14764 /* glibc (up to about 1998-10-07) failed this test. */
14765 struct tm tm;
14766
14767 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14768 instead of "TZ=America/Vancouver" in order to detect the bug even
14769 on systems that don't support the Olson extension, or don't have the
14770 full zoneinfo tables installed. */
14771 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14772
14773 tm.tm_year = 98;
14774 tm.tm_mon = 3;
14775 tm.tm_mday = 5;
14776 tm.tm_hour = 2;
14777 tm.tm_min = 0;
14778 tm.tm_sec = 0;
14779 tm.tm_isdst = -1;
14780 return mktime (&tm) != (time_t) -1;
14781 }
14782
14783 static int
14784 mktime_test1 (time_t now)
14785 {
14786 struct tm *lt;
14787 return ! (lt = localtime (&now)) || mktime (lt) == now;
14788 }
14789
14790 static int
14791 mktime_test (time_t now)
14792 {
14793 return (mktime_test1 (now)
14794 && mktime_test1 ((time_t) (time_t_max - now))
14795 && mktime_test1 ((time_t) (time_t_min + now)));
14796 }
14797
14798 static int
14799 irix_6_4_bug ()
14800 {
14801 /* Based on code from Ariel Faigon. */
14802 struct tm tm;
14803 tm.tm_year = 96;
14804 tm.tm_mon = 3;
14805 tm.tm_mday = 0;
14806 tm.tm_hour = 0;
14807 tm.tm_min = 0;
14808 tm.tm_sec = 0;
14809 tm.tm_isdst = -1;
14810 mktime (&tm);
14811 return tm.tm_mon == 2 && tm.tm_mday == 31;
14812 }
14813
14814 static int
14815 bigtime_test (int j)
14816 {
14817 struct tm tm;
14818 time_t now;
14819 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14820 now = mktime (&tm);
14821 if (now != (time_t) -1)
14822 {
14823 struct tm *lt = localtime (&now);
14824 if (! (lt
14825 && lt->tm_year == tm.tm_year
14826 && lt->tm_mon == tm.tm_mon
14827 && lt->tm_mday == tm.tm_mday
14828 && lt->tm_hour == tm.tm_hour
14829 && lt->tm_min == tm.tm_min
14830 && lt->tm_sec == tm.tm_sec
14831 && lt->tm_yday == tm.tm_yday
14832 && lt->tm_wday == tm.tm_wday
14833 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14834 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14835 return 0;
14836 }
14837 return 1;
14838 }
14839
14840 static int
14841 year_2050_test ()
14842 {
14843 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14844 ignoring leap seconds. */
14845 unsigned long int answer = 2527315200UL;
14846
14847 struct tm tm;
14848 time_t t;
14849 tm.tm_year = 2050 - 1900;
14850 tm.tm_mon = 2 - 1;
14851 tm.tm_mday = 1;
14852 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14853 tm.tm_isdst = -1;
14854
14855 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14856 instead of "TZ=America/Vancouver" in order to detect the bug even
14857 on systems that don't support the Olson extension, or don't have the
14858 full zoneinfo tables installed. */
14859 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14860
14861 t = mktime (&tm);
14862
14863 /* Check that the result is either a failure, or close enough
14864 to the correct answer that we can assume the discrepancy is
14865 due to leap seconds. */
14866 return (t == (time_t) -1
14867 || (0 < t && answer - 120 <= t && t <= answer + 120));
14868 }
14869
14870 int
14871 main ()
14872 {
14873 int result = 0;
14874 time_t t, delta;
14875 int i, j;
14876
14877 /* This test makes some buggy mktime implementations loop.
14878 Give up after 60 seconds; a mktime slower than that
14879 isn't worth using anyway. */
14880 alarm (60);
14881
14882 for (;;)
14883 {
14884 t = (time_t_max << 1) + 1;
14885 if (t <= time_t_max)
14886 break;
14887 time_t_max = t;
14888 }
14889 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
14890
14891 delta = time_t_max / 997; /* a suitable prime number */
14892 for (i = 0; i < N_STRINGS; i++)
14893 {
14894 if (tz_strings[i])
14895 putenv (tz_strings[i]);
14896
14897 for (t = 0; t <= time_t_max - delta; t += delta)
14898 if (! mktime_test (t))
14899 result |= 1;
14900 if (! (mktime_test ((time_t) 1)
14901 && mktime_test ((time_t) (60 * 60))
14902 && mktime_test ((time_t) (60 * 60 * 24))))
14903 result |= 2;
14904
14905 for (j = 1; ; j <<= 1)
14906 if (! bigtime_test (j))
14907 result |= 4;
14908 else if (INT_MAX / 2 < j)
14909 break;
14910 if (! bigtime_test (INT_MAX))
14911 result |= 8;
14912 }
14913 if (! irix_6_4_bug ())
14914 result |= 16;
14915 if (! spring_forward_gap ())
14916 result |= 32;
14917 if (! year_2050_test ())
14918 result |= 64;
14919 return result;
14920 }
14921 _ACEOF
14922 if ac_fn_c_try_run "$LINENO"; then :
14923 ac_cv_func_working_mktime=yes
14924 else
14925 ac_cv_func_working_mktime=no
14926 fi
14927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14928 conftest.$ac_objext conftest.beam conftest.$ac_ext
14929 fi
14930
14931 fi
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
14933 $as_echo "$ac_cv_func_working_mktime" >&6; }
14934 if test $ac_cv_func_working_mktime = no; then
14935
14936
14937
14938
14939
14940
14941
14942
14943 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
14944
14945 fi
14946
14947 if test $ac_cv_func_working_mktime = no; then
14948 REPLACE_MKTIME=1
14949
14950
14951
14952 else
14953 REPLACE_MKTIME=0
14954 fi
14955
14956
14957
14958
14959 GNULIB_MKTIME=1
14960
14961
14962
14963 $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
14964
14965
14966
14967 # Code from module multiarch:
14968
14969 # Code from module stddef:
14970
14971
14972
14973 if test $gt_cv_c_wchar_t = no; then
14974 HAVE_WCHAR_T=0
14975 STDDEF_H=stddef.h
14976 fi
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14978 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14979 if ${gl_cv_decl_null_works+:} false; then :
14980 $as_echo_n "(cached) " >&6
14981 else
14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983 /* end confdefs.h. */
14984 #include <stddef.h>
14985 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14986
14987 int
14988 main ()
14989 {
14990
14991 ;
14992 return 0;
14993 }
14994 _ACEOF
14995 if ac_fn_c_try_compile "$LINENO"; then :
14996 gl_cv_decl_null_works=yes
14997 else
14998 gl_cv_decl_null_works=no
14999 fi
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 fi
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15003 $as_echo "$gl_cv_decl_null_works" >&6; }
15004 if test $gl_cv_decl_null_works = no; then
15005 REPLACE_NULL=1
15006 STDDEF_H=stddef.h
15007 fi
15008 if test -n "$STDDEF_H"; then
15009
15010
15011
15012
15013
15014
15015 if test $gl_cv_have_include_next = yes; then
15016 gl_cv_next_stddef_h='<'stddef.h'>'
15017 else
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15019 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15020 if ${gl_cv_next_stddef_h+:} false; then :
15021 $as_echo_n "(cached) " >&6
15022 else
15023
15024 if test $ac_cv_header_stddef_h = yes; then
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15027 #include <stddef.h>
15028
15029 _ACEOF
15030 case "$host_os" in
15031 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15032 *) gl_absname_cpp="$ac_cpp" ;;
15033 esac
15034 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15035 sed -n '\#/stddef.h#{
15036 s#.*"\(.*/stddef.h\)".*#\1#
15037 s#^/[^/]#//&#
15038 p
15039 q
15040 }'`'"'
15041 else
15042 gl_cv_next_stddef_h='<'stddef.h'>'
15043 fi
15044
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15047 $as_echo "$gl_cv_next_stddef_h" >&6; }
15048 fi
15049 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15050
15051 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15053 gl_next_as_first_directive='<'stddef.h'>'
15054 else
15055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15056 gl_next_as_first_directive=$gl_cv_next_stddef_h
15057 fi
15058 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15059
15060
15061
15062 fi
15063
15064 # Code from module time:
15065
15066
15067
15068 # Code from module time_r:
15069
15070
15071
15072
15073
15074
15075
15076 if test $ac_cv_have_decl_localtime_r = no; then
15077 HAVE_DECL_LOCALTIME_R=0
15078 fi
15079
15080
15081 if test $ac_cv_func_localtime_r = yes; then
15082 HAVE_LOCALTIME_R=1
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15084 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15085 if ${gl_cv_time_r_posix+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 #include <time.h>
15091 int
15092 main ()
15093 {
15094 /* We don't need to append 'restrict's to the argument types,
15095 even though the POSIX signature has the 'restrict's,
15096 since C99 says they can't affect type compatibility. */
15097 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15098 if (ptr) return 0;
15099 /* Check the return type is a pointer.
15100 On HP-UX 10 it is 'int'. */
15101 *localtime_r (0, 0);
15102 ;
15103 return 0;
15104 }
15105
15106 _ACEOF
15107 if ac_fn_c_try_compile "$LINENO"; then :
15108 gl_cv_time_r_posix=yes
15109 else
15110 gl_cv_time_r_posix=no
15111 fi
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113
15114 fi
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15116 $as_echo "$gl_cv_time_r_posix" >&6; }
15117 if test $gl_cv_time_r_posix = yes; then
15118 REPLACE_LOCALTIME_R=0
15119 else
15120 REPLACE_LOCALTIME_R=1
15121 fi
15122 else
15123 HAVE_LOCALTIME_R=0
15124 fi
15125 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15126
15127
15128
15129
15130
15131
15132
15133
15134 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15135
15136
15137 :
15138
15139 fi
15140
15141
15142
15143
15144 GNULIB_TIME_R=1
15145
15146
15147
15148 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
15149
15150
15151
15152 # Code from module unistd:
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163 if test $gl_cv_have_include_next = yes; then
15164 gl_cv_next_unistd_h='<'unistd.h'>'
15165 else
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15167 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15168 if ${gl_cv_next_unistd_h+:} false; then :
15169 $as_echo_n "(cached) " >&6
15170 else
15171
15172 if test $ac_cv_header_unistd_h = yes; then
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15175 #include <unistd.h>
15176
15177 _ACEOF
15178 case "$host_os" in
15179 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15180 *) gl_absname_cpp="$ac_cpp" ;;
15181 esac
15182 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15183 sed -n '\#/unistd.h#{
15184 s#.*"\(.*/unistd.h\)".*#\1#
15185 s#^/[^/]#//&#
15186 p
15187 q
15188 }'`'"'
15189 else
15190 gl_cv_next_unistd_h='<'unistd.h'>'
15191 fi
15192
15193 fi
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15195 $as_echo "$gl_cv_next_unistd_h" >&6; }
15196 fi
15197 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15198
15199 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15201 gl_next_as_first_directive='<'unistd.h'>'
15202 else
15203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15204 gl_next_as_first_directive=$gl_cv_next_unistd_h
15205 fi
15206 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15207
15208
15209
15210
15211
15212 if test $ac_cv_header_unistd_h = yes; then
15213 HAVE_UNISTD_H=1
15214 else
15215 HAVE_UNISTD_H=0
15216 fi
15217
15218
15219
15220 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
15221 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15223 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15224 if eval \${$as_gl_Symbol+:} false; then :
15225 $as_echo_n "(cached) " >&6
15226 else
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #include <unistd.h>
15230 /* Some systems declare various items in the wrong headers. */
15231 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15232 # include <fcntl.h>
15233 # include <stdio.h>
15234 # include <stdlib.h>
15235 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15236 # include <io.h>
15237 # endif
15238 #endif
15239
15240 int
15241 main ()
15242 {
15243 #undef $gl_func
15244 (void) $gl_func;
15245 ;
15246 return 0;
15247 }
15248 _ACEOF
15249 if ac_fn_c_try_compile "$LINENO"; then :
15250 eval "$as_gl_Symbol=yes"
15251 else
15252 eval "$as_gl_Symbol=no"
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15255 fi
15256 eval ac_res=\$$as_gl_Symbol
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15258 $as_echo "$ac_res" >&6; }
15259 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15260 cat >>confdefs.h <<_ACEOF
15261 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15262 _ACEOF
15263
15264 eval ac_cv_have_decl_$gl_func=yes
15265 fi
15266 done
15267
15268
15269 # Code from module warn-on-use:
15270 # End of code from modules
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280 gltests_libdeps=
15281 gltests_ltlibdeps=
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291 gl_source_base='tests'
15292 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
15293
15294 gl_module_indicator_condition=$gltests_WITNESS
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304 LIBGNU_LIBDEPS="$gl_libdeps"
15305
15306 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15307
15308
15309
15310 for ac_func in strftime
15311 do :
15312 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15313 if test "x$ac_cv_func_strftime" = xyes; then :
15314 cat >>confdefs.h <<_ACEOF
15315 #define HAVE_STRFTIME 1
15316 _ACEOF
15317
15318 else
15319 # strftime is in -lintl on SCO UNIX.
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15321 $as_echo_n "checking for strftime in -lintl... " >&6; }
15322 if ${ac_cv_lib_intl_strftime+:} false; then :
15323 $as_echo_n "(cached) " >&6
15324 else
15325 ac_check_lib_save_LIBS=$LIBS
15326 LIBS="-lintl $LIBS"
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329
15330 /* Override any GCC internal prototype to avoid an error.
15331 Use char because int might match the return type of a GCC
15332 builtin and then its argument prototype would still apply. */
15333 #ifdef __cplusplus
15334 extern "C"
15335 #endif
15336 char strftime ();
15337 int
15338 main ()
15339 {
15340 return strftime ();
15341 ;
15342 return 0;
15343 }
15344 _ACEOF
15345 if ac_fn_c_try_link "$LINENO"; then :
15346 ac_cv_lib_intl_strftime=yes
15347 else
15348 ac_cv_lib_intl_strftime=no
15349 fi
15350 rm -f core conftest.err conftest.$ac_objext \
15351 conftest$ac_exeext conftest.$ac_ext
15352 LIBS=$ac_check_lib_save_LIBS
15353 fi
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15355 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
15356 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
15357 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15358
15359 LIBS="-lintl $LIBS"
15360 fi
15361
15362 fi
15363 done
15364
15365
15366 # UNIX98 PTYs.
15367 for ac_func in grantpt
15368 do :
15369 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15370 if test "x$ac_cv_func_grantpt" = xyes; then :
15371 cat >>confdefs.h <<_ACEOF
15372 #define HAVE_GRANTPT 1
15373 _ACEOF
15374
15375 fi
15376 done
15377
15378
15379 # PTY-related GNU extensions.
15380 for ac_func in getpt
15381 do :
15382 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
15383 if test "x$ac_cv_func_getpt" = xyes; then :
15384 cat >>confdefs.h <<_ACEOF
15385 #define HAVE_GETPT 1
15386 _ACEOF
15387
15388 fi
15389 done
15390
15391
15392 # Check this now, so that we will NOT find the above functions in ncurses.
15393 # That is because we have not set up to link ncurses in lib-src.
15394 # It's better to believe a function is not available
15395 # than to expect to find it in ncurses.
15396 # Also we need tputs and friends to be able to build at all.
15397 have_tputs_et_al=true
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15399 $as_echo_n "checking for library containing tputs... " >&6; }
15400 if ${ac_cv_search_tputs+:} false; then :
15401 $as_echo_n "(cached) " >&6
15402 else
15403 ac_func_search_save_LIBS=$LIBS
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406
15407 /* Override any GCC internal prototype to avoid an error.
15408 Use char because int might match the return type of a GCC
15409 builtin and then its argument prototype would still apply. */
15410 #ifdef __cplusplus
15411 extern "C"
15412 #endif
15413 char tputs ();
15414 int
15415 main ()
15416 {
15417 return tputs ();
15418 ;
15419 return 0;
15420 }
15421 _ACEOF
15422 for ac_lib in '' ncurses terminfo termcap; do
15423 if test -z "$ac_lib"; then
15424 ac_res="none required"
15425 else
15426 ac_res=-l$ac_lib
15427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15428 fi
15429 if ac_fn_c_try_link "$LINENO"; then :
15430 ac_cv_search_tputs=$ac_res
15431 fi
15432 rm -f core conftest.err conftest.$ac_objext \
15433 conftest$ac_exeext
15434 if ${ac_cv_search_tputs+:} false; then :
15435 break
15436 fi
15437 done
15438 if ${ac_cv_search_tputs+:} false; then :
15439
15440 else
15441 ac_cv_search_tputs=no
15442 fi
15443 rm conftest.$ac_ext
15444 LIBS=$ac_func_search_save_LIBS
15445 fi
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15447 $as_echo "$ac_cv_search_tputs" >&6; }
15448 ac_res=$ac_cv_search_tputs
15449 if test "$ac_res" != no; then :
15450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15451
15452 else
15453 have_tputs_et_al=false
15454 fi
15455
15456 if test "$have_tputs_et_al" != true; then
15457 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
15458 Maybe some development libraries/packages are missing? Try installing
15459 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15460 fi
15461 # Must define this when any termcap library is found.
15462
15463 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15464
15465 ## FIXME This was the cpp logic, but I am not sure it is right.
15466 ## The above test has not necessarily found libncurses.
15467 HAVE_LIBNCURSES=yes
15468
15469 ## Use terminfo instead of termcap?
15470 ## Note only system files NOT using terminfo are:
15471 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15472 ## darwin|gnu without ncurses.
15473 TERMINFO=no
15474 LIBS_TERMCAP=
15475 case "$opsys" in
15476 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15477 ## hpux10-20: Use the system provided termcap(3) library.
15478 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15479 ## is necessary. Otherwise Emacs dumps core when run -nw.
15480 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15481
15482 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15483 ## The ncurses library has been moved out of the System framework in
15484 ## Mac OS X 10.2. So if configure detects it, set the command-line
15485 ## option to use it.
15486 darwin|gnu*)
15487 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15488 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15489 TERMINFO=yes
15490 LIBS_TERMCAP="-lncurses"
15491 fi
15492 ;;
15493
15494 freebsd)
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15496 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15497 if ${emacs_cv_freebsd_terminfo+:} false; then :
15498 $as_echo_n "(cached) " >&6
15499 else
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502 #include <osreldate.h>
15503 int
15504 main ()
15505 {
15506 #if __FreeBSD_version < 400000
15507 fail;
15508 #endif
15509
15510 ;
15511 return 0;
15512 }
15513 _ACEOF
15514 if ac_fn_c_try_link "$LINENO"; then :
15515 emacs_cv_freebsd_terminfo=yes
15516 else
15517 emacs_cv_freebsd_terminfo=no
15518 fi
15519 rm -f core conftest.err conftest.$ac_objext \
15520 conftest$ac_exeext conftest.$ac_ext
15521 fi
15522
15523
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15525 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15526
15527 if test $emacs_cv_freebsd_terminfo = yes; then
15528 TERMINFO=yes
15529 LIBS_TERMCAP="-lncurses"
15530 else
15531 LIBS_TERMCAP="-ltermcap"
15532 fi
15533 ;;
15534
15535 netbsd)
15536 if test $ac_cv_search_tputs = -lterminfo; then
15537 TERMINFO=yes
15538 LIBS_TERMCAP="-lterminfo"
15539 else
15540 LIBS_TERMCAP="-ltermcap"
15541 fi
15542 ;;
15543
15544 esac
15545
15546 case "$opsys" in
15547 ## hpux: Make sure we get select from libc rather than from libcurses
15548 ## because libcurses on HPUX 10.10 has a broken version of select.
15549 ## We used to use -lc -lcurses, but this may be cleaner.
15550 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15551
15552 openbsd) LIBS_TERMCAP="-lncurses" ;;
15553
15554 ## Must use system termcap, if we use any termcap. It does special things.
15555 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15556 esac
15557
15558 TERMCAP_OBJ=tparam.o
15559 if test $TERMINFO = yes; then
15560
15561 $as_echo "#define TERMINFO 1" >>confdefs.h
15562
15563
15564 ## Default used to be -ltermcap. Add a case above if need something else.
15565 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15566
15567 TERMCAP_OBJ=terminfo.o
15568 fi
15569
15570
15571
15572
15573 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15574 resolv=no
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15577 #include <netinet/in.h>
15578 #include <arpa/nameser.h>
15579 #include <resolv.h>
15580 int
15581 main ()
15582 {
15583 return res_init();
15584 ;
15585 return 0;
15586 }
15587 _ACEOF
15588 if ac_fn_c_try_link "$LINENO"; then :
15589 have_res_init=yes
15590 else
15591 have_res_init=no
15592 fi
15593 rm -f core conftest.err conftest.$ac_objext \
15594 conftest$ac_exeext conftest.$ac_ext
15595 if test "$have_res_init" = no; then
15596 OLIBS="$LIBS"
15597 LIBS="$LIBS -lresolv"
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15599 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 #include <netinet/in.h>
15603 #include <arpa/nameser.h>
15604 #include <resolv.h>
15605 int
15606 main ()
15607 {
15608 return res_init();
15609 ;
15610 return 0;
15611 }
15612 _ACEOF
15613 if ac_fn_c_try_link "$LINENO"; then :
15614 have_res_init=yes
15615 else
15616 have_res_init=no
15617 fi
15618 rm -f core conftest.err conftest.$ac_objext \
15619 conftest$ac_exeext conftest.$ac_ext
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15621 $as_echo "$have_res_init" >&6; }
15622 if test "$have_res_init" = yes ; then
15623 resolv=yes
15624 fi
15625 LIBS="$OLIBS"
15626 fi
15627
15628 if test "$have_res_init" = yes; then
15629
15630 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15631
15632 fi
15633
15634 # Do we need the Hesiod library to provide the support routines?
15635 LIBHESIOD=
15636 if test "$with_hesiod" != no ; then
15637 # Don't set $LIBS here -- see comments above. FIXME which comments?
15638 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15639 if test "x$ac_cv_func_res_send" = xyes; then :
15640
15641 else
15642 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15643 if test "x$ac_cv_func___res_send" = xyes; then :
15644
15645 else
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15647 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15648 if ${ac_cv_lib_resolv_res_send+:} false; then :
15649 $as_echo_n "(cached) " >&6
15650 else
15651 ac_check_lib_save_LIBS=$LIBS
15652 LIBS="-lresolv $LIBS"
15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15655
15656 /* Override any GCC internal prototype to avoid an error.
15657 Use char because int might match the return type of a GCC
15658 builtin and then its argument prototype would still apply. */
15659 #ifdef __cplusplus
15660 extern "C"
15661 #endif
15662 char res_send ();
15663 int
15664 main ()
15665 {
15666 return res_send ();
15667 ;
15668 return 0;
15669 }
15670 _ACEOF
15671 if ac_fn_c_try_link "$LINENO"; then :
15672 ac_cv_lib_resolv_res_send=yes
15673 else
15674 ac_cv_lib_resolv_res_send=no
15675 fi
15676 rm -f core conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15678 LIBS=$ac_check_lib_save_LIBS
15679 fi
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15681 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15682 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
15683 resolv=yes
15684 else
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15686 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15687 if ${ac_cv_lib_resolv___res_send+:} false; then :
15688 $as_echo_n "(cached) " >&6
15689 else
15690 ac_check_lib_save_LIBS=$LIBS
15691 LIBS="-lresolv $LIBS"
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h. */
15694
15695 /* Override any GCC internal prototype to avoid an error.
15696 Use char because int might match the return type of a GCC
15697 builtin and then its argument prototype would still apply. */
15698 #ifdef __cplusplus
15699 extern "C"
15700 #endif
15701 char __res_send ();
15702 int
15703 main ()
15704 {
15705 return __res_send ();
15706 ;
15707 return 0;
15708 }
15709 _ACEOF
15710 if ac_fn_c_try_link "$LINENO"; then :
15711 ac_cv_lib_resolv___res_send=yes
15712 else
15713 ac_cv_lib_resolv___res_send=no
15714 fi
15715 rm -f core conftest.err conftest.$ac_objext \
15716 conftest$ac_exeext conftest.$ac_ext
15717 LIBS=$ac_check_lib_save_LIBS
15718 fi
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15720 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15721 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
15722 resolv=yes
15723 fi
15724
15725 fi
15726
15727 fi
15728
15729 fi
15730
15731 if test "$resolv" = yes ; then
15732 RESOLVLIB=-lresolv
15733 else
15734 RESOLVLIB=
15735 fi
15736 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15737 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
15738
15739 else
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15741 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15742 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
15743 $as_echo_n "(cached) " >&6
15744 else
15745 ac_check_lib_save_LIBS=$LIBS
15746 LIBS="-lhesiod $RESOLVLIB $LIBS"
15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
15749
15750 /* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
15753 #ifdef __cplusplus
15754 extern "C"
15755 #endif
15756 char hes_getmailhost ();
15757 int
15758 main ()
15759 {
15760 return hes_getmailhost ();
15761 ;
15762 return 0;
15763 }
15764 _ACEOF
15765 if ac_fn_c_try_link "$LINENO"; then :
15766 ac_cv_lib_hesiod_hes_getmailhost=yes
15767 else
15768 ac_cv_lib_hesiod_hes_getmailhost=no
15769 fi
15770 rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15772 LIBS=$ac_check_lib_save_LIBS
15773 fi
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15775 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15776 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
15777 hesiod=yes
15778 else
15779 :
15780 fi
15781
15782 fi
15783
15784
15785 if test x"$hesiod" = xyes; then
15786
15787 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15788
15789 LIBHESIOD=-lhesiod
15790 fi
15791 fi
15792
15793
15794 # Do we need libresolv (due to res_init or Hesiod)?
15795 if test "$resolv" = yes ; then
15796
15797 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15798
15799 LIBRESOLV=-lresolv
15800 else
15801 LIBRESOLV=
15802 fi
15803
15804
15805 # These tell us which Kerberos-related libraries to use.
15806 COM_ERRLIB=
15807 CRYPTOLIB=
15808 KRB5LIB=
15809 DESLIB=
15810 KRB4LIB=
15811
15812 if test "${with_kerberos}" != no; then
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15814 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15815 if ${ac_cv_lib_com_err_com_err+:} false; then :
15816 $as_echo_n "(cached) " >&6
15817 else
15818 ac_check_lib_save_LIBS=$LIBS
15819 LIBS="-lcom_err $LIBS"
15820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821 /* end confdefs.h. */
15822
15823 /* Override any GCC internal prototype to avoid an error.
15824 Use char because int might match the return type of a GCC
15825 builtin and then its argument prototype would still apply. */
15826 #ifdef __cplusplus
15827 extern "C"
15828 #endif
15829 char com_err ();
15830 int
15831 main ()
15832 {
15833 return com_err ();
15834 ;
15835 return 0;
15836 }
15837 _ACEOF
15838 if ac_fn_c_try_link "$LINENO"; then :
15839 ac_cv_lib_com_err_com_err=yes
15840 else
15841 ac_cv_lib_com_err_com_err=no
15842 fi
15843 rm -f core conftest.err conftest.$ac_objext \
15844 conftest$ac_exeext conftest.$ac_ext
15845 LIBS=$ac_check_lib_save_LIBS
15846 fi
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15848 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15849 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
15850 have_com_err=yes
15851 else
15852 have_com_err=no
15853 fi
15854
15855 if test $have_com_err = yes; then
15856 COM_ERRLIB=-lcom_err
15857 LIBS="$COM_ERRLIB $LIBS"
15858
15859 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15860
15861 fi
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15863 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15864 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 ac_check_lib_save_LIBS=$LIBS
15868 LIBS="-lcrypto $LIBS"
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15871
15872 /* Override any GCC internal prototype to avoid an error.
15873 Use char because int might match the return type of a GCC
15874 builtin and then its argument prototype would still apply. */
15875 #ifdef __cplusplus
15876 extern "C"
15877 #endif
15878 char mit_des_cbc_encrypt ();
15879 int
15880 main ()
15881 {
15882 return mit_des_cbc_encrypt ();
15883 ;
15884 return 0;
15885 }
15886 _ACEOF
15887 if ac_fn_c_try_link "$LINENO"; then :
15888 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15889 else
15890 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15891 fi
15892 rm -f core conftest.err conftest.$ac_objext \
15893 conftest$ac_exeext conftest.$ac_ext
15894 LIBS=$ac_check_lib_save_LIBS
15895 fi
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15897 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15898 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
15899 have_crypto=yes
15900 else
15901 have_crypto=no
15902 fi
15903
15904 if test $have_crypto = yes; then
15905 CRYPTOLIB=-lcrypto
15906 LIBS="$CRYPTOLIB $LIBS"
15907
15908 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15909
15910 fi
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15912 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15913 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
15914 $as_echo_n "(cached) " >&6
15915 else
15916 ac_check_lib_save_LIBS=$LIBS
15917 LIBS="-lk5crypto $LIBS"
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15920
15921 /* Override any GCC internal prototype to avoid an error.
15922 Use char because int might match the return type of a GCC
15923 builtin and then its argument prototype would still apply. */
15924 #ifdef __cplusplus
15925 extern "C"
15926 #endif
15927 char mit_des_cbc_encrypt ();
15928 int
15929 main ()
15930 {
15931 return mit_des_cbc_encrypt ();
15932 ;
15933 return 0;
15934 }
15935 _ACEOF
15936 if ac_fn_c_try_link "$LINENO"; then :
15937 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15938 else
15939 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15940 fi
15941 rm -f core conftest.err conftest.$ac_objext \
15942 conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15944 fi
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15946 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15947 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
15948 have_k5crypto=yes
15949 else
15950 have_k5crypto=no
15951 fi
15952
15953 if test $have_k5crypto = yes; then
15954 CRYPTOLIB=-lk5crypto
15955 LIBS="$CRYPTOLIB $LIBS"
15956
15957 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15958
15959 fi
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15961 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15962 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15963 $as_echo_n "(cached) " >&6
15964 else
15965 ac_check_lib_save_LIBS=$LIBS
15966 LIBS="-lkrb5 $LIBS"
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969
15970 /* Override any GCC internal prototype to avoid an error.
15971 Use char because int might match the return type of a GCC
15972 builtin and then its argument prototype would still apply. */
15973 #ifdef __cplusplus
15974 extern "C"
15975 #endif
15976 char krb5_init_context ();
15977 int
15978 main ()
15979 {
15980 return krb5_init_context ();
15981 ;
15982 return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_link "$LINENO"; then :
15986 ac_cv_lib_krb5_krb5_init_context=yes
15987 else
15988 ac_cv_lib_krb5_krb5_init_context=no
15989 fi
15990 rm -f core conftest.err conftest.$ac_objext \
15991 conftest$ac_exeext conftest.$ac_ext
15992 LIBS=$ac_check_lib_save_LIBS
15993 fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15995 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15996 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15997 have_krb5=yes
15998 else
15999 have_krb5=no
16000 fi
16001
16002 if test $have_krb5=yes; then
16003 KRB5LIB=-lkrb5
16004 LIBS="$KRB5LIB $LIBS"
16005
16006 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16007
16008 fi
16009 if test "${with_kerberos5}" = no; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16011 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16012 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
16013 $as_echo_n "(cached) " >&6
16014 else
16015 ac_check_lib_save_LIBS=$LIBS
16016 LIBS="-ldes425 $LIBS"
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16019
16020 /* Override any GCC internal prototype to avoid an error.
16021 Use char because int might match the return type of a GCC
16022 builtin and then its argument prototype would still apply. */
16023 #ifdef __cplusplus
16024 extern "C"
16025 #endif
16026 char des_cbc_encrypt ();
16027 int
16028 main ()
16029 {
16030 return des_cbc_encrypt ();
16031 ;
16032 return 0;
16033 }
16034 _ACEOF
16035 if ac_fn_c_try_link "$LINENO"; then :
16036 ac_cv_lib_des425_des_cbc_encrypt=yes
16037 else
16038 ac_cv_lib_des425_des_cbc_encrypt=no
16039 fi
16040 rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16042 LIBS=$ac_check_lib_save_LIBS
16043 fi
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16045 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16046 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
16047 have_des425=yes
16048 else
16049 have_des425=no
16050 fi
16051
16052 if test $have_des425 = yes; then
16053 DESLIB=-ldes425
16054 LIBS="$DESLIB $LIBS"
16055
16056 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16057
16058 else
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16060 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16061 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16062 $as_echo_n "(cached) " >&6
16063 else
16064 ac_check_lib_save_LIBS=$LIBS
16065 LIBS="-ldes $LIBS"
16066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067 /* end confdefs.h. */
16068
16069 /* Override any GCC internal prototype to avoid an error.
16070 Use char because int might match the return type of a GCC
16071 builtin and then its argument prototype would still apply. */
16072 #ifdef __cplusplus
16073 extern "C"
16074 #endif
16075 char des_cbc_encrypt ();
16076 int
16077 main ()
16078 {
16079 return des_cbc_encrypt ();
16080 ;
16081 return 0;
16082 }
16083 _ACEOF
16084 if ac_fn_c_try_link "$LINENO"; then :
16085 ac_cv_lib_des_des_cbc_encrypt=yes
16086 else
16087 ac_cv_lib_des_des_cbc_encrypt=no
16088 fi
16089 rm -f core conftest.err conftest.$ac_objext \
16090 conftest$ac_exeext conftest.$ac_ext
16091 LIBS=$ac_check_lib_save_LIBS
16092 fi
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16094 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16095 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16096 have_des=yes
16097 else
16098 have_des=no
16099 fi
16100
16101 if test $have_des = yes; then
16102 DESLIB=-ldes
16103 LIBS="$DESLIB $LIBS"
16104
16105 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16106
16107 fi
16108 fi
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16110 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16111 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
16112 $as_echo_n "(cached) " >&6
16113 else
16114 ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-lkrb4 $LIBS"
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118
16119 /* Override any GCC internal prototype to avoid an error.
16120 Use char because int might match the return type of a GCC
16121 builtin and then its argument prototype would still apply. */
16122 #ifdef __cplusplus
16123 extern "C"
16124 #endif
16125 char krb_get_cred ();
16126 int
16127 main ()
16128 {
16129 return krb_get_cred ();
16130 ;
16131 return 0;
16132 }
16133 _ACEOF
16134 if ac_fn_c_try_link "$LINENO"; then :
16135 ac_cv_lib_krb4_krb_get_cred=yes
16136 else
16137 ac_cv_lib_krb4_krb_get_cred=no
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16141 LIBS=$ac_check_lib_save_LIBS
16142 fi
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16144 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16145 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
16146 have_krb4=yes
16147 else
16148 have_krb4=no
16149 fi
16150
16151 if test $have_krb4 = yes; then
16152 KRB4LIB=-lkrb4
16153 LIBS="$KRB4LIB $LIBS"
16154
16155 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16156
16157 else
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16159 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16160 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
16161 $as_echo_n "(cached) " >&6
16162 else
16163 ac_check_lib_save_LIBS=$LIBS
16164 LIBS="-lkrb $LIBS"
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167
16168 /* Override any GCC internal prototype to avoid an error.
16169 Use char because int might match the return type of a GCC
16170 builtin and then its argument prototype would still apply. */
16171 #ifdef __cplusplus
16172 extern "C"
16173 #endif
16174 char krb_get_cred ();
16175 int
16176 main ()
16177 {
16178 return krb_get_cred ();
16179 ;
16180 return 0;
16181 }
16182 _ACEOF
16183 if ac_fn_c_try_link "$LINENO"; then :
16184 ac_cv_lib_krb_krb_get_cred=yes
16185 else
16186 ac_cv_lib_krb_krb_get_cred=no
16187 fi
16188 rm -f core conftest.err conftest.$ac_objext \
16189 conftest$ac_exeext conftest.$ac_ext
16190 LIBS=$ac_check_lib_save_LIBS
16191 fi
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16193 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16194 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
16195 have_krb=yes
16196 else
16197 have_krb=no
16198 fi
16199
16200 if test $have_krb = yes; then
16201 KRB4LIB=-lkrb
16202 LIBS="$KRB4LIB $LIBS"
16203
16204 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16205
16206 fi
16207 fi
16208 fi
16209
16210 if test "${with_kerberos5}" != no; then
16211 for ac_header in krb5.h
16212 do :
16213 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16214 if test "x$ac_cv_header_krb5_h" = xyes; then :
16215 cat >>confdefs.h <<_ACEOF
16216 #define HAVE_KRB5_H 1
16217 _ACEOF
16218 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16219 "
16220 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
16221
16222 cat >>confdefs.h <<_ACEOF
16223 #define HAVE_KRB5_ERROR_TEXT 1
16224 _ACEOF
16225
16226
16227 fi
16228 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16229 "
16230 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
16231
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_KRB5_ERROR_E_TEXT 1
16234 _ACEOF
16235
16236
16237 fi
16238
16239 fi
16240
16241 done
16242
16243 else
16244 for ac_header in des.h
16245 do :
16246 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16247 if test "x$ac_cv_header_des_h" = xyes; then :
16248 cat >>confdefs.h <<_ACEOF
16249 #define HAVE_DES_H 1
16250 _ACEOF
16251
16252 else
16253 for ac_header in kerberosIV/des.h
16254 do :
16255 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16256 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
16257 cat >>confdefs.h <<_ACEOF
16258 #define HAVE_KERBEROSIV_DES_H 1
16259 _ACEOF
16260
16261 else
16262 for ac_header in kerberos/des.h
16263 do :
16264 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16265 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
16266 cat >>confdefs.h <<_ACEOF
16267 #define HAVE_KERBEROS_DES_H 1
16268 _ACEOF
16269
16270 fi
16271
16272 done
16273
16274 fi
16275
16276 done
16277
16278 fi
16279
16280 done
16281
16282 for ac_header in krb.h
16283 do :
16284 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16285 if test "x$ac_cv_header_krb_h" = xyes; then :
16286 cat >>confdefs.h <<_ACEOF
16287 #define HAVE_KRB_H 1
16288 _ACEOF
16289
16290 else
16291 for ac_header in kerberosIV/krb.h
16292 do :
16293 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16294 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
16295 cat >>confdefs.h <<_ACEOF
16296 #define HAVE_KERBEROSIV_KRB_H 1
16297 _ACEOF
16298
16299 else
16300 for ac_header in kerberos/krb.h
16301 do :
16302 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16303 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
16304 cat >>confdefs.h <<_ACEOF
16305 #define HAVE_KERBEROS_KRB_H 1
16306 _ACEOF
16307
16308 fi
16309
16310 done
16311
16312 fi
16313
16314 done
16315
16316 fi
16317
16318 done
16319
16320 fi
16321 for ac_header in com_err.h
16322 do :
16323 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16324 if test "x$ac_cv_header_com_err_h" = xyes; then :
16325 cat >>confdefs.h <<_ACEOF
16326 #define HAVE_COM_ERR_H 1
16327 _ACEOF
16328
16329 fi
16330
16331 done
16332
16333 fi
16334
16335
16336
16337
16338
16339
16340
16341 # Solaris requires -lintl if you want strerror (which calls dgettext)
16342 # to return localized messages.
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16344 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16345 if ${ac_cv_lib_intl_dgettext+:} false; then :
16346 $as_echo_n "(cached) " >&6
16347 else
16348 ac_check_lib_save_LIBS=$LIBS
16349 LIBS="-lintl $LIBS"
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352
16353 /* Override any GCC internal prototype to avoid an error.
16354 Use char because int might match the return type of a GCC
16355 builtin and then its argument prototype would still apply. */
16356 #ifdef __cplusplus
16357 extern "C"
16358 #endif
16359 char dgettext ();
16360 int
16361 main ()
16362 {
16363 return dgettext ();
16364 ;
16365 return 0;
16366 }
16367 _ACEOF
16368 if ac_fn_c_try_link "$LINENO"; then :
16369 ac_cv_lib_intl_dgettext=yes
16370 else
16371 ac_cv_lib_intl_dgettext=no
16372 fi
16373 rm -f core conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 LIBS=$ac_check_lib_save_LIBS
16376 fi
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16378 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16379 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
16380 cat >>confdefs.h <<_ACEOF
16381 #define HAVE_LIBINTL 1
16382 _ACEOF
16383
16384 LIBS="-lintl $LIBS"
16385
16386 fi
16387
16388
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16390 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16391 if ${emacs_cv_localtime_cache+:} false; then :
16392 $as_echo_n "(cached) " >&6
16393 else
16394 if test x$ac_cv_func_tzset = xyes; then
16395 if test "$cross_compiling" = yes; then :
16396 # If we have tzset, assume the worst when cross-compiling.
16397 emacs_cv_localtime_cache=yes
16398 else
16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400 /* end confdefs.h. */
16401 #include <time.h>
16402 char TZ_GMT0[] = "TZ=GMT0";
16403 char TZ_PST8[] = "TZ=PST8";
16404 main()
16405 {
16406 time_t now = time ((time_t *) 0);
16407 int hour_GMT0, hour_unset;
16408 if (putenv (TZ_GMT0) != 0)
16409 exit (1);
16410 hour_GMT0 = localtime (&now)->tm_hour;
16411 unsetenv("TZ");
16412 hour_unset = localtime (&now)->tm_hour;
16413 if (putenv (TZ_PST8) != 0)
16414 exit (1);
16415 if (localtime (&now)->tm_hour == hour_GMT0)
16416 exit (1);
16417 unsetenv("TZ");
16418 if (localtime (&now)->tm_hour != hour_unset)
16419 exit (1);
16420 exit (0);
16421 }
16422 _ACEOF
16423 if ac_fn_c_try_run "$LINENO"; then :
16424 emacs_cv_localtime_cache=no
16425 else
16426 emacs_cv_localtime_cache=yes
16427 fi
16428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16429 conftest.$ac_objext conftest.beam conftest.$ac_ext
16430 fi
16431
16432 else
16433 # If we lack tzset, report that localtime does not cache TZ,
16434 # since we can't invalidate the cache if we don't have tzset.
16435 emacs_cv_localtime_cache=no
16436 fi
16437 fi
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16439 $as_echo "$emacs_cv_localtime_cache" >&6; }
16440 if test $emacs_cv_localtime_cache = yes; then
16441
16442 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16443
16444 fi
16445
16446 if test "x$HAVE_TIMEVAL" = xyes; then
16447 for ac_func in gettimeofday
16448 do :
16449 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16450 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE_GETTIMEOFDAY 1
16453 _ACEOF
16454
16455 fi
16456 done
16457
16458 if test $ac_cv_func_gettimeofday = yes; then
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16460 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16461 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466
16467 #ifdef TIME_WITH_SYS_TIME
16468 #include <sys/time.h>
16469 #include <time.h>
16470 #else
16471 #ifdef HAVE_SYS_TIME_H
16472 #include <sys/time.h>
16473 #else
16474 #include <time.h>
16475 #endif
16476 #endif
16477 int
16478 main ()
16479 {
16480 struct timeval time;
16481 gettimeofday (&time, 0);
16482 ;
16483 return 0;
16484 }
16485 _ACEOF
16486 if ac_fn_c_try_compile "$LINENO"; then :
16487 emacs_cv_gettimeofday_two_arguments=yes
16488 else
16489 emacs_cv_gettimeofday_two_arguments=no
16490 fi
16491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 fi
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16494 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16495 if test $emacs_cv_gettimeofday_two_arguments = no; then
16496
16497 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16498
16499 fi
16500 fi
16501 fi
16502
16503 ok_so_far=yes
16504 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16505 if test "x$ac_cv_func_socket" = xyes; then :
16506
16507 else
16508 ok_so_far=no
16509 fi
16510
16511 if test $ok_so_far = yes; then
16512 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16513 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16514
16515 else
16516 ok_so_far=no
16517 fi
16518
16519
16520 fi
16521 if test $ok_so_far = yes; then
16522 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16523 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16524
16525 else
16526 ok_so_far=no
16527 fi
16528
16529
16530 fi
16531 if test $ok_so_far = yes; then
16532
16533 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16534
16535 fi
16536
16537 if test -f /usr/lpp/X11/bin/smt.exp; then
16538
16539 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16540
16541 fi
16542
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16544 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16545 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16547 $as_echo "yes" >&6; }
16548
16549 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16550
16551 else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16554 fi
16555
16556 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16557 if test "x$ac_cv_type_pid_t" = xyes; then :
16558
16559 else
16560
16561 cat >>confdefs.h <<_ACEOF
16562 #define pid_t int
16563 _ACEOF
16564
16565 fi
16566
16567 for ac_header in vfork.h
16568 do :
16569 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16570 if test "x$ac_cv_header_vfork_h" = xyes; then :
16571 cat >>confdefs.h <<_ACEOF
16572 #define HAVE_VFORK_H 1
16573 _ACEOF
16574
16575 fi
16576
16577 done
16578
16579 for ac_func in fork vfork
16580 do :
16581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16584 cat >>confdefs.h <<_ACEOF
16585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16586 _ACEOF
16587
16588 fi
16589 done
16590
16591 if test "x$ac_cv_func_fork" = xyes; then
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16593 $as_echo_n "checking for working fork... " >&6; }
16594 if ${ac_cv_func_fork_works+:} false; then :
16595 $as_echo_n "(cached) " >&6
16596 else
16597 if test "$cross_compiling" = yes; then :
16598 ac_cv_func_fork_works=cross
16599 else
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602 $ac_includes_default
16603 int
16604 main ()
16605 {
16606
16607 /* By Ruediger Kuhlmann. */
16608 return fork () < 0;
16609
16610 ;
16611 return 0;
16612 }
16613 _ACEOF
16614 if ac_fn_c_try_run "$LINENO"; then :
16615 ac_cv_func_fork_works=yes
16616 else
16617 ac_cv_func_fork_works=no
16618 fi
16619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16620 conftest.$ac_objext conftest.beam conftest.$ac_ext
16621 fi
16622
16623 fi
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16625 $as_echo "$ac_cv_func_fork_works" >&6; }
16626
16627 else
16628 ac_cv_func_fork_works=$ac_cv_func_fork
16629 fi
16630 if test "x$ac_cv_func_fork_works" = xcross; then
16631 case $host in
16632 *-*-amigaos* | *-*-msdosdjgpp*)
16633 # Override, as these systems have only a dummy fork() stub
16634 ac_cv_func_fork_works=no
16635 ;;
16636 *)
16637 ac_cv_func_fork_works=yes
16638 ;;
16639 esac
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16641 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16642 fi
16643 ac_cv_func_vfork_works=$ac_cv_func_vfork
16644 if test "x$ac_cv_func_vfork" = xyes; then
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16646 $as_echo_n "checking for working vfork... " >&6; }
16647 if ${ac_cv_func_vfork_works+:} false; then :
16648 $as_echo_n "(cached) " >&6
16649 else
16650 if test "$cross_compiling" = yes; then :
16651 ac_cv_func_vfork_works=cross
16652 else
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655 /* Thanks to Paul Eggert for this test. */
16656 $ac_includes_default
16657 #include <sys/wait.h>
16658 #ifdef HAVE_VFORK_H
16659 # include <vfork.h>
16660 #endif
16661 /* On some sparc systems, changes by the child to local and incoming
16662 argument registers are propagated back to the parent. The compiler
16663 is told about this with #include <vfork.h>, but some compilers
16664 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16665 static variable whose address is put into a register that is
16666 clobbered by the vfork. */
16667 static void
16668 #ifdef __cplusplus
16669 sparc_address_test (int arg)
16670 # else
16671 sparc_address_test (arg) int arg;
16672 #endif
16673 {
16674 static pid_t child;
16675 if (!child) {
16676 child = vfork ();
16677 if (child < 0) {
16678 perror ("vfork");
16679 _exit(2);
16680 }
16681 if (!child) {
16682 arg = getpid();
16683 write(-1, "", 0);
16684 _exit (arg);
16685 }
16686 }
16687 }
16688
16689 int
16690 main ()
16691 {
16692 pid_t parent = getpid ();
16693 pid_t child;
16694
16695 sparc_address_test (0);
16696
16697 child = vfork ();
16698
16699 if (child == 0) {
16700 /* Here is another test for sparc vfork register problems. This
16701 test uses lots of local variables, at least as many local
16702 variables as main has allocated so far including compiler
16703 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16704 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16705 reuse the register of parent for one of the local variables,
16706 since it will think that parent can't possibly be used any more
16707 in this routine. Assigning to the local variable will thus
16708 munge parent in the parent process. */
16709 pid_t
16710 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16711 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16712 /* Convince the compiler that p..p7 are live; otherwise, it might
16713 use the same hardware register for all 8 local variables. */
16714 if (p != p1 || p != p2 || p != p3 || p != p4
16715 || p != p5 || p != p6 || p != p7)
16716 _exit(1);
16717
16718 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16719 from child file descriptors. If the child closes a descriptor
16720 before it execs or exits, this munges the parent's descriptor
16721 as well. Test for this by closing stdout in the child. */
16722 _exit(close(fileno(stdout)) != 0);
16723 } else {
16724 int status;
16725 struct stat st;
16726
16727 while (wait(&status) != child)
16728 ;
16729 return (
16730 /* Was there some problem with vforking? */
16731 child < 0
16732
16733 /* Did the child fail? (This shouldn't happen.) */
16734 || status
16735
16736 /* Did the vfork/compiler bug occur? */
16737 || parent != getpid()
16738
16739 /* Did the file descriptor bug occur? */
16740 || fstat(fileno(stdout), &st) != 0
16741 );
16742 }
16743 }
16744 _ACEOF
16745 if ac_fn_c_try_run "$LINENO"; then :
16746 ac_cv_func_vfork_works=yes
16747 else
16748 ac_cv_func_vfork_works=no
16749 fi
16750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16751 conftest.$ac_objext conftest.beam conftest.$ac_ext
16752 fi
16753
16754 fi
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16756 $as_echo "$ac_cv_func_vfork_works" >&6; }
16757
16758 fi;
16759 if test "x$ac_cv_func_fork_works" = xcross; then
16760 ac_cv_func_vfork_works=$ac_cv_func_vfork
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16762 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16763 fi
16764
16765 if test "x$ac_cv_func_vfork_works" = xyes; then
16766
16767 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16768
16769 else
16770
16771 $as_echo "#define vfork fork" >>confdefs.h
16772
16773 fi
16774 if test "x$ac_cv_func_fork_works" = xyes; then
16775
16776 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16777
16778 fi
16779
16780
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16782 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16783 if ${emacs_cv_langinfo_codeset+:} false; then :
16784 $as_echo_n "(cached) " >&6
16785 else
16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16788 #include <langinfo.h>
16789 int
16790 main ()
16791 {
16792 char* cs = nl_langinfo(CODESET);
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 if ac_fn_c_try_link "$LINENO"; then :
16798 emacs_cv_langinfo_codeset=yes
16799 else
16800 emacs_cv_langinfo_codeset=no
16801 fi
16802 rm -f core conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
16804
16805 fi
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16807 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16808 if test $emacs_cv_langinfo_codeset = yes; then
16809
16810 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16811
16812 fi
16813
16814 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16815 if test "x$ac_cv_type_size_t" = xyes; then :
16816
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_SIZE_T 1
16819 _ACEOF
16820
16821
16822 fi
16823
16824
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16826 $as_echo_n "checking for mbstate_t... " >&6; }
16827 if ${ac_cv_type_mbstate_t+:} false; then :
16828 $as_echo_n "(cached) " >&6
16829 else
16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831 /* end confdefs.h. */
16832 $ac_includes_default
16833 # include <wchar.h>
16834 int
16835 main ()
16836 {
16837 mbstate_t x; return sizeof x;
16838 ;
16839 return 0;
16840 }
16841 _ACEOF
16842 if ac_fn_c_try_compile "$LINENO"; then :
16843 ac_cv_type_mbstate_t=yes
16844 else
16845 ac_cv_type_mbstate_t=no
16846 fi
16847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848 fi
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16850 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16851 if test $ac_cv_type_mbstate_t = yes; then
16852
16853 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16854
16855 else
16856
16857 $as_echo "#define mbstate_t int" >>confdefs.h
16858
16859 fi
16860
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16862 $as_echo_n "checking for C restricted array declarations... " >&6; }
16863 if ${emacs_cv_c_restrict_arr+:} false; then :
16864 $as_echo_n "(cached) " >&6
16865 else
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h. */
16868 void fred (int x[__restrict]);
16869 int
16870 main ()
16871 {
16872
16873 ;
16874 return 0;
16875 }
16876 _ACEOF
16877 if ac_fn_c_try_compile "$LINENO"; then :
16878 emacs_cv_c_restrict_arr=yes
16879 else
16880 emacs_cv_c_restrict_arr=no
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 fi
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16885 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16886 if test "$emacs_cv_c_restrict_arr" = yes; then
16887
16888 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16889
16890 fi
16891
16892
16893
16894 # Set up the CFLAGS for real compilation, so we can substitute it.
16895 CFLAGS="$REAL_CFLAGS"
16896 CPPFLAGS="$REAL_CPPFLAGS"
16897
16898 ## Hack to detect a buggy GCC version.
16899 if test "x$GCC" = xyes \
16900 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16901 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16902 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16903 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16904 fi
16905
16906 #### Find out which version of Emacs this is.
16907 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
16908 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
16909 if test x"${version}" = x; then
16910 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
16911 fi
16912 if test x"${version}" != x"$PACKAGE_VERSION"; then
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
16914 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
16915 fi
16916
16917 ### Specify what sort of things we'll be editing into Makefile and config.h.
16918 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16919
16920
16921 ## Unused?
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16943 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16944 ## end of LIBX_BASE, but nothing ever set it.
16945
16946
16947
16948
16949 ## Used in lwlib/Makefile.in.
16950
16951 if test -n "${machfile}"; then
16952 M_FILE="\$(srcdir)/${machfile}"
16953 else
16954 M_FILE=
16955 fi
16956 S_FILE="\$(srcdir)/${opsysfile}"
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968 cat >>confdefs.h <<_ACEOF
16969 #define EMACS_CONFIGURATION "${canonical}"
16970 _ACEOF
16971
16972
16973 cat >>confdefs.h <<_ACEOF
16974 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16975 _ACEOF
16976
16977 if test -n "$machfile"; then
16978
16979 cat >>confdefs.h <<_ACEOF
16980 #define config_machfile "${machfile}"
16981 _ACEOF
16982
16983 fi
16984
16985 cat >>confdefs.h <<_ACEOF
16986 #define config_opsysfile "${opsysfile}"
16987 _ACEOF
16988
16989
16990 XMENU_OBJ=
16991 XOBJ=
16992 FONT_OBJ=
16993 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16994
16995 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16996
16997 XMENU_OBJ=xmenu.o
16998 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16999 FONT_OBJ=xfont.o
17000 if test "$HAVE_XFT" = "yes"; then
17001 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17002 elif test "$HAVE_FREETYPE" = "yes"; then
17003 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17004 fi
17005
17006 fi
17007
17008
17009
17010
17011 WIDGET_OBJ=
17012 MOTIF_LIBW=
17013 if test "${USE_X_TOOLKIT}" != "none" ; then
17014 WIDGET_OBJ=widget.o
17015
17016 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17017
17018 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17019
17020 $as_echo "#define USE_LUCID 1" >>confdefs.h
17021
17022 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17023
17024 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17025
17026 MOTIF_LIBW=-lXm
17027 case "$opsys" in
17028 gnu-linux)
17029 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17030 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17031 ;;
17032
17033 unixware)
17034 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17035 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17036 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17037 ;;
17038
17039 aix4-2)
17040 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17041 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17042 ;;
17043 esac
17044 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17045 fi
17046 fi
17047
17048
17049 TOOLKIT_LIBW=
17050 case "$USE_X_TOOLKIT" in
17051 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17052 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17053 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17054 esac
17055
17056
17057 if test "$USE_X_TOOLKIT" = "none"; then
17058 LIBXT_OTHER="\$(LIBXSM)"
17059 OLDXMENU_TARGET="really-oldXMenu"
17060 else
17061 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17062 OLDXMENU_TARGET="really-lwlib"
17063 fi
17064
17065
17066 ## The X Menu stuff is present in the X10 distribution, but missing
17067 ## from X11. If we have X10, just use the installed library;
17068 ## otherwise, use our own copy.
17069 if test "${HAVE_X11}" = "yes" ; then
17070
17071 $as_echo "#define HAVE_X11 1" >>confdefs.h
17072
17073
17074 if test "$USE_X_TOOLKIT" = "none"; then
17075 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17076 else
17077 OLDXMENU="\${lwlibdir}/liblw.a"
17078 fi
17079 LIBXMENU="\$(OLDXMENU)"
17080 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17081 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17082 else
17083 ## For a syntactically valid Makefile; not actually used for anything.
17084 ## See comments in src/Makefile.in.
17085 OLDXMENU=nothing
17086 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17087 if test "${HAVE_X_WINDOWS}" = "yes"; then
17088 LIBXMENU="-lXMenu"
17089 else
17090 LIBXMENU=
17091 fi
17092 LIBX_OTHER=
17093 OLDXMENU_DEPS=
17094 fi
17095
17096 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17097 OLDXMENU_TARGET=
17098 OLDXMENU=nothing
17099 LIBXMENU=
17100 OLDXMENU_DEPS=
17101 fi
17102
17103
17104
17105
17106
17107
17108
17109 if test "${HAVE_MENUS}" = "yes" ; then
17110
17111 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17112
17113 fi
17114
17115 if test "${GNU_MALLOC}" = "yes" ; then
17116
17117 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17118
17119 fi
17120
17121 RALLOC_OBJ=
17122 if test "${REL_ALLOC}" = "yes" ; then
17123
17124 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17125
17126
17127 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17128 fi
17129
17130
17131 if test "$opsys" = "cygwin"; then
17132 CYGWIN_OBJ="sheap.o"
17133 ## Cygwin differs because of its unexec().
17134 PRE_ALLOC_OBJ=
17135 POST_ALLOC_OBJ=lastfile.o
17136 else
17137 CYGWIN_OBJ=
17138 PRE_ALLOC_OBJ=lastfile.o
17139 POST_ALLOC_OBJ=
17140 fi
17141
17142
17143
17144
17145
17146 case "$opsys" in
17147 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17148
17149 darwin)
17150 ## The -headerpad option tells ld (see man page) to leave room at the
17151 ## end of the header for adding load commands. Needed for dumping.
17152 ## 0x690 is the total size of 30 segment load commands (at 56
17153 ## each); under Cocoa 31 commands are required.
17154 if test "$HAVE_NS" = "yes"; then
17155 libs_nsgui="-framework AppKit"
17156 headerpad_extra=6C8
17157 else
17158 libs_nsgui=
17159 headerpad_extra=690
17160 fi
17161 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17162
17163 ## This is here because src/Makefile.in did some extra fiddling around
17164 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17165 ## #ifndef LD_SWITCH_SYSTEM
17166 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17167 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17168 ## not using gcc, darwin system not on an alpha (ie darwin, since
17169 ## darwin + alpha does not occur).
17170 ## Because this was done in src/Makefile.in, the resulting part of
17171 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17172 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17173 ## rather than LD_SWITCH_SYSTEM.
17174 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17175 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17176 ;;
17177
17178 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17179 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17180 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17181 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17182 ## had different values in configure (in ac_link) and src/Makefile.in.
17183 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17184 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17185
17186 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17187 esac
17188
17189 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17190 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17191 fi
17192
17193
17194
17195
17196 LD_FIRSTFLAG=
17197 ORDINARY_LINK=
17198 case "$opsys" in
17199 ## gnu: GNU needs its own crt0.
17200 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17201
17202 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17203 ## library search parth, i.e. it won't search /usr/lib for libc and
17204 ## friends. Using -nostartfiles instead avoids this problem, and
17205 ## will also work on earlier NetBSD releases.
17206 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17207
17208 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17209 ## MkLinux/LinuxPPC needs this.
17210 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17211 gnu-*)
17212 case "$machine" in
17213 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17214 esac
17215 ;;
17216 esac
17217
17218
17219 if test "x$ORDINARY_LINK" = "xyes"; then
17220
17221 LD_FIRSTFLAG=""
17222
17223 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17224
17225
17226 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17227 ## freebsd, gnu-* not on macppc|ibms390x.
17228 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17229
17230 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17231 ## places that are difficult to figure out at make time. Fortunately,
17232 ## these same versions allow you to pass arbitrary flags on to the
17233 ## linker, so there is no reason not to use it as a linker.
17234 ##
17235 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17236 ## searching for libraries in its internal directories, so we have to
17237 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17238 LD_FIRSTFLAG="-nostdlib"
17239 fi
17240
17241 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17242 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17243
17244
17245
17246
17247 ## FIXME? The logic here is not precisely the same as that above.
17248 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17249 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17250 LIB_GCC=
17251 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17252
17253 case "$opsys" in
17254 freebsd|netbsd|openbsd) LIB_GCC= ;;
17255
17256 gnu-*)
17257 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17258 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17259 case $host_cpu in
17260 arm*)
17261 LIB_GCC="-lgcc_s"
17262 ;;
17263 *)
17264 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17265 ## immediately undefine it again and redefine it to empty.
17266 ## Was the C_SWITCH_X_SITE part really necessary?
17267 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17268 LIB_GCC=
17269 ;;
17270 esac
17271 ;;
17272
17273 ## Ask GCC where to find libgcc.a.
17274 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17275 esac
17276 fi
17277
17278
17279 TOOLTIP_SUPPORT=
17280 WINDOW_SUPPORT=
17281 ## If we're using X11/GNUstep, define some consequences.
17282 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17283
17284 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17285
17286
17287 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17288
17289 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17290 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17291
17292 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17293 test "$HAVE_X_WINDOWS" = "yes" && \
17294 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17295
17296 fi
17297
17298
17299
17300
17301
17302
17303
17304 #### Report on what we decided to do.
17305 #### Report GTK as a toolkit, even if it doesn't use Xt.
17306 #### It makes printing result more understandable as using GTK sets
17307 #### toolkit_scroll_bars to yes by default.
17308 if test "${HAVE_GTK}" = "yes"; then
17309 USE_X_TOOLKIT=GTK
17310 fi
17311
17312 and_machfile=
17313 if test -n "$machfile"; then
17314 and_machfile=" and \`${machfile}'"
17315 fi
17316
17317 echo "
17318 Configured for \`${canonical}'.
17319
17320 Where should the build process find the source code? ${srcdir}
17321 What operating system and machine description files should Emacs use?
17322 \`${opsysfile}'${and_machfile}
17323 What compiler should emacs be built with? ${CC} ${CFLAGS}
17324 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17325 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17326 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17327 What window system should Emacs use? ${window_system}
17328 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17329
17330 if test -n "${x_includes}"; then
17331 echo " Where do we find X Windows header files? ${x_includes}"
17332 else
17333 echo " Where do we find X Windows header files? Standard dirs"
17334 fi
17335 if test -n "${x_libraries}"; then
17336 echo " Where do we find X Windows libraries? ${x_libraries}"
17337 else
17338 echo " Where do we find X Windows libraries? Standard dirs"
17339 fi
17340
17341 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17342 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17343 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17344 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17345 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17346 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17347 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17348 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17349
17350 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17351 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17352 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17353 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17354 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17355 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17356
17357 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17358 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17359 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17360 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17361
17362 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17363 echo
17364
17365 if test $USE_XASSERTS = yes; then
17366 echo " Compiling with asserts turned on."
17367 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17368 fi
17369
17370 echo
17371
17372 if test "$HAVE_NS" = "yes"; then
17373 echo
17374 echo "You must run \"make install\" in order to test the built application.
17375 The installed application will go to nextstep/Emacs.app and can be
17376 run or moved from there."
17377 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17378 echo "The application will be fully self-contained."
17379 else
17380 echo "The lisp resources for the application will be installed under ${prefix}.
17381 You may need to run \"make install\" with sudo. The application will fail
17382 to run if these resources are not installed."
17383 fi
17384 echo
17385 fi
17386
17387
17388 # Remove any trailing slashes in these variables.
17389 test "${prefix}" != NONE &&
17390 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17391 test "${exec_prefix}" != NONE &&
17392 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17393
17394 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"
17395
17396 ac_config_commands="$ac_config_commands default"
17397
17398 cat >confcache <<\_ACEOF
17399 # This file is a shell script that caches the results of configure
17400 # tests run on this system so they can be shared between configure
17401 # scripts and configure runs, see configure's option --config-cache.
17402 # It is not useful on other systems. If it contains results you don't
17403 # want to keep, you may remove or edit it.
17404 #
17405 # config.status only pays attention to the cache file if you give it
17406 # the --recheck option to rerun configure.
17407 #
17408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17410 # following values.
17411
17412 _ACEOF
17413
17414 # The following way of writing the cache mishandles newlines in values,
17415 # but we know of no workaround that is simple, portable, and efficient.
17416 # So, we kill variables containing newlines.
17417 # Ultrix sh set writes to stderr and can't be redirected directly,
17418 # and sets the high bit in the cache file unless we assign to the vars.
17419 (
17420 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17421 eval ac_val=\$$ac_var
17422 case $ac_val in #(
17423 *${as_nl}*)
17424 case $ac_var in #(
17425 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17426 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17427 esac
17428 case $ac_var in #(
17429 _ | IFS | as_nl) ;; #(
17430 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17431 *) { eval $ac_var=; unset $ac_var;} ;;
17432 esac ;;
17433 esac
17434 done
17435
17436 (set) 2>&1 |
17437 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17438 *${as_nl}ac_space=\ *)
17439 # `set' does not quote correctly, so add quotes: double-quote
17440 # substitution turns \\\\ into \\, and sed turns \\ into \.
17441 sed -n \
17442 "s/'/'\\\\''/g;
17443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17444 ;; #(
17445 *)
17446 # `set' quotes correctly as required by POSIX, so do not add quotes.
17447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17448 ;;
17449 esac |
17450 sort
17451 ) |
17452 sed '
17453 /^ac_cv_env_/b end
17454 t clear
17455 :clear
17456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17457 t end
17458 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17459 :end' >>confcache
17460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17461 if test -w "$cache_file"; then
17462 if test "x$cache_file" != "x/dev/null"; then
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17464 $as_echo "$as_me: updating cache $cache_file" >&6;}
17465 if test ! -f "$cache_file" || test -h "$cache_file"; then
17466 cat confcache >"$cache_file"
17467 else
17468 case $cache_file in #(
17469 */* | ?:*)
17470 mv -f confcache "$cache_file"$$ &&
17471 mv -f "$cache_file"$$ "$cache_file" ;; #(
17472 *)
17473 mv -f confcache "$cache_file" ;;
17474 esac
17475 fi
17476 fi
17477 else
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17479 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17480 fi
17481 fi
17482 rm -f confcache
17483
17484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17485 # Let make expand exec_prefix.
17486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17487
17488 DEFS=-DHAVE_CONFIG_H
17489
17490 ac_libobjs=
17491 ac_ltlibobjs=
17492 U=
17493 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17494 # 1. Remove the extension, and $U if already installed.
17495 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17496 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17497 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17498 # will be set to the directory where LIBOBJS objects are built.
17499 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17500 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17501 done
17502 LIBOBJS=$ac_libobjs
17503
17504 LTLIBOBJS=$ac_ltlibobjs
17505
17506
17507 if test -n "$EXEEXT"; then
17508 am__EXEEXT_TRUE=
17509 am__EXEEXT_FALSE='#'
17510 else
17511 am__EXEEXT_TRUE='#'
17512 am__EXEEXT_FALSE=
17513 fi
17514
17515 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17516 as_fn_error $? "conditional \"AMDEP\" was never defined.
17517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17518 fi
17519 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17520 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17522 fi
17523
17524 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17525 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17527 fi
17528
17529 gl_libobjs=
17530 gl_ltlibobjs=
17531 if test -n "$gl_LIBOBJS"; then
17532 # Remove the extension.
17533 sed_drop_objext='s/\.o$//;s/\.obj$//'
17534 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17535 gl_libobjs="$gl_libobjs $i.$ac_objext"
17536 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17537 done
17538 fi
17539 gl_LIBOBJS=$gl_libobjs
17540
17541 gl_LTLIBOBJS=$gl_ltlibobjs
17542
17543
17544
17545 gltests_libobjs=
17546 gltests_ltlibobjs=
17547 if test -n "$gltests_LIBOBJS"; then
17548 # Remove the extension.
17549 sed_drop_objext='s/\.o$//;s/\.obj$//'
17550 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17551 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17552 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17553 done
17554 fi
17555 gltests_LIBOBJS=$gltests_libobjs
17556
17557 gltests_LTLIBOBJS=$gltests_ltlibobjs
17558
17559
17560
17561 : "${CONFIG_STATUS=./config.status}"
17562 ac_write_fail=0
17563 ac_clean_files_save=$ac_clean_files
17564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17566 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17567 as_write_fail=0
17568 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17569 #! $SHELL
17570 # Generated by $as_me.
17571 # Run this file to recreate the current configuration.
17572 # Compiler output produced by configure, useful for debugging
17573 # configure, is in config.log if it exists.
17574
17575 debug=false
17576 ac_cs_recheck=false
17577 ac_cs_silent=false
17578
17579 SHELL=\${CONFIG_SHELL-$SHELL}
17580 export SHELL
17581 _ASEOF
17582 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17583 ## -------------------- ##
17584 ## M4sh Initialization. ##
17585 ## -------------------- ##
17586
17587 # Be more Bourne compatible
17588 DUALCASE=1; export DUALCASE # for MKS sh
17589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17590 emulate sh
17591 NULLCMD=:
17592 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17593 # is contrary to our usage. Disable this feature.
17594 alias -g '${1+"$@"}'='"$@"'
17595 setopt NO_GLOB_SUBST
17596 else
17597 case `(set -o) 2>/dev/null` in #(
17598 *posix*) :
17599 set -o posix ;; #(
17600 *) :
17601 ;;
17602 esac
17603 fi
17604
17605
17606 as_nl='
17607 '
17608 export as_nl
17609 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17610 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17611 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17613 # Prefer a ksh shell builtin over an external printf program on Solaris,
17614 # but without wasting forks for bash or zsh.
17615 if test -z "$BASH_VERSION$ZSH_VERSION" \
17616 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17617 as_echo='print -r --'
17618 as_echo_n='print -rn --'
17619 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17620 as_echo='printf %s\n'
17621 as_echo_n='printf %s'
17622 else
17623 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17624 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17625 as_echo_n='/usr/ucb/echo -n'
17626 else
17627 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17628 as_echo_n_body='eval
17629 arg=$1;
17630 case $arg in #(
17631 *"$as_nl"*)
17632 expr "X$arg" : "X\\(.*\\)$as_nl";
17633 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17634 esac;
17635 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17636 '
17637 export as_echo_n_body
17638 as_echo_n='sh -c $as_echo_n_body as_echo'
17639 fi
17640 export as_echo_body
17641 as_echo='sh -c $as_echo_body as_echo'
17642 fi
17643
17644 # The user is always right.
17645 if test "${PATH_SEPARATOR+set}" != set; then
17646 PATH_SEPARATOR=:
17647 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17648 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17649 PATH_SEPARATOR=';'
17650 }
17651 fi
17652
17653
17654 # IFS
17655 # We need space, tab and new line, in precisely that order. Quoting is
17656 # there to prevent editors from complaining about space-tab.
17657 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17658 # splitting by setting IFS to empty value.)
17659 IFS=" "" $as_nl"
17660
17661 # Find who we are. Look in the path if we contain no directory separator.
17662 as_myself=
17663 case $0 in #((
17664 *[\\/]* ) as_myself=$0 ;;
17665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17666 for as_dir in $PATH
17667 do
17668 IFS=$as_save_IFS
17669 test -z "$as_dir" && as_dir=.
17670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17671 done
17672 IFS=$as_save_IFS
17673
17674 ;;
17675 esac
17676 # We did not find ourselves, most probably we were run as `sh COMMAND'
17677 # in which case we are not to be found in the path.
17678 if test "x$as_myself" = x; then
17679 as_myself=$0
17680 fi
17681 if test ! -f "$as_myself"; then
17682 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17683 exit 1
17684 fi
17685
17686 # Unset variables that we do not need and which cause bugs (e.g. in
17687 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17688 # suppresses any "Segmentation fault" message there. '((' could
17689 # trigger a bug in pdksh 5.2.14.
17690 for as_var in BASH_ENV ENV MAIL MAILPATH
17691 do eval test x\${$as_var+set} = xset \
17692 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17693 done
17694 PS1='$ '
17695 PS2='> '
17696 PS4='+ '
17697
17698 # NLS nuisances.
17699 LC_ALL=C
17700 export LC_ALL
17701 LANGUAGE=C
17702 export LANGUAGE
17703
17704 # CDPATH.
17705 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17706
17707
17708 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17709 # ----------------------------------------
17710 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17711 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17712 # script with STATUS, using 1 if that was 0.
17713 as_fn_error ()
17714 {
17715 as_status=$1; test $as_status -eq 0 && as_status=1
17716 if test "$4"; then
17717 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17718 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17719 fi
17720 $as_echo "$as_me: error: $2" >&2
17721 as_fn_exit $as_status
17722 } # as_fn_error
17723
17724
17725 # as_fn_set_status STATUS
17726 # -----------------------
17727 # Set $? to STATUS, without forking.
17728 as_fn_set_status ()
17729 {
17730 return $1
17731 } # as_fn_set_status
17732
17733 # as_fn_exit STATUS
17734 # -----------------
17735 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17736 as_fn_exit ()
17737 {
17738 set +e
17739 as_fn_set_status $1
17740 exit $1
17741 } # as_fn_exit
17742
17743 # as_fn_unset VAR
17744 # ---------------
17745 # Portably unset VAR.
17746 as_fn_unset ()
17747 {
17748 { eval $1=; unset $1;}
17749 }
17750 as_unset=as_fn_unset
17751 # as_fn_append VAR VALUE
17752 # ----------------------
17753 # Append the text in VALUE to the end of the definition contained in VAR. Take
17754 # advantage of any shell optimizations that allow amortized linear growth over
17755 # repeated appends, instead of the typical quadratic growth present in naive
17756 # implementations.
17757 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17758 eval 'as_fn_append ()
17759 {
17760 eval $1+=\$2
17761 }'
17762 else
17763 as_fn_append ()
17764 {
17765 eval $1=\$$1\$2
17766 }
17767 fi # as_fn_append
17768
17769 # as_fn_arith ARG...
17770 # ------------------
17771 # Perform arithmetic evaluation on the ARGs, and store the result in the
17772 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17773 # must be portable across $(()) and expr.
17774 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17775 eval 'as_fn_arith ()
17776 {
17777 as_val=$(( $* ))
17778 }'
17779 else
17780 as_fn_arith ()
17781 {
17782 as_val=`expr "$@" || test $? -eq 1`
17783 }
17784 fi # as_fn_arith
17785
17786
17787 if expr a : '\(a\)' >/dev/null 2>&1 &&
17788 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17789 as_expr=expr
17790 else
17791 as_expr=false
17792 fi
17793
17794 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17795 as_basename=basename
17796 else
17797 as_basename=false
17798 fi
17799
17800 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17801 as_dirname=dirname
17802 else
17803 as_dirname=false
17804 fi
17805
17806 as_me=`$as_basename -- "$0" ||
17807 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17808 X"$0" : 'X\(//\)$' \| \
17809 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17810 $as_echo X/"$0" |
17811 sed '/^.*\/\([^/][^/]*\)\/*$/{
17812 s//\1/
17813 q
17814 }
17815 /^X\/\(\/\/\)$/{
17816 s//\1/
17817 q
17818 }
17819 /^X\/\(\/\).*/{
17820 s//\1/
17821 q
17822 }
17823 s/.*/./; q'`
17824
17825 # Avoid depending upon Character Ranges.
17826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17829 as_cr_digits='0123456789'
17830 as_cr_alnum=$as_cr_Letters$as_cr_digits
17831
17832 ECHO_C= ECHO_N= ECHO_T=
17833 case `echo -n x` in #(((((
17834 -n*)
17835 case `echo 'xy\c'` in
17836 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17837 xy) ECHO_C='\c';;
17838 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17839 ECHO_T=' ';;
17840 esac;;
17841 *)
17842 ECHO_N='-n';;
17843 esac
17844
17845 rm -f conf$$ conf$$.exe conf$$.file
17846 if test -d conf$$.dir; then
17847 rm -f conf$$.dir/conf$$.file
17848 else
17849 rm -f conf$$.dir
17850 mkdir conf$$.dir 2>/dev/null
17851 fi
17852 if (echo >conf$$.file) 2>/dev/null; then
17853 if ln -s conf$$.file conf$$ 2>/dev/null; then
17854 as_ln_s='ln -s'
17855 # ... but there are two gotchas:
17856 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17857 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17858 # In both cases, we have to default to `cp -p'.
17859 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17860 as_ln_s='cp -p'
17861 elif ln conf$$.file conf$$ 2>/dev/null; then
17862 as_ln_s=ln
17863 else
17864 as_ln_s='cp -p'
17865 fi
17866 else
17867 as_ln_s='cp -p'
17868 fi
17869 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17870 rmdir conf$$.dir 2>/dev/null
17871
17872
17873 # as_fn_mkdir_p
17874 # -------------
17875 # Create "$as_dir" as a directory, including parents if necessary.
17876 as_fn_mkdir_p ()
17877 {
17878
17879 case $as_dir in #(
17880 -*) as_dir=./$as_dir;;
17881 esac
17882 test -d "$as_dir" || eval $as_mkdir_p || {
17883 as_dirs=
17884 while :; do
17885 case $as_dir in #(
17886 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17887 *) as_qdir=$as_dir;;
17888 esac
17889 as_dirs="'$as_qdir' $as_dirs"
17890 as_dir=`$as_dirname -- "$as_dir" ||
17891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17892 X"$as_dir" : 'X\(//\)[^/]' \| \
17893 X"$as_dir" : 'X\(//\)$' \| \
17894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17895 $as_echo X"$as_dir" |
17896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17897 s//\1/
17898 q
17899 }
17900 /^X\(\/\/\)[^/].*/{
17901 s//\1/
17902 q
17903 }
17904 /^X\(\/\/\)$/{
17905 s//\1/
17906 q
17907 }
17908 /^X\(\/\).*/{
17909 s//\1/
17910 q
17911 }
17912 s/.*/./; q'`
17913 test -d "$as_dir" && break
17914 done
17915 test -z "$as_dirs" || eval "mkdir $as_dirs"
17916 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17917
17918
17919 } # as_fn_mkdir_p
17920 if mkdir -p . 2>/dev/null; then
17921 as_mkdir_p='mkdir -p "$as_dir"'
17922 else
17923 test -d ./-p && rmdir ./-p
17924 as_mkdir_p=false
17925 fi
17926
17927 if test -x / >/dev/null 2>&1; then
17928 as_test_x='test -x'
17929 else
17930 if ls -dL / >/dev/null 2>&1; then
17931 as_ls_L_option=L
17932 else
17933 as_ls_L_option=
17934 fi
17935 as_test_x='
17936 eval sh -c '\''
17937 if test -d "$1"; then
17938 test -d "$1/.";
17939 else
17940 case $1 in #(
17941 -*)set "./$1";;
17942 esac;
17943 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17944 ???[sx]*):;;*)false;;esac;fi
17945 '\'' sh
17946 '
17947 fi
17948 as_executable_p=$as_test_x
17949
17950 # Sed expression to map a string onto a valid CPP name.
17951 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17952
17953 # Sed expression to map a string onto a valid variable name.
17954 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17955
17956
17957 exec 6>&1
17958 ## ----------------------------------- ##
17959 ## Main body of $CONFIG_STATUS script. ##
17960 ## ----------------------------------- ##
17961 _ASEOF
17962 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17963
17964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17965 # Save the log message, to keep $0 and so on meaningful, and to
17966 # report actual input values of CONFIG_FILES etc. instead of their
17967 # values after options handling.
17968 ac_log="
17969 This file was extended by emacs $as_me 24.0.50, which was
17970 generated by GNU Autoconf 2.68. Invocation command line was
17971
17972 CONFIG_FILES = $CONFIG_FILES
17973 CONFIG_HEADERS = $CONFIG_HEADERS
17974 CONFIG_LINKS = $CONFIG_LINKS
17975 CONFIG_COMMANDS = $CONFIG_COMMANDS
17976 $ $0 $@
17977
17978 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17979 "
17980
17981 _ACEOF
17982
17983 case $ac_config_files in *"
17984 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17985 esac
17986
17987 case $ac_config_headers in *"
17988 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17989 esac
17990
17991
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 # Files that config.status was made for.
17994 config_files="$ac_config_files"
17995 config_headers="$ac_config_headers"
17996 config_commands="$ac_config_commands"
17997
17998 _ACEOF
17999
18000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18001 ac_cs_usage="\
18002 \`$as_me' instantiates files and other configuration actions
18003 from templates according to the current configuration. Unless the files
18004 and actions are specified as TAGs, all are instantiated by default.
18005
18006 Usage: $0 [OPTION]... [TAG]...
18007
18008 -h, --help print this help, then exit
18009 -V, --version print version number and configuration settings, then exit
18010 --config print configuration, then exit
18011 -q, --quiet, --silent
18012 do not print progress messages
18013 -d, --debug don't remove temporary files
18014 --recheck update $as_me by reconfiguring in the same conditions
18015 --file=FILE[:TEMPLATE]
18016 instantiate the configuration file FILE
18017 --header=FILE[:TEMPLATE]
18018 instantiate the configuration header FILE
18019
18020 Configuration files:
18021 $config_files
18022
18023 Configuration headers:
18024 $config_headers
18025
18026 Configuration commands:
18027 $config_commands
18028
18029 Report bugs to the package provider."
18030
18031 _ACEOF
18032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18034 ac_cs_version="\\
18035 emacs config.status 24.0.50
18036 configured by $0, generated by GNU Autoconf 2.68,
18037 with options \\"\$ac_cs_config\\"
18038
18039 Copyright (C) 2010 Free Software Foundation, Inc.
18040 This config.status script is free software; the Free Software Foundation
18041 gives unlimited permission to copy, distribute and modify it."
18042
18043 ac_pwd='$ac_pwd'
18044 srcdir='$srcdir'
18045 INSTALL='$INSTALL'
18046 MKDIR_P='$MKDIR_P'
18047 AWK='$AWK'
18048 test -n "\$AWK" || AWK=awk
18049 _ACEOF
18050
18051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18052 # The default lists apply if the user does not specify any file.
18053 ac_need_defaults=:
18054 while test $# != 0
18055 do
18056 case $1 in
18057 --*=?*)
18058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18060 ac_shift=:
18061 ;;
18062 --*=)
18063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18064 ac_optarg=
18065 ac_shift=:
18066 ;;
18067 *)
18068 ac_option=$1
18069 ac_optarg=$2
18070 ac_shift=shift
18071 ;;
18072 esac
18073
18074 case $ac_option in
18075 # Handling of the options.
18076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18077 ac_cs_recheck=: ;;
18078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18079 $as_echo "$ac_cs_version"; exit ;;
18080 --config | --confi | --conf | --con | --co | --c )
18081 $as_echo "$ac_cs_config"; exit ;;
18082 --debug | --debu | --deb | --de | --d | -d )
18083 debug=: ;;
18084 --file | --fil | --fi | --f )
18085 $ac_shift
18086 case $ac_optarg in
18087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18088 '') as_fn_error $? "missing file argument" ;;
18089 esac
18090 as_fn_append CONFIG_FILES " '$ac_optarg'"
18091 ac_need_defaults=false;;
18092 --header | --heade | --head | --hea )
18093 $ac_shift
18094 case $ac_optarg in
18095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18096 esac
18097 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18098 ac_need_defaults=false;;
18099 --he | --h)
18100 # Conflict between --help and --header
18101 as_fn_error $? "ambiguous option: \`$1'
18102 Try \`$0 --help' for more information.";;
18103 --help | --hel | -h )
18104 $as_echo "$ac_cs_usage"; exit ;;
18105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18107 ac_cs_silent=: ;;
18108
18109 # This is an error.
18110 -*) as_fn_error $? "unrecognized option: \`$1'
18111 Try \`$0 --help' for more information." ;;
18112
18113 *) as_fn_append ac_config_targets " $1"
18114 ac_need_defaults=false ;;
18115
18116 esac
18117 shift
18118 done
18119
18120 ac_configure_extra_args=
18121
18122 if $ac_cs_silent; then
18123 exec 6>/dev/null
18124 ac_configure_extra_args="$ac_configure_extra_args --silent"
18125 fi
18126
18127 _ACEOF
18128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18129 if \$ac_cs_recheck; then
18130 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18131 shift
18132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18133 CONFIG_SHELL='$SHELL'
18134 export CONFIG_SHELL
18135 exec "\$@"
18136 fi
18137
18138 _ACEOF
18139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18140 exec 5>>config.log
18141 {
18142 echo
18143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18144 ## Running $as_me. ##
18145 _ASBOX
18146 $as_echo "$ac_log"
18147 } >&5
18148
18149 _ACEOF
18150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18151 #
18152 # INIT-COMMANDS
18153 #
18154 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18155 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18156
18157 _ACEOF
18158
18159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160
18161 # Handling of arguments.
18162 for ac_config_target in $ac_config_targets
18163 do
18164 case $ac_config_target in
18165 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18166 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18167 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18168 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18169 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18170 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18171 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18172 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18173 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18174 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18175 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18176 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18177 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18178 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18179 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18180
18181 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18182 esac
18183 done
18184
18185
18186 # If the user did not use the arguments to specify the items to instantiate,
18187 # then the envvar interface is used. Set only those that are not.
18188 # We use the long form for the default assignment because of an extremely
18189 # bizarre bug on SunOS 4.1.3.
18190 if $ac_need_defaults; then
18191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18194 fi
18195
18196 # Have a temporary directory for convenience. Make it in the build tree
18197 # simply because there is no reason against having it here, and in addition,
18198 # creating and moving files from /tmp can sometimes cause problems.
18199 # Hook for its removal unless debugging.
18200 # Note that there is a small window in which the directory will not be cleaned:
18201 # after its creation but before its name has been assigned to `$tmp'.
18202 $debug ||
18203 {
18204 tmp= ac_tmp=
18205 trap 'exit_status=$?
18206 : "${ac_tmp:=$tmp}"
18207 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18208 ' 0
18209 trap 'as_fn_exit 1' 1 2 13 15
18210 }
18211 # Create a (secure) tmp directory for tmp files.
18212
18213 {
18214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18215 test -d "$tmp"
18216 } ||
18217 {
18218 tmp=./conf$$-$RANDOM
18219 (umask 077 && mkdir "$tmp")
18220 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18221 ac_tmp=$tmp
18222
18223 # Set up the scripts for CONFIG_FILES section.
18224 # No need to generate them if there are no CONFIG_FILES.
18225 # This happens for instance with `./config.status config.h'.
18226 if test -n "$CONFIG_FILES"; then
18227
18228 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18229 ac_cs_awk_getline=:
18230 ac_cs_awk_pipe_init=
18231 ac_cs_awk_read_file='
18232 while ((getline aline < (F[key])) > 0)
18233 print(aline)
18234 close(F[key])'
18235 ac_cs_awk_pipe_fini=
18236 else
18237 ac_cs_awk_getline=false
18238 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18239 ac_cs_awk_read_file='
18240 print "|#_!!_#|"
18241 print "cat " F[key] " &&"
18242 '$ac_cs_awk_pipe_init
18243 # The final `:' finishes the AND list.
18244 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18245 fi
18246 ac_cr=`echo X | tr X '\015'`
18247 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18248 # But we know of no other shell where ac_cr would be empty at this
18249 # point, so we can use a bashism as a fallback.
18250 if test "x$ac_cr" = x; then
18251 eval ac_cr=\$\'\\r\'
18252 fi
18253 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18254 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18255 ac_cs_awk_cr='\\r'
18256 else
18257 ac_cs_awk_cr=$ac_cr
18258 fi
18259
18260 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18261 _ACEOF
18262
18263 # Create commands to substitute file output variables.
18264 {
18265 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18266 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18267 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18268 echo "_ACAWK" &&
18269 echo "_ACEOF"
18270 } >conf$$files.sh &&
18271 . ./conf$$files.sh ||
18272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18273 rm -f conf$$files.sh
18274
18275 {
18276 echo "cat >conf$$subs.awk <<_ACEOF" &&
18277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18278 echo "_ACEOF"
18279 } >conf$$subs.sh ||
18280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18282 ac_delim='%!_!# '
18283 for ac_last_try in false false false false false :; do
18284 . ./conf$$subs.sh ||
18285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18286
18287 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18288 if test $ac_delim_n = $ac_delim_num; then
18289 break
18290 elif $ac_last_try; then
18291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18292 else
18293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18294 fi
18295 done
18296 rm -f conf$$subs.sh
18297
18298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18299 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18300 _ACEOF
18301 sed -n '
18302 h
18303 s/^/S["/; s/!.*/"]=/
18304 p
18305 g
18306 s/^[^!]*!//
18307 :repl
18308 t repl
18309 s/'"$ac_delim"'$//
18310 t delim
18311 :nl
18312 h
18313 s/\(.\{148\}\)..*/\1/
18314 t more1
18315 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18316 p
18317 n
18318 b repl
18319 :more1
18320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18321 p
18322 g
18323 s/.\{148\}//
18324 t nl
18325 :delim
18326 h
18327 s/\(.\{148\}\)..*/\1/
18328 t more2
18329 s/["\\]/\\&/g; s/^/"/; s/$/"/
18330 p
18331 b
18332 :more2
18333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18334 p
18335 g
18336 s/.\{148\}//
18337 t delim
18338 ' <conf$$subs.awk | sed '
18339 /^[^""]/{
18340 N
18341 s/\n//
18342 }
18343 ' >>$CONFIG_STATUS || ac_write_fail=1
18344 rm -f conf$$subs.awk
18345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18346 _ACAWK
18347 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18348 for (key in S) S_is_set[key] = 1
18349 FS = "\a"
18350 \$ac_cs_awk_pipe_init
18351 }
18352 {
18353 line = $ 0
18354 nfields = split(line, field, "@")
18355 substed = 0
18356 len = length(field[1])
18357 for (i = 2; i < nfields; i++) {
18358 key = field[i]
18359 keylen = length(key)
18360 if (S_is_set[key]) {
18361 value = S[key]
18362 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18363 len += length(value) + length(field[++i])
18364 substed = 1
18365 } else
18366 len += 1 + keylen
18367 }
18368 if (nfields == 3 && !substed) {
18369 key = field[2]
18370 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18371 \$ac_cs_awk_read_file
18372 next
18373 }
18374 }
18375 print line
18376 }
18377 \$ac_cs_awk_pipe_fini
18378 _ACAWK
18379 _ACEOF
18380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18381 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18383 else
18384 cat
18385 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18387 _ACEOF
18388
18389 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18390 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18391 # trailing colons and then remove the whole line if VPATH becomes empty
18392 # (actually we leave an empty line to preserve line numbers).
18393 if test "x$srcdir" = x.; then
18394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18395 h
18396 s///
18397 s/^/:/
18398 s/[ ]*$/:/
18399 s/:\$(srcdir):/:/g
18400 s/:\${srcdir}:/:/g
18401 s/:@srcdir@:/:/g
18402 s/^:*//
18403 s/:*$//
18404 x
18405 s/\(=[ ]*\).*/\1/
18406 G
18407 s/\n//
18408 s/^[^=]*=[ ]*$//
18409 }'
18410 fi
18411
18412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18413 fi # test -n "$CONFIG_FILES"
18414
18415 # Set up the scripts for CONFIG_HEADERS section.
18416 # No need to generate them if there are no CONFIG_HEADERS.
18417 # This happens for instance with `./config.status Makefile'.
18418 if test -n "$CONFIG_HEADERS"; then
18419 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18420 BEGIN {
18421 _ACEOF
18422
18423 # Transform confdefs.h into an awk script `defines.awk', embedded as
18424 # here-document in config.status, that substitutes the proper values into
18425 # config.h.in to produce config.h.
18426
18427 # Create a delimiter string that does not exist in confdefs.h, to ease
18428 # handling of long lines.
18429 ac_delim='%!_!# '
18430 for ac_last_try in false false :; do
18431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18432 if test -z "$ac_tt"; then
18433 break
18434 elif $ac_last_try; then
18435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18436 else
18437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18438 fi
18439 done
18440
18441 # For the awk script, D is an array of macro values keyed by name,
18442 # likewise P contains macro parameters if any. Preserve backslash
18443 # newline sequences.
18444
18445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18446 sed -n '
18447 s/.\{148\}/&'"$ac_delim"'/g
18448 t rset
18449 :rset
18450 s/^[ ]*#[ ]*define[ ][ ]*/ /
18451 t def
18452 d
18453 :def
18454 s/\\$//
18455 t bsnl
18456 s/["\\]/\\&/g
18457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18458 D["\1"]=" \3"/p
18459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18460 d
18461 :bsnl
18462 s/["\\]/\\&/g
18463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18464 D["\1"]=" \3\\\\\\n"\\/p
18465 t cont
18466 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18467 t cont
18468 d
18469 :cont
18470 n
18471 s/.\{148\}/&'"$ac_delim"'/g
18472 t clear
18473 :clear
18474 s/\\$//
18475 t bsnlc
18476 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18477 d
18478 :bsnlc
18479 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18480 b cont
18481 ' <confdefs.h | sed '
18482 s/'"$ac_delim"'/"\\\
18483 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18484
18485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18486 for (key in D) D_is_set[key] = 1
18487 FS = "\a"
18488 }
18489 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18490 line = \$ 0
18491 split(line, arg, " ")
18492 if (arg[1] == "#") {
18493 defundef = arg[2]
18494 mac1 = arg[3]
18495 } else {
18496 defundef = substr(arg[1], 2)
18497 mac1 = arg[2]
18498 }
18499 split(mac1, mac2, "(") #)
18500 macro = mac2[1]
18501 prefix = substr(line, 1, index(line, defundef) - 1)
18502 if (D_is_set[macro]) {
18503 # Preserve the white space surrounding the "#".
18504 print prefix "define", macro P[macro] D[macro]
18505 next
18506 } else {
18507 # Replace #undef with comments. This is necessary, for example,
18508 # in the case of _POSIX_SOURCE, which is predefined and required
18509 # on some systems where configure will not decide to define it.
18510 if (defundef == "undef") {
18511 print "/*", prefix defundef, macro, "*/"
18512 next
18513 }
18514 }
18515 }
18516 { print }
18517 _ACAWK
18518 _ACEOF
18519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18521 fi # test -n "$CONFIG_HEADERS"
18522
18523
18524 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18525 shift
18526 for ac_tag
18527 do
18528 case $ac_tag in
18529 :[FHLC]) ac_mode=$ac_tag; continue;;
18530 esac
18531 case $ac_mode$ac_tag in
18532 :[FHL]*:*);;
18533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18534 :[FH]-) ac_tag=-:-;;
18535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18536 esac
18537 ac_save_IFS=$IFS
18538 IFS=:
18539 set x $ac_tag
18540 IFS=$ac_save_IFS
18541 shift
18542 ac_file=$1
18543 shift
18544
18545 case $ac_mode in
18546 :L) ac_source=$1;;
18547 :[FH])
18548 ac_file_inputs=
18549 for ac_f
18550 do
18551 case $ac_f in
18552 -) ac_f="$ac_tmp/stdin";;
18553 *) # Look for the file first in the build tree, then in the source tree
18554 # (if the path is not absolute). The absolute path cannot be DOS-style,
18555 # because $ac_f cannot contain `:'.
18556 test -f "$ac_f" ||
18557 case $ac_f in
18558 [\\/$]*) false;;
18559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18560 esac ||
18561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18562 esac
18563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18564 as_fn_append ac_file_inputs " '$ac_f'"
18565 done
18566
18567 # Let's still pretend it is `configure' which instantiates (i.e., don't
18568 # use $as_me), people would be surprised to read:
18569 # /* config.h. Generated by config.status. */
18570 configure_input='Generated from '`
18571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18572 `' by configure.'
18573 if test x"$ac_file" != x-; then
18574 configure_input="$ac_file. $configure_input"
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18576 $as_echo "$as_me: creating $ac_file" >&6;}
18577 fi
18578 # Neutralize special characters interpreted by sed in replacement strings.
18579 case $configure_input in #(
18580 *\&* | *\|* | *\\* )
18581 ac_sed_conf_input=`$as_echo "$configure_input" |
18582 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18583 *) ac_sed_conf_input=$configure_input;;
18584 esac
18585
18586 case $ac_tag in
18587 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18589 esac
18590 ;;
18591 esac
18592
18593 ac_dir=`$as_dirname -- "$ac_file" ||
18594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18595 X"$ac_file" : 'X\(//\)[^/]' \| \
18596 X"$ac_file" : 'X\(//\)$' \| \
18597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18598 $as_echo X"$ac_file" |
18599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18600 s//\1/
18601 q
18602 }
18603 /^X\(\/\/\)[^/].*/{
18604 s//\1/
18605 q
18606 }
18607 /^X\(\/\/\)$/{
18608 s//\1/
18609 q
18610 }
18611 /^X\(\/\).*/{
18612 s//\1/
18613 q
18614 }
18615 s/.*/./; q'`
18616 as_dir="$ac_dir"; as_fn_mkdir_p
18617 ac_builddir=.
18618
18619 case "$ac_dir" in
18620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18621 *)
18622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18623 # A ".." for each directory in $ac_dir_suffix.
18624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18625 case $ac_top_builddir_sub in
18626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18628 esac ;;
18629 esac
18630 ac_abs_top_builddir=$ac_pwd
18631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18632 # for backward compatibility:
18633 ac_top_builddir=$ac_top_build_prefix
18634
18635 case $srcdir in
18636 .) # We are building in place.
18637 ac_srcdir=.
18638 ac_top_srcdir=$ac_top_builddir_sub
18639 ac_abs_top_srcdir=$ac_pwd ;;
18640 [\\/]* | ?:[\\/]* ) # Absolute name.
18641 ac_srcdir=$srcdir$ac_dir_suffix;
18642 ac_top_srcdir=$srcdir
18643 ac_abs_top_srcdir=$srcdir ;;
18644 *) # Relative name.
18645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18646 ac_top_srcdir=$ac_top_build_prefix$srcdir
18647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18648 esac
18649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18650
18651
18652 case $ac_mode in
18653 :F)
18654 #
18655 # CONFIG_FILE
18656 #
18657
18658 case $INSTALL in
18659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18661 esac
18662 ac_MKDIR_P=$MKDIR_P
18663 case $MKDIR_P in
18664 [\\/$]* | ?:[\\/]* ) ;;
18665 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18666 esac
18667 _ACEOF
18668
18669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18670 # If the template does not know about datarootdir, expand it.
18671 # FIXME: This hack should be removed a few years after 2.60.
18672 ac_datarootdir_hack=; ac_datarootdir_seen=
18673 ac_sed_dataroot='
18674 /datarootdir/ {
18675 p
18676 q
18677 }
18678 /@datadir@/p
18679 /@docdir@/p
18680 /@infodir@/p
18681 /@localedir@/p
18682 /@mandir@/p'
18683 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18684 *datarootdir*) ac_datarootdir_seen=yes;;
18685 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18687 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18688 _ACEOF
18689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18690 ac_datarootdir_hack='
18691 s&@datadir@&$datadir&g
18692 s&@docdir@&$docdir&g
18693 s&@infodir@&$infodir&g
18694 s&@localedir@&$localedir&g
18695 s&@mandir@&$mandir&g
18696 s&\\\${datarootdir}&$datarootdir&g' ;;
18697 esac
18698 _ACEOF
18699
18700 # Neutralize VPATH when `$srcdir' = `.'.
18701 # Shell code in configure.ac might set extrasub.
18702 # FIXME: do we really want to maintain this feature?
18703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18704 ac_sed_extra="$ac_vpsub
18705 $extrasub
18706 _ACEOF
18707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18708 :t
18709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18710 s|@configure_input@|$ac_sed_conf_input|;t t
18711 s&@top_builddir@&$ac_top_builddir_sub&;t t
18712 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18713 s&@srcdir@&$ac_srcdir&;t t
18714 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18715 s&@top_srcdir@&$ac_top_srcdir&;t t
18716 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18717 s&@builddir@&$ac_builddir&;t t
18718 s&@abs_builddir@&$ac_abs_builddir&;t t
18719 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18720 s&@INSTALL@&$ac_INSTALL&;t t
18721 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18722 $ac_datarootdir_hack
18723 "
18724 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18725 if $ac_cs_awk_getline; then
18726 $AWK -f "$ac_tmp/subs.awk"
18727 else
18728 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18729 fi \
18730 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18731
18732 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18733 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18734 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18735 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18737 which seems to be undefined. Please make sure it is defined" >&5
18738 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18739 which seems to be undefined. Please make sure it is defined" >&2;}
18740
18741 rm -f "$ac_tmp/stdin"
18742 case $ac_file in
18743 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18744 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18745 esac \
18746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18747 ;;
18748 :H)
18749 #
18750 # CONFIG_HEADER
18751 #
18752 if test x"$ac_file" != x-; then
18753 {
18754 $as_echo "/* $configure_input */" \
18755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18756 } >"$ac_tmp/config.h" \
18757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18758 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18760 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18761 else
18762 rm -f "$ac_file"
18763 mv "$ac_tmp/config.h" "$ac_file" \
18764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18765 fi
18766 else
18767 $as_echo "/* $configure_input */" \
18768 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18769 || as_fn_error $? "could not create -" "$LINENO" 5
18770 fi
18771 # Compute "$ac_file"'s index in $config_headers.
18772 _am_arg="$ac_file"
18773 _am_stamp_count=1
18774 for _am_header in $config_headers :; do
18775 case $_am_header in
18776 $_am_arg | $_am_arg:* )
18777 break ;;
18778 * )
18779 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18780 esac
18781 done
18782 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18783 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18784 X"$_am_arg" : 'X\(//\)[^/]' \| \
18785 X"$_am_arg" : 'X\(//\)$' \| \
18786 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18787 $as_echo X"$_am_arg" |
18788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18789 s//\1/
18790 q
18791 }
18792 /^X\(\/\/\)[^/].*/{
18793 s//\1/
18794 q
18795 }
18796 /^X\(\/\/\)$/{
18797 s//\1/
18798 q
18799 }
18800 /^X\(\/\).*/{
18801 s//\1/
18802 q
18803 }
18804 s/.*/./; q'`/stamp-h$_am_stamp_count
18805 ;;
18806
18807 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18808 $as_echo "$as_me: executing $ac_file commands" >&6;}
18809 ;;
18810 esac
18811
18812
18813 case $ac_file$ac_mode in
18814 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18815 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18816 # are listed without --file. Let's play safe and only enable the eval
18817 # if we detect the quoting.
18818 case $CONFIG_FILES in
18819 *\'*) eval set x "$CONFIG_FILES" ;;
18820 *) set x $CONFIG_FILES ;;
18821 esac
18822 shift
18823 for mf
18824 do
18825 # Strip MF so we end up with the name of the file.
18826 mf=`echo "$mf" | sed -e 's/:.*$//'`
18827 # Check whether this is an Automake generated Makefile or not.
18828 # We used to match only the files named `Makefile.in', but
18829 # some people rename them; so instead we look at the file content.
18830 # Grep'ing the first line is not enough: some people post-process
18831 # each Makefile.in and add a new line on top of each file to say so.
18832 # Grep'ing the whole file is not good either: AIX grep has a line
18833 # limit of 2048, but all sed's we know have understand at least 4000.
18834 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18835 dirpart=`$as_dirname -- "$mf" ||
18836 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18837 X"$mf" : 'X\(//\)[^/]' \| \
18838 X"$mf" : 'X\(//\)$' \| \
18839 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18840 $as_echo X"$mf" |
18841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18842 s//\1/
18843 q
18844 }
18845 /^X\(\/\/\)[^/].*/{
18846 s//\1/
18847 q
18848 }
18849 /^X\(\/\/\)$/{
18850 s//\1/
18851 q
18852 }
18853 /^X\(\/\).*/{
18854 s//\1/
18855 q
18856 }
18857 s/.*/./; q'`
18858 else
18859 continue
18860 fi
18861 # Extract the definition of DEPDIR, am__include, and am__quote
18862 # from the Makefile without running `make'.
18863 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18864 test -z "$DEPDIR" && continue
18865 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18866 test -z "am__include" && continue
18867 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18868 # When using ansi2knr, U may be empty or an underscore; expand it
18869 U=`sed -n 's/^U = //p' < "$mf"`
18870 # Find all dependency output files, they are included files with
18871 # $(DEPDIR) in their names. We invoke sed twice because it is the
18872 # simplest approach to changing $(DEPDIR) to its actual value in the
18873 # expansion.
18874 for file in `sed -n "
18875 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18876 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18877 # Make sure the directory exists.
18878 test -f "$dirpart/$file" && continue
18879 fdir=`$as_dirname -- "$file" ||
18880 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18881 X"$file" : 'X\(//\)[^/]' \| \
18882 X"$file" : 'X\(//\)$' \| \
18883 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18884 $as_echo X"$file" |
18885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18886 s//\1/
18887 q
18888 }
18889 /^X\(\/\/\)[^/].*/{
18890 s//\1/
18891 q
18892 }
18893 /^X\(\/\/\)$/{
18894 s//\1/
18895 q
18896 }
18897 /^X\(\/\).*/{
18898 s//\1/
18899 q
18900 }
18901 s/.*/./; q'`
18902 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18903 # echo "creating $dirpart/$file"
18904 echo '# dummy' > "$dirpart/$file"
18905 done
18906 done
18907 }
18908 ;;
18909 "default":C)
18910
18911 ### Make the necessary directories, if they don't exist.
18912 for dir in etc lisp ; do
18913 test -d ${dir} || mkdir ${dir}
18914 done
18915
18916 echo creating src/epaths.h
18917 ${MAKE-make} epaths-force
18918
18919 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
18920 echo creating src/.gdbinit
18921 echo source $srcdir/src/.gdbinit > src/.gdbinit
18922 fi
18923
18924 ;;
18925
18926 esac
18927 done # for ac_tag
18928
18929
18930 as_fn_exit 0
18931 _ACEOF
18932 ac_clean_files=$ac_clean_files_save
18933
18934 test $ac_write_fail = 0 ||
18935 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18936
18937
18938 # configure is writing to config.log, and then calls config.status.
18939 # config.status does its own redirection, appending to config.log.
18940 # Unfortunately, on DOS this fails, as config.log is still kept open
18941 # by configure, so config.status won't be able to write to it; its
18942 # output is simply discarded. So we exec the FD to /dev/null,
18943 # effectively closing config.log, so it can be properly (re)opened and
18944 # appended to by config.status. When coming back to configure, we
18945 # need to make the FD available again.
18946 if test "$no_create" != yes; then
18947 ac_cs_success=:
18948 ac_config_status_args=
18949 test "$silent" = yes &&
18950 ac_config_status_args="$ac_config_status_args --quiet"
18951 exec 5>/dev/null
18952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18953 exec 5>>config.log
18954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18955 # would make configure fail if this is the last instruction.
18956 $ac_cs_success || as_fn_exit 1
18957 fi
18958 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18960 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18961 fi
18962
18963