]> code.delx.au - gnu-emacs/blob - autogen/configure
merge upstream
[gnu-emacs] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 POST_ALLOC_OBJ
611 PRE_ALLOC_OBJ
612 CYGWIN_OBJ
613 RALLOC_OBJ
614 OLDXMENU_DEPS
615 LIBX_OTHER
616 LIBXMENU
617 OLDXMENU
618 OLDXMENU_TARGET
619 LIBXT_OTHER
620 TOOLKIT_LIBW
621 WIDGET_OBJ
622 XOBJ
623 XMENU_OBJ
624 FONT_OBJ
625 OTHER_FILES
626 GNU_OBJC_CFLAGS
627 ns_appsrc
628 ns_appresdir
629 ns_appbindir
630 ns_appdir
631 S_FILE
632 M_FILE
633 X_TOOLKIT_TYPE
634 C_SWITCH_X_SYSTEM
635 C_SWITCH_X_SITE
636 LD_SWITCH_X_SITE
637 gameuser
638 gamedir
639 bitmapdir
640 archlibdir
641 etcdir
642 x_default_search_path
643 lisppath
644 locallisppath
645 lispdir
646 srcdir
647 canonical
648 configuration
649 version
650 KRB4LIB
651 DESLIB
652 KRB5LIB
653 CRYPTOLIB
654 COM_ERRLIB
655 LIBRESOLV
656 LIBHESIOD
657 TERMCAP_OBJ
658 LIBS_TERMCAP
659 LIBGNU_LTLIBDEPS
660 LIBGNU_LIBDEPS
661 gltests_WITNESS
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
668 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
669 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
670 gl_GNULIB_ENABLED_dosname_FALSE
671 gl_GNULIB_ENABLED_dosname_TRUE
672 LTLIBINTL
673 LIBINTL
674 HAVE_UNISTD_H
675 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
676 NEXT_UNISTD_H
677 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
678 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
679 TIME_H_DEFINES_STRUCT_TIMESPEC
680 NEXT_AS_FIRST_DIRECTIVE_TIME_H
681 NEXT_TIME_H
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683 NEXT_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
685 NEXT_STDLIB_H
686 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
687 NEXT_STDIO_H
688 REPLACE_VSPRINTF
689 REPLACE_VSNPRINTF
690 REPLACE_VPRINTF
691 REPLACE_VFPRINTF
692 REPLACE_VDPRINTF
693 REPLACE_VASPRINTF
694 REPLACE_TMPFILE
695 REPLACE_STDIO_WRITE_FUNCS
696 REPLACE_STDIO_READ_FUNCS
697 REPLACE_SPRINTF
698 REPLACE_SNPRINTF
699 REPLACE_RENAMEAT
700 REPLACE_RENAME
701 REPLACE_REMOVE
702 REPLACE_PRINTF
703 REPLACE_POPEN
704 REPLACE_PERROR
705 REPLACE_OBSTACK_PRINTF
706 REPLACE_GETLINE
707 REPLACE_GETDELIM
708 REPLACE_FTELLO
709 REPLACE_FTELL
710 REPLACE_FSEEKO
711 REPLACE_FSEEK
712 REPLACE_FREOPEN
713 REPLACE_FPURGE
714 REPLACE_FPRINTF
715 REPLACE_FOPEN
716 REPLACE_FFLUSH
717 REPLACE_FCLOSE
718 REPLACE_DPRINTF
719 HAVE_VDPRINTF
720 HAVE_VASPRINTF
721 HAVE_RENAMEAT
722 HAVE_FTELLO
723 HAVE_FSEEKO
724 HAVE_DPRINTF
725 HAVE_DECL_VSNPRINTF
726 HAVE_DECL_SNPRINTF
727 HAVE_DECL_OBSTACK_PRINTF
728 HAVE_DECL_GETLINE
729 HAVE_DECL_GETDELIM
730 HAVE_DECL_FTELLO
731 HAVE_DECL_FSEEKO
732 HAVE_DECL_FPURGE
733 GNULIB_VSPRINTF_POSIX
734 GNULIB_VSNPRINTF
735 GNULIB_VPRINTF_POSIX
736 GNULIB_VPRINTF
737 GNULIB_VFPRINTF_POSIX
738 GNULIB_VFPRINTF
739 GNULIB_VDPRINTF
740 GNULIB_VSCANF
741 GNULIB_VFSCANF
742 GNULIB_VASPRINTF
743 GNULIB_TMPFILE
744 GNULIB_STDIO_H_SIGPIPE
745 GNULIB_STDIO_H_NONBLOCKING
746 GNULIB_SPRINTF_POSIX
747 GNULIB_SNPRINTF
748 GNULIB_SCANF
749 GNULIB_RENAMEAT
750 GNULIB_RENAME
751 GNULIB_REMOVE
752 GNULIB_PUTS
753 GNULIB_PUTCHAR
754 GNULIB_PUTC
755 GNULIB_PRINTF_POSIX
756 GNULIB_PRINTF
757 GNULIB_POPEN
758 GNULIB_PERROR
759 GNULIB_OBSTACK_PRINTF_POSIX
760 GNULIB_OBSTACK_PRINTF
761 GNULIB_GETS
762 GNULIB_GETLINE
763 GNULIB_GETDELIM
764 GNULIB_GETCHAR
765 GNULIB_GETC
766 GNULIB_FWRITE
767 GNULIB_FTELLO
768 GNULIB_FTELL
769 GNULIB_FSEEKO
770 GNULIB_FSEEK
771 GNULIB_FSCANF
772 GNULIB_FREOPEN
773 GNULIB_FREAD
774 GNULIB_FPUTS
775 GNULIB_FPUTC
776 GNULIB_FPURGE
777 GNULIB_FPRINTF_POSIX
778 GNULIB_FPRINTF
779 GNULIB_FOPEN
780 GNULIB_FGETS
781 GNULIB_FGETC
782 GNULIB_FFLUSH
783 GNULIB_FCLOSE
784 GNULIB_DPRINTF
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
786 NEXT_STDDEF_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
789 STDDEF_H
790 HAVE_WCHAR_T
791 REPLACE_NULL
792 HAVE__BOOL
793 GL_GENERATE_STDBOOL_H_FALSE
794 GL_GENERATE_STDBOOL_H_TRUE
795 STDBOOL_H
796 GL_GENERATE_STDARG_H_FALSE
797 GL_GENERATE_STDARG_H_TRUE
798 STDARG_H
799 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
800 NEXT_STDARG_H
801 REPLACE_TIMEGM
802 REPLACE_NANOSLEEP
803 REPLACE_MKTIME
804 REPLACE_LOCALTIME_R
805 HAVE_TIMEGM
806 HAVE_STRPTIME
807 HAVE_NANOSLEEP
808 HAVE_DECL_LOCALTIME_R
809 GNULIB_TIME_R
810 GNULIB_TIMEGM
811 GNULIB_STRPTIME
812 GNULIB_NANOSLEEP
813 GNULIB_MKTIME
814 REPLACE_UTIMENSAT
815 REPLACE_STAT
816 REPLACE_MKNOD
817 REPLACE_MKFIFO
818 REPLACE_MKDIR
819 REPLACE_LSTAT
820 REPLACE_FUTIMENS
821 REPLACE_FSTATAT
822 REPLACE_FSTAT
823 HAVE_UTIMENSAT
824 HAVE_MKNODAT
825 HAVE_MKNOD
826 HAVE_MKFIFOAT
827 HAVE_MKFIFO
828 HAVE_MKDIRAT
829 HAVE_LSTAT
830 HAVE_LCHMOD
831 HAVE_FUTIMENS
832 HAVE_FSTATAT
833 HAVE_FCHMODAT
834 GNULIB_UTIMENSAT
835 GNULIB_STAT
836 GNULIB_MKNODAT
837 GNULIB_MKNOD
838 GNULIB_MKFIFOAT
839 GNULIB_MKFIFO
840 GNULIB_MKDIRAT
841 GNULIB_LSTAT
842 GNULIB_LCHMOD
843 GNULIB_FUTIMENS
844 GNULIB_FSTATAT
845 GNULIB_FCHMODAT
846 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
847 NEXT_INTTYPES_H
848 UINT64_MAX_EQ_ULONG_MAX
849 UINT32_MAX_LT_UINTMAX_MAX
850 PRIPTR_PREFIX
851 PRI_MACROS_BROKEN
852 INT64_MAX_EQ_LONG_MAX
853 INT32_MAX_LT_INTMAX_MAX
854 HAVE_DECL_STRTOUMAX
855 HAVE_DECL_STRTOIMAX
856 HAVE_DECL_IMAXDIV
857 HAVE_DECL_IMAXABS
858 GNULIB_STRTOUMAX
859 GNULIB_STRTOIMAX
860 GNULIB_IMAXDIV
861 GNULIB_IMAXABS
862 GL_GENERATE_STDINT_H_FALSE
863 GL_GENERATE_STDINT_H_TRUE
864 STDINT_H
865 WINT_T_SUFFIX
866 WCHAR_T_SUFFIX
867 SIG_ATOMIC_T_SUFFIX
868 SIZE_T_SUFFIX
869 PTRDIFF_T_SUFFIX
870 HAVE_SIGNED_WINT_T
871 HAVE_SIGNED_WCHAR_T
872 HAVE_SIGNED_SIG_ATOMIC_T
873 BITSIZEOF_WINT_T
874 BITSIZEOF_WCHAR_T
875 BITSIZEOF_SIG_ATOMIC_T
876 BITSIZEOF_SIZE_T
877 BITSIZEOF_PTRDIFF_T
878 APPLE_UNIVERSAL_BUILD
879 HAVE_SYS_BITYPES_H
880 HAVE_SYS_INTTYPES_H
881 HAVE_STDINT_H
882 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
883 NEXT_STDINT_H
884 HAVE_SYS_TYPES_H
885 HAVE_INTTYPES_H
886 HAVE_WCHAR_H
887 HAVE_UNSIGNED_LONG_LONG_INT
888 HAVE_LONG_LONG_INT
889 GETOPT_H
890 HAVE_GETOPT_H
891 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
892 NEXT_GETOPT_H
893 PRAGMA_COLUMNS
894 PRAGMA_SYSTEM_HEADER
895 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
896 INCLUDE_NEXT
897 GETLOADAVG_LIBS
898 REPLACE_WCTOMB
899 REPLACE_UNSETENV
900 REPLACE_STRTOD
901 REPLACE_SETENV
902 REPLACE_REALPATH
903 REPLACE_REALLOC
904 REPLACE_PUTENV
905 REPLACE_MKSTEMP
906 REPLACE_MBTOWC
907 REPLACE_MALLOC
908 REPLACE_CANONICALIZE_FILE_NAME
909 REPLACE_CALLOC
910 HAVE_DECL_UNSETENV
911 HAVE_UNLOCKPT
912 HAVE_SYS_LOADAVG_H
913 HAVE_STRUCT_RANDOM_DATA
914 HAVE_STRTOULL
915 HAVE_STRTOLL
916 HAVE_STRTOD
917 HAVE_DECL_SETENV
918 HAVE_SETENV
919 HAVE_RPMATCH
920 HAVE_REALPATH
921 HAVE_RANDOM_R
922 HAVE_RANDOM_H
923 HAVE_PTSNAME
924 HAVE_MKSTEMPS
925 HAVE_MKSTEMP
926 HAVE_MKOSTEMPS
927 HAVE_MKOSTEMP
928 HAVE_MKDTEMP
929 HAVE_GRANTPT
930 HAVE_GETSUBOPT
931 HAVE_DECL_GETLOADAVG
932 HAVE_CANONICALIZE_FILE_NAME
933 HAVE_ATOLL
934 HAVE__EXIT
935 GNULIB_WCTOMB
936 GNULIB_UNSETENV
937 GNULIB_UNLOCKPT
938 GNULIB_SYSTEM_POSIX
939 GNULIB_STRTOULL
940 GNULIB_STRTOLL
941 GNULIB_STRTOD
942 GNULIB_SETENV
943 GNULIB_RPMATCH
944 GNULIB_REALPATH
945 GNULIB_REALLOC_POSIX
946 GNULIB_RANDOM_R
947 GNULIB_PUTENV
948 GNULIB_PTSNAME
949 GNULIB_MKSTEMPS
950 GNULIB_MKSTEMP
951 GNULIB_MKOSTEMPS
952 GNULIB_MKOSTEMP
953 GNULIB_MKDTEMP
954 GNULIB_MBTOWC
955 GNULIB_MALLOC_POSIX
956 GNULIB_GRANTPT
957 GNULIB_GETSUBOPT
958 GNULIB_GETLOADAVG
959 GNULIB_CANONICALIZE_FILE_NAME
960 GNULIB_CALLOC_POSIX
961 GNULIB_ATOLL
962 GNULIB__EXIT
963 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
964 UNISTD_H_HAVE_WINSOCK2_H
965 REPLACE_WRITE
966 REPLACE_USLEEP
967 REPLACE_UNLINKAT
968 REPLACE_UNLINK
969 REPLACE_TTYNAME_R
970 REPLACE_SYMLINK
971 REPLACE_SLEEP
972 REPLACE_RMDIR
973 REPLACE_READLINK
974 REPLACE_READ
975 REPLACE_PWRITE
976 REPLACE_PREAD
977 REPLACE_LSEEK
978 REPLACE_LINKAT
979 REPLACE_LINK
980 REPLACE_LCHOWN
981 REPLACE_GETPAGESIZE
982 REPLACE_GETGROUPS
983 REPLACE_GETLOGIN_R
984 REPLACE_GETDOMAINNAME
985 REPLACE_GETCWD
986 REPLACE_FCHOWNAT
987 REPLACE_DUP2
988 REPLACE_DUP
989 REPLACE_CLOSE
990 REPLACE_CHOWN
991 HAVE_SYS_PARAM_H
992 HAVE_OS_H
993 HAVE_DECL_TTYNAME_R
994 HAVE_DECL_GETUSERSHELL
995 HAVE_DECL_GETPAGESIZE
996 HAVE_DECL_GETLOGIN_R
997 HAVE_DECL_GETDOMAINNAME
998 HAVE_DECL_FCHDIR
999 HAVE_DECL_ENVIRON
1000 HAVE_USLEEP
1001 HAVE_UNLINKAT
1002 HAVE_SYMLINKAT
1003 HAVE_SYMLINK
1004 HAVE_SLEEP
1005 HAVE_READLINKAT
1006 HAVE_READLINK
1007 HAVE_PWRITE
1008 HAVE_PREAD
1009 HAVE_PIPE2
1010 HAVE_PIPE
1011 HAVE_LINKAT
1012 HAVE_LINK
1013 HAVE_LCHOWN
1014 HAVE_GROUP_MEMBER
1015 HAVE_GETPAGESIZE
1016 HAVE_GETLOGIN
1017 HAVE_GETHOSTNAME
1018 HAVE_GETGROUPS
1019 HAVE_GETDTABLESIZE
1020 HAVE_FTRUNCATE
1021 HAVE_FSYNC
1022 HAVE_FCHOWNAT
1023 HAVE_FCHDIR
1024 HAVE_FACCESSAT
1025 HAVE_EUIDACCESS
1026 HAVE_DUP3
1027 HAVE_DUP2
1028 HAVE_CHOWN
1029 GNULIB_WRITE
1030 GNULIB_USLEEP
1031 GNULIB_UNLINKAT
1032 GNULIB_UNLINK
1033 GNULIB_UNISTD_H_SIGPIPE
1034 GNULIB_UNISTD_H_NONBLOCKING
1035 GNULIB_UNISTD_H_GETOPT
1036 GNULIB_TTYNAME_R
1037 GNULIB_SYMLINKAT
1038 GNULIB_SYMLINK
1039 GNULIB_SLEEP
1040 GNULIB_RMDIR
1041 GNULIB_READLINKAT
1042 GNULIB_READLINK
1043 GNULIB_READ
1044 GNULIB_PWRITE
1045 GNULIB_PREAD
1046 GNULIB_PIPE2
1047 GNULIB_PIPE
1048 GNULIB_LSEEK
1049 GNULIB_LINKAT
1050 GNULIB_LINK
1051 GNULIB_LCHOWN
1052 GNULIB_GROUP_MEMBER
1053 GNULIB_GETUSERSHELL
1054 GNULIB_GETPAGESIZE
1055 GNULIB_GETLOGIN_R
1056 GNULIB_GETLOGIN
1057 GNULIB_GETHOSTNAME
1058 GNULIB_GETGROUPS
1059 GNULIB_GETDTABLESIZE
1060 GNULIB_GETDOMAINNAME
1061 GNULIB_GETCWD
1062 GNULIB_FTRUNCATE
1063 GNULIB_FSYNC
1064 GNULIB_FCHOWNAT
1065 GNULIB_FCHDIR
1066 GNULIB_FACCESSAT
1067 GNULIB_EUIDACCESS
1068 GNULIB_ENVIRON
1069 GNULIB_DUP3
1070 GNULIB_DUP2
1071 GNULIB_CLOSE
1072 GNULIB_CHOWN
1073 GL_GENERATE_ALLOCA_H_FALSE
1074 GL_GENERATE_ALLOCA_H_TRUE
1075 ALLOCA_H
1076 ALLOCA
1077 GL_COND_LIBTOOL_FALSE
1078 GL_COND_LIBTOOL_TRUE
1079 BLESSMAIL_TARGET
1080 LIBS_MAIL
1081 liblockfile
1082 LIBXML2_LIBS
1083 LIBXML2_CFLAGS
1084 LIBXSM
1085 LIBGPM
1086 LIBGIF
1087 LIBTIFF
1088 LIBPNG
1089 LIBJPEG
1090 LIBXPM
1091 M17N_FLT_LIBS
1092 M17N_FLT_CFLAGS
1093 LIBOTF_LIBS
1094 LIBOTF_CFLAGS
1095 FREETYPE_LIBS
1096 FREETYPE_CFLAGS
1097 XFT_LIBS
1098 XFT_CFLAGS
1099 FONTCONFIG_LIBS
1100 FONTCONFIG_CFLAGS
1101 LIBXMU
1102 LIBXTR6
1103 LIBGNUTLS_LIBS
1104 LIBGNUTLS_CFLAGS
1105 LIBSELINUX_LIBS
1106 GCONF_LIBS
1107 GCONF_CFLAGS
1108 DBUS_OBJ
1109 DBUS_LIBS
1110 DBUS_CFLAGS
1111 GTK_OBJ
1112 GTK_LIBS
1113 GTK_CFLAGS
1114 IMAGEMAGICK_LIBS
1115 IMAGEMAGICK_CFLAGS
1116 RSVG_LIBS
1117 RSVG_CFLAGS
1118 VMLIMIT_OBJ
1119 GMALLOC_OBJ
1120 HAVE_XSERVER
1121 LIB_STANDARD
1122 NS_OBJC_OBJ
1123 NS_OBJ
1124 TEMACS_LDFLAGS2
1125 LD_SWITCH_X_SITE_AUX_RPATH
1126 LD_SWITCH_X_SITE_AUX
1127 XMKMF
1128 DEPFLAGS
1129 MKDEPDIR
1130 CFLAGS_SOUND
1131 ALSA_LIBS
1132 ALSA_CFLAGS
1133 PKG_CONFIG
1134 LIBSOUND
1135 START_FILES
1136 LIB_MATH
1137 CRT_DIR
1138 LIBS_SYSTEM
1139 C_SWITCH_SYSTEM
1140 UNEXEC_OBJ
1141 C_SWITCH_MACHINE
1142 LD_SWITCH_SYSTEM
1143 CANNOT_DUMP
1144 HAVE_MAKEINFO
1145 GZIP_PROG
1146 INSTALL_INFO
1147 C_WARNINGS_SWITCH
1148 EGREP
1149 GREP
1150 CPP
1151 RANLIB
1152 am__fastdepCC_FALSE
1153 am__fastdepCC_TRUE
1154 CCDEPMODE
1155 AMDEPBACKSLASH
1156 AMDEP_FALSE
1157 AMDEP_TRUE
1158 am__quote
1159 am__include
1160 DEPDIR
1161 OBJEXT
1162 EXEEXT
1163 ac_ct_CC
1164 CPPFLAGS
1165 LDFLAGS
1166 CFLAGS
1167 CC
1168 host_os
1169 host_vendor
1170 host_cpu
1171 host
1172 build_os
1173 build_vendor
1174 build_cpu
1175 build
1176 PROFILING_CFLAGS
1177 MAINT
1178 GZIP_INFO
1179 am__untar
1180 am__tar
1181 AMTAR
1182 am__leading_dot
1183 SET_MAKE
1184 AWK
1185 mkdir_p
1186 MKDIR_P
1187 INSTALL_STRIP_PROGRAM
1188 STRIP
1189 install_sh
1190 MAKEINFO
1191 AUTOHEADER
1192 AUTOMAKE
1193 AUTOCONF
1194 ACLOCAL
1195 VERSION
1196 PACKAGE
1197 CYGPATH_W
1198 am__isrc
1199 INSTALL_DATA
1200 INSTALL_SCRIPT
1201 INSTALL_PROGRAM
1202 target_alias
1203 host_alias
1204 build_alias
1205 LIBS
1206 ECHO_T
1207 ECHO_N
1208 ECHO_C
1209 DEFS
1210 mandir
1211 localedir
1212 libdir
1213 psdir
1214 pdfdir
1215 dvidir
1216 htmldir
1217 infodir
1218 docdir
1219 oldincludedir
1220 includedir
1221 localstatedir
1222 sharedstatedir
1223 sysconfdir
1224 datadir
1225 datarootdir
1226 libexecdir
1227 sbindir
1228 bindir
1229 program_transform_name
1230 prefix
1231 exec_prefix
1232 PACKAGE_URL
1233 PACKAGE_BUGREPORT
1234 PACKAGE_STRING
1235 PACKAGE_VERSION
1236 PACKAGE_TARNAME
1237 PACKAGE_NAME
1238 PATH_SEPARATOR
1239 SHELL'
1240 ac_subst_files='deps_frag
1241 lisp_frag
1242 ns_frag'
1243 ac_user_opts='
1244 enable_option_checking
1245 with_pop
1246 with_kerberos
1247 with_kerberos5
1248 with_hesiod
1249 with_mmdf
1250 with_mail_unlink
1251 with_mailhost
1252 with_sound
1253 with_sync_input
1254 with_x_toolkit
1255 with_wide_int
1256 with_xpm
1257 with_jpeg
1258 with_tiff
1259 with_gif
1260 with_png
1261 with_rsvg
1262 with_xml2
1263 with_imagemagick
1264 with_xft
1265 with_libotf
1266 with_m17n_flt
1267 with_toolkit_scroll_bars
1268 with_xaw3d
1269 with_xim
1270 with_ns
1271 with_gpm
1272 with_dbus
1273 with_gconf
1274 with_selinux
1275 with_gnutls
1276 with_makeinfo
1277 with_compress_info
1278 with_pkg_config_prog
1279 with_crt_dir
1280 with_gameuser
1281 with_gnustep_conf
1282 enable_ns_self_contained
1283 enable_asserts
1284 enable_maintainer_mode
1285 enable_locallisppath
1286 enable_checking
1287 enable_use_lisp_union_type
1288 enable_profiling
1289 enable_autodepend
1290 enable_dependency_tracking
1291 enable_largefile
1292 with_x
1293 '
1294 ac_precious_vars='build_alias
1295 host_alias
1296 target_alias
1297 CC
1298 CFLAGS
1299 LDFLAGS
1300 LIBS
1301 CPPFLAGS
1302 CPP
1303 XMKMF'
1304
1305
1306 # Initialize some variables set by options.
1307 ac_init_help=
1308 ac_init_version=false
1309 ac_unrecognized_opts=
1310 ac_unrecognized_sep=
1311 # The variables have the same names as the options, with
1312 # dashes changed to underlines.
1313 cache_file=/dev/null
1314 exec_prefix=NONE
1315 no_create=
1316 no_recursion=
1317 prefix=NONE
1318 program_prefix=NONE
1319 program_suffix=NONE
1320 program_transform_name=s,x,x,
1321 silent=
1322 site=
1323 srcdir=
1324 verbose=
1325 x_includes=NONE
1326 x_libraries=NONE
1327
1328 # Installation directory options.
1329 # These are left unexpanded so users can "make install exec_prefix=/foo"
1330 # and all the variables that are supposed to be based on exec_prefix
1331 # by default will actually change.
1332 # Use braces instead of parens because sh, perl, etc. also accept them.
1333 # (The list follows the same order as the GNU Coding Standards.)
1334 bindir='${exec_prefix}/bin'
1335 sbindir='${exec_prefix}/sbin'
1336 libexecdir='${exec_prefix}/libexec'
1337 datarootdir='${prefix}/share'
1338 datadir='${datarootdir}'
1339 sysconfdir='${prefix}/etc'
1340 sharedstatedir='${prefix}/com'
1341 localstatedir='${prefix}/var'
1342 includedir='${prefix}/include'
1343 oldincludedir='/usr/include'
1344 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1345 infodir='${datarootdir}/info'
1346 htmldir='${docdir}'
1347 dvidir='${docdir}'
1348 pdfdir='${docdir}'
1349 psdir='${docdir}'
1350 libdir='${exec_prefix}/lib'
1351 localedir='${datarootdir}/locale'
1352 mandir='${datarootdir}/man'
1353
1354 ac_prev=
1355 ac_dashdash=
1356 for ac_option
1357 do
1358 # If the previous option needs an argument, assign it.
1359 if test -n "$ac_prev"; then
1360 eval $ac_prev=\$ac_option
1361 ac_prev=
1362 continue
1363 fi
1364
1365 case $ac_option in
1366 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1367 *) ac_optarg=yes ;;
1368 esac
1369
1370 # Accept the important Cygnus configure options, so we can diagnose typos.
1371
1372 case $ac_dashdash$ac_option in
1373 --)
1374 ac_dashdash=yes ;;
1375
1376 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1377 ac_prev=bindir ;;
1378 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1379 bindir=$ac_optarg ;;
1380
1381 -build | --build | --buil | --bui | --bu)
1382 ac_prev=build_alias ;;
1383 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1384 build_alias=$ac_optarg ;;
1385
1386 -cache-file | --cache-file | --cache-fil | --cache-fi \
1387 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1388 ac_prev=cache_file ;;
1389 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1390 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1391 cache_file=$ac_optarg ;;
1392
1393 --config-cache | -C)
1394 cache_file=config.cache ;;
1395
1396 -datadir | --datadir | --datadi | --datad)
1397 ac_prev=datadir ;;
1398 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1399 datadir=$ac_optarg ;;
1400
1401 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1402 | --dataroo | --dataro | --datar)
1403 ac_prev=datarootdir ;;
1404 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1405 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1406 datarootdir=$ac_optarg ;;
1407
1408 -disable-* | --disable-*)
1409 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1410 # Reject names that are not valid shell variable names.
1411 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1412 as_fn_error "invalid feature name: $ac_useropt"
1413 ac_useropt_orig=$ac_useropt
1414 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1415 case $ac_user_opts in
1416 *"
1417 "enable_$ac_useropt"
1418 "*) ;;
1419 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1420 ac_unrecognized_sep=', ';;
1421 esac
1422 eval enable_$ac_useropt=no ;;
1423
1424 -docdir | --docdir | --docdi | --doc | --do)
1425 ac_prev=docdir ;;
1426 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1427 docdir=$ac_optarg ;;
1428
1429 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1430 ac_prev=dvidir ;;
1431 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1432 dvidir=$ac_optarg ;;
1433
1434 -enable-* | --enable-*)
1435 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1436 # Reject names that are not valid shell variable names.
1437 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1438 as_fn_error "invalid feature name: $ac_useropt"
1439 ac_useropt_orig=$ac_useropt
1440 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1441 case $ac_user_opts in
1442 *"
1443 "enable_$ac_useropt"
1444 "*) ;;
1445 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1446 ac_unrecognized_sep=', ';;
1447 esac
1448 eval enable_$ac_useropt=\$ac_optarg ;;
1449
1450 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1451 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1452 | --exec | --exe | --ex)
1453 ac_prev=exec_prefix ;;
1454 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1455 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1456 | --exec=* | --exe=* | --ex=*)
1457 exec_prefix=$ac_optarg ;;
1458
1459 -gas | --gas | --ga | --g)
1460 # Obsolete; use --with-gas.
1461 with_gas=yes ;;
1462
1463 -help | --help | --hel | --he | -h)
1464 ac_init_help=long ;;
1465 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1466 ac_init_help=recursive ;;
1467 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1468 ac_init_help=short ;;
1469
1470 -host | --host | --hos | --ho)
1471 ac_prev=host_alias ;;
1472 -host=* | --host=* | --hos=* | --ho=*)
1473 host_alias=$ac_optarg ;;
1474
1475 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1476 ac_prev=htmldir ;;
1477 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1478 | --ht=*)
1479 htmldir=$ac_optarg ;;
1480
1481 -includedir | --includedir | --includedi | --included | --include \
1482 | --includ | --inclu | --incl | --inc)
1483 ac_prev=includedir ;;
1484 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1485 | --includ=* | --inclu=* | --incl=* | --inc=*)
1486 includedir=$ac_optarg ;;
1487
1488 -infodir | --infodir | --infodi | --infod | --info | --inf)
1489 ac_prev=infodir ;;
1490 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1491 infodir=$ac_optarg ;;
1492
1493 -libdir | --libdir | --libdi | --libd)
1494 ac_prev=libdir ;;
1495 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1496 libdir=$ac_optarg ;;
1497
1498 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1499 | --libexe | --libex | --libe)
1500 ac_prev=libexecdir ;;
1501 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1502 | --libexe=* | --libex=* | --libe=*)
1503 libexecdir=$ac_optarg ;;
1504
1505 -localedir | --localedir | --localedi | --localed | --locale)
1506 ac_prev=localedir ;;
1507 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1508 localedir=$ac_optarg ;;
1509
1510 -localstatedir | --localstatedir | --localstatedi | --localstated \
1511 | --localstate | --localstat | --localsta | --localst | --locals)
1512 ac_prev=localstatedir ;;
1513 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1514 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1515 localstatedir=$ac_optarg ;;
1516
1517 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1518 ac_prev=mandir ;;
1519 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1520 mandir=$ac_optarg ;;
1521
1522 -nfp | --nfp | --nf)
1523 # Obsolete; use --without-fp.
1524 with_fp=no ;;
1525
1526 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1527 | --no-cr | --no-c | -n)
1528 no_create=yes ;;
1529
1530 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1531 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1532 no_recursion=yes ;;
1533
1534 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1535 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1536 | --oldin | --oldi | --old | --ol | --o)
1537 ac_prev=oldincludedir ;;
1538 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1539 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1540 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1541 oldincludedir=$ac_optarg ;;
1542
1543 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1544 ac_prev=prefix ;;
1545 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1546 prefix=$ac_optarg ;;
1547
1548 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1549 | --program-pre | --program-pr | --program-p)
1550 ac_prev=program_prefix ;;
1551 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1552 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1553 program_prefix=$ac_optarg ;;
1554
1555 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1556 | --program-suf | --program-su | --program-s)
1557 ac_prev=program_suffix ;;
1558 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1559 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1560 program_suffix=$ac_optarg ;;
1561
1562 -program-transform-name | --program-transform-name \
1563 | --program-transform-nam | --program-transform-na \
1564 | --program-transform-n | --program-transform- \
1565 | --program-transform | --program-transfor \
1566 | --program-transfo | --program-transf \
1567 | --program-trans | --program-tran \
1568 | --progr-tra | --program-tr | --program-t)
1569 ac_prev=program_transform_name ;;
1570 -program-transform-name=* | --program-transform-name=* \
1571 | --program-transform-nam=* | --program-transform-na=* \
1572 | --program-transform-n=* | --program-transform-=* \
1573 | --program-transform=* | --program-transfor=* \
1574 | --program-transfo=* | --program-transf=* \
1575 | --program-trans=* | --program-tran=* \
1576 | --progr-tra=* | --program-tr=* | --program-t=*)
1577 program_transform_name=$ac_optarg ;;
1578
1579 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1580 ac_prev=pdfdir ;;
1581 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1582 pdfdir=$ac_optarg ;;
1583
1584 -psdir | --psdir | --psdi | --psd | --ps)
1585 ac_prev=psdir ;;
1586 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1587 psdir=$ac_optarg ;;
1588
1589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1590 | -silent | --silent | --silen | --sile | --sil)
1591 silent=yes ;;
1592
1593 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1594 ac_prev=sbindir ;;
1595 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1596 | --sbi=* | --sb=*)
1597 sbindir=$ac_optarg ;;
1598
1599 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1600 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1601 | --sharedst | --shareds | --shared | --share | --shar \
1602 | --sha | --sh)
1603 ac_prev=sharedstatedir ;;
1604 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1605 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1606 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1607 | --sha=* | --sh=*)
1608 sharedstatedir=$ac_optarg ;;
1609
1610 -site | --site | --sit)
1611 ac_prev=site ;;
1612 -site=* | --site=* | --sit=*)
1613 site=$ac_optarg ;;
1614
1615 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1616 ac_prev=srcdir ;;
1617 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1618 srcdir=$ac_optarg ;;
1619
1620 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1621 | --syscon | --sysco | --sysc | --sys | --sy)
1622 ac_prev=sysconfdir ;;
1623 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1624 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1625 sysconfdir=$ac_optarg ;;
1626
1627 -target | --target | --targe | --targ | --tar | --ta | --t)
1628 ac_prev=target_alias ;;
1629 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1630 target_alias=$ac_optarg ;;
1631
1632 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1633 verbose=yes ;;
1634
1635 -version | --version | --versio | --versi | --vers | -V)
1636 ac_init_version=: ;;
1637
1638 -with-* | --with-*)
1639 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1640 # Reject names that are not valid shell variable names.
1641 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1642 as_fn_error "invalid package name: $ac_useropt"
1643 ac_useropt_orig=$ac_useropt
1644 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1645 case $ac_user_opts in
1646 *"
1647 "with_$ac_useropt"
1648 "*) ;;
1649 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1650 ac_unrecognized_sep=', ';;
1651 esac
1652 eval with_$ac_useropt=\$ac_optarg ;;
1653
1654 -without-* | --without-*)
1655 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1656 # Reject names that are not valid shell variable names.
1657 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1658 as_fn_error "invalid package name: $ac_useropt"
1659 ac_useropt_orig=$ac_useropt
1660 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1661 case $ac_user_opts in
1662 *"
1663 "with_$ac_useropt"
1664 "*) ;;
1665 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1666 ac_unrecognized_sep=', ';;
1667 esac
1668 eval with_$ac_useropt=no ;;
1669
1670 --x)
1671 # Obsolete; use --with-x.
1672 with_x=yes ;;
1673
1674 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1675 | --x-incl | --x-inc | --x-in | --x-i)
1676 ac_prev=x_includes ;;
1677 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1678 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1679 x_includes=$ac_optarg ;;
1680
1681 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1682 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1683 ac_prev=x_libraries ;;
1684 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1685 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1686 x_libraries=$ac_optarg ;;
1687
1688 -*) as_fn_error "unrecognized option: \`$ac_option'
1689 Try \`$0 --help' for more information."
1690 ;;
1691
1692 *=*)
1693 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1694 # Reject names that are not valid shell variable names.
1695 case $ac_envvar in #(
1696 '' | [0-9]* | *[!_$as_cr_alnum]* )
1697 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1698 esac
1699 eval $ac_envvar=\$ac_optarg
1700 export $ac_envvar ;;
1701
1702 *)
1703 # FIXME: should be removed in autoconf 3.0.
1704 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1705 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1706 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1707 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1708 ;;
1709
1710 esac
1711 done
1712
1713 if test -n "$ac_prev"; then
1714 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1715 as_fn_error "missing argument to $ac_option"
1716 fi
1717
1718 if test -n "$ac_unrecognized_opts"; then
1719 case $enable_option_checking in
1720 no) ;;
1721 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1722 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1723 esac
1724 fi
1725
1726 # Check all directory arguments for consistency.
1727 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1728 datadir sysconfdir sharedstatedir localstatedir includedir \
1729 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1730 libdir localedir mandir
1731 do
1732 eval ac_val=\$$ac_var
1733 # Remove trailing slashes.
1734 case $ac_val in
1735 */ )
1736 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1737 eval $ac_var=\$ac_val;;
1738 esac
1739 # Be sure to have absolute directory names.
1740 case $ac_val in
1741 [\\/$]* | ?:[\\/]* ) continue;;
1742 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1743 esac
1744 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1745 done
1746
1747 # There might be people who depend on the old broken behavior: `$host'
1748 # used to hold the argument of --host etc.
1749 # FIXME: To remove some day.
1750 build=$build_alias
1751 host=$host_alias
1752 target=$target_alias
1753
1754 # FIXME: To remove some day.
1755 if test "x$host_alias" != x; then
1756 if test "x$build_alias" = x; then
1757 cross_compiling=maybe
1758 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1759 If a cross compiler is detected then cross compile mode will be used." >&2
1760 elif test "x$build_alias" != "x$host_alias"; then
1761 cross_compiling=yes
1762 fi
1763 fi
1764
1765 ac_tool_prefix=
1766 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1767
1768 test "$silent" = yes && exec 6>/dev/null
1769
1770
1771 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1772 ac_ls_di=`ls -di .` &&
1773 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1774 as_fn_error "working directory cannot be determined"
1775 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1776 as_fn_error "pwd does not report name of working directory"
1777
1778
1779 # Find the source files, if location was not specified.
1780 if test -z "$srcdir"; then
1781 ac_srcdir_defaulted=yes
1782 # Try the directory containing this script, then the parent directory.
1783 ac_confdir=`$as_dirname -- "$as_myself" ||
1784 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1785 X"$as_myself" : 'X\(//\)[^/]' \| \
1786 X"$as_myself" : 'X\(//\)$' \| \
1787 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1788 $as_echo X"$as_myself" |
1789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1790 s//\1/
1791 q
1792 }
1793 /^X\(\/\/\)[^/].*/{
1794 s//\1/
1795 q
1796 }
1797 /^X\(\/\/\)$/{
1798 s//\1/
1799 q
1800 }
1801 /^X\(\/\).*/{
1802 s//\1/
1803 q
1804 }
1805 s/.*/./; q'`
1806 srcdir=$ac_confdir
1807 if test ! -r "$srcdir/$ac_unique_file"; then
1808 srcdir=..
1809 fi
1810 else
1811 ac_srcdir_defaulted=no
1812 fi
1813 if test ! -r "$srcdir/$ac_unique_file"; then
1814 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1815 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1816 fi
1817 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1818 ac_abs_confdir=`(
1819 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1820 pwd)`
1821 # When building in place, set srcdir=.
1822 if test "$ac_abs_confdir" = "$ac_pwd"; then
1823 srcdir=.
1824 fi
1825 # Remove unnecessary trailing slashes from srcdir.
1826 # Double slashes in file names in object file debugging info
1827 # mess up M-x gdb in Emacs.
1828 case $srcdir in
1829 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1830 esac
1831 for ac_var in $ac_precious_vars; do
1832 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1833 eval ac_env_${ac_var}_value=\$${ac_var}
1834 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1835 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1836 done
1837
1838 #
1839 # Report the --help message.
1840 #
1841 if test "$ac_init_help" = "long"; then
1842 # Omit some internal or obsolete options to make the list less imposing.
1843 # This message is too long to be a string in the A/UX 3.1 sh.
1844 cat <<_ACEOF
1845 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1846
1847 Usage: $0 [OPTION]... [VAR=VALUE]...
1848
1849 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1850 VAR=VALUE. See below for descriptions of some of the useful variables.
1851
1852 Defaults for the options are specified in brackets.
1853
1854 Configuration:
1855 -h, --help display this help and exit
1856 --help=short display options specific to this package
1857 --help=recursive display the short help of all the included packages
1858 -V, --version display version information and exit
1859 -q, --quiet, --silent do not print \`checking...' messages
1860 --cache-file=FILE cache test results in FILE [disabled]
1861 -C, --config-cache alias for \`--cache-file=config.cache'
1862 -n, --no-create do not create output files
1863 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1864
1865 Installation directories:
1866 --prefix=PREFIX install architecture-independent files in PREFIX
1867 [$ac_default_prefix]
1868 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1869 [PREFIX]
1870
1871 By default, \`make install' will install all the files in
1872 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1873 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1874 for instance \`--prefix=\$HOME'.
1875
1876 For better control, use the options below.
1877
1878 Fine tuning of the installation directories:
1879 --bindir=DIR user executables [EPREFIX/bin]
1880 --sbindir=DIR system admin executables [EPREFIX/sbin]
1881 --libexecdir=DIR program executables [EPREFIX/libexec]
1882 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1883 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1884 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1885 --libdir=DIR object code libraries [EPREFIX/lib]
1886 --includedir=DIR C header files [PREFIX/include]
1887 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1888 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1889 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1890 --infodir=DIR info documentation [DATAROOTDIR/info]
1891 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1892 --mandir=DIR man documentation [DATAROOTDIR/man]
1893 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1894 --htmldir=DIR html documentation [DOCDIR]
1895 --dvidir=DIR dvi documentation [DOCDIR]
1896 --pdfdir=DIR pdf documentation [DOCDIR]
1897 --psdir=DIR ps documentation [DOCDIR]
1898 _ACEOF
1899
1900 cat <<\_ACEOF
1901
1902 Program names:
1903 --program-prefix=PREFIX prepend PREFIX to installed program names
1904 --program-suffix=SUFFIX append SUFFIX to installed program names
1905 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1906
1907 X features:
1908 --x-includes=DIR X include files are in DIR
1909 --x-libraries=DIR X library files are in DIR
1910
1911 System types:
1912 --build=BUILD configure for building on BUILD [guessed]
1913 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1914 _ACEOF
1915 fi
1916
1917 if test -n "$ac_init_help"; then
1918 case $ac_init_help in
1919 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1920 esac
1921 cat <<\_ACEOF
1922
1923 Optional Features:
1924 --disable-option-checking ignore unrecognized --enable/--with options
1925 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1926 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1927 --disable-ns-self-contained
1928 disable self contained build under NeXTstep
1929 --enable-asserts compile code with asserts enabled
1930 --enable-maintainer-mode
1931 enable make rules and dependencies not useful (and
1932 sometimes confusing) to the casual installer
1933 --enable-locallisppath=PATH
1934 directories Emacs should search for lisp files
1935 specific to this site
1936 --enable-checking[=LIST]
1937 enable expensive run-time checks. With LIST, enable
1938 only specific categories of checks. Categories are:
1939 all,yes,no. Flags are: stringbytes, stringoverrun,
1940 stringfreelist, xmallocoverrun, conslist
1941 --enable-use-lisp-union-type
1942 use a union for the Lisp_Object data type. This is
1943 only useful for development for catching certain
1944 types of bugs.
1945 --enable-profiling build emacs with profiling support. This might not
1946 work on all platforms
1947 --enable-autodepend automatically generate dependencies to .h-files.
1948 Requires GNU Make and Gcc. Enabled if GNU Make and
1949 Gcc is found
1950 --disable-dependency-tracking speeds up one-time build
1951 --enable-dependency-tracking do not reject slow dependency extractors
1952 --disable-largefile omit support for large files
1953
1954 Optional Packages:
1955 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1956 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1957 --without-pop don't support POP mail retrieval with movemail
1958 --with-kerberos support Kerberos-authenticated POP
1959 --with-kerberos5 support Kerberos version 5 authenticated POP
1960 --with-hesiod support Hesiod to get the POP server host
1961 --with-mmdf support MMDF mailboxes
1962 --with-mail-unlink unlink, rather than empty, mail spool after reading
1963 --with-mailhost=HOSTNAME
1964 string giving default POP mail host
1965 --without-sound don't compile with sound support
1966 --without-sync-input process async input synchronously
1967 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1968 lucid or athena, motif, no)
1969 --with-wide-int prefer wide Emacs integers (typically 62-bit)
1970 --without-xpm don't compile with XPM image support
1971 --without-jpeg don't compile with JPEG image support
1972 --without-tiff don't compile with TIFF image support
1973 --without-gif don't compile with GIF image support
1974 --without-png don't compile with PNG image support
1975 --without-rsvg don't compile with SVG image support
1976 --without-xml2 don't compile with XML parsing support
1977 --without-imagemagick don't compile with ImageMagick image support
1978 --without-xft don't use XFT for anti aliased fonts
1979 --without-libotf don't use libotf for OpenType font support
1980 --without-m17n-flt don't use m17n-flt for text shaping
1981 --without-toolkit-scroll-bars
1982 don't use Motif or Xaw3d scroll bars
1983 --without-xaw3d don't use Xaw3d
1984 --without-xim don't use X11 XIM
1985 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1986 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1987 console
1988 --without-dbus don't compile with D-Bus support
1989 --without-gconf don't compile with GConf support
1990 --without-selinux don't compile with SELinux support
1991 --without-gnutls don't use -lgnutls for SSL/TLS support
1992 --without-makeinfo don't require makeinfo for building manuals
1993 --without-compress-info don't compress the installed Info pages
1994 --with-pkg-config-prog=PATH
1995 path to pkg-config for finding GTK and librsvg
1996 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1997 /usr/lib, or /usr/lib64 on some platforms.
1998 --with-gameuser=USER user for shared game score files
1999 --with-gnustep-conf=PATH
2000 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2001 or /etc/GNUstep/GNUstep.conf
2002 --with-x use the X Window System
2003
2004 Some influential environment variables:
2005 CC C compiler command
2006 CFLAGS C compiler flags
2007 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2008 nonstandard directory <lib dir>
2009 LIBS libraries to pass to the linker, e.g. -l<library>
2010 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2011 you have headers in a nonstandard directory <include dir>
2012 CPP C preprocessor
2013 XMKMF Path to xmkmf, Makefile generator for X Window System
2014
2015 Use these variables to override the choices made by `configure' or to help
2016 it to find libraries and programs with nonstandard names/locations.
2017
2018 Report bugs to the package provider.
2019 _ACEOF
2020 ac_status=$?
2021 fi
2022
2023 if test "$ac_init_help" = "recursive"; then
2024 # If there are subdirs, report their specific --help.
2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2026 test -d "$ac_dir" ||
2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2028 continue
2029 ac_builddir=.
2030
2031 case "$ac_dir" in
2032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2033 *)
2034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2035 # A ".." for each directory in $ac_dir_suffix.
2036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2037 case $ac_top_builddir_sub in
2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2040 esac ;;
2041 esac
2042 ac_abs_top_builddir=$ac_pwd
2043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044 # for backward compatibility:
2045 ac_top_builddir=$ac_top_build_prefix
2046
2047 case $srcdir in
2048 .) # We are building in place.
2049 ac_srcdir=.
2050 ac_top_srcdir=$ac_top_builddir_sub
2051 ac_abs_top_srcdir=$ac_pwd ;;
2052 [\\/]* | ?:[\\/]* ) # Absolute name.
2053 ac_srcdir=$srcdir$ac_dir_suffix;
2054 ac_top_srcdir=$srcdir
2055 ac_abs_top_srcdir=$srcdir ;;
2056 *) # Relative name.
2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058 ac_top_srcdir=$ac_top_build_prefix$srcdir
2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2060 esac
2061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2062
2063 cd "$ac_dir" || { ac_status=$?; continue; }
2064 # Check for guested configure.
2065 if test -f "$ac_srcdir/configure.gnu"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068 elif test -f "$ac_srcdir/configure"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure" --help=recursive
2071 else
2072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2073 fi || ac_status=$?
2074 cd "$ac_pwd" || { ac_status=$?; break; }
2075 done
2076 fi
2077
2078 test -n "$ac_init_help" && exit $ac_status
2079 if $ac_init_version; then
2080 cat <<\_ACEOF
2081 emacs configure 24.0.50
2082 generated by GNU Autoconf 2.65
2083
2084 Copyright (C) 2009 Free Software Foundation, Inc.
2085 This configure script is free software; the Free Software Foundation
2086 gives unlimited permission to copy, distribute and modify it.
2087 _ACEOF
2088 exit
2089 fi
2090
2091 ## ------------------------ ##
2092 ## Autoconf initialization. ##
2093 ## ------------------------ ##
2094
2095 # ac_fn_c_try_compile LINENO
2096 # --------------------------
2097 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_c_try_compile ()
2099 {
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 rm -f conftest.$ac_objext
2102 if { { ac_try="$ac_compile"
2103 case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_compile") 2>conftest.err
2110 ac_status=$?
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2115 fi
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && {
2118 test -z "$ac_c_werror_flag" ||
2119 test ! -s conftest.err
2120 } && test -s conftest.$ac_objext; then :
2121 ac_retval=0
2122 else
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_retval=1
2127 fi
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 as_fn_set_status $ac_retval
2130
2131 } # ac_fn_c_try_compile
2132
2133 # ac_fn_c_try_cpp LINENO
2134 # ----------------------
2135 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_cpp ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } >/dev/null && {
2155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2156 test ! -s conftest.err
2157 }; then :
2158 ac_retval=0
2159 else
2160 $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=1
2164 fi
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 as_fn_set_status $ac_retval
2167
2168 } # ac_fn_c_try_cpp
2169
2170 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2171 # -------------------------------------------------------
2172 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2173 # the include files in INCLUDES and setting the cache variable VAR
2174 # accordingly.
2175 ac_fn_c_check_header_mongrel ()
2176 {
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 $as_echo_n "(cached) " >&6
2183 fi
2184 eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 else
2188 # Is the header compilable?
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2190 $as_echo_n "checking $2 usability... " >&6; }
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2193 $4
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_header_compiler=yes
2198 else
2199 ac_header_compiler=no
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2203 $as_echo "$ac_header_compiler" >&6; }
2204
2205 # Is the header present?
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2207 $as_echo_n "checking $2 presence... " >&6; }
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 #include <$2>
2211 _ACEOF
2212 if ac_fn_c_try_cpp "$LINENO"; then :
2213 ac_header_preproc=yes
2214 else
2215 ac_header_preproc=no
2216 fi
2217 rm -f conftest.err conftest.$ac_ext
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2219 $as_echo "$ac_header_preproc" >&6; }
2220
2221 # So? What about this header?
2222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2223 yes:no: )
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2225 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2228 ;;
2229 no:yes:* )
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2231 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2233 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2235 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2237 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240 ;;
2241 esac
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2245 $as_echo_n "(cached) " >&6
2246 else
2247 eval "$3=\$ac_header_compiler"
2248 fi
2249 eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 fi
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254
2255 } # ac_fn_c_check_header_mongrel
2256
2257 # ac_fn_c_try_run LINENO
2258 # ----------------------
2259 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2260 # that executables *can* be run.
2261 ac_fn_c_try_run ()
2262 {
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 if { { ac_try="$ac_link"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>&5
2272 ac_status=$?
2273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2275 { { case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_try") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; }; }; then :
2285 ac_retval=0
2286 else
2287 $as_echo "$as_me: program exited with status $ac_status" >&5
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_retval=$ac_status
2292 fi
2293 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2295 as_fn_set_status $ac_retval
2296
2297 } # ac_fn_c_try_run
2298
2299 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2300 # -------------------------------------------------------
2301 # Tests whether HEADER exists and can be compiled using the include files in
2302 # INCLUDES, setting the cache variable VAR accordingly.
2303 ac_fn_c_check_header_compile ()
2304 {
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307 $as_echo_n "checking for $2... " >&6; }
2308 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2313 $4
2314 #include <$2>
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$3=yes"
2318 else
2319 eval "$3=no"
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2327
2328 } # ac_fn_c_check_header_compile
2329
2330 # ac_fn_c_try_link LINENO
2331 # -----------------------
2332 # Try to link conftest.$ac_ext, and return whether this succeeded.
2333 ac_fn_c_try_link ()
2334 {
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 rm -f conftest.$ac_objext conftest$ac_exeext
2337 if { { ac_try="$ac_link"
2338 case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341 esac
2342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_link") 2>conftest.err
2345 ac_status=$?
2346 if test -s conftest.err; then
2347 grep -v '^ *+' conftest.err >conftest.er1
2348 cat conftest.er1 >&5
2349 mv -f conftest.er1 conftest.err
2350 fi
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && {
2353 test -z "$ac_c_werror_flag" ||
2354 test ! -s conftest.err
2355 } && test -s conftest$ac_exeext && {
2356 test "$cross_compiling" = yes ||
2357 $as_test_x conftest$ac_exeext
2358 }; then :
2359 ac_retval=0
2360 else
2361 $as_echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2363
2364 ac_retval=1
2365 fi
2366 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2367 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2368 # interfere with the next link command; also delete a directory that is
2369 # left behind by Apple's compiler. We do this before executing the actions.
2370 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 as_fn_set_status $ac_retval
2373
2374 } # ac_fn_c_try_link
2375
2376 # ac_fn_c_check_decl LINENO SYMBOL VAR
2377 # ------------------------------------
2378 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2379 ac_fn_c_check_decl ()
2380 {
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2383 $as_echo_n "checking whether $2 is declared... " >&6; }
2384 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2389 $4
2390 int
2391 main ()
2392 {
2393 #ifndef $2
2394 (void) $2;
2395 #endif
2396
2397 ;
2398 return 0;
2399 }
2400 _ACEOF
2401 if ac_fn_c_try_compile "$LINENO"; then :
2402 eval "$3=yes"
2403 else
2404 eval "$3=no"
2405 fi
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 fi
2408 eval ac_res=\$$3
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412
2413 } # ac_fn_c_check_decl
2414
2415 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2416 # ----------------------------------------------
2417 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2418 ac_fn_c_check_header_preproc ()
2419 {
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422 $as_echo_n "checking for $2... " >&6; }
2423 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2424 $as_echo_n "(cached) " >&6
2425 else
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2428 #include <$2>
2429 _ACEOF
2430 if ac_fn_c_try_cpp "$LINENO"; then :
2431 eval "$3=yes"
2432 else
2433 eval "$3=no"
2434 fi
2435 rm -f conftest.err conftest.$ac_ext
2436 fi
2437 eval ac_res=\$$3
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2441
2442 } # ac_fn_c_check_header_preproc
2443
2444 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2445 # ----------------------------------------------------
2446 # Tries to find if the field MEMBER exists in type AGGR, after including
2447 # INCLUDES, setting cache variable VAR accordingly.
2448 ac_fn_c_check_member ()
2449 {
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2452 $as_echo_n "checking for $2.$3... " >&6; }
2453 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2458 $5
2459 int
2460 main ()
2461 {
2462 static $2 ac_aggr;
2463 if (ac_aggr.$3)
2464 return 0;
2465 ;
2466 return 0;
2467 }
2468 _ACEOF
2469 if ac_fn_c_try_compile "$LINENO"; then :
2470 eval "$4=yes"
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 $5
2475 int
2476 main ()
2477 {
2478 static $2 ac_aggr;
2479 if (sizeof ac_aggr.$3)
2480 return 0;
2481 ;
2482 return 0;
2483 }
2484 _ACEOF
2485 if ac_fn_c_try_compile "$LINENO"; then :
2486 eval "$4=yes"
2487 else
2488 eval "$4=no"
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 fi
2494 eval ac_res=\$$4
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2498
2499 } # ac_fn_c_check_member
2500
2501 # ac_fn_c_check_func LINENO FUNC VAR
2502 # ----------------------------------
2503 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2504 ac_fn_c_check_func ()
2505 {
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2508 $as_echo_n "checking for $2... " >&6; }
2509 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2516 #define $2 innocuous_$2
2517
2518 /* System header to define __stub macros and hopefully few prototypes,
2519 which can conflict with char $2 (); below.
2520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2521 <limits.h> exists even on freestanding compilers. */
2522
2523 #ifdef __STDC__
2524 # include <limits.h>
2525 #else
2526 # include <assert.h>
2527 #endif
2528
2529 #undef $2
2530
2531 /* Override any GCC internal prototype to avoid an error.
2532 Use char because int might match the return type of a GCC
2533 builtin and then its argument prototype would still apply. */
2534 #ifdef __cplusplus
2535 extern "C"
2536 #endif
2537 char $2 ();
2538 /* The GNU C library defines this for functions which it implements
2539 to always fail with ENOSYS. Some functions are actually named
2540 something starting with __ and the normal name is an alias. */
2541 #if defined __stub_$2 || defined __stub___$2
2542 choke me
2543 #endif
2544
2545 int
2546 main ()
2547 {
2548 return $2 ();
2549 ;
2550 return 0;
2551 }
2552 _ACEOF
2553 if ac_fn_c_try_link "$LINENO"; then :
2554 eval "$3=yes"
2555 else
2556 eval "$3=no"
2557 fi
2558 rm -f core conftest.err conftest.$ac_objext \
2559 conftest$ac_exeext conftest.$ac_ext
2560 fi
2561 eval ac_res=\$$3
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565
2566 } # ac_fn_c_check_func
2567
2568 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2569 # --------------------------------------------
2570 # Tries to find the compile-time value of EXPR in a program that includes
2571 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2572 # computed
2573 ac_fn_c_compute_int ()
2574 {
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 if test "$cross_compiling" = yes; then
2577 # Depending upon the size, compute the lo and hi bounds.
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2580 $4
2581 int
2582 main ()
2583 {
2584 static int test_array [1 - 2 * !(($2) >= 0)];
2585 test_array [0] = 0
2586
2587 ;
2588 return 0;
2589 }
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592 ac_lo=0 ac_mid=0
2593 while :; do
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2596 $4
2597 int
2598 main ()
2599 {
2600 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2601 test_array [0] = 0
2602
2603 ;
2604 return 0;
2605 }
2606 _ACEOF
2607 if ac_fn_c_try_compile "$LINENO"; then :
2608 ac_hi=$ac_mid; break
2609 else
2610 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2611 if test $ac_lo -le $ac_mid; then
2612 ac_lo= ac_hi=
2613 break
2614 fi
2615 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 done
2619 else
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2622 $4
2623 int
2624 main ()
2625 {
2626 static int test_array [1 - 2 * !(($2) < 0)];
2627 test_array [0] = 0
2628
2629 ;
2630 return 0;
2631 }
2632 _ACEOF
2633 if ac_fn_c_try_compile "$LINENO"; then :
2634 ac_hi=-1 ac_mid=-1
2635 while :; do
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2638 $4
2639 int
2640 main ()
2641 {
2642 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2643 test_array [0] = 0
2644
2645 ;
2646 return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650 ac_lo=$ac_mid; break
2651 else
2652 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2653 if test $ac_mid -le $ac_hi; then
2654 ac_lo= ac_hi=
2655 break
2656 fi
2657 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2658 fi
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 done
2661 else
2662 ac_lo= ac_hi=
2663 fi
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 fi
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 # Binary search between lo and hi bounds.
2668 while test "x$ac_lo" != "x$ac_hi"; do
2669 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2672 $4
2673 int
2674 main ()
2675 {
2676 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2677 test_array [0] = 0
2678
2679 ;
2680 return 0;
2681 }
2682 _ACEOF
2683 if ac_fn_c_try_compile "$LINENO"; then :
2684 ac_hi=$ac_mid
2685 else
2686 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2687 fi
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 done
2690 case $ac_lo in #((
2691 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2692 '') ac_retval=1 ;;
2693 esac
2694 else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697 $4
2698 static long int longval () { return $2; }
2699 static unsigned long int ulongval () { return $2; }
2700 #include <stdio.h>
2701 #include <stdlib.h>
2702 int
2703 main ()
2704 {
2705
2706 FILE *f = fopen ("conftest.val", "w");
2707 if (! f)
2708 return 1;
2709 if (($2) < 0)
2710 {
2711 long int i = longval ();
2712 if (i != ($2))
2713 return 1;
2714 fprintf (f, "%ld", i);
2715 }
2716 else
2717 {
2718 unsigned long int i = ulongval ();
2719 if (i != ($2))
2720 return 1;
2721 fprintf (f, "%lu", i);
2722 }
2723 /* Do not output a trailing newline, as this causes \r\n confusion
2724 on some platforms. */
2725 return ferror (f) || fclose (f) != 0;
2726
2727 ;
2728 return 0;
2729 }
2730 _ACEOF
2731 if ac_fn_c_try_run "$LINENO"; then :
2732 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2733 else
2734 ac_retval=1
2735 fi
2736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2737 conftest.$ac_objext conftest.beam conftest.$ac_ext
2738 rm -f conftest.val
2739
2740 fi
2741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2742 as_fn_set_status $ac_retval
2743
2744 } # ac_fn_c_compute_int
2745
2746 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2747 # -------------------------------------------
2748 # Tests whether TYPE exists after having included INCLUDES, setting cache
2749 # variable VAR accordingly.
2750 ac_fn_c_check_type ()
2751 {
2752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2754 $as_echo_n "checking for $2... " >&6; }
2755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 eval "$3=no"
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2761 $4
2762 int
2763 main ()
2764 {
2765 if (sizeof ($2))
2766 return 0;
2767 ;
2768 return 0;
2769 }
2770 _ACEOF
2771 if ac_fn_c_try_compile "$LINENO"; then :
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2774 $4
2775 int
2776 main ()
2777 {
2778 if (sizeof (($2)))
2779 return 0;
2780 ;
2781 return 0;
2782 }
2783 _ACEOF
2784 if ac_fn_c_try_compile "$LINENO"; then :
2785
2786 else
2787 eval "$3=yes"
2788 fi
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 fi
2791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 fi
2793 eval ac_res=\$$3
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2795 $as_echo "$ac_res" >&6; }
2796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2797
2798 } # ac_fn_c_check_type
2799 cat >config.log <<_ACEOF
2800 This file contains any messages produced by compilers while
2801 running configure, to aid debugging if configure makes a mistake.
2802
2803 It was created by emacs $as_me 24.0.50, which was
2804 generated by GNU Autoconf 2.65. Invocation command line was
2805
2806 $ $0 $@
2807
2808 _ACEOF
2809 exec 5>>config.log
2810 {
2811 cat <<_ASUNAME
2812 ## --------- ##
2813 ## Platform. ##
2814 ## --------- ##
2815
2816 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2817 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2818 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2819 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2820 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2821
2822 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2823 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2824
2825 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2826 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2827 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2828 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2829 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2830 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2831 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2832
2833 _ASUNAME
2834
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 $as_echo "PATH: $as_dir"
2841 done
2842 IFS=$as_save_IFS
2843
2844 } >&5
2845
2846 cat >&5 <<_ACEOF
2847
2848
2849 ## ----------- ##
2850 ## Core tests. ##
2851 ## ----------- ##
2852
2853 _ACEOF
2854
2855
2856 # Keep a trace of the command line.
2857 # Strip out --no-create and --no-recursion so they do not pile up.
2858 # Strip out --silent because we don't want to record it for future runs.
2859 # Also quote any args containing shell meta-characters.
2860 # Make two passes to allow for proper duplicate-argument suppression.
2861 ac_configure_args=
2862 ac_configure_args0=
2863 ac_configure_args1=
2864 ac_must_keep_next=false
2865 for ac_pass in 1 2
2866 do
2867 for ac_arg
2868 do
2869 case $ac_arg in
2870 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2872 | -silent | --silent | --silen | --sile | --sil)
2873 continue ;;
2874 *\'*)
2875 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2876 esac
2877 case $ac_pass in
2878 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2879 2)
2880 as_fn_append ac_configure_args1 " '$ac_arg'"
2881 if test $ac_must_keep_next = true; then
2882 ac_must_keep_next=false # Got value, back to normal.
2883 else
2884 case $ac_arg in
2885 *=* | --config-cache | -C | -disable-* | --disable-* \
2886 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2887 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2888 | -with-* | --with-* | -without-* | --without-* | --x)
2889 case "$ac_configure_args0 " in
2890 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2891 esac
2892 ;;
2893 -* ) ac_must_keep_next=true ;;
2894 esac
2895 fi
2896 as_fn_append ac_configure_args " '$ac_arg'"
2897 ;;
2898 esac
2899 done
2900 done
2901 { ac_configure_args0=; unset ac_configure_args0;}
2902 { ac_configure_args1=; unset ac_configure_args1;}
2903
2904 # When interrupted or exit'd, cleanup temporary files, and complete
2905 # config.log. We remove comments because anyway the quotes in there
2906 # would cause problems or look ugly.
2907 # WARNING: Use '\'' to represent an apostrophe within the trap.
2908 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2909 trap 'exit_status=$?
2910 # Save into config.log some information that might help in debugging.
2911 {
2912 echo
2913
2914 cat <<\_ASBOX
2915 ## ---------------- ##
2916 ## Cache variables. ##
2917 ## ---------------- ##
2918 _ASBOX
2919 echo
2920 # The following way of writing the cache mishandles newlines in values,
2921 (
2922 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2923 eval ac_val=\$$ac_var
2924 case $ac_val in #(
2925 *${as_nl}*)
2926 case $ac_var in #(
2927 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2929 esac
2930 case $ac_var in #(
2931 _ | IFS | as_nl) ;; #(
2932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2933 *) { eval $ac_var=; unset $ac_var;} ;;
2934 esac ;;
2935 esac
2936 done
2937 (set) 2>&1 |
2938 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2939 *${as_nl}ac_space=\ *)
2940 sed -n \
2941 "s/'\''/'\''\\\\'\'''\''/g;
2942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2943 ;; #(
2944 *)
2945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2946 ;;
2947 esac |
2948 sort
2949 )
2950 echo
2951
2952 cat <<\_ASBOX
2953 ## ----------------- ##
2954 ## Output variables. ##
2955 ## ----------------- ##
2956 _ASBOX
2957 echo
2958 for ac_var in $ac_subst_vars
2959 do
2960 eval ac_val=\$$ac_var
2961 case $ac_val in
2962 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2963 esac
2964 $as_echo "$ac_var='\''$ac_val'\''"
2965 done | sort
2966 echo
2967
2968 if test -n "$ac_subst_files"; then
2969 cat <<\_ASBOX
2970 ## ------------------- ##
2971 ## File substitutions. ##
2972 ## ------------------- ##
2973 _ASBOX
2974 echo
2975 for ac_var in $ac_subst_files
2976 do
2977 eval ac_val=\$$ac_var
2978 case $ac_val in
2979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2980 esac
2981 $as_echo "$ac_var='\''$ac_val'\''"
2982 done | sort
2983 echo
2984 fi
2985
2986 if test -s confdefs.h; then
2987 cat <<\_ASBOX
2988 ## ----------- ##
2989 ## confdefs.h. ##
2990 ## ----------- ##
2991 _ASBOX
2992 echo
2993 cat confdefs.h
2994 echo
2995 fi
2996 test "$ac_signal" != 0 &&
2997 $as_echo "$as_me: caught signal $ac_signal"
2998 $as_echo "$as_me: exit $exit_status"
2999 } >&5
3000 rm -f core *.core core.conftest.* &&
3001 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3002 exit $exit_status
3003 ' 0
3004 for ac_signal in 1 2 13 15; do
3005 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3006 done
3007 ac_signal=0
3008
3009 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3010 rm -f -r conftest* confdefs.h
3011
3012 $as_echo "/* confdefs.h */" > confdefs.h
3013
3014 # Predefined preprocessor variables.
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_NAME "$PACKAGE_NAME"
3018 _ACEOF
3019
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3022 _ACEOF
3023
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3026 _ACEOF
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_STRING "$PACKAGE_STRING"
3030 _ACEOF
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3034 _ACEOF
3035
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_URL "$PACKAGE_URL"
3038 _ACEOF
3039
3040
3041 # Let the site file select an alternate cache file if it wants to.
3042 # Prefer an explicitly selected file to automatically selected ones.
3043 ac_site_file1=NONE
3044 ac_site_file2=NONE
3045 if test -n "$CONFIG_SITE"; then
3046 ac_site_file1=$CONFIG_SITE
3047 elif test "x$prefix" != xNONE; then
3048 ac_site_file1=$prefix/share/config.site
3049 ac_site_file2=$prefix/etc/config.site
3050 else
3051 ac_site_file1=$ac_default_prefix/share/config.site
3052 ac_site_file2=$ac_default_prefix/etc/config.site
3053 fi
3054 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3055 do
3056 test "x$ac_site_file" = xNONE && continue
3057 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3059 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3060 sed 's/^/| /' "$ac_site_file" >&5
3061 . "$ac_site_file"
3062 fi
3063 done
3064
3065 if test -r "$cache_file"; then
3066 # Some versions of bash will fail to source /dev/null (special files
3067 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3068 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3070 $as_echo "$as_me: loading cache $cache_file" >&6;}
3071 case $cache_file in
3072 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3073 *) . "./$cache_file";;
3074 esac
3075 fi
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3078 $as_echo "$as_me: creating cache $cache_file" >&6;}
3079 >$cache_file
3080 fi
3081
3082 as_fn_append ac_header_list " stdlib.h"
3083 as_fn_append ac_header_list " unistd.h"
3084 as_fn_append ac_header_list " sys/param.h"
3085 as_fn_append ac_func_list " readlinkat"
3086 as_fn_append ac_func_list " dup2"
3087 gl_getopt_required=GNU
3088 as_fn_append ac_header_list " getopt.h"
3089 as_fn_append ac_header_list " wchar.h"
3090 as_fn_append ac_header_list " stdint.h"
3091 as_fn_append ac_header_list " inttypes.h"
3092 as_fn_append ac_func_list " lstat"
3093 as_fn_append ac_func_list " alarm"
3094 as_fn_append ac_func_list " readlink"
3095 as_fn_append ac_header_list " sys/socket.h"
3096 as_fn_append ac_func_list " tzset"
3097 as_fn_append ac_func_list " symlink"
3098 as_fn_append ac_header_list " sys/stat.h"
3099 as_fn_append ac_header_list " sys/time.h"
3100 as_fn_append ac_func_list " localtime_r"
3101 # Check that the precious variables saved in the cache have kept the same
3102 # value.
3103 ac_cache_corrupted=false
3104 for ac_var in $ac_precious_vars; do
3105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3106 eval ac_new_set=\$ac_env_${ac_var}_set
3107 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3108 eval ac_new_val=\$ac_env_${ac_var}_value
3109 case $ac_old_set,$ac_new_set in
3110 set,)
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3112 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3113 ac_cache_corrupted=: ;;
3114 ,set)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,);;
3119 *)
3120 if test "x$ac_old_val" != "x$ac_new_val"; then
3121 # differences in whitespace do not lead to failure.
3122 ac_old_val_w=`echo x $ac_old_val`
3123 ac_new_val_w=`echo x $ac_new_val`
3124 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3126 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3127 ac_cache_corrupted=:
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3130 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3131 eval $ac_var=\$ac_old_val
3132 fi
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3134 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3136 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3137 fi;;
3138 esac
3139 # Pass precious variables to config.status.
3140 if test "$ac_new_set" = set; then
3141 case $ac_new_val in
3142 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3143 *) ac_arg=$ac_var=$ac_new_val ;;
3144 esac
3145 case " $ac_configure_args " in
3146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3147 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3148 esac
3149 fi
3150 done
3151 if $ac_cache_corrupted; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3155 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3156 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3157 fi
3158 ## -------------------- ##
3159 ## Main body of script. ##
3160 ## -------------------- ##
3161
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167
3168
3169 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3170
3171
3172 am__api_version='1.11'
3173
3174 ac_aux_dir=
3175 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3176 for ac_t in install-sh install.sh shtool; do
3177 if test -f "$ac_dir/$ac_t"; then
3178 ac_aux_dir=$ac_dir
3179 ac_install_sh="$ac_aux_dir/$ac_t -c"
3180 break 2
3181 fi
3182 done
3183 done
3184 if test -z "$ac_aux_dir"; then
3185 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3186 fi
3187
3188 # These three variables are undocumented and unsupported,
3189 # and are intended to be withdrawn in a future Autoconf release.
3190 # They can cause serious problems if a builder's source tree is in a directory
3191 # whose full name contains unusual characters.
3192 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3193 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3194 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3195
3196
3197 # Find a good install program. We prefer a C program (faster),
3198 # so one script is as good as another. But avoid the broken or
3199 # incompatible versions:
3200 # SysV /etc/install, /usr/sbin/install
3201 # SunOS /usr/etc/install
3202 # IRIX /sbin/install
3203 # AIX /bin/install
3204 # AmigaOS /C/install, which installs bootblocks on floppy discs
3205 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3206 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3207 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3208 # OS/2's system install, which has a completely different semantic
3209 # ./install, which can be erroneously created by make from ./install.sh.
3210 # Reject install programs that cannot install multiple files.
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3212 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3213 if test -z "$INSTALL"; then
3214 if test "${ac_cv_path_install+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 # Account for people who put trailing slashes in PATH elements.
3223 case $as_dir/ in #((
3224 ./ | .// | /[cC]/* | \
3225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3226 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3227 /usr/ucb/* ) ;;
3228 *)
3229 # OSF1 and SCO ODT 3.0 have their own names for install.
3230 # Don't use installbsd from OSF since it installs stuff as root
3231 # by default.
3232 for ac_prog in ginstall scoinst install; do
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3235 if test $ac_prog = install &&
3236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237 # AIX install. It has an incompatible calling convention.
3238 :
3239 elif test $ac_prog = install &&
3240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241 # program-specific install script used by HP pwplus--don't use.
3242 :
3243 else
3244 rm -rf conftest.one conftest.two conftest.dir
3245 echo one > conftest.one
3246 echo two > conftest.two
3247 mkdir conftest.dir
3248 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3249 test -s conftest.one && test -s conftest.two &&
3250 test -s conftest.dir/conftest.one &&
3251 test -s conftest.dir/conftest.two
3252 then
3253 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3254 break 3
3255 fi
3256 fi
3257 fi
3258 done
3259 done
3260 ;;
3261 esac
3262
3263 done
3264 IFS=$as_save_IFS
3265
3266 rm -rf conftest.one conftest.two conftest.dir
3267
3268 fi
3269 if test "${ac_cv_path_install+set}" = set; then
3270 INSTALL=$ac_cv_path_install
3271 else
3272 # As a last resort, use the slow shell script. Don't cache a
3273 # value for INSTALL within a source directory, because that will
3274 # break other packages using the cache if that directory is
3275 # removed, or if the value is a relative name.
3276 INSTALL=$ac_install_sh
3277 fi
3278 fi
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3280 $as_echo "$INSTALL" >&6; }
3281
3282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3283 # It thinks the first close brace ends the variable substitution.
3284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3285
3286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3287
3288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3289
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3291 $as_echo_n "checking whether build environment is sane... " >&6; }
3292 # Just in case
3293 sleep 1
3294 echo timestamp > conftest.file
3295 # Reject unsafe characters in $srcdir or the absolute working directory
3296 # name. Accept space and tab only in the latter.
3297 am_lf='
3298 '
3299 case `pwd` in
3300 *[\\\"\#\$\&\'\`$am_lf]*)
3301 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3302 esac
3303 case $srcdir in
3304 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3305 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3306 esac
3307
3308 # Do `set' in a subshell so we don't clobber the current shell's
3309 # arguments. Must try -L first in case configure is actually a
3310 # symlink; some systems play weird games with the mod time of symlinks
3311 # (eg FreeBSD returns the mod time of the symlink's containing
3312 # directory).
3313 if (
3314 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3315 if test "$*" = "X"; then
3316 # -L didn't work.
3317 set X `ls -t "$srcdir/configure" conftest.file`
3318 fi
3319 rm -f conftest.file
3320 if test "$*" != "X $srcdir/configure conftest.file" \
3321 && test "$*" != "X conftest.file $srcdir/configure"; then
3322
3323 # If neither matched, then we have a broken ls. This can happen
3324 # if, for instance, CONFIG_SHELL is bash and it inherits a
3325 # broken ls alias from the environment. This has actually
3326 # happened. Such a system could not be considered "sane".
3327 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3328 alias in your environment" "$LINENO" 5
3329 fi
3330
3331 test "$2" = conftest.file
3332 )
3333 then
3334 # Ok.
3335 :
3336 else
3337 as_fn_error "newly created file is older than distributed files!
3338 Check your system clock" "$LINENO" 5
3339 fi
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3342 test "$program_prefix" != NONE &&
3343 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3344 # Use a double $ so make ignores it.
3345 test "$program_suffix" != NONE &&
3346 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3347 # Double any \ or $.
3348 # By default was `s,x,x', remove it if useless.
3349 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3350 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3351
3352 # expand $ac_aux_dir to an absolute path
3353 am_aux_dir=`cd $ac_aux_dir && pwd`
3354
3355 if test x"${MISSING+set}" != xset; then
3356 case $am_aux_dir in
3357 *\ * | *\ *)
3358 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3359 *)
3360 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3361 esac
3362 fi
3363 # Use eval to expand $SHELL
3364 if eval "$MISSING --run true"; then
3365 am_missing_run="$MISSING --run "
3366 else
3367 am_missing_run=
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3369 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3370 fi
3371
3372 if test x"${install_sh}" != xset; then
3373 case $am_aux_dir in
3374 *\ * | *\ *)
3375 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3376 *)
3377 install_sh="\${SHELL} $am_aux_dir/install-sh"
3378 esac
3379 fi
3380
3381 # Installed binaries are usually stripped using `strip' when the user
3382 # run `make install-strip'. However `strip' might not be the right
3383 # tool to use in cross-compilation environments, therefore Automake
3384 # will honor the `STRIP' environment variable to overrule this program.
3385 if test "$cross_compiling" != no; then
3386 if test -n "$ac_tool_prefix"; then
3387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3388 set dummy ${ac_tool_prefix}strip; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if test "${ac_cv_prog_STRIP+set}" = set; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test -n "$STRIP"; then
3395 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 STRIP=$ac_cv_prog_STRIP
3415 if test -n "$STRIP"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3417 $as_echo "$STRIP" >&6; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 fi
3422
3423
3424 fi
3425 if test -z "$ac_cv_prog_STRIP"; then
3426 ac_ct_STRIP=$STRIP
3427 # Extract the first word of "strip", so it can be a program name with args.
3428 set dummy strip; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$ac_ct_STRIP"; then
3435 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444 ac_cv_prog_ac_ct_STRIP="strip"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448 done
3449 done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3455 if test -n "$ac_ct_STRIP"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3457 $as_echo "$ac_ct_STRIP" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 fi
3462
3463 if test "x$ac_ct_STRIP" = x; then
3464 STRIP=":"
3465 else
3466 case $cross_compiling:$ac_tool_warned in
3467 yes:)
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470 ac_tool_warned=yes ;;
3471 esac
3472 STRIP=$ac_ct_STRIP
3473 fi
3474 else
3475 STRIP="$ac_cv_prog_STRIP"
3476 fi
3477
3478 fi
3479 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3480
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3482 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3483 if test -z "$MKDIR_P"; then
3484 if test "${ac_cv_path_mkdir+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3489 do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_prog in mkdir gmkdir; do
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3495 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3496 'mkdir (GNU coreutils) '* | \
3497 'mkdir (coreutils) '* | \
3498 'mkdir (fileutils) '4.1*)
3499 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3500 break 3;;
3501 esac
3502 done
3503 done
3504 done
3505 IFS=$as_save_IFS
3506
3507 fi
3508
3509 test -d ./--version && rmdir ./--version
3510 if test "${ac_cv_path_mkdir+set}" = set; then
3511 MKDIR_P="$ac_cv_path_mkdir -p"
3512 else
3513 # As a last resort, use the slow shell script. Don't cache a
3514 # value for MKDIR_P within a source directory, because that will
3515 # break other packages using the cache if that directory is
3516 # removed, or if the value is a relative name.
3517 MKDIR_P="$ac_install_sh -d"
3518 fi
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3521 $as_echo "$MKDIR_P" >&6; }
3522
3523
3524 mkdir_p="$MKDIR_P"
3525 case $mkdir_p in
3526 [\\/$]* | ?:[\\/]*) ;;
3527 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3528 esac
3529
3530 for ac_prog in gawk mawk nawk awk
3531 do
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if test "${ac_cv_prog_AWK+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$AWK"; then
3540 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_AWK="$ac_prog"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553 done
3554 done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 AWK=$ac_cv_prog_AWK
3560 if test -n "$AWK"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3562 $as_echo "$AWK" >&6; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3566 fi
3567
3568
3569 test -n "$AWK" && break
3570 done
3571
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3573 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3574 set x ${MAKE-make}
3575 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3576 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 cat >conftest.make <<\_ACEOF
3580 SHELL = /bin/sh
3581 all:
3582 @echo '@@@%%%=$(MAKE)=@@@%%%'
3583 _ACEOF
3584 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3585 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3586 *@@@%%%=?*=@@@%%%*)
3587 eval ac_cv_prog_make_${ac_make}_set=yes;;
3588 *)
3589 eval ac_cv_prog_make_${ac_make}_set=no;;
3590 esac
3591 rm -f conftest.make
3592 fi
3593 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595 $as_echo "yes" >&6; }
3596 SET_MAKE=
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 SET_MAKE="MAKE=${MAKE-make}"
3601 fi
3602
3603 rm -rf .tst 2>/dev/null
3604 mkdir .tst 2>/dev/null
3605 if test -d .tst; then
3606 am__leading_dot=.
3607 else
3608 am__leading_dot=_
3609 fi
3610 rmdir .tst 2>/dev/null
3611
3612 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3613 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3614 # is not polluted with repeated "-I."
3615 am__isrc=' -I$(srcdir)'
3616 # test to see if srcdir already configured
3617 if test -f $srcdir/config.status; then
3618 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3619 fi
3620 fi
3621
3622 # test whether we have cygpath
3623 if test -z "$CYGPATH_W"; then
3624 if (cygpath --version) >/dev/null 2>/dev/null; then
3625 CYGPATH_W='cygpath -w'
3626 else
3627 CYGPATH_W=echo
3628 fi
3629 fi
3630
3631
3632 # Define the identity of the package.
3633 PACKAGE='emacs'
3634 VERSION='24.0.50'
3635
3636
3637 cat >>confdefs.h <<_ACEOF
3638 #define PACKAGE "$PACKAGE"
3639 _ACEOF
3640
3641
3642 cat >>confdefs.h <<_ACEOF
3643 #define VERSION "$VERSION"
3644 _ACEOF
3645
3646 # Some tools Automake needs.
3647
3648 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3649
3650
3651 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3652
3653
3654 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3655
3656
3657 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3658
3659
3660 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3661
3662 # We need awk for the "check" target. The system "awk" is bad on
3663 # some platforms.
3664 # Always define AMTAR for backward compatibility.
3665
3666 AMTAR=${AMTAR-"${am_missing_run}tar"}
3667
3668 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3669
3670
3671
3672
3673
3674
3675
3676
3677 lispdir='${datadir}/emacs/${version}/lisp'
3678 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3679 '${datadir}/emacs/site-lisp'
3680 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3681 etcdir='${datadir}/emacs/${version}/etc'
3682 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3683 docdir='${datadir}/emacs/${version}/etc'
3684 gamedir='${localstatedir}/games/emacs'
3685
3686
3687
3688
3689 # Check whether --with-pop was given.
3690 if test "${with_pop+set}" = set; then :
3691 withval=$with_pop;
3692 else
3693 with_pop=yes
3694 fi
3695
3696 if test "$with_pop" = yes; then
3697 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3698
3699 fi
3700
3701
3702 # Check whether --with-kerberos was given.
3703 if test "${with_kerberos+set}" = set; then :
3704 withval=$with_kerberos;
3705 else
3706 with_kerberos=no
3707 fi
3708
3709 if test "$with_kerberos" != no; then
3710 $as_echo "#define KERBEROS 1" >>confdefs.h
3711
3712 fi
3713
3714
3715 # Check whether --with-kerberos5 was given.
3716 if test "${with_kerberos5+set}" = set; then :
3717 withval=$with_kerberos5;
3718 else
3719 with_kerberos5=no
3720 fi
3721
3722 if test "${with_kerberos5}" != no; then
3723 if test "${with_kerberos}" = no; then
3724 with_kerberos=yes
3725 $as_echo "#define KERBEROS 1" >>confdefs.h
3726
3727 fi
3728
3729 $as_echo "#define KERBEROS5 1" >>confdefs.h
3730
3731 fi
3732
3733
3734 # Check whether --with-hesiod was given.
3735 if test "${with_hesiod+set}" = set; then :
3736 withval=$with_hesiod;
3737 else
3738 with_hesiod=no
3739 fi
3740
3741 if test "$with_hesiod" != no; then
3742
3743 $as_echo "#define HESIOD 1" >>confdefs.h
3744
3745 fi
3746
3747
3748 # Check whether --with-mmdf was given.
3749 if test "${with_mmdf+set}" = set; then :
3750 withval=$with_mmdf;
3751 else
3752 with_mmdf=no
3753 fi
3754
3755 if test "$with_mmdf" != no; then
3756
3757 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3758
3759 fi
3760
3761
3762 # Check whether --with-mail-unlink was given.
3763 if test "${with_mail_unlink+set}" = set; then :
3764 withval=$with_mail_unlink;
3765 else
3766 with_mail_unlink=no
3767 fi
3768
3769 if test "$with_mail_unlink" != no; then
3770
3771 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3772
3773 fi
3774
3775
3776 # Check whether --with-mailhost was given.
3777 if test "${with_mailhost+set}" = set; then :
3778 withval=$with_mailhost;
3779 cat >>confdefs.h <<_ACEOF
3780 #define MAILHOST "$withval"
3781 _ACEOF
3782
3783 fi
3784
3785
3786
3787 # Check whether --with-sound was given.
3788 if test "${with_sound+set}" = set; then :
3789 withval=$with_sound;
3790 else
3791 with_sound=yes
3792 fi
3793
3794
3795
3796 # Check whether --with-sync-input was given.
3797 if test "${with_sync_input+set}" = set; then :
3798 withval=$with_sync_input;
3799 else
3800 with_sync_input=yes
3801 fi
3802
3803 if test "$with_sync_input" = yes; then
3804
3805 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3806
3807 fi
3808
3809
3810 # Check whether --with-x-toolkit was given.
3811 if test "${with_x_toolkit+set}" = set; then :
3812 withval=$with_x_toolkit; case "${withval}" in
3813 y | ye | yes ) val=gtk ;;
3814 n | no ) val=no ;;
3815 l | lu | luc | luci | lucid ) val=lucid ;;
3816 a | at | ath | athe | athen | athena ) val=athena ;;
3817 m | mo | mot | moti | motif ) val=motif ;;
3818 g | gt | gtk ) val=gtk ;;
3819 gtk3 ) val=gtk3 ;;
3820 * )
3821 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3822 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3823 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3824 ;;
3825 esac
3826 with_x_toolkit=$val
3827
3828 fi
3829
3830
3831
3832 # Check whether --with-wide-int was given.
3833 if test "${with_wide_int+set}" = set; then :
3834 withval=$with_wide_int;
3835 else
3836 with_wide_int=no
3837 fi
3838
3839 if test "$with_wide_int" = yes; then
3840
3841 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3842
3843 fi
3844
3845
3846 # Check whether --with-xpm was given.
3847 if test "${with_xpm+set}" = set; then :
3848 withval=$with_xpm;
3849 else
3850 with_xpm=yes
3851 fi
3852
3853
3854 # Check whether --with-jpeg was given.
3855 if test "${with_jpeg+set}" = set; then :
3856 withval=$with_jpeg;
3857 else
3858 with_jpeg=yes
3859 fi
3860
3861
3862 # Check whether --with-tiff was given.
3863 if test "${with_tiff+set}" = set; then :
3864 withval=$with_tiff;
3865 else
3866 with_tiff=yes
3867 fi
3868
3869
3870 # Check whether --with-gif was given.
3871 if test "${with_gif+set}" = set; then :
3872 withval=$with_gif;
3873 else
3874 with_gif=yes
3875 fi
3876
3877
3878 # Check whether --with-png was given.
3879 if test "${with_png+set}" = set; then :
3880 withval=$with_png;
3881 else
3882 with_png=yes
3883 fi
3884
3885
3886 # Check whether --with-rsvg was given.
3887 if test "${with_rsvg+set}" = set; then :
3888 withval=$with_rsvg;
3889 else
3890 with_rsvg=yes
3891 fi
3892
3893
3894 # Check whether --with-xml2 was given.
3895 if test "${with_xml2+set}" = set; then :
3896 withval=$with_xml2;
3897 else
3898 with_xml2=yes
3899 fi
3900
3901
3902 # Check whether --with-imagemagick was given.
3903 if test "${with_imagemagick+set}" = set; then :
3904 withval=$with_imagemagick;
3905 else
3906 with_imagemagick=yes
3907 fi
3908
3909
3910
3911 # Check whether --with-xft was given.
3912 if test "${with_xft+set}" = set; then :
3913 withval=$with_xft;
3914 else
3915 with_xft=yes
3916 fi
3917
3918
3919 # Check whether --with-libotf was given.
3920 if test "${with_libotf+set}" = set; then :
3921 withval=$with_libotf;
3922 else
3923 with_libotf=yes
3924 fi
3925
3926
3927 # Check whether --with-m17n-flt was given.
3928 if test "${with_m17n_flt+set}" = set; then :
3929 withval=$with_m17n_flt;
3930 else
3931 with_m17n_flt=yes
3932 fi
3933
3934
3935
3936 # Check whether --with-toolkit-scroll-bars was given.
3937 if test "${with_toolkit_scroll_bars+set}" = set; then :
3938 withval=$with_toolkit_scroll_bars;
3939 else
3940 with_toolkit_scroll_bars=yes
3941 fi
3942
3943
3944 # Check whether --with-xaw3d was given.
3945 if test "${with_xaw3d+set}" = set; then :
3946 withval=$with_xaw3d;
3947 else
3948 with_xaw3d=yes
3949 fi
3950
3951
3952 # Check whether --with-xim was given.
3953 if test "${with_xim+set}" = set; then :
3954 withval=$with_xim;
3955 else
3956 with_xim=yes
3957 fi
3958
3959
3960 # Check whether --with-ns was given.
3961 if test "${with_ns+set}" = set; then :
3962 withval=$with_ns;
3963 else
3964 with_ns=no
3965 fi
3966
3967
3968
3969 # Check whether --with-gpm was given.
3970 if test "${with_gpm+set}" = set; then :
3971 withval=$with_gpm;
3972 else
3973 with_gpm=yes
3974 fi
3975
3976
3977 # Check whether --with-dbus was given.
3978 if test "${with_dbus+set}" = set; then :
3979 withval=$with_dbus;
3980 else
3981 with_dbus=yes
3982 fi
3983
3984
3985 # Check whether --with-gconf was given.
3986 if test "${with_gconf+set}" = set; then :
3987 withval=$with_gconf;
3988 else
3989 with_gconf=yes
3990 fi
3991
3992
3993 # Check whether --with-selinux was given.
3994 if test "${with_selinux+set}" = set; then :
3995 withval=$with_selinux;
3996 else
3997 with_selinux=yes
3998 fi
3999
4000
4001 # Check whether --with-gnutls was given.
4002 if test "${with_gnutls+set}" = set; then :
4003 withval=$with_gnutls;
4004 else
4005 with_gnutls=yes
4006 fi
4007
4008
4009 ## For the times when you want to build Emacs but don't have
4010 ## a suitable makeinfo, and can live without the manuals.
4011
4012 # Check whether --with-makeinfo was given.
4013 if test "${with_makeinfo+set}" = set; then :
4014 withval=$with_makeinfo;
4015 else
4016 with_makeinfo=yes
4017 fi
4018
4019
4020 ## This is an option because I do not know if all info/man support
4021 ## compressed files, nor how to test if they do so.
4022
4023 # Check whether --with-compress-info was given.
4024 if test "${with_compress_info+set}" = set; then :
4025 withval=$with_compress_info;
4026 else
4027 with_compress_info=yes
4028 fi
4029
4030 if test $with_compress_info = yes; then
4031 GZIP_INFO=yes
4032 else
4033 GZIP_INFO=
4034 fi
4035
4036
4037
4038 # Check whether --with-pkg-config-prog was given.
4039 if test "${with_pkg_config_prog+set}" = set; then :
4040 withval=$with_pkg_config_prog;
4041 fi
4042
4043 if test "X${with_pkg_config_prog}" != X; then
4044 if test "${with_pkg_config_prog}" != yes; then
4045 PKG_CONFIG="${with_pkg_config_prog}"
4046 fi
4047 fi
4048
4049 CRT_DIR=
4050
4051 # Check whether --with-crt-dir was given.
4052 if test "${with_crt_dir+set}" = set; then :
4053 withval=$with_crt_dir;
4054 fi
4055
4056 CRT_DIR="${with_crt_dir}"
4057
4058
4059 # Check whether --with-gameuser was given.
4060 if test "${with_gameuser+set}" = set; then :
4061 withval=$with_gameuser;
4062 fi
4063
4064 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4065 && gameuser="${with_gameuser}"
4066 test "X$gameuser" = X && gameuser=games
4067
4068
4069 # Check whether --with-gnustep-conf was given.
4070 if test "${with_gnustep_conf+set}" = set; then :
4071 withval=$with_gnustep_conf;
4072 fi
4073
4074 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4075 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4076 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4077 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4078
4079 # Check whether --enable-ns-self-contained was given.
4080 if test "${enable_ns_self_contained+set}" = set; then :
4081 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4082 else
4083 EN_NS_SELF_CONTAINED=yes
4084 fi
4085
4086
4087 # Check whether --enable-asserts was given.
4088 if test "${enable_asserts+set}" = set; then :
4089 enableval=$enable_asserts; USE_XASSERTS=$enableval
4090 else
4091 USE_XASSERTS=no
4092 fi
4093
4094
4095 # Check whether --enable-maintainer-mode was given.
4096 if test "${enable_maintainer_mode+set}" = set; then :
4097 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4098 else
4099 USE_MAINTAINER_MODE=yes
4100 fi
4101
4102 if test $USE_MAINTAINER_MODE = yes; then
4103 MAINT=
4104 else
4105 MAINT=#
4106 fi
4107
4108
4109 # Check whether --enable-locallisppath was given.
4110 if test "${enable_locallisppath+set}" = set; then :
4111 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4112 locallisppath=
4113 elif test "${enableval}" != "yes"; then
4114 locallisppath=${enableval}
4115 fi
4116 fi
4117
4118
4119 # Check whether --enable-checking was given.
4120 if test "${enable_checking+set}" = set; then :
4121 enableval=$enable_checking; ac_checking_flags="${enableval}"
4122 fi
4123
4124 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4125 for check in $ac_checking_flags
4126 do
4127 case $check in
4128 # these set all the flags to specific states
4129 yes) ac_enable_checking=1 ;;
4130 no) ac_enable_checking= ;
4131 ac_gc_check_stringbytes= ;
4132 ac_gc_check_string_overrun= ;
4133 ac_gc_check_string_free_list= ;
4134 ac_xmalloc_overrun= ;
4135 ac_gc_check_cons_list= ;;
4136 all) ac_enable_checking=1 ;
4137 ac_gc_check_stringbytes=1 ;
4138 ac_gc_check_string_overrun=1 ;
4139 ac_gc_check_string_free_list=1 ;
4140 ac_xmalloc_overrun=1 ;
4141 ac_gc_check_cons_list=1 ;;
4142 # these enable particular checks
4143 stringbytes) ac_gc_check_stringbytes=1 ;;
4144 stringoverrun) ac_gc_check_string_overrun=1 ;;
4145 stringfreelist) ac_gc_check_string_free_list=1 ;;
4146 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4147 conslist) ac_gc_check_cons_list=1 ;;
4148 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4149 esac
4150 done
4151 IFS="$ac_save_IFS"
4152
4153 if test x$ac_enable_checking != x ; then
4154
4155 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4156
4157 fi
4158 if test x$ac_gc_check_stringbytes != x ; then
4159
4160 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4161
4162 fi
4163 if test x$ac_gc_check_string_overrun != x ; then
4164
4165 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4166
4167 fi
4168 if test x$ac_gc_check_string_free_list != x ; then
4169
4170 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4171
4172 fi
4173 if test x$ac_xmalloc_overrun != x ; then
4174
4175 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4176
4177 fi
4178 if test x$ac_gc_check_cons_list != x ; then
4179
4180 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4181
4182 fi
4183
4184 # Check whether --enable-use-lisp-union-type was given.
4185 if test "${enable_use_lisp_union_type+set}" = set; then :
4186 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4187
4188 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4189
4190 fi
4191 fi
4192
4193
4194
4195 # Check whether --enable-profiling was given.
4196 if test "${enable_profiling+set}" = set; then :
4197 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4198 fi
4199
4200 if test x$ac_enable_profiling != x ; then
4201 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4202 else
4203 PROFILING_CFLAGS=
4204 fi
4205
4206
4207 # Check whether --enable-autodepend was given.
4208 if test "${enable_autodepend+set}" = set; then :
4209 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4210 else
4211 ac_enable_autodepend=yes
4212 fi
4213
4214
4215 #### Make srcdir absolute, if it isn't already. It's important to
4216 #### avoid running the path through pwd unnecessarily, since pwd can
4217 #### give you automounter prefixes, which can go away. We do all this
4218 #### so Emacs can find its files when run uninstalled.
4219 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4220 unset CDPATH
4221 case "${srcdir}" in
4222 /* ) ;;
4223 . )
4224 ## We may be able to use the $PWD environment variable to make this
4225 ## absolute. But sometimes PWD is inaccurate.
4226 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4227 ## but that tested only for a well-formed and valid PWD,
4228 ## it did not object when PWD was well-formed and valid but just wrong.
4229 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4230 then
4231 srcdir="$PWD"
4232 else
4233 srcdir="`(cd ${srcdir}; pwd)`"
4234 fi
4235 ;;
4236 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4237 esac
4238
4239 #### Given the configuration name, set machfile and opsysfile to the
4240 #### names of the m/*.h and s/*.h files we should use.
4241
4242 ### Canonicalize the configuration name.
4243
4244 # Make sure we can run config.sub.
4245 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4246 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4249 $as_echo_n "checking build system type... " >&6; }
4250 if test "${ac_cv_build+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 ac_build_alias=$build_alias
4254 test "x$ac_build_alias" = x &&
4255 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4256 test "x$ac_build_alias" = x &&
4257 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4258 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4259 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4260
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4263 $as_echo "$ac_cv_build" >&6; }
4264 case $ac_cv_build in
4265 *-*-*) ;;
4266 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4267 esac
4268 build=$ac_cv_build
4269 ac_save_IFS=$IFS; IFS='-'
4270 set x $ac_cv_build
4271 shift
4272 build_cpu=$1
4273 build_vendor=$2
4274 shift; shift
4275 # Remember, the first character of IFS is used to create $*,
4276 # except with old shells:
4277 build_os=$*
4278 IFS=$ac_save_IFS
4279 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4280
4281
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4283 $as_echo_n "checking host system type... " >&6; }
4284 if test "${ac_cv_host+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test "x$host_alias" = x; then
4288 ac_cv_host=$ac_cv_build
4289 else
4290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4292 fi
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4296 $as_echo "$ac_cv_host" >&6; }
4297 case $ac_cv_host in
4298 *-*-*) ;;
4299 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4300 esac
4301 host=$ac_cv_host
4302 ac_save_IFS=$IFS; IFS='-'
4303 set x $ac_cv_host
4304 shift
4305 host_cpu=$1
4306 host_vendor=$2
4307 shift; shift
4308 # Remember, the first character of IFS is used to create $*,
4309 # except with old shells:
4310 host_os=$*
4311 IFS=$ac_save_IFS
4312 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4313
4314
4315 canonical=$host
4316 configuration=${host_alias-${build_alias-$host}}
4317
4318
4319
4320 ### If you add support for a new configuration, add code to this
4321 ### switch statement to recognize your configuration name and select
4322 ### the appropriate operating system and machine description files.
4323
4324 ### You would hope that you could choose an m/*.h file pretty much
4325 ### based on the machine portion of the configuration name, and an s/*.h
4326 ### file based on the operating system portion. However, it turns out
4327 ### that each m/*.h file is pretty manufacturer-specific - for
4328 ### example mips.h is MIPS
4329 ### So we basically have to have a special case for each
4330 ### configuration name.
4331 ###
4332 ### As far as handling version numbers on operating systems is
4333 ### concerned, make sure things will fail in a fixable way. If
4334 ### /etc/MACHINES doesn't say anything about version numbers, be
4335 ### prepared to handle anything reasonably. If version numbers
4336 ### matter, be sure /etc/MACHINES says something about it.
4337
4338 machine='' opsys='' unported=no
4339 case "${canonical}" in
4340
4341 ## GNU/Linux ports
4342 *-*-linux-gnu*)
4343 opsys=gnu-linux
4344 case ${canonical} in
4345 alpha*) machine=alpha ;;
4346 s390-*) machine=ibms390 ;;
4347 s390x-*) machine=ibms390x ;;
4348 powerpc*) machine=macppc ;;
4349 sparc*) machine=sparc ;;
4350 ia64*) machine=ia64 ;;
4351 m68k*) machine=m68k ;;
4352 x86_64*) machine=amdx86-64 ;;
4353 esac
4354 ;;
4355
4356 ## FreeBSD ports
4357 *-*-freebsd* )
4358 opsys=freebsd
4359 case "${canonical}" in
4360 alpha*) machine=alpha ;;
4361 amd64-*|x86_64-*) machine=amdx86-64 ;;
4362 ia64-*) machine=ia64 ;;
4363 i[3456]86-*) machine=intel386 ;;
4364 powerpc-*) machine=macppc ;;
4365 sparc-*) machine=sparc ;;
4366 sparc64-*) machine=sparc ;;
4367 esac
4368 ;;
4369
4370 ## FreeBSD kernel + glibc based userland
4371 *-*-kfreebsd*gnu* )
4372 opsys=gnu-kfreebsd
4373 case "${canonical}" in
4374 alpha*) machine=alpha ;;
4375 amd64-*|x86_64-*) machine=amdx86-64 ;;
4376 ia64-*) machine=ia64 ;;
4377 i[3456]86-*) machine=intel386 ;;
4378 powerpc-*) machine=macppc ;;
4379 sparc-*) machine=sparc ;;
4380 sparc64-*) machine=sparc ;;
4381 esac
4382 ;;
4383
4384 ## NetBSD ports
4385 *-*-netbsd* )
4386 opsys=netbsd
4387 case "${canonical}" in
4388 alpha*) machine=alpha ;;
4389 x86_64-*) machine=amdx86-64 ;;
4390 i[3456]86-*) machine=intel386 ;;
4391 m68k-*) machine=m68k ;;
4392 powerpc-*) machine=macppc ;;
4393 sparc*-) machine=sparc ;;
4394 vax-*) machine=vax ;;
4395 esac
4396 ;;
4397
4398 ## OpenBSD ports
4399 *-*-openbsd* )
4400 opsys=openbsd
4401 case "${canonical}" in
4402 alpha*) machine=alpha ;;
4403 x86_64-*) machine=amdx86-64 ;;
4404 i386-*) machine=intel386 ;;
4405 powerpc-*) machine=macppc ;;
4406 sparc*) machine=sparc ;;
4407 vax-*) machine=vax ;;
4408 esac
4409 ;;
4410
4411 ## Apple Darwin / Mac OS X
4412 *-apple-darwin* )
4413 case "${canonical}" in
4414 i[3456]86-* ) machine=intel386 ;;
4415 powerpc-* ) machine=macppc ;;
4416 x86_64-* ) machine=amdx86-64 ;;
4417 * ) unported=yes ;;
4418 esac
4419 opsys=darwin
4420 # Define CPP as follows to make autoconf work correctly.
4421 CPP="${CC-cc} -E -no-cpp-precomp"
4422 # Use fink packages if available.
4423 if test -d /sw/include && test -d /sw/lib; then
4424 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4425 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4426 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4427 fi
4428 ;;
4429
4430 ## HP 9000 series 700 and 800, running HP/UX
4431 hppa*-hp-hpux10.2* )
4432 opsys=hpux10-20
4433 ;;
4434 hppa*-hp-hpux1[1-9]* )
4435 opsys=hpux11
4436 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4437 ;;
4438
4439 ia64*-hp-hpux1[1-9]* )
4440 machine=hp800 opsys=hpux11
4441 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4442 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4443 CANNOT_DUMP=yes
4444 ;;
4445
4446 hppa*-*-linux-gnu* )
4447 machine=hp800 opsys=gnu-linux
4448 ;;
4449
4450 ## IBM machines
4451 rs6000-ibm-aix4.[23]* )
4452 machine=ibmrs6000 opsys=aix4-2
4453 ;;
4454 powerpc-ibm-aix4.[23]* )
4455 machine=ibmrs6000 opsys=aix4-2
4456 ;;
4457 rs6000-ibm-aix[56]* )
4458 machine=ibmrs6000 opsys=aix4-2
4459 ;;
4460 powerpc-ibm-aix[56]* )
4461 machine=ibmrs6000 opsys=aix4-2
4462 ;;
4463
4464 ## Silicon Graphics machines
4465 ## Iris 4D
4466 mips-sgi-irix6.5 )
4467 machine=iris4d opsys=irix6-5
4468 # Without defining _LANGUAGE_C, things get masked out in the headers
4469 # so that, for instance, grepping for `free' in stdlib.h fails and
4470 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4471 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4472 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4473 ;;
4474
4475 ## Suns
4476 *-sun-solaris* \
4477 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4478 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4479 case "${canonical}" in
4480 i[3456]86-*-* ) machine=intel386 ;;
4481 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4482 sparc* ) machine=sparc ;;
4483 * ) unported=yes ;;
4484 esac
4485 case "${canonical}" in
4486 *-sunos5.6* | *-solaris2.6* )
4487 opsys=sol2-6
4488 NON_GNU_CPP=/usr/ccs/lib/cpp
4489 RANLIB="ar -ts"
4490 ;;
4491 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4492 opsys=sol2-6
4493 emacs_check_sunpro_c=yes
4494 NON_GNU_CPP=/usr/ccs/lib/cpp
4495 ;;
4496 *-sunos5* | *-solaris* )
4497 opsys=sol2-10
4498 emacs_check_sunpro_c=yes
4499 NON_GNU_CPP=/usr/ccs/lib/cpp
4500 ;;
4501 esac
4502 ## Watch out for a compiler that we know will not work.
4503 case "${canonical}" in
4504 *-solaris* | *-sunos5* )
4505 if [ "x$CC" = x/usr/ucb/cc ]; then
4506 ## /usr/ucb/cc doesn't work;
4507 ## we should find some other compiler that does work.
4508 unset CC
4509 fi
4510 ;;
4511 *) ;;
4512 esac
4513 ;;
4514
4515 ## Intel 386 machines where we don't care about the manufacturer.
4516 i[3456]86-*-* )
4517 machine=intel386
4518 case "${canonical}" in
4519 *-cygwin ) opsys=cygwin ;;
4520 *-darwin* ) opsys=darwin
4521 CPP="${CC-cc} -E -no-cpp-precomp"
4522 ;;
4523 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4524 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4525 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4526 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4527 esac
4528 ;;
4529
4530 * )
4531 unported=yes
4532 ;;
4533 esac
4534
4535 ### If the code above didn't choose an operating system, just choose
4536 ### an operating system based on the configuration name. You really
4537 ### only want to use this when you have no idea what the right
4538 ### operating system is; if you know what operating systems a machine
4539 ### runs, it's cleaner to make it explicit in the case statement
4540 ### above.
4541 if test x"${opsys}" = x; then
4542 case "${canonical}" in
4543 *-gnu* ) opsys=gnu ;;
4544 * )
4545 unported=yes
4546 ;;
4547 esac
4548 fi
4549
4550
4551
4552 if test $unported = yes; then
4553 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4554 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4555 fi
4556
4557 if test -n "$machine"; then
4558 machfile="m/${machine}.h"
4559 else
4560 machfile=
4561 fi
4562 opsysfile="s/${opsys}.h"
4563
4564
4565 #### Choose a compiler.
4566 test -n "$CC" && cc_specified=yes
4567
4568 # Save the value of CFLAGS that the user specified.
4569 SPECIFIED_CFLAGS="$CFLAGS"
4570
4571 ac_ext=c
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 if test -n "$ac_tool_prefix"; then
4577 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4578 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580 $as_echo_n "checking for $ac_word... " >&6; }
4581 if test "${ac_cv_prog_CC+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4597 fi
4598 done
4599 done
4600 IFS=$as_save_IFS
4601
4602 fi
4603 fi
4604 CC=$ac_cv_prog_CC
4605 if test -n "$CC"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4607 $as_echo "$CC" >&6; }
4608 else
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4611 fi
4612
4613
4614 fi
4615 if test -z "$ac_cv_prog_CC"; then
4616 ac_ct_CC=$CC
4617 # Extract the first word of "gcc", so it can be a program name with args.
4618 set dummy gcc; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 if test -n "$ac_ct_CC"; then
4625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_ac_ct_CC="gcc"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4637 fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642 fi
4643 fi
4644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4645 if test -n "$ac_ct_CC"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4647 $as_echo "$ac_ct_CC" >&6; }
4648 else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4651 fi
4652
4653 if test "x$ac_ct_CC" = x; then
4654 CC=""
4655 else
4656 case $cross_compiling:$ac_tool_warned in
4657 yes:)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4660 ac_tool_warned=yes ;;
4661 esac
4662 CC=$ac_ct_CC
4663 fi
4664 else
4665 CC="$ac_cv_prog_CC"
4666 fi
4667
4668 if test -z "$CC"; then
4669 if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}cc; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_CC+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$CC"; then
4678 ac_cv_prog_CC="$CC" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_CC="${ac_tool_prefix}cc"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 CC=$ac_cv_prog_CC
4698 if test -n "$CC"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4700 $as_echo "$CC" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4704 fi
4705
4706
4707 fi
4708 fi
4709 if test -z "$CC"; then
4710 # Extract the first word of "cc", so it can be a program name with args.
4711 set dummy cc; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_prog_CC+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$CC"; then
4718 ac_cv_prog_CC="$CC" # Let the user override the test.
4719 else
4720 ac_prog_rejected=no
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4729 ac_prog_rejected=yes
4730 continue
4731 fi
4732 ac_cv_prog_CC="cc"
4733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4735 fi
4736 done
4737 done
4738 IFS=$as_save_IFS
4739
4740 if test $ac_prog_rejected = yes; then
4741 # We found a bogon in the path, so make sure we never use it.
4742 set dummy $ac_cv_prog_CC
4743 shift
4744 if test $# != 0; then
4745 # We chose a different compiler from the bogus one.
4746 # However, it has the same basename, so the bogon will be chosen
4747 # first if we set CC to just the basename; use the full file name.
4748 shift
4749 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4750 fi
4751 fi
4752 fi
4753 fi
4754 CC=$ac_cv_prog_CC
4755 if test -n "$CC"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4757 $as_echo "$CC" >&6; }
4758 else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4761 fi
4762
4763
4764 fi
4765 if test -z "$CC"; then
4766 if test -n "$ac_tool_prefix"; then
4767 for ac_prog in cl.exe
4768 do
4769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_CC+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$CC"; then
4777 ac_cv_prog_CC="$CC" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 CC=$ac_cv_prog_CC
4797 if test -n "$CC"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4799 $as_echo "$CC" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805
4806 test -n "$CC" && break
4807 done
4808 fi
4809 if test -z "$CC"; then
4810 ac_ct_CC=$CC
4811 for ac_prog in cl.exe
4812 do
4813 # Extract the first word of "$ac_prog", so it can be a program name with args.
4814 set dummy $ac_prog; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$ac_ct_CC"; then
4821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_ac_ct_CC="$ac_prog"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4841 if test -n "$ac_ct_CC"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4843 $as_echo "$ac_ct_CC" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849
4850 test -n "$ac_ct_CC" && break
4851 done
4852
4853 if test "x$ac_ct_CC" = x; then
4854 CC=""
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857 yes:)
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860 ac_tool_warned=yes ;;
4861 esac
4862 CC=$ac_ct_CC
4863 fi
4864 fi
4865
4866 fi
4867
4868
4869 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4871 as_fn_error "no acceptable C compiler found in \$PATH
4872 See \`config.log' for more details." "$LINENO" 5; }
4873
4874 # Provide some information about the compiler.
4875 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4876 set X $ac_compile
4877 ac_compiler=$2
4878 for ac_option in --version -v -V -qversion; do
4879 { { ac_try="$ac_compiler $ac_option >&5"
4880 case "(($ac_try" in
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4883 esac
4884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4885 $as_echo "$ac_try_echo"; } >&5
4886 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4887 ac_status=$?
4888 if test -s conftest.err; then
4889 sed '10a\
4890 ... rest of stderr output deleted ...
4891 10q' conftest.err >conftest.er1
4892 cat conftest.er1 >&5
4893 fi
4894 rm -f conftest.er1 conftest.err
4895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4896 test $ac_status = 0; }
4897 done
4898
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901
4902 int
4903 main ()
4904 {
4905
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 ac_clean_files_save=$ac_clean_files
4911 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4912 # Try to create an executable without -o first, disregard a.out.
4913 # It will help us diagnose broken compilers, and finding out an intuition
4914 # of exeext.
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4916 $as_echo_n "checking whether the C compiler works... " >&6; }
4917 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4918
4919 # The possible output files:
4920 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4921
4922 ac_rmfiles=
4923 for ac_file in $ac_files
4924 do
4925 case $ac_file in
4926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4927 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4928 esac
4929 done
4930 rm -f $ac_rmfiles
4931
4932 if { { ac_try="$ac_link_default"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4938 $as_echo "$ac_try_echo"; } >&5
4939 (eval "$ac_link_default") 2>&5
4940 ac_status=$?
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }; then :
4943 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4945 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4946 # so that the user can short-circuit this test for compilers unknown to
4947 # Autoconf.
4948 for ac_file in $ac_files ''
4949 do
4950 test -f "$ac_file" || continue
4951 case $ac_file in
4952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4953 ;;
4954 [ab].out )
4955 # We found the default executable, but exeext='' is most
4956 # certainly right.
4957 break;;
4958 *.* )
4959 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4960 then :; else
4961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4962 fi
4963 # We set ac_cv_exeext here because the later test for it is not
4964 # safe: cross compilers may not add the suffix if given an `-o'
4965 # argument, so we may need to know it at that point already.
4966 # Even if this section looks crufty: it has the advantage of
4967 # actually working.
4968 break;;
4969 * )
4970 break;;
4971 esac
4972 done
4973 test "$ac_cv_exeext" = no && ac_cv_exeext=
4974
4975 else
4976 ac_file=''
4977 fi
4978 if test -z "$ac_file"; then :
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4986 { as_fn_set_status 77
4987 as_fn_error "C compiler cannot create executables
4988 See \`config.log' for more details." "$LINENO" 5; }; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4991 $as_echo "yes" >&6; }
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4994 $as_echo_n "checking for C compiler default output file name... " >&6; }
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4996 $as_echo "$ac_file" >&6; }
4997 ac_exeext=$ac_cv_exeext
4998
4999 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5000 ac_clean_files=$ac_clean_files_save
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5002 $as_echo_n "checking for suffix of executables... " >&6; }
5003 if { { ac_try="$ac_link"
5004 case "(($ac_try" in
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5007 esac
5008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5009 $as_echo "$ac_try_echo"; } >&5
5010 (eval "$ac_link") 2>&5
5011 ac_status=$?
5012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5013 test $ac_status = 0; }; then :
5014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5015 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5016 # work properly (i.e., refer to `conftest.exe'), while it won't with
5017 # `rm'.
5018 for ac_file in conftest.exe conftest conftest.*; do
5019 test -f "$ac_file" || continue
5020 case $ac_file in
5021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5023 break;;
5024 * ) break;;
5025 esac
5026 done
5027 else
5028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5030 as_fn_error "cannot compute suffix of executables: cannot compile and link
5031 See \`config.log' for more details." "$LINENO" 5; }
5032 fi
5033 rm -f conftest conftest$ac_cv_exeext
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5035 $as_echo "$ac_cv_exeext" >&6; }
5036
5037 rm -f conftest.$ac_ext
5038 EXEEXT=$ac_cv_exeext
5039 ac_exeext=$EXEEXT
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 #include <stdio.h>
5043 int
5044 main ()
5045 {
5046 FILE *f = fopen ("conftest.out", "w");
5047 return ferror (f) || fclose (f) != 0;
5048
5049 ;
5050 return 0;
5051 }
5052 _ACEOF
5053 ac_clean_files="$ac_clean_files conftest.out"
5054 # Check that the compiler produces executables we can run. If not, either
5055 # the compiler is broken, or we cross compile.
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5057 $as_echo_n "checking whether we are cross compiling... " >&6; }
5058 if test "$cross_compiling" != yes; then
5059 { { ac_try="$ac_link"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5065 $as_echo "$ac_try_echo"; } >&5
5066 (eval "$ac_link") 2>&5
5067 ac_status=$?
5068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5069 test $ac_status = 0; }
5070 if { ac_try='./conftest$ac_cv_exeext'
5071 { { case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074 esac
5075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5076 $as_echo "$ac_try_echo"; } >&5
5077 (eval "$ac_try") 2>&5
5078 ac_status=$?
5079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5080 test $ac_status = 0; }; }; then
5081 cross_compiling=no
5082 else
5083 if test "$cross_compiling" = maybe; then
5084 cross_compiling=yes
5085 else
5086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5088 as_fn_error "cannot run C compiled programs.
5089 If you meant to cross compile, use \`--host'.
5090 See \`config.log' for more details." "$LINENO" 5; }
5091 fi
5092 fi
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5095 $as_echo "$cross_compiling" >&6; }
5096
5097 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5098 ac_clean_files=$ac_clean_files_save
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5100 $as_echo_n "checking for suffix of object files... " >&6; }
5101 if test "${ac_cv_objext+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106
5107 int
5108 main ()
5109 {
5110
5111 ;
5112 return 0;
5113 }
5114 _ACEOF
5115 rm -f conftest.o conftest.obj
5116 if { { ac_try="$ac_compile"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5122 $as_echo "$ac_try_echo"; } >&5
5123 (eval "$ac_compile") 2>&5
5124 ac_status=$?
5125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126 test $ac_status = 0; }; then :
5127 for ac_file in conftest.o conftest.obj conftest.*; do
5128 test -f "$ac_file" || continue;
5129 case $ac_file in
5130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5132 break;;
5133 esac
5134 done
5135 else
5136 $as_echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5141 as_fn_error "cannot compute suffix of object files: cannot compile
5142 See \`config.log' for more details." "$LINENO" 5; }
5143 fi
5144 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5147 $as_echo "$ac_cv_objext" >&6; }
5148 OBJEXT=$ac_cv_objext
5149 ac_objext=$OBJEXT
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5151 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5152 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157
5158 int
5159 main ()
5160 {
5161 #ifndef __GNUC__
5162 choke me
5163 #endif
5164
5165 ;
5166 return 0;
5167 }
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 ac_compiler_gnu=yes
5171 else
5172 ac_compiler_gnu=no
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5176
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5179 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5180 if test $ac_compiler_gnu = yes; then
5181 GCC=yes
5182 else
5183 GCC=
5184 fi
5185 ac_test_CFLAGS=${CFLAGS+set}
5186 ac_save_CFLAGS=$CFLAGS
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5188 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5189 if test "${ac_cv_prog_cc_g+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 ac_save_c_werror_flag=$ac_c_werror_flag
5193 ac_c_werror_flag=yes
5194 ac_cv_prog_cc_g=no
5195 CFLAGS="-g"
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 int
5200 main ()
5201 {
5202
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208 ac_cv_prog_cc_g=yes
5209 else
5210 CFLAGS=""
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213
5214 int
5215 main ()
5216 {
5217
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_c_try_compile "$LINENO"; then :
5223
5224 else
5225 ac_c_werror_flag=$ac_save_c_werror_flag
5226 CFLAGS="-g"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229
5230 int
5231 main ()
5232 {
5233
5234 ;
5235 return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_c_try_compile "$LINENO"; then :
5239 ac_cv_prog_cc_g=yes
5240 fi
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 fi
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 ac_c_werror_flag=$ac_save_c_werror_flag
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5249 $as_echo "$ac_cv_prog_cc_g" >&6; }
5250 if test "$ac_test_CFLAGS" = set; then
5251 CFLAGS=$ac_save_CFLAGS
5252 elif test $ac_cv_prog_cc_g = yes; then
5253 if test "$GCC" = yes; then
5254 CFLAGS="-g -O2"
5255 else
5256 CFLAGS="-g"
5257 fi
5258 else
5259 if test "$GCC" = yes; then
5260 CFLAGS="-O2"
5261 else
5262 CFLAGS=
5263 fi
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5266 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5267 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 ac_cv_prog_cc_c89=no
5271 ac_save_CC=$CC
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <stdarg.h>
5275 #include <stdio.h>
5276 #include <sys/types.h>
5277 #include <sys/stat.h>
5278 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5279 struct buf { int x; };
5280 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5281 static char *e (p, i)
5282 char **p;
5283 int i;
5284 {
5285 return p[i];
5286 }
5287 static char *f (char * (*g) (char **, int), char **p, ...)
5288 {
5289 char *s;
5290 va_list v;
5291 va_start (v,p);
5292 s = g (p, va_arg (v,int));
5293 va_end (v);
5294 return s;
5295 }
5296
5297 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5298 function prototypes and stuff, but not '\xHH' hex character constants.
5299 These don't provoke an error unfortunately, instead are silently treated
5300 as 'x'. The following induces an error, until -std is added to get
5301 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5302 array size at least. It's necessary to write '\x00'==0 to get something
5303 that's true only with -std. */
5304 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5305
5306 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5307 inside strings and character constants. */
5308 #define FOO(x) 'x'
5309 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5310
5311 int test (int i, double x);
5312 struct s1 {int (*f) (int a);};
5313 struct s2 {int (*f) (double a);};
5314 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5315 int argc;
5316 char **argv;
5317 int
5318 main ()
5319 {
5320 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5326 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5327 do
5328 CC="$ac_save_CC $ac_arg"
5329 if ac_fn_c_try_compile "$LINENO"; then :
5330 ac_cv_prog_cc_c89=$ac_arg
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext
5333 test "x$ac_cv_prog_cc_c89" != "xno" && break
5334 done
5335 rm -f conftest.$ac_ext
5336 CC=$ac_save_CC
5337
5338 fi
5339 # AC_CACHE_VAL
5340 case "x$ac_cv_prog_cc_c89" in
5341 x)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5343 $as_echo "none needed" >&6; } ;;
5344 xno)
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5346 $as_echo "unsupported" >&6; } ;;
5347 *)
5348 CC="$CC $ac_cv_prog_cc_c89"
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5350 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5351 esac
5352 if test "x$ac_cv_prog_cc_c89" != xno; then :
5353
5354 fi
5355
5356 ac_ext=c
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361 DEPDIR="${am__leading_dot}deps"
5362
5363 ac_config_commands="$ac_config_commands depfiles"
5364
5365
5366 am_make=${MAKE-make}
5367 cat > confinc << 'END'
5368 am__doit:
5369 @echo this is the am__doit target
5370 .PHONY: am__doit
5371 END
5372 # If we don't find an include directive, just comment out the code.
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5374 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5375 am__include="#"
5376 am__quote=
5377 _am_result=none
5378 # First try GNU make style include.
5379 echo "include confinc" > confmf
5380 # Ignore all kinds of additional output from `make'.
5381 case `$am_make -s -f confmf 2> /dev/null` in #(
5382 *the\ am__doit\ target*)
5383 am__include=include
5384 am__quote=
5385 _am_result=GNU
5386 ;;
5387 esac
5388 # Now try BSD make style include.
5389 if test "$am__include" = "#"; then
5390 echo '.include "confinc"' > confmf
5391 case `$am_make -s -f confmf 2> /dev/null` in #(
5392 *the\ am__doit\ target*)
5393 am__include=.include
5394 am__quote="\""
5395 _am_result=BSD
5396 ;;
5397 esac
5398 fi
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5402 $as_echo "$_am_result" >&6; }
5403 rm -f confinc confmf
5404
5405 # Check whether --enable-dependency-tracking was given.
5406 if test "${enable_dependency_tracking+set}" = set; then :
5407 enableval=$enable_dependency_tracking;
5408 fi
5409
5410 if test "x$enable_dependency_tracking" != xno; then
5411 am_depcomp="$ac_aux_dir/depcomp"
5412 AMDEPBACKSLASH='\'
5413 fi
5414 if test "x$enable_dependency_tracking" != xno; then
5415 AMDEP_TRUE=
5416 AMDEP_FALSE='#'
5417 else
5418 AMDEP_TRUE='#'
5419 AMDEP_FALSE=
5420 fi
5421
5422
5423
5424 depcc="$CC" am_compiler_list=
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5427 $as_echo_n "checking dependency style of $depcc... " >&6; }
5428 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5432 # We make a subdir and do the tests there. Otherwise we can end up
5433 # making bogus files that we don't know about and never remove. For
5434 # instance it was reported that on HP-UX the gcc test will end up
5435 # making a dummy file named `D' -- because `-MD' means `put the output
5436 # in D'.
5437 mkdir conftest.dir
5438 # Copy depcomp to subdir because otherwise we won't find it if we're
5439 # using a relative directory.
5440 cp "$am_depcomp" conftest.dir
5441 cd conftest.dir
5442 # We will build objects and dependencies in a subdirectory because
5443 # it helps to detect inapplicable dependency modes. For instance
5444 # both Tru64's cc and ICC support -MD to output dependencies as a
5445 # side effect of compilation, but ICC will put the dependencies in
5446 # the current directory while Tru64 will put them in the object
5447 # directory.
5448 mkdir sub
5449
5450 am_cv_CC_dependencies_compiler_type=none
5451 if test "$am_compiler_list" = ""; then
5452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5453 fi
5454 am__universal=false
5455 case " $depcc " in #(
5456 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5457 esac
5458
5459 for depmode in $am_compiler_list; do
5460 # Setup a source with many dependencies, because some compilers
5461 # like to wrap large dependency lists on column 80 (with \), and
5462 # we should not choose a depcomp mode which is confused by this.
5463 #
5464 # We need to recreate these files for each test, as the compiler may
5465 # overwrite some of them when testing with obscure command lines.
5466 # This happens at least with the AIX C compiler.
5467 : > sub/conftest.c
5468 for i in 1 2 3 4 5 6; do
5469 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5470 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5471 # Solaris 8's {/usr,}/bin/sh.
5472 touch sub/conftst$i.h
5473 done
5474 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5475
5476 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5477 # mode. It turns out that the SunPro C++ compiler does not properly
5478 # handle `-M -o', and we need to detect this. Also, some Intel
5479 # versions had trouble with output in subdirs
5480 am__obj=sub/conftest.${OBJEXT-o}
5481 am__minus_obj="-o $am__obj"
5482 case $depmode in
5483 gcc)
5484 # This depmode causes a compiler race in universal mode.
5485 test "$am__universal" = false || continue
5486 ;;
5487 nosideeffect)
5488 # after this tag, mechanisms are not by side-effect, so they'll
5489 # only be used when explicitly requested
5490 if test "x$enable_dependency_tracking" = xyes; then
5491 continue
5492 else
5493 break
5494 fi
5495 ;;
5496 msvisualcpp | msvcmsys)
5497 # This compiler won't grok `-c -o', but also, the minuso test has
5498 # not run yet. These depmodes are late enough in the game, and
5499 # so weak that their functioning should not be impacted.
5500 am__obj=conftest.${OBJEXT-o}
5501 am__minus_obj=
5502 ;;
5503 none) break ;;
5504 esac
5505 if depmode=$depmode \
5506 source=sub/conftest.c object=$am__obj \
5507 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5508 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5509 >/dev/null 2>conftest.err &&
5510 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5512 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5514 # icc doesn't choke on unknown options, it will just issue warnings
5515 # or remarks (even with -Werror). So we grep stderr for any message
5516 # that says an option was ignored or not supported.
5517 # When given -MP, icc 7.0 and 7.1 complain thusly:
5518 # icc: Command line warning: ignoring option '-M'; no argument required
5519 # The diagnosis changed in icc 8.0:
5520 # icc: Command line remark: option '-MP' not supported
5521 if (grep 'ignoring option' conftest.err ||
5522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5523 am_cv_CC_dependencies_compiler_type=$depmode
5524 break
5525 fi
5526 fi
5527 done
5528
5529 cd ..
5530 rm -rf conftest.dir
5531 else
5532 am_cv_CC_dependencies_compiler_type=none
5533 fi
5534
5535 fi
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5537 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5538 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5539
5540 if
5541 test "x$enable_dependency_tracking" != xno \
5542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5543 am__fastdepCC_TRUE=
5544 am__fastdepCC_FALSE='#'
5545 else
5546 am__fastdepCC_TRUE='#'
5547 am__fastdepCC_FALSE=
5548 fi
5549
5550
5551 if test "x$CC" != xcc; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5553 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5556 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5557 fi
5558 set dummy $CC; ac_cc=`$as_echo "$2" |
5559 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5560 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565
5566 int
5567 main ()
5568 {
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 # Make sure it works both with $CC and with simple cc.
5575 # We do the test twice because some compilers refuse to overwrite an
5576 # existing .o file with -o, though they will create one.
5577 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5578 rm -f conftest2.*
5579 if { { case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582 esac
5583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5584 $as_echo "$ac_try_echo"; } >&5
5585 (eval "$ac_try") 2>&5
5586 ac_status=$?
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; } &&
5589 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5594 $as_echo "$ac_try_echo"; } >&5
5595 (eval "$ac_try") 2>&5
5596 ac_status=$?
5597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5598 test $ac_status = 0; };
5599 then
5600 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5601 if test "x$CC" != xcc; then
5602 # Test first that cc exists at all.
5603 if { ac_try='cc -c conftest.$ac_ext >&5'
5604 { { case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5609 $as_echo "$ac_try_echo"; } >&5
5610 (eval "$ac_try") 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; }; }; then
5614 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5615 rm -f conftest2.*
5616 if { { case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5621 $as_echo "$ac_try_echo"; } >&5
5622 (eval "$ac_try") 2>&5
5623 ac_status=$?
5624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625 test $ac_status = 0; } &&
5626 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5631 $as_echo "$ac_try_echo"; } >&5
5632 (eval "$ac_try") 2>&5
5633 ac_status=$?
5634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635 test $ac_status = 0; };
5636 then
5637 # cc works too.
5638 :
5639 else
5640 # cc exists but doesn't like -o.
5641 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5642 fi
5643 fi
5644 fi
5645 else
5646 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5647 fi
5648 rm -f core conftest*
5649
5650 fi
5651 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5653 $as_echo "yes" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657
5658 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5659
5660 fi
5661
5662 # FIXME: we rely on the cache variable name because
5663 # there is no other way.
5664 set dummy $CC
5665 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5666 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5667 if test "$am_t" != yes; then
5668 # Losing compiler, so override with the script.
5669 # FIXME: It is wrong to rewrite CC.
5670 # But if we don't then we get into trouble of one sort or another.
5671 # A longer-term fix would be to have automake use am__CC in this case,
5672 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5673 CC="$am_aux_dir/compile $CC"
5674 fi
5675
5676
5677
5678 # Initialize gnulib right after verifying that the C compiler works.
5679 if test -n "$ac_tool_prefix"; then
5680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 if test -n "$RANLIB"; then
5688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5700 fi
5701 done
5702 done
5703 IFS=$as_save_IFS
5704
5705 fi
5706 fi
5707 RANLIB=$ac_cv_prog_RANLIB
5708 if test -n "$RANLIB"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5710 $as_echo "$RANLIB" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5714 fi
5715
5716
5717 fi
5718 if test -z "$ac_cv_prog_RANLIB"; then
5719 ac_ct_RANLIB=$RANLIB
5720 # Extract the first word of "ranlib", so it can be a program name with args.
5721 set dummy ranlib; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if test -n "$ac_ct_RANLIB"; then
5728 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5732 do
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737 ac_cv_prog_ac_ct_RANLIB="ranlib"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5740 fi
5741 done
5742 done
5743 IFS=$as_save_IFS
5744
5745 fi
5746 fi
5747 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5748 if test -n "$ac_ct_RANLIB"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5750 $as_echo "$ac_ct_RANLIB" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5754 fi
5755
5756 if test "x$ac_ct_RANLIB" = x; then
5757 RANLIB=":"
5758 else
5759 case $cross_compiling:$ac_tool_warned in
5760 yes:)
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5763 ac_tool_warned=yes ;;
5764 esac
5765 RANLIB=$ac_ct_RANLIB
5766 fi
5767 else
5768 RANLIB="$ac_cv_prog_RANLIB"
5769 fi
5770
5771
5772 ac_ext=c
5773 ac_cpp='$CPP $CPPFLAGS'
5774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5778 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5779 # On Suns, sometimes $CPP names a directory.
5780 if test -n "$CPP" && test -d "$CPP"; then
5781 CPP=
5782 fi
5783 if test -z "$CPP"; then
5784 if test "${ac_cv_prog_CPP+set}" = set; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 # Double quotes because CPP needs to be expanded
5788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5789 do
5790 ac_preproc_ok=false
5791 for ac_c_preproc_warn_flag in '' yes
5792 do
5793 # Use a header file that comes with gcc, so configuring glibc
5794 # with a fresh cross-compiler works.
5795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796 # <limits.h> exists even on freestanding compilers.
5797 # On the NeXT, cc -E runs the code through the compiler's parser,
5798 # not just through cpp. "Syntax error" is here to catch this case.
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #ifdef __STDC__
5802 # include <limits.h>
5803 #else
5804 # include <assert.h>
5805 #endif
5806 Syntax error
5807 _ACEOF
5808 if ac_fn_c_try_cpp "$LINENO"; then :
5809
5810 else
5811 # Broken: fails on valid input.
5812 continue
5813 fi
5814 rm -f conftest.err conftest.$ac_ext
5815
5816 # OK, works on sane cases. Now check whether nonexistent headers
5817 # can be detected and how.
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #include <ac_nonexistent.h>
5821 _ACEOF
5822 if ac_fn_c_try_cpp "$LINENO"; then :
5823 # Broken: success on invalid input.
5824 continue
5825 else
5826 # Passes both tests.
5827 ac_preproc_ok=:
5828 break
5829 fi
5830 rm -f conftest.err conftest.$ac_ext
5831
5832 done
5833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5834 rm -f conftest.err conftest.$ac_ext
5835 if $ac_preproc_ok; then :
5836 break
5837 fi
5838
5839 done
5840 ac_cv_prog_CPP=$CPP
5841
5842 fi
5843 CPP=$ac_cv_prog_CPP
5844 else
5845 ac_cv_prog_CPP=$CPP
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5848 $as_echo "$CPP" >&6; }
5849 ac_preproc_ok=false
5850 for ac_c_preproc_warn_flag in '' yes
5851 do
5852 # Use a header file that comes with gcc, so configuring glibc
5853 # with a fresh cross-compiler works.
5854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5855 # <limits.h> exists even on freestanding compilers.
5856 # On the NeXT, cc -E runs the code through the compiler's parser,
5857 # not just through cpp. "Syntax error" is here to catch this case.
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 #ifdef __STDC__
5861 # include <limits.h>
5862 #else
5863 # include <assert.h>
5864 #endif
5865 Syntax error
5866 _ACEOF
5867 if ac_fn_c_try_cpp "$LINENO"; then :
5868
5869 else
5870 # Broken: fails on valid input.
5871 continue
5872 fi
5873 rm -f conftest.err conftest.$ac_ext
5874
5875 # OK, works on sane cases. Now check whether nonexistent headers
5876 # can be detected and how.
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #include <ac_nonexistent.h>
5880 _ACEOF
5881 if ac_fn_c_try_cpp "$LINENO"; then :
5882 # Broken: success on invalid input.
5883 continue
5884 else
5885 # Passes both tests.
5886 ac_preproc_ok=:
5887 break
5888 fi
5889 rm -f conftest.err conftest.$ac_ext
5890
5891 done
5892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5893 rm -f conftest.err conftest.$ac_ext
5894 if $ac_preproc_ok; then :
5895
5896 else
5897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5899 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5900 See \`config.log' for more details." "$LINENO" 5; }
5901 fi
5902
5903 ac_ext=c
5904 ac_cpp='$CPP $CPPFLAGS'
5905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5908
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5911 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5912 if test "${ac_cv_path_GREP+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -z "$GREP"; then
5916 ac_path_GREP_found=false
5917 # Loop through the user's path and test for each of PROGNAME-LIST
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5920 do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_prog in grep ggrep; do
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5926 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5927 # Check for GNU ac_path_GREP and select it if it is found.
5928 # Check for GNU $ac_path_GREP
5929 case `"$ac_path_GREP" --version 2>&1` in
5930 *GNU*)
5931 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5932 *)
5933 ac_count=0
5934 $as_echo_n 0123456789 >"conftest.in"
5935 while :
5936 do
5937 cat "conftest.in" "conftest.in" >"conftest.tmp"
5938 mv "conftest.tmp" "conftest.in"
5939 cp "conftest.in" "conftest.nl"
5940 $as_echo 'GREP' >> "conftest.nl"
5941 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5943 as_fn_arith $ac_count + 1 && ac_count=$as_val
5944 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5945 # Best one so far, save it but keep looking for a better one
5946 ac_cv_path_GREP="$ac_path_GREP"
5947 ac_path_GREP_max=$ac_count
5948 fi
5949 # 10*(2^10) chars as input seems more than enough
5950 test $ac_count -gt 10 && break
5951 done
5952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5953 esac
5954
5955 $ac_path_GREP_found && break 3
5956 done
5957 done
5958 done
5959 IFS=$as_save_IFS
5960 if test -z "$ac_cv_path_GREP"; then
5961 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5962 fi
5963 else
5964 ac_cv_path_GREP=$GREP
5965 fi
5966
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5969 $as_echo "$ac_cv_path_GREP" >&6; }
5970 GREP="$ac_cv_path_GREP"
5971
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5974 $as_echo_n "checking for egrep... " >&6; }
5975 if test "${ac_cv_path_EGREP+set}" = set; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5979 then ac_cv_path_EGREP="$GREP -E"
5980 else
5981 if test -z "$EGREP"; then
5982 ac_path_EGREP_found=false
5983 # Loop through the user's path and test for each of PROGNAME-LIST
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5986 do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_prog in egrep; do
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5992 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5993 # Check for GNU ac_path_EGREP and select it if it is found.
5994 # Check for GNU $ac_path_EGREP
5995 case `"$ac_path_EGREP" --version 2>&1` in
5996 *GNU*)
5997 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5998 *)
5999 ac_count=0
6000 $as_echo_n 0123456789 >"conftest.in"
6001 while :
6002 do
6003 cat "conftest.in" "conftest.in" >"conftest.tmp"
6004 mv "conftest.tmp" "conftest.in"
6005 cp "conftest.in" "conftest.nl"
6006 $as_echo 'EGREP' >> "conftest.nl"
6007 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6009 as_fn_arith $ac_count + 1 && ac_count=$as_val
6010 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6011 # Best one so far, save it but keep looking for a better one
6012 ac_cv_path_EGREP="$ac_path_EGREP"
6013 ac_path_EGREP_max=$ac_count
6014 fi
6015 # 10*(2^10) chars as input seems more than enough
6016 test $ac_count -gt 10 && break
6017 done
6018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6019 esac
6020
6021 $ac_path_EGREP_found && break 3
6022 done
6023 done
6024 done
6025 IFS=$as_save_IFS
6026 if test -z "$ac_cv_path_EGREP"; then
6027 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6028 fi
6029 else
6030 ac_cv_path_EGREP=$EGREP
6031 fi
6032
6033 fi
6034 fi
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6036 $as_echo "$ac_cv_path_EGREP" >&6; }
6037 EGREP="$ac_cv_path_EGREP"
6038
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6041 $as_echo_n "checking for ANSI C header files... " >&6; }
6042 if test "${ac_cv_header_stdc+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 #include <stdlib.h>
6048 #include <stdarg.h>
6049 #include <string.h>
6050 #include <float.h>
6051
6052 int
6053 main ()
6054 {
6055
6056 ;
6057 return 0;
6058 }
6059 _ACEOF
6060 if ac_fn_c_try_compile "$LINENO"; then :
6061 ac_cv_header_stdc=yes
6062 else
6063 ac_cv_header_stdc=no
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066
6067 if test $ac_cv_header_stdc = yes; then
6068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #include <string.h>
6072
6073 _ACEOF
6074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075 $EGREP "memchr" >/dev/null 2>&1; then :
6076
6077 else
6078 ac_cv_header_stdc=no
6079 fi
6080 rm -f conftest*
6081
6082 fi
6083
6084 if test $ac_cv_header_stdc = yes; then
6085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #include <stdlib.h>
6089
6090 _ACEOF
6091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6092 $EGREP "free" >/dev/null 2>&1; then :
6093
6094 else
6095 ac_cv_header_stdc=no
6096 fi
6097 rm -f conftest*
6098
6099 fi
6100
6101 if test $ac_cv_header_stdc = yes; then
6102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6103 if test "$cross_compiling" = yes; then :
6104 :
6105 else
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108 #include <ctype.h>
6109 #include <stdlib.h>
6110 #if ((' ' & 0x0FF) == 0x020)
6111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6113 #else
6114 # define ISLOWER(c) \
6115 (('a' <= (c) && (c) <= 'i') \
6116 || ('j' <= (c) && (c) <= 'r') \
6117 || ('s' <= (c) && (c) <= 'z'))
6118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6119 #endif
6120
6121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6122 int
6123 main ()
6124 {
6125 int i;
6126 for (i = 0; i < 256; i++)
6127 if (XOR (islower (i), ISLOWER (i))
6128 || toupper (i) != TOUPPER (i))
6129 return 2;
6130 return 0;
6131 }
6132 _ACEOF
6133 if ac_fn_c_try_run "$LINENO"; then :
6134
6135 else
6136 ac_cv_header_stdc=no
6137 fi
6138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6139 conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 fi
6141
6142 fi
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6145 $as_echo "$ac_cv_header_stdc" >&6; }
6146 if test $ac_cv_header_stdc = yes; then
6147
6148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6149
6150 fi
6151
6152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6153 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6154 inttypes.h stdint.h unistd.h
6155 do :
6156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6157 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6158 "
6159 eval as_val=\$$as_ac_Header
6160 if test "x$as_val" = x""yes; then :
6161 cat >>confdefs.h <<_ACEOF
6162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6163 _ACEOF
6164
6165 fi
6166
6167 done
6168
6169
6170
6171
6172
6173 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6174 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6175 MINIX=yes
6176 else
6177 MINIX=
6178 fi
6179
6180
6181 if test "$MINIX" = yes; then
6182
6183 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6184
6185
6186 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6187
6188
6189 $as_echo "#define _MINIX 1" >>confdefs.h
6190
6191 fi
6192
6193 case "$host_os" in
6194 hpux*)
6195
6196 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6197
6198 ;;
6199 esac
6200
6201
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6203 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6204 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209
6210 # define __EXTENSIONS__ 1
6211 $ac_includes_default
6212 int
6213 main ()
6214 {
6215
6216 ;
6217 return 0;
6218 }
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"; then :
6221 ac_cv_safe_to_define___extensions__=yes
6222 else
6223 ac_cv_safe_to_define___extensions__=no
6224 fi
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6228 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6229 test $ac_cv_safe_to_define___extensions__ = yes &&
6230 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6231
6232 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6233
6234 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6235
6236 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6237
6238 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6239
6240
6241
6242
6243
6244
6245
6246
6247 case $ac_cv_prog_cc_stdc in #(
6248 no) :
6249 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6250 *) :
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6252 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6253 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 ac_cv_prog_cc_c99=no
6257 ac_save_CC=$CC
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 #include <stdarg.h>
6261 #include <stdbool.h>
6262 #include <stdlib.h>
6263 #include <wchar.h>
6264 #include <stdio.h>
6265
6266 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6267 #define debug(...) fprintf (stderr, __VA_ARGS__)
6268 #define showlist(...) puts (#__VA_ARGS__)
6269 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6270 static void
6271 test_varargs_macros (void)
6272 {
6273 int x = 1234;
6274 int y = 5678;
6275 debug ("Flag");
6276 debug ("X = %d\n", x);
6277 showlist (The first, second, and third items.);
6278 report (x>y, "x is %d but y is %d", x, y);
6279 }
6280
6281 // Check long long types.
6282 #define BIG64 18446744073709551615ull
6283 #define BIG32 4294967295ul
6284 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6285 #if !BIG_OK
6286 your preprocessor is broken;
6287 #endif
6288 #if BIG_OK
6289 #else
6290 your preprocessor is broken;
6291 #endif
6292 static long long int bignum = -9223372036854775807LL;
6293 static unsigned long long int ubignum = BIG64;
6294
6295 struct incomplete_array
6296 {
6297 int datasize;
6298 double data[];
6299 };
6300
6301 struct named_init {
6302 int number;
6303 const wchar_t *name;
6304 double average;
6305 };
6306
6307 typedef const char *ccp;
6308
6309 static inline int
6310 test_restrict (ccp restrict text)
6311 {
6312 // See if C++-style comments work.
6313 // Iterate through items via the restricted pointer.
6314 // Also check for declarations in for loops.
6315 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6316 continue;
6317 return 0;
6318 }
6319
6320 // Check varargs and va_copy.
6321 static void
6322 test_varargs (const char *format, ...)
6323 {
6324 va_list args;
6325 va_start (args, format);
6326 va_list args_copy;
6327 va_copy (args_copy, args);
6328
6329 const char *str;
6330 int number;
6331 float fnumber;
6332
6333 while (*format)
6334 {
6335 switch (*format++)
6336 {
6337 case 's': // string
6338 str = va_arg (args_copy, const char *);
6339 break;
6340 case 'd': // int
6341 number = va_arg (args_copy, int);
6342 break;
6343 case 'f': // float
6344 fnumber = va_arg (args_copy, double);
6345 break;
6346 default:
6347 break;
6348 }
6349 }
6350 va_end (args_copy);
6351 va_end (args);
6352 }
6353
6354 int
6355 main ()
6356 {
6357
6358 // Check bool.
6359 _Bool success = false;
6360
6361 // Check restrict.
6362 if (test_restrict ("String literal") == 0)
6363 success = true;
6364 char *restrict newvar = "Another string";
6365
6366 // Check varargs.
6367 test_varargs ("s, d' f .", "string", 65, 34.234);
6368 test_varargs_macros ();
6369
6370 // Check flexible array members.
6371 struct incomplete_array *ia =
6372 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6373 ia->datasize = 10;
6374 for (int i = 0; i < ia->datasize; ++i)
6375 ia->data[i] = i * 1.234;
6376
6377 // Check named initializers.
6378 struct named_init ni = {
6379 .number = 34,
6380 .name = L"Test wide string",
6381 .average = 543.34343,
6382 };
6383
6384 ni.number = 58;
6385
6386 int dynamic_array[ni.number];
6387 dynamic_array[ni.number - 1] = 543;
6388
6389 // work around unused variable warnings
6390 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6391 || dynamic_array[ni.number - 1] != 543);
6392
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6398 do
6399 CC="$ac_save_CC $ac_arg"
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401 ac_cv_prog_cc_c99=$ac_arg
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext
6404 test "x$ac_cv_prog_cc_c99" != "xno" && break
6405 done
6406 rm -f conftest.$ac_ext
6407 CC=$ac_save_CC
6408
6409 fi
6410 # AC_CACHE_VAL
6411 case "x$ac_cv_prog_cc_c99" in
6412 x)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6414 $as_echo "none needed" >&6; } ;;
6415 xno)
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6417 $as_echo "unsupported" >&6; } ;;
6418 *)
6419 CC="$CC $ac_cv_prog_cc_c99"
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6421 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6422 esac
6423 if test "x$ac_cv_prog_cc_c99" != xno; then :
6424 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6425 else
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6427 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6428 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 ac_cv_prog_cc_c89=no
6432 ac_save_CC=$CC
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435 #include <stdarg.h>
6436 #include <stdio.h>
6437 #include <sys/types.h>
6438 #include <sys/stat.h>
6439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6440 struct buf { int x; };
6441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6442 static char *e (p, i)
6443 char **p;
6444 int i;
6445 {
6446 return p[i];
6447 }
6448 static char *f (char * (*g) (char **, int), char **p, ...)
6449 {
6450 char *s;
6451 va_list v;
6452 va_start (v,p);
6453 s = g (p, va_arg (v,int));
6454 va_end (v);
6455 return s;
6456 }
6457
6458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6459 function prototypes and stuff, but not '\xHH' hex character constants.
6460 These don't provoke an error unfortunately, instead are silently treated
6461 as 'x'. The following induces an error, until -std is added to get
6462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6463 array size at least. It's necessary to write '\x00'==0 to get something
6464 that's true only with -std. */
6465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6466
6467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6468 inside strings and character constants. */
6469 #define FOO(x) 'x'
6470 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6471
6472 int test (int i, double x);
6473 struct s1 {int (*f) (int a);};
6474 struct s2 {int (*f) (double a);};
6475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6476 int argc;
6477 char **argv;
6478 int
6479 main ()
6480 {
6481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6488 do
6489 CC="$ac_save_CC $ac_arg"
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 ac_cv_prog_cc_c89=$ac_arg
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext
6494 test "x$ac_cv_prog_cc_c89" != "xno" && break
6495 done
6496 rm -f conftest.$ac_ext
6497 CC=$ac_save_CC
6498
6499 fi
6500 # AC_CACHE_VAL
6501 case "x$ac_cv_prog_cc_c89" in
6502 x)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6504 $as_echo "none needed" >&6; } ;;
6505 xno)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6507 $as_echo "unsupported" >&6; } ;;
6508 *)
6509 CC="$CC $ac_cv_prog_cc_c89"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6511 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6512 esac
6513 if test "x$ac_cv_prog_cc_c89" != xno; then :
6514 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6515 else
6516 ac_cv_prog_cc_stdc=no
6517 fi
6518
6519 fi
6520 ;;
6521 esac
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6523 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6524 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6526 fi
6527
6528 case $ac_cv_prog_cc_stdc in #(
6529 no) :
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6531 $as_echo "unsupported" >&6; } ;; #(
6532 '') :
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6534 $as_echo "none needed" >&6; } ;; #(
6535 *) :
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6537 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6538 esac
6539
6540
6541
6542 # Code from module alloca-opt:
6543 # Code from module allocator:
6544 # Code from module arg-nonnull:
6545 # Code from module c++defs:
6546 # Code from module careadlinkat:
6547 # Code from module crypto/md5:
6548 # Code from module crypto/sha1:
6549 # Code from module crypto/sha256:
6550 # Code from module crypto/sha512:
6551 # Code from module dosname:
6552 # Code from module dtoastr:
6553 # Code from module dup2:
6554 # Code from module extensions:
6555
6556 # Code from module filemode:
6557 # Code from module getloadavg:
6558 # Code from module getopt-gnu:
6559 # Code from module getopt-posix:
6560 # Code from module gettext-h:
6561 # Code from module ignore-value:
6562 # Code from module include_next:
6563 # Code from module intprops:
6564 # Code from module inttypes-incomplete:
6565 # Code from module lstat:
6566 # Code from module mktime:
6567 # Code from module multiarch:
6568 # Code from module readlink:
6569 # Code from module socklen:
6570 # Code from module ssize_t:
6571 # Code from module stat:
6572 # Code from module stdarg:
6573
6574 # Code from module stdbool:
6575 # Code from module stddef:
6576 # Code from module stdint:
6577 # Code from module stdio:
6578 # Code from module stdlib:
6579 # Code from module strftime:
6580 # Code from module strtoull:
6581 # Code from module strtoumax:
6582 # Code from module symlink:
6583 # Code from module sys_stat:
6584 # Code from module time:
6585 # Code from module time_r:
6586 # Code from module u64:
6587 # Code from module unistd:
6588 # Code from module verify:
6589 # Code from module warn-on-use:
6590
6591
6592 # On Suns, sometimes $CPP names a directory.
6593 if test -n "$CPP" && test -d "$CPP"; then
6594 CPP=
6595 fi
6596
6597 ## If not using gcc, and on Solaris, and no CPP specified, see if
6598 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6599 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6600 test x"$CPP" = x; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6602 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6603 if test "${emacs_cv_sunpro_c+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608
6609 int
6610 main ()
6611 {
6612 #ifndef __SUNPRO_C
6613 fail;
6614 #endif
6615
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 if ac_fn_c_try_link "$LINENO"; then :
6621 emacs_cv_sunpro_c=yes
6622 else
6623 emacs_cv_sunpro_c=no
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 fi
6628
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6630 $as_echo "$emacs_cv_sunpro_c" >&6; }
6631
6632 if test x"$emacs_cv_sunpro_c" = xyes; then
6633 NON_GNU_CPP="$CC -E -Xs"
6634 fi
6635 fi
6636
6637 #### Some systems specify a CPP to use unless we are using GCC.
6638 #### Now that we know whether we are using GCC, we can decide whether
6639 #### to use that one.
6640 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6641 then
6642 CPP="$NON_GNU_CPP"
6643 fi
6644
6645 #### Some systems specify a CC to use unless we are using GCC.
6646 #### Now that we know whether we are using GCC, we can decide whether
6647 #### to use that one.
6648 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6649 test x$cc_specified != xyes
6650 then
6651 CC="$NON_GNU_CC"
6652 fi
6653
6654 if test x$GCC = xyes; then
6655 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6656 else
6657 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6658 fi
6659
6660 ### Use -Wdeclaration-after-statement if the compiler supports it
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6662 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6663 SAVE_CFLAGS="$CFLAGS"
6664 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667
6668 int
6669 main ()
6670 {
6671
6672 ;
6673 return 0;
6674 }
6675 _ACEOF
6676 if ac_fn_c_try_compile "$LINENO"; then :
6677 has_option=yes
6678 else
6679 has_option=no
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 if test $has_option = yes; then
6683 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6686 $as_echo "$has_option" >&6; }
6687 CFLAGS="$SAVE_CFLAGS"
6688 unset has_option
6689 unset SAVE_CFLAGS
6690
6691 ### Use -Wold-style-definition if the compiler supports it
6692 # This can be removed when conversion to standard C is finished.
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6694 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6695 SAVE_CFLAGS="$CFLAGS"
6696 CFLAGS="$CFLAGS -Wold-style-definition"
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699
6700 int
6701 main ()
6702 {
6703
6704 ;
6705 return 0;
6706 }
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 has_option=yes
6710 else
6711 has_option=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 if test $has_option = yes; then
6715 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6718 $as_echo "$has_option" >&6; }
6719 CFLAGS="$SAVE_CFLAGS"
6720 unset has_option
6721 unset SAVE_CFLAGS
6722
6723 ### Use -Wimplicit-function-declaration if the compiler supports it
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6725 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6726 SAVE_CFLAGS="$CFLAGS"
6727 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730
6731 int
6732 main ()
6733 {
6734
6735 ;
6736 return 0;
6737 }
6738 _ACEOF
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740 has_option=yes
6741 else
6742 has_option=no
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 if test $has_option = yes; then
6746 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6749 $as_echo "$has_option" >&6; }
6750 CFLAGS="$SAVE_CFLAGS"
6751 unset has_option
6752 unset SAVE_CFLAGS
6753
6754
6755
6756
6757 #### Some other nice autoconf tests.
6758
6759 ac_ext=c
6760 ac_cpp='$CPP $CPPFLAGS'
6761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6765 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6766 # On Suns, sometimes $CPP names a directory.
6767 if test -n "$CPP" && test -d "$CPP"; then
6768 CPP=
6769 fi
6770 if test -z "$CPP"; then
6771 if test "${ac_cv_prog_CPP+set}" = set; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 # Double quotes because CPP needs to be expanded
6775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6776 do
6777 ac_preproc_ok=false
6778 for ac_c_preproc_warn_flag in '' yes
6779 do
6780 # Use a header file that comes with gcc, so configuring glibc
6781 # with a fresh cross-compiler works.
6782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6783 # <limits.h> exists even on freestanding compilers.
6784 # On the NeXT, cc -E runs the code through the compiler's parser,
6785 # not just through cpp. "Syntax error" is here to catch this case.
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 #ifdef __STDC__
6789 # include <limits.h>
6790 #else
6791 # include <assert.h>
6792 #endif
6793 Syntax error
6794 _ACEOF
6795 if ac_fn_c_try_cpp "$LINENO"; then :
6796
6797 else
6798 # Broken: fails on valid input.
6799 continue
6800 fi
6801 rm -f conftest.err conftest.$ac_ext
6802
6803 # OK, works on sane cases. Now check whether nonexistent headers
6804 # can be detected and how.
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 #include <ac_nonexistent.h>
6808 _ACEOF
6809 if ac_fn_c_try_cpp "$LINENO"; then :
6810 # Broken: success on invalid input.
6811 continue
6812 else
6813 # Passes both tests.
6814 ac_preproc_ok=:
6815 break
6816 fi
6817 rm -f conftest.err conftest.$ac_ext
6818
6819 done
6820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6821 rm -f conftest.err conftest.$ac_ext
6822 if $ac_preproc_ok; then :
6823 break
6824 fi
6825
6826 done
6827 ac_cv_prog_CPP=$CPP
6828
6829 fi
6830 CPP=$ac_cv_prog_CPP
6831 else
6832 ac_cv_prog_CPP=$CPP
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6835 $as_echo "$CPP" >&6; }
6836 ac_preproc_ok=false
6837 for ac_c_preproc_warn_flag in '' yes
6838 do
6839 # Use a header file that comes with gcc, so configuring glibc
6840 # with a fresh cross-compiler works.
6841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6842 # <limits.h> exists even on freestanding compilers.
6843 # On the NeXT, cc -E runs the code through the compiler's parser,
6844 # not just through cpp. "Syntax error" is here to catch this case.
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #ifdef __STDC__
6848 # include <limits.h>
6849 #else
6850 # include <assert.h>
6851 #endif
6852 Syntax error
6853 _ACEOF
6854 if ac_fn_c_try_cpp "$LINENO"; then :
6855
6856 else
6857 # Broken: fails on valid input.
6858 continue
6859 fi
6860 rm -f conftest.err conftest.$ac_ext
6861
6862 # OK, works on sane cases. Now check whether nonexistent headers
6863 # can be detected and how.
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <ac_nonexistent.h>
6867 _ACEOF
6868 if ac_fn_c_try_cpp "$LINENO"; then :
6869 # Broken: success on invalid input.
6870 continue
6871 else
6872 # Passes both tests.
6873 ac_preproc_ok=:
6874 break
6875 fi
6876 rm -f conftest.err conftest.$ac_ext
6877
6878 done
6879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6880 rm -f conftest.err conftest.$ac_ext
6881 if $ac_preproc_ok; then :
6882
6883 else
6884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6886 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6887 See \`config.log' for more details." "$LINENO" 5; }
6888 fi
6889
6890 ac_ext=c
6891 ac_cpp='$CPP $CPPFLAGS'
6892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6895
6896
6897 if test "x$RANLIB" = x; then
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -n "$RANLIB"; then
6907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 RANLIB=$ac_cv_prog_RANLIB
6927 if test -n "$RANLIB"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6929 $as_echo "$RANLIB" >&6; }
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935
6936 fi
6937 if test -z "$ac_cv_prog_RANLIB"; then
6938 ac_ct_RANLIB=$RANLIB
6939 # Extract the first word of "ranlib", so it can be a program name with args.
6940 set dummy ranlib; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$ac_ct_RANLIB"; then
6947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_ac_ct_RANLIB="ranlib"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6967 if test -n "$ac_ct_RANLIB"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6969 $as_echo "$ac_ct_RANLIB" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975 if test "x$ac_ct_RANLIB" = x; then
6976 RANLIB=":"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984 RANLIB=$ac_ct_RANLIB
6985 fi
6986 else
6987 RANLIB="$ac_cv_prog_RANLIB"
6988 fi
6989
6990 fi
6991
6992 ## Although we're running on an amd64 kernel, we're actually compiling for
6993 ## the x86 architecture. The user should probably have provided an
6994 ## explicit --build to `configure', but if everything else than the kernel
6995 ## is running in i386 mode, we can help them out.
6996 if test "$machine" = "amdx86-64"; then
6997 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6998 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6999
7000 fi
7001
7002 if test "$ac_cv_have_decl_i386" = "yes"; then
7003 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7004 machine=intel386
7005 machfile="m/${machine}.h"
7006 fi
7007 fi
7008
7009 # Extract the first word of "install-info", so it can be a program name with args.
7010 set dummy install-info; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 case $INSTALL_INFO in
7017 [\\/]* | ?:[\\/]*)
7018 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7019 ;;
7020 *)
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7031 fi
7032 done
7033 done
7034 IFS=$as_save_IFS
7035
7036 ;;
7037 esac
7038 fi
7039 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7040 if test -n "$INSTALL_INFO"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7042 $as_echo "$INSTALL_INFO" >&6; }
7043 else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048
7049 # Extract the first word of "install-info", so it can be a program name with args.
7050 set dummy install-info; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 case $INSTALL_INFO in
7057 [\\/]* | ?:[\\/]*)
7058 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7059 ;;
7060 *)
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in /usr/sbin
7063 do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076 ;;
7077 esac
7078 fi
7079 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7080 if test -n "$INSTALL_INFO"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7082 $as_echo "$INSTALL_INFO" >&6; }
7083 else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7086 fi
7087
7088
7089 # Extract the first word of "install-info", so it can be a program name with args.
7090 set dummy install-info; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 case $INSTALL_INFO in
7097 [\\/]* | ?:[\\/]*)
7098 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7099 ;;
7100 *)
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in /sbin
7103 do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112 done
7113 done
7114 IFS=$as_save_IFS
7115
7116 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7117 ;;
7118 esac
7119 fi
7120 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7121 if test -n "$INSTALL_INFO"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7123 $as_echo "$INSTALL_INFO" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7128
7129
7130 # Extract the first word of "gzip", so it can be a program name with args.
7131 set dummy gzip; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 case $GZIP_PROG in
7138 [\\/]* | ?:[\\/]*)
7139 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7140 ;;
7141 *)
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157 ;;
7158 esac
7159 fi
7160 GZIP_PROG=$ac_cv_path_GZIP_PROG
7161 if test -n "$GZIP_PROG"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7163 $as_echo "$GZIP_PROG" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169
7170
7171
7172 ## Need makeinfo >= 4.6 (?) to build the manuals.
7173 # Extract the first word of "makeinfo", so it can be a program name with args.
7174 set dummy makeinfo; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 case $MAKEINFO in
7181 [\\/]* | ?:[\\/]*)
7182 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7183 ;;
7184 *)
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7201 ;;
7202 esac
7203 fi
7204 MAKEINFO=$ac_cv_path_MAKEINFO
7205 if test -n "$MAKEINFO"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7207 $as_echo "$MAKEINFO" >&6; }
7208 else
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7211 fi
7212
7213
7214 if test "$MAKEINFO" != "no" && \
7215 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
7216 MAKEINFO=no
7217 fi
7218
7219 ## Makeinfo is unusual. For a released Emacs, the manuals are
7220 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7221 ## therefore in the category of "special tools" not normally required, which
7222 ## configure does not have to check for (eg autoconf itself).
7223 ## In a Bazaar checkout on the other hand, the manuals are not included.
7224 ## So makeinfo is a requirement to build from Bazaar, and configure
7225 ## should test for it as it does for any other build requirement.
7226 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7227 ## with pre-built manuals, from a Bazaar checkout.
7228 HAVE_MAKEINFO=yes
7229
7230 if test "$MAKEINFO" = "no"; then
7231 MAKEINFO=makeinfo
7232 if test "x${with_makeinfo}" = "xno"; then
7233 HAVE_MAKEINFO=no
7234 elif test ! -e $srcdir/info/emacs; then
7235 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7236 source tree does not seem to have pre-built manuals in the \`info' directory.
7237 Either install a suitable version of makeinfo, or re-run configure
7238 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7239 fi
7240 fi
7241
7242
7243
7244 if test x$GCC = xyes; then
7245 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7246 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7247 else
7248 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7249 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7250 fi
7251
7252
7253 late_LDFLAGS=$LDFLAGS
7254 if test x$GCC = xyes; then
7255 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7256 else
7257 LDFLAGS="$LDFLAGS -znocombreloc"
7258 fi
7259
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7261 $as_echo_n "checking for -znocombreloc... " >&6; }
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7264
7265 int
7266 main ()
7267 {
7268
7269 ;
7270 return 0;
7271 }
7272 _ACEOF
7273 if ac_fn_c_try_link "$LINENO"; then :
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7275 $as_echo "yes" >&6; }
7276 else
7277 LDFLAGS=$late_LDFLAGS
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext \
7282 conftest$ac_exeext conftest.$ac_ext
7283
7284
7285 # The value of CPP is a quoted variable reference, so we need to do this
7286 # to get its actual value...
7287 CPP=`eval "echo $CPP"`
7288
7289
7290 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7291 case "$opsys" in
7292 your-opsys-here) CANNOT_DUMP=yes ;;
7293 esac
7294
7295 test "$CANNOT_DUMP" = "yes" && \
7296
7297 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7298
7299
7300
7301
7302
7303 UNEXEC_OBJ=unexelf.o
7304 case "$opsys" in
7305 # MSDOS uses unexcoff.o
7306 # MSWindows uses unexw32.o
7307 aix4-2)
7308 UNEXEC_OBJ=unexaix.o
7309 ;;
7310 cygwin)
7311 UNEXEC_OBJ=unexcw.o
7312 ;;
7313 darwin)
7314 UNEXEC_OBJ=unexmacosx.o
7315 ;;
7316 hpux10-20 | hpux11)
7317 UNEXEC_OBJ=unexhp9k800.o
7318 ;;
7319 sol2-10)
7320 # Use the Solaris dldump() function, called from unexsol.c, to dump
7321 # emacs, instead of the generic ELF dump code found in unexelf.c.
7322 # The resulting binary has a complete symbol table, and is better
7323 # for debugging and other observability tools (debuggers, pstack, etc).
7324 #
7325 # If you encounter a problem using dldump(), please consider sending
7326 # a message to the OpenSolaris tools-linking mailing list:
7327 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7328 #
7329 # It is likely that dldump() works with older Solaris too, but this has
7330 # not been tested, so for now this change is for Solaris 10 or newer.
7331 UNEXEC_OBJ=unexsol.o
7332 ;;
7333 esac
7334
7335 LD_SWITCH_SYSTEM=
7336 case "$opsys" in
7337 freebsd)
7338 ## Let `ld' find image libs and similar things in /usr/local/lib.
7339 ## The system compiler, GCC, has apparently been modified to not
7340 ## look there, contrary to what a stock GCC would do.
7341 LD_SWITCH_SYSTEM=-L/usr/local/lib
7342 ;;
7343
7344 gnu-linux)
7345 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7346 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7347 ;;
7348
7349 netbsd)
7350 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7351 ;;
7352
7353 openbsd)
7354 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7355 ## otherwise Emacs dumps core on elf systems.
7356 LD_SWITCH_SYSTEM="-Z"
7357 ;;
7358 esac
7359
7360
7361 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7362
7363 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7364 ## which has not been defined yet. When this was handled with cpp,
7365 ## it was expanded to null when configure sourced the s/*.h file.
7366 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7367 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7368 ## (or somesuch), but because it is supposed to go at the _front_
7369 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7370 ## Compare with the gnu-linux case below, which added to the end
7371 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7372 ## LD_SWITCH_SYSTEM_TEMACS.
7373 case "$opsys" in
7374 netbsd|openbsd)
7375 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7376 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7377 esac
7378
7379
7380 C_SWITCH_MACHINE=
7381 if test "$machine" = "alpha"; then
7382 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7383 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7384
7385 fi
7386
7387 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7388 ## With ELF, make sure that all common symbols get allocated to in the
7389 ## data section. Otherwise, the dump of temacs may miss variables in
7390 ## the shared library that have been initialized. For example, with
7391 ## GNU libc, __malloc_initialized would normally be resolved to the
7392 ## shared library's .bss section, which is fatal.
7393 if test "x$GCC" = "xyes"; then
7394 C_SWITCH_MACHINE="-fno-common"
7395 else
7396 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7397 fi
7398 else
7399 UNEXEC_OBJ=unexalpha.o
7400 fi
7401 fi
7402
7403
7404
7405
7406 C_SWITCH_SYSTEM=
7407 ## Some programs in src produce warnings saying certain subprograms
7408 ## are too complex and need a MAXMEM value greater than 2000 for
7409 ## additional optimization. --nils@exp-math.uni-essen.de
7410 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7411 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7412 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7413 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7414
7415
7416
7417 LIBS_SYSTEM=
7418 case "$opsys" in
7419 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7420 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7421
7422 freebsd) LIBS_SYSTEM="-lutil" ;;
7423
7424 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7425
7426 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7427
7428 ## Motif needs -lgen.
7429 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7430 esac
7431
7432
7433
7434 ### Make sure subsequent tests use flags consistent with the build flags.
7435
7436 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7437 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7438 else
7439 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7440 fi
7441
7442 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7443
7444
7445 # Check whether --enable-largefile was given.
7446 if test "${enable_largefile+set}" = set; then :
7447 enableval=$enable_largefile;
7448 fi
7449
7450 if test "$enable_largefile" != no; then
7451
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7453 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7454 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 ac_cv_sys_largefile_CC=no
7458 if test "$GCC" != yes; then
7459 ac_save_CC=$CC
7460 while :; do
7461 # IRIX 6.2 and later do not support large files by default,
7462 # so use the C compiler's -n32 option if that helps.
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <sys/types.h>
7466 /* Check that off_t can represent 2**63 - 1 correctly.
7467 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7468 since some C++ compilers masquerading as C compilers
7469 incorrectly reject 9223372036854775807. */
7470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7471 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7472 && LARGE_OFF_T % 2147483647 == 1)
7473 ? 1 : -1];
7474 int
7475 main ()
7476 {
7477
7478 ;
7479 return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483 break
7484 fi
7485 rm -f core conftest.err conftest.$ac_objext
7486 CC="$CC -n32"
7487 if ac_fn_c_try_compile "$LINENO"; then :
7488 ac_cv_sys_largefile_CC=' -n32'; break
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext
7491 break
7492 done
7493 CC=$ac_save_CC
7494 rm -f conftest.$ac_ext
7495 fi
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7498 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7499 if test "$ac_cv_sys_largefile_CC" != no; then
7500 CC=$CC$ac_cv_sys_largefile_CC
7501 fi
7502
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7504 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7505 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 while :; do
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511 #include <sys/types.h>
7512 /* Check that off_t can represent 2**63 - 1 correctly.
7513 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7514 since some C++ compilers masquerading as C compilers
7515 incorrectly reject 9223372036854775807. */
7516 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7517 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7518 && LARGE_OFF_T % 2147483647 == 1)
7519 ? 1 : -1];
7520 int
7521 main ()
7522 {
7523
7524 ;
7525 return 0;
7526 }
7527 _ACEOF
7528 if ac_fn_c_try_compile "$LINENO"; then :
7529 ac_cv_sys_file_offset_bits=no; break
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #define _FILE_OFFSET_BITS 64
7535 #include <sys/types.h>
7536 /* Check that off_t can represent 2**63 - 1 correctly.
7537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7538 since some C++ compilers masquerading as C compilers
7539 incorrectly reject 9223372036854775807. */
7540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7542 && LARGE_OFF_T % 2147483647 == 1)
7543 ? 1 : -1];
7544 int
7545 main ()
7546 {
7547
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 if ac_fn_c_try_compile "$LINENO"; then :
7553 ac_cv_sys_file_offset_bits=64; break
7554 fi
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 ac_cv_sys_file_offset_bits=unknown
7557 break
7558 done
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7561 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7562 case $ac_cv_sys_file_offset_bits in #(
7563 no | unknown) ;;
7564 *)
7565 cat >>confdefs.h <<_ACEOF
7566 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7567 _ACEOF
7568 ;;
7569 esac
7570 rm -rf conftest*
7571 if test $ac_cv_sys_file_offset_bits = unknown; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7573 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7574 if test "${ac_cv_sys_large_files+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 while :; do
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 #include <sys/types.h>
7581 /* Check that off_t can represent 2**63 - 1 correctly.
7582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7583 since some C++ compilers masquerading as C compilers
7584 incorrectly reject 9223372036854775807. */
7585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7587 && LARGE_OFF_T % 2147483647 == 1)
7588 ? 1 : -1];
7589 int
7590 main ()
7591 {
7592
7593 ;
7594 return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"; then :
7598 ac_cv_sys_large_files=no; break
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603 #define _LARGE_FILES 1
7604 #include <sys/types.h>
7605 /* Check that off_t can represent 2**63 - 1 correctly.
7606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7607 since some C++ compilers masquerading as C compilers
7608 incorrectly reject 9223372036854775807. */
7609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7611 && LARGE_OFF_T % 2147483647 == 1)
7612 ? 1 : -1];
7613 int
7614 main ()
7615 {
7616
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 ac_cv_sys_large_files=1; break
7623 fi
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 ac_cv_sys_large_files=unknown
7626 break
7627 done
7628 fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7630 $as_echo "$ac_cv_sys_large_files" >&6; }
7631 case $ac_cv_sys_large_files in #(
7632 no | unknown) ;;
7633 *)
7634 cat >>confdefs.h <<_ACEOF
7635 #define _LARGE_FILES $ac_cv_sys_large_files
7636 _ACEOF
7637 ;;
7638 esac
7639 rm -rf conftest*
7640 fi
7641 fi
7642
7643
7644
7645 ## If user specified a crt-dir, use that unconditionally.
7646 if test "X$CRT_DIR" = "X"; then
7647
7648 case "$canonical" in
7649 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7650 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7651 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7652 ## For anything else (eg /usr/lib32), it is up the user to specify
7653 ## the location (bug#5655).
7654 ## Test for crtn.o, not just the directory, because sometimes the
7655 ## directory exists but does not have the relevant files (bug#1287).
7656 ## FIXME better to test for binary compatibility somehow.
7657 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7658 ;;
7659
7660 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7661 esac
7662
7663 case "$opsys" in
7664 hpux10-20) CRT_DIR=/lib ;;
7665 esac
7666
7667 ## Default is /usr/lib.
7668 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7669
7670 ## If we're using gcc, try to determine it automatically by asking
7671 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7672 ## system-dependent default from above.]
7673 if test "x${GCC}" = xyes; then
7674 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
7675 case "$crt_file" in
7676 */*)
7677 CRT_DIR=`$as_dirname -- "$crt_file" ||
7678 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7679 X"$crt_file" : 'X\(//\)[^/]' \| \
7680 X"$crt_file" : 'X\(//\)$' \| \
7681 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7682 $as_echo X"$crt_file" |
7683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7684 s//\1/
7685 q
7686 }
7687 /^X\(\/\/\)[^/].*/{
7688 s//\1/
7689 q
7690 }
7691 /^X\(\/\/\)$/{
7692 s//\1/
7693 q
7694 }
7695 /^X\(\/\).*/{
7696 s//\1/
7697 q
7698 }
7699 s/.*/./; q'`
7700 ;;
7701 esac
7702 fi
7703
7704 else
7705
7706 ## Some platforms don't use any of these files, so it is not
7707 ## appropriate to put this test outside the if block.
7708 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7709 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7710
7711 fi
7712
7713
7714
7715 LIB_MATH=-lm
7716 LIB_STANDARD=
7717 START_FILES=
7718
7719 case $opsys in
7720 cygwin )
7721 LIB_MATH=
7722 START_FILES='pre-crt0.o'
7723 ;;
7724 darwin )
7725 ## Adding -lm confuses the dynamic linker, so omit it.
7726 LIB_MATH=
7727 START_FILES='pre-crt0.o'
7728 ;;
7729 freebsd )
7730 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7731 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7732 ;;
7733 gnu-linux | gnu-kfreebsd )
7734 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7735 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7736 ;;
7737 hpux10-20 | hpux11 )
7738 LIB_STANDARD=-lc
7739 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7740 ;;
7741 netbsd | openbsd )
7742 if test -f $CRT_DIR/crti.o; then
7743 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7744 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7745 else
7746 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7747 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7748 fi
7749 ;;
7750 esac
7751
7752
7753
7754
7755
7756
7757
7758 if test "${with_sound}" != "no"; then
7759 # Sound support for GNU/Linux and the free BSDs.
7760 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7761 do :
7762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7763 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7764 eval as_val=\$$as_ac_Header
7765 if test "x$as_val" = x""yes; then :
7766 cat >>confdefs.h <<_ACEOF
7767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7768 _ACEOF
7769 have_sound_header=yes
7770 fi
7771
7772 done
7773
7774 # Emulation library used on NetBSD.
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7776 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7777 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 ac_check_lib_save_LIBS=$LIBS
7781 LIBS="-lossaudio $LIBS"
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784
7785 /* Override any GCC internal prototype to avoid an error.
7786 Use char because int might match the return type of a GCC
7787 builtin and then its argument prototype would still apply. */
7788 #ifdef __cplusplus
7789 extern "C"
7790 #endif
7791 char _oss_ioctl ();
7792 int
7793 main ()
7794 {
7795 return _oss_ioctl ();
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then :
7801 ac_cv_lib_ossaudio__oss_ioctl=yes
7802 else
7803 ac_cv_lib_ossaudio__oss_ioctl=no
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 LIBS=$ac_check_lib_save_LIBS
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7810 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7811 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7812 LIBSOUND=-lossaudio
7813 else
7814 LIBSOUND=
7815 fi
7816
7817
7818
7819 ALSA_REQUIRED=1.0.0
7820 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7821
7822 succeeded=no
7823
7824 # Extract the first word of "pkg-config", so it can be a program name with args.
7825 set dummy pkg-config; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 case $PKG_CONFIG in
7832 [\\/]* | ?:[\\/]*)
7833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7834 ;;
7835 *)
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847 done
7848 done
7849 IFS=$as_save_IFS
7850
7851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7852 ;;
7853 esac
7854 fi
7855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7856 if test -n "$PKG_CONFIG"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7858 $as_echo "$PKG_CONFIG" >&6; }
7859 else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7862 fi
7863
7864
7865
7866 if test "$PKG_CONFIG" = "no" ; then
7867 HAVE_ALSA=no
7868 else
7869 PKG_CONFIG_MIN_VERSION=0.9.0
7870 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7872 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7873
7874 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7876 $as_echo "yes" >&6; }
7877 succeeded=yes
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7880 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7881 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7883 $as_echo "$ALSA_CFLAGS" >&6; }
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7886 $as_echo_n "checking ALSA_LIBS... " >&6; }
7887 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7889 $as_echo "$ALSA_LIBS" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 ALSA_CFLAGS=""
7894 ALSA_LIBS=""
7895 ## If we have a custom action on failure, don't print errors, but
7896 ## do set a variable so people can do so.
7897 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7898
7899 fi
7900
7901
7902
7903 else
7904 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7905 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7906 fi
7907 fi
7908
7909 if test $succeeded = yes; then
7910 HAVE_ALSA=yes
7911 else
7912 HAVE_ALSA=no
7913 fi
7914
7915 if test $HAVE_ALSA = yes; then
7916 SAVE_CFLAGS="$CFLAGS"
7917 SAVE_LDFLAGS="$LDFLAGS"
7918 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7919 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 #include <asoundlib.h>
7923 int
7924 main ()
7925 {
7926 snd_lib_error_set_handler (0);
7927 ;
7928 return 0;
7929 }
7930 _ACEOF
7931 if ac_fn_c_try_compile "$LINENO"; then :
7932 emacs_alsa_normal=yes
7933 else
7934 emacs_alsa_normal=no
7935 fi
7936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 if test "$emacs_alsa_normal" != yes; then
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #include <alsa/asoundlib.h>
7941 int
7942 main ()
7943 {
7944 snd_lib_error_set_handler (0);
7945 ;
7946 return 0;
7947 }
7948 _ACEOF
7949 if ac_fn_c_try_compile "$LINENO"; then :
7950 emacs_alsa_subdir=yes
7951 else
7952 emacs_alsa_subdir=no
7953 fi
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 if test "$emacs_alsa_subdir" != yes; then
7956 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7957 fi
7958 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7959 fi
7960
7961 CFLAGS="$SAVE_CFLAGS"
7962 LDFLAGS="$SAVE_LDFLAGS"
7963 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7964 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7965
7966 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7967
7968 fi
7969
7970 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7971 case "$opsys" in
7972 gnu-linux|freebsd|netbsd)
7973
7974 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7975
7976 ;;
7977 esac
7978 fi
7979
7980
7981 fi
7982
7983 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7984 linux/version.h sys/systeminfo.h limits.h \
7985 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7986 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7987 sys/utsname.h pwd.h utmp.h dirent.h util.h
7988 do :
7989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7990 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7991 eval as_val=\$$as_ac_Header
7992 if test "x$as_val" = x""yes; then :
7993 cat >>confdefs.h <<_ACEOF
7994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7995 _ACEOF
7996
7997 fi
7998
7999 done
8000
8001
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8003 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #include <sys/personality.h>
8007 int
8008 main ()
8009 {
8010 personality (PER_LINUX32)
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 emacs_cv_personality_linux32=yes
8017 else
8018 emacs_cv_personality_linux32=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8022 $as_echo "$emacs_cv_personality_linux32" >&6; }
8023
8024 if test $emacs_cv_personality_linux32 = yes; then
8025
8026 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8027
8028 fi
8029
8030 for ac_header in term.h
8031 do :
8032 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8033 if test "x$ac_cv_header_term_h" = x""yes; then :
8034 cat >>confdefs.h <<_ACEOF
8035 #define HAVE_TERM_H 1
8036 _ACEOF
8037
8038 fi
8039
8040 done
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8043 $as_echo_n "checking for ANSI C header files... " >&6; }
8044 if test "${ac_cv_header_stdc+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 #include <stdlib.h>
8050 #include <stdarg.h>
8051 #include <string.h>
8052 #include <float.h>
8053
8054 int
8055 main ()
8056 {
8057
8058 ;
8059 return 0;
8060 }
8061 _ACEOF
8062 if ac_fn_c_try_compile "$LINENO"; then :
8063 ac_cv_header_stdc=yes
8064 else
8065 ac_cv_header_stdc=no
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068
8069 if test $ac_cv_header_stdc = yes; then
8070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #include <string.h>
8074
8075 _ACEOF
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077 $EGREP "memchr" >/dev/null 2>&1; then :
8078
8079 else
8080 ac_cv_header_stdc=no
8081 fi
8082 rm -f conftest*
8083
8084 fi
8085
8086 if test $ac_cv_header_stdc = yes; then
8087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090 #include <stdlib.h>
8091
8092 _ACEOF
8093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8094 $EGREP "free" >/dev/null 2>&1; then :
8095
8096 else
8097 ac_cv_header_stdc=no
8098 fi
8099 rm -f conftest*
8100
8101 fi
8102
8103 if test $ac_cv_header_stdc = yes; then
8104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8105 if test "$cross_compiling" = yes; then :
8106 :
8107 else
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 #include <ctype.h>
8111 #include <stdlib.h>
8112 #if ((' ' & 0x0FF) == 0x020)
8113 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8114 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8115 #else
8116 # define ISLOWER(c) \
8117 (('a' <= (c) && (c) <= 'i') \
8118 || ('j' <= (c) && (c) <= 'r') \
8119 || ('s' <= (c) && (c) <= 'z'))
8120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8121 #endif
8122
8123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8124 int
8125 main ()
8126 {
8127 int i;
8128 for (i = 0; i < 256; i++)
8129 if (XOR (islower (i), ISLOWER (i))
8130 || toupper (i) != TOUPPER (i))
8131 return 2;
8132 return 0;
8133 }
8134 _ACEOF
8135 if ac_fn_c_try_run "$LINENO"; then :
8136
8137 else
8138 ac_cv_header_stdc=no
8139 fi
8140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8141 conftest.$ac_objext conftest.beam conftest.$ac_ext
8142 fi
8143
8144 fi
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8147 $as_echo "$ac_cv_header_stdc" >&6; }
8148 if test $ac_cv_header_stdc = yes; then
8149
8150 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8151
8152 fi
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8155 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8156 if test "${ac_cv_header_time+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 #include <sys/types.h>
8162 #include <sys/time.h>
8163 #include <time.h>
8164
8165 int
8166 main ()
8167 {
8168 if ((struct tm *) 0)
8169 return 0;
8170 ;
8171 return 0;
8172 }
8173 _ACEOF
8174 if ac_fn_c_try_compile "$LINENO"; then :
8175 ac_cv_header_time=yes
8176 else
8177 ac_cv_header_time=no
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8182 $as_echo "$ac_cv_header_time" >&6; }
8183 if test $ac_cv_header_time = yes; then
8184
8185 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8186
8187 fi
8188
8189 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8190 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8191 ac_have_decl=1
8192 else
8193 ac_have_decl=0
8194 fi
8195
8196 cat >>confdefs.h <<_ACEOF
8197 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8198 _ACEOF
8199
8200 if test $ac_cv_have_decl_sys_siglist != yes; then
8201 # For Tru64, at least:
8202 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8203 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8204 ac_have_decl=1
8205 else
8206 ac_have_decl=0
8207 fi
8208
8209 cat >>confdefs.h <<_ACEOF
8210 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8211 _ACEOF
8212
8213 if test $ac_cv_have_decl___sys_siglist = yes; then
8214
8215 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8216
8217 fi
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8220 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8221 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 #include <sys/types.h>
8227 #include <sys/wait.h>
8228 #ifndef WEXITSTATUS
8229 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8230 #endif
8231 #ifndef WIFEXITED
8232 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8233 #endif
8234
8235 int
8236 main ()
8237 {
8238 int s;
8239 wait (&s);
8240 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_compile "$LINENO"; then :
8246 ac_cv_header_sys_wait_h=yes
8247 else
8248 ac_cv_header_sys_wait_h=no
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8253 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8254 if test $ac_cv_header_sys_wait_h = yes; then
8255
8256 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8257
8258 fi
8259
8260
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8262 $as_echo_n "checking for struct utimbuf... " >&6; }
8263 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #ifdef TIME_WITH_SYS_TIME
8269 #include <sys/time.h>
8270 #include <time.h>
8271 #else
8272 #ifdef HAVE_SYS_TIME_H
8273 #include <sys/time.h>
8274 #else
8275 #include <time.h>
8276 #endif
8277 #endif
8278 #ifdef HAVE_UTIME_H
8279 #include <utime.h>
8280 #endif
8281 int
8282 main ()
8283 {
8284 static struct utimbuf x; x.actime = x.modtime;
8285 ;
8286 return 0;
8287 }
8288 _ACEOF
8289 if ac_fn_c_try_compile "$LINENO"; then :
8290 emacs_cv_struct_utimbuf=yes
8291 else
8292 emacs_cv_struct_utimbuf=no
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8297 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8298 if test $emacs_cv_struct_utimbuf = yes; then
8299
8300 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8301
8302 fi
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8305 $as_echo_n "checking for speed_t... " >&6; }
8306 if test "${emacs_cv_speed_t+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 #include <termios.h>
8312 int
8313 main ()
8314 {
8315 speed_t x = 1;
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321 emacs_cv_speed_t=yes
8322 else
8323 emacs_cv_speed_t=no
8324 fi
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8328 $as_echo "$emacs_cv_speed_t" >&6; }
8329 if test $emacs_cv_speed_t = yes; then
8330
8331 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8332
8333 fi
8334
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8336 $as_echo_n "checking for struct timeval... " >&6; }
8337 if test "${emacs_cv_struct_timeval+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342 #ifdef TIME_WITH_SYS_TIME
8343 #include <sys/time.h>
8344 #include <time.h>
8345 #else
8346 #ifdef HAVE_SYS_TIME_H
8347 #include <sys/time.h>
8348 #else
8349 #include <time.h>
8350 #endif
8351 #endif
8352 int
8353 main ()
8354 {
8355 static struct timeval x; x.tv_sec = x.tv_usec;
8356 ;
8357 return 0;
8358 }
8359 _ACEOF
8360 if ac_fn_c_try_compile "$LINENO"; then :
8361 emacs_cv_struct_timeval=yes
8362 else
8363 emacs_cv_struct_timeval=no
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8368 $as_echo "$emacs_cv_struct_timeval" >&6; }
8369 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8370 if test $emacs_cv_struct_timeval = yes; then
8371
8372 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8373
8374 fi
8375
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8377 $as_echo_n "checking for struct exception... " >&6; }
8378 if test "${emacs_cv_struct_exception+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 #include <math.h>
8384 int
8385 main ()
8386 {
8387 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8388 ;
8389 return 0;
8390 }
8391 _ACEOF
8392 if ac_fn_c_try_compile "$LINENO"; then :
8393 emacs_cv_struct_exception=yes
8394 else
8395 emacs_cv_struct_exception=no
8396 fi
8397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 fi
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8400 $as_echo "$emacs_cv_struct_exception" >&6; }
8401 HAVE_EXCEPTION=$emacs_cv_struct_exception
8402 if test $emacs_cv_struct_exception != yes; then
8403
8404 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8405
8406 fi
8407
8408 for ac_header in net/if.h
8409 do :
8410 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8411 #if HAVE_SYS_SOCKET_H
8412 #include <sys/socket.h>
8413 #endif
8414 "
8415 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8416 cat >>confdefs.h <<_ACEOF
8417 #define HAVE_NET_IF_H 1
8418 _ACEOF
8419
8420 fi
8421
8422 done
8423
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8426 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8427 if test "${ac_cv_struct_tm+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8433 #include <time.h>
8434
8435 int
8436 main ()
8437 {
8438 struct tm tm;
8439 int *p = &tm.tm_sec;
8440 return !p;
8441 ;
8442 return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446 ac_cv_struct_tm=time.h
8447 else
8448 ac_cv_struct_tm=sys/time.h
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8453 $as_echo "$ac_cv_struct_tm" >&6; }
8454 if test $ac_cv_struct_tm = sys/time.h; then
8455
8456 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8457
8458 fi
8459
8460 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8461 #include <$ac_cv_struct_tm>
8462
8463 "
8464 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8465
8466 cat >>confdefs.h <<_ACEOF
8467 #define HAVE_STRUCT_TM_TM_ZONE 1
8468 _ACEOF
8469
8470
8471 fi
8472
8473 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8474
8475 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8476
8477 else
8478 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8479 "
8480 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8481 ac_have_decl=1
8482 else
8483 ac_have_decl=0
8484 fi
8485
8486 cat >>confdefs.h <<_ACEOF
8487 #define HAVE_DECL_TZNAME $ac_have_decl
8488 _ACEOF
8489
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8491 $as_echo_n "checking for tzname... " >&6; }
8492 if test "${ac_cv_var_tzname+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #include <time.h>
8498 #if !HAVE_DECL_TZNAME
8499 extern char *tzname[];
8500 #endif
8501
8502 int
8503 main ()
8504 {
8505 return tzname[0][0];
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 if ac_fn_c_try_link "$LINENO"; then :
8511 ac_cv_var_tzname=yes
8512 else
8513 ac_cv_var_tzname=no
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8517 fi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8519 $as_echo "$ac_cv_var_tzname" >&6; }
8520 if test $ac_cv_var_tzname = yes; then
8521
8522 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8523
8524 fi
8525 fi
8526
8527 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8528 "
8529 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8530
8531 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8532
8533 fi
8534
8535 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8536 #if HAVE_SYS_SOCKET_H
8537 #include <sys/socket.h>
8538 #endif
8539 #if HAVE_NET_IF_H
8540 #include <net/if.h>
8541 #endif
8542 "
8543 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8544
8545 cat >>confdefs.h <<_ACEOF
8546 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8547 _ACEOF
8548
8549
8550 fi
8551 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8552 #if HAVE_SYS_SOCKET_H
8553 #include <sys/socket.h>
8554 #endif
8555 #if HAVE_NET_IF_H
8556 #include <net/if.h>
8557 #endif
8558 "
8559 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8560
8561 cat >>confdefs.h <<_ACEOF
8562 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8563 _ACEOF
8564
8565
8566 fi
8567 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8568 #if HAVE_SYS_SOCKET_H
8569 #include <sys/socket.h>
8570 #endif
8571 #if HAVE_NET_IF_H
8572 #include <net/if.h>
8573 #endif
8574 "
8575 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8576
8577 cat >>confdefs.h <<_ACEOF
8578 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8579 _ACEOF
8580
8581
8582 fi
8583 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8584 #if HAVE_SYS_SOCKET_H
8585 #include <sys/socket.h>
8586 #endif
8587 #if HAVE_NET_IF_H
8588 #include <net/if.h>
8589 #endif
8590 "
8591 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8592
8593 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8595 _ACEOF
8596
8597
8598 fi
8599 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8600 #if HAVE_SYS_SOCKET_H
8601 #include <sys/socket.h>
8602 #endif
8603 #if HAVE_NET_IF_H
8604 #include <net/if.h>
8605 #endif
8606 "
8607 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8608
8609 cat >>confdefs.h <<_ACEOF
8610 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8611 _ACEOF
8612
8613
8614 fi
8615
8616
8617
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8619 $as_echo_n "checking for function prototypes... " >&6; }
8620 if test "$ac_cv_prog_cc_c89" != no; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8622 $as_echo "yes" >&6; }
8623
8624 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8625
8626
8627 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8628
8629 else
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8632 fi
8633
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8635 $as_echo_n "checking for working volatile... " >&6; }
8636 if test "${ac_cv_c_volatile+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641
8642 int
8643 main ()
8644 {
8645
8646 volatile int x;
8647 int * volatile y = (int *) 0;
8648 return !x && !y;
8649 ;
8650 return 0;
8651 }
8652 _ACEOF
8653 if ac_fn_c_try_compile "$LINENO"; then :
8654 ac_cv_c_volatile=yes
8655 else
8656 ac_cv_c_volatile=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8661 $as_echo "$ac_cv_c_volatile" >&6; }
8662 if test $ac_cv_c_volatile = no; then
8663
8664 $as_echo "#define volatile /**/" >>confdefs.h
8665
8666 fi
8667
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8669 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8670 if test "${ac_cv_c_const+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675
8676 int
8677 main ()
8678 {
8679 /* FIXME: Include the comments suggested by Paul. */
8680 #ifndef __cplusplus
8681 /* Ultrix mips cc rejects this. */
8682 typedef int charset[2];
8683 const charset cs;
8684 /* SunOS 4.1.1 cc rejects this. */
8685 char const *const *pcpcc;
8686 char **ppc;
8687 /* NEC SVR4.0.2 mips cc rejects this. */
8688 struct point {int x, y;};
8689 static struct point const zero = {0,0};
8690 /* AIX XL C 1.02.0.0 rejects this.
8691 It does not let you subtract one const X* pointer from another in
8692 an arm of an if-expression whose if-part is not a constant
8693 expression */
8694 const char *g = "string";
8695 pcpcc = &g + (g ? g-g : 0);
8696 /* HPUX 7.0 cc rejects these. */
8697 ++pcpcc;
8698 ppc = (char**) pcpcc;
8699 pcpcc = (char const *const *) ppc;
8700 { /* SCO 3.2v4 cc rejects this. */
8701 char *t;
8702 char const *s = 0 ? (char *) 0 : (char const *) 0;
8703
8704 *t++ = 0;
8705 if (s) return 0;
8706 }
8707 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8708 int x[] = {25, 17};
8709 const int *foo = &x[0];
8710 ++foo;
8711 }
8712 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8713 typedef const int *iptr;
8714 iptr p = 0;
8715 ++p;
8716 }
8717 { /* AIX XL C 1.02.0.0 rejects this saying
8718 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8719 struct s { int j; const int *ap[3]; };
8720 struct s *b; b->j = 5;
8721 }
8722 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8723 const int foo = 10;
8724 if (!foo) return 0;
8725 }
8726 return !cs[0] && !zero.x;
8727 #endif
8728
8729 ;
8730 return 0;
8731 }
8732 _ACEOF
8733 if ac_fn_c_try_compile "$LINENO"; then :
8734 ac_cv_c_const=yes
8735 else
8736 ac_cv_c_const=no
8737 fi
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8741 $as_echo "$ac_cv_c_const" >&6; }
8742 if test $ac_cv_c_const = no; then
8743
8744 $as_echo "#define const /**/" >>confdefs.h
8745
8746 fi
8747
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8749 $as_echo_n "checking for void * support... " >&6; }
8750 if test "${emacs_cv_void_star+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755
8756 int
8757 main ()
8758 {
8759 void * foo;
8760 ;
8761 return 0;
8762 }
8763 _ACEOF
8764 if ac_fn_c_try_compile "$LINENO"; then :
8765 emacs_cv_void_star=yes
8766 else
8767 emacs_cv_void_star=no
8768 fi
8769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8772 $as_echo "$emacs_cv_void_star" >&6; }
8773 if test $emacs_cv_void_star = yes; then
8774 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8775
8776 else
8777 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8778
8779 fi
8780
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8782 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8783 if test "${ac_cv_c_bigendian+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 ac_cv_c_bigendian=unknown
8787 # See if we're dealing with a universal compiler.
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 #ifndef __APPLE_CC__
8791 not a universal capable compiler
8792 #endif
8793 typedef int dummy;
8794
8795 _ACEOF
8796 if ac_fn_c_try_compile "$LINENO"; then :
8797
8798 # Check for potential -arch flags. It is not universal unless
8799 # there are at least two -arch flags with different values.
8800 ac_arch=
8801 ac_prev=
8802 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8803 if test -n "$ac_prev"; then
8804 case $ac_word in
8805 i?86 | x86_64 | ppc | ppc64)
8806 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8807 ac_arch=$ac_word
8808 else
8809 ac_cv_c_bigendian=universal
8810 break
8811 fi
8812 ;;
8813 esac
8814 ac_prev=
8815 elif test "x$ac_word" = "x-arch"; then
8816 ac_prev=arch
8817 fi
8818 done
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 if test $ac_cv_c_bigendian = unknown; then
8822 # See if sys/param.h defines the BYTE_ORDER macro.
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 #include <sys/types.h>
8826 #include <sys/param.h>
8827
8828 int
8829 main ()
8830 {
8831 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8832 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8833 && LITTLE_ENDIAN)
8834 bogus endian macros
8835 #endif
8836
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_c_try_compile "$LINENO"; then :
8842 # It does; now see whether it defined to BIG_ENDIAN or not.
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8845 #include <sys/types.h>
8846 #include <sys/param.h>
8847
8848 int
8849 main ()
8850 {
8851 #if BYTE_ORDER != BIG_ENDIAN
8852 not big endian
8853 #endif
8854
8855 ;
8856 return 0;
8857 }
8858 _ACEOF
8859 if ac_fn_c_try_compile "$LINENO"; then :
8860 ac_cv_c_bigendian=yes
8861 else
8862 ac_cv_c_bigendian=no
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 fi
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 fi
8868 if test $ac_cv_c_bigendian = unknown; then
8869 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <limits.h>
8873
8874 int
8875 main ()
8876 {
8877 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8878 bogus endian macros
8879 #endif
8880
8881 ;
8882 return 0;
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_compile "$LINENO"; then :
8886 # It does; now see whether it defined to _BIG_ENDIAN or not.
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 #include <limits.h>
8890
8891 int
8892 main ()
8893 {
8894 #ifndef _BIG_ENDIAN
8895 not big endian
8896 #endif
8897
8898 ;
8899 return 0;
8900 }
8901 _ACEOF
8902 if ac_fn_c_try_compile "$LINENO"; then :
8903 ac_cv_c_bigendian=yes
8904 else
8905 ac_cv_c_bigendian=no
8906 fi
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 fi
8911 if test $ac_cv_c_bigendian = unknown; then
8912 # Compile a test program.
8913 if test "$cross_compiling" = yes; then :
8914 # Try to guess by grepping values from an object file.
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 short int ascii_mm[] =
8918 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8919 short int ascii_ii[] =
8920 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8921 int use_ascii (int i) {
8922 return ascii_mm[i] + ascii_ii[i];
8923 }
8924 short int ebcdic_ii[] =
8925 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8926 short int ebcdic_mm[] =
8927 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8928 int use_ebcdic (int i) {
8929 return ebcdic_mm[i] + ebcdic_ii[i];
8930 }
8931 extern int foo;
8932
8933 int
8934 main ()
8935 {
8936 return use_ascii (foo) == use_ebcdic (foo);
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_compile "$LINENO"; then :
8942 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8943 ac_cv_c_bigendian=yes
8944 fi
8945 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8946 if test "$ac_cv_c_bigendian" = unknown; then
8947 ac_cv_c_bigendian=no
8948 else
8949 # finding both strings is unlikely to happen, but who knows?
8950 ac_cv_c_bigendian=unknown
8951 fi
8952 fi
8953 fi
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955 else
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 $ac_includes_default
8959 int
8960 main ()
8961 {
8962
8963 /* Are we little or big endian? From Harbison&Steele. */
8964 union
8965 {
8966 long int l;
8967 char c[sizeof (long int)];
8968 } u;
8969 u.l = 1;
8970 return u.c[sizeof (long int) - 1] == 1;
8971
8972 ;
8973 return 0;
8974 }
8975 _ACEOF
8976 if ac_fn_c_try_run "$LINENO"; then :
8977 ac_cv_c_bigendian=no
8978 else
8979 ac_cv_c_bigendian=yes
8980 fi
8981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8982 conftest.$ac_objext conftest.beam conftest.$ac_ext
8983 fi
8984
8985 fi
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8988 $as_echo "$ac_cv_c_bigendian" >&6; }
8989 case $ac_cv_c_bigendian in #(
8990 yes)
8991 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8992 ;; #(
8993 no)
8994 ;; #(
8995 universal)
8996
8997 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8998
8999 ;; #(
9000 *)
9001 as_fn_error "unknown endianness
9002 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9003 esac
9004
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9007 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9008 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9013 char __attribute__ ((__aligned__ (1 << 3))) c;
9014 int
9015 main ()
9016 {
9017
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 if ac_fn_c_try_compile "$LINENO"; then :
9023 emacs_cv_attribute_aligned=yes
9024 else
9025 emacs_cv_attribute_aligned=no
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 fi
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9030 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9031 if test $emacs_cv_attribute_aligned = yes; then
9032
9033 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9034
9035 fi
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9038 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9039 set x ${MAKE-make}
9040 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9041 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 cat >conftest.make <<\_ACEOF
9045 SHELL = /bin/sh
9046 all:
9047 @echo '@@@%%%=$(MAKE)=@@@%%%'
9048 _ACEOF
9049 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9050 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9051 *@@@%%%=?*=@@@%%%*)
9052 eval ac_cv_prog_make_${ac_make}_set=yes;;
9053 *)
9054 eval ac_cv_prog_make_${ac_make}_set=no;;
9055 esac
9056 rm -f conftest.make
9057 fi
9058 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9060 $as_echo "yes" >&6; }
9061 SET_MAKE=
9062 else
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9065 SET_MAKE="MAKE=${MAKE-make}"
9066 fi
9067
9068
9069 DEPFLAGS=
9070 MKDEPDIR=":"
9071 deps_frag=deps.mk
9072 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9074 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9075 HAVE_GNU_MAKE=no
9076 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9077 if test "x$testval" != x; then
9078 HAVE_GNU_MAKE=yes
9079 else
9080 ac_enable_autodepend=no
9081 fi
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9083 $as_echo "$HAVE_GNU_MAKE" >&6; }
9084 if test $HAVE_GNU_MAKE = yes; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9086 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9087 SAVE_CFLAGS="$CFLAGS"
9088 CFLAGS="$CFLAGS -MMD -MF deps.d"
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091
9092 int
9093 main ()
9094 {
9095
9096 ;
9097 return 0;
9098 }
9099 _ACEOF
9100 if ac_fn_c_try_compile "$LINENO"; then :
9101
9102 else
9103 ac_enable_autodepend=no
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 CFLAGS="$SAVE_CFLAGS"
9107 test -f deps.d || ac_enable_autodepend=no
9108 rm -rf deps.d
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9110 $as_echo "$ac_enable_autodepend" >&6; }
9111 fi
9112 if test $ac_enable_autodepend = yes; then
9113 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9114 ## In parallel builds, another make might create depdir between
9115 ## the first test and mkdir, so stick another test on the end.
9116 ## Or use install-sh -d? mkdir -p is not portable.
9117 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9118 deps_frag=autodeps.mk
9119 fi
9120 fi
9121 deps_frag=$srcdir/src/$deps_frag
9122
9123
9124
9125
9126
9127 lisp_frag=$srcdir/src/lisp.mk
9128
9129
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9132 $as_echo_n "checking for long file names... " >&6; }
9133 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 ac_cv_sys_long_file_names=yes
9137 # Test for long file names in all the places we know might matter:
9138 # . the current directory, where building will happen
9139 # $prefix/lib where we will be installing things
9140 # $exec_prefix/lib likewise
9141 # $TMPDIR if set, where it might want to write temporary files
9142 # /tmp where it might want to write temporary files
9143 # /var/tmp likewise
9144 # /usr/tmp likewise
9145 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9146 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9147 # in the usual case where exec_prefix is '${prefix}'.
9148 case $ac_dir in #(
9149 . | /* | ?:[\\/]*) ;; #(
9150 *) continue;;
9151 esac
9152 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9153 ac_xdir=$ac_dir/cf$$
9154 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9155 ac_tf1=$ac_xdir/conftest9012345
9156 ac_tf2=$ac_xdir/conftest9012346
9157 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9158 ac_cv_sys_long_file_names=no
9159 rm -f -r "$ac_xdir" 2>/dev/null
9160 test $ac_cv_sys_long_file_names = no && break
9161 done
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9164 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9165 if test $ac_cv_sys_long_file_names = yes; then
9166
9167 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9168
9169 fi
9170
9171
9172 #### Choose a window system.
9173
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9175 $as_echo_n "checking for X... " >&6; }
9176
9177
9178 # Check whether --with-x was given.
9179 if test "${with_x+set}" = set; then :
9180 withval=$with_x;
9181 fi
9182
9183 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9184 if test "x$with_x" = xno; then
9185 # The user explicitly disabled X.
9186 have_x=disabled
9187 else
9188 case $x_includes,$x_libraries in #(
9189 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9190 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 # One or both of the vars are not set, and there is no cached value.
9194 ac_x_includes=no ac_x_libraries=no
9195 rm -f -r conftest.dir
9196 if mkdir conftest.dir; then
9197 cd conftest.dir
9198 cat >Imakefile <<'_ACEOF'
9199 incroot:
9200 @echo incroot='${INCROOT}'
9201 usrlibdir:
9202 @echo usrlibdir='${USRLIBDIR}'
9203 libdir:
9204 @echo libdir='${LIBDIR}'
9205 _ACEOF
9206 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9207 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9208 for ac_var in incroot usrlibdir libdir; do
9209 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9210 done
9211 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9212 for ac_extension in a so sl dylib la dll; do
9213 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9214 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9215 ac_im_usrlibdir=$ac_im_libdir; break
9216 fi
9217 done
9218 # Screen out bogus values from the imake configuration. They are
9219 # bogus both because they are the default anyway, and because
9220 # using them would break gcc on systems where it needs fixed includes.
9221 case $ac_im_incroot in
9222 /usr/include) ac_x_includes= ;;
9223 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9224 esac
9225 case $ac_im_usrlibdir in
9226 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9227 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9228 esac
9229 fi
9230 cd ..
9231 rm -f -r conftest.dir
9232 fi
9233
9234 # Standard set of common directories for X headers.
9235 # Check X11 before X11Rn because it is often a symlink to the current release.
9236 ac_x_header_dirs='
9237 /usr/X11/include
9238 /usr/X11R7/include
9239 /usr/X11R6/include
9240 /usr/X11R5/include
9241 /usr/X11R4/include
9242
9243 /usr/include/X11
9244 /usr/include/X11R7
9245 /usr/include/X11R6
9246 /usr/include/X11R5
9247 /usr/include/X11R4
9248
9249 /usr/local/X11/include
9250 /usr/local/X11R7/include
9251 /usr/local/X11R6/include
9252 /usr/local/X11R5/include
9253 /usr/local/X11R4/include
9254
9255 /usr/local/include/X11
9256 /usr/local/include/X11R7
9257 /usr/local/include/X11R6
9258 /usr/local/include/X11R5
9259 /usr/local/include/X11R4
9260
9261 /usr/X386/include
9262 /usr/x386/include
9263 /usr/XFree86/include/X11
9264
9265 /usr/include
9266 /usr/local/include
9267 /usr/unsupported/include
9268 /usr/athena/include
9269 /usr/local/x11r5/include
9270 /usr/lpp/Xamples/include
9271
9272 /usr/openwin/include
9273 /usr/openwin/share/include'
9274
9275 if test "$ac_x_includes" = no; then
9276 # Guess where to find include files, by looking for Xlib.h.
9277 # First, try using that file with no special directory specified.
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 #include <X11/Xlib.h>
9281 _ACEOF
9282 if ac_fn_c_try_cpp "$LINENO"; then :
9283 # We can compile using X headers with no special include directory.
9284 ac_x_includes=
9285 else
9286 for ac_dir in $ac_x_header_dirs; do
9287 if test -r "$ac_dir/X11/Xlib.h"; then
9288 ac_x_includes=$ac_dir
9289 break
9290 fi
9291 done
9292 fi
9293 rm -f conftest.err conftest.$ac_ext
9294 fi # $ac_x_includes = no
9295
9296 if test "$ac_x_libraries" = no; then
9297 # Check for the libraries.
9298 # See if we find them without any special options.
9299 # Don't add to $LIBS permanently.
9300 ac_save_LIBS=$LIBS
9301 LIBS="-lX11 $LIBS"
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 #include <X11/Xlib.h>
9305 int
9306 main ()
9307 {
9308 XrmInitialize ()
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 LIBS=$ac_save_LIBS
9315 # We can link X programs with no special library path.
9316 ac_x_libraries=
9317 else
9318 LIBS=$ac_save_LIBS
9319 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9320 do
9321 # Don't even attempt the hair of trying to link an X program!
9322 for ac_extension in a so sl dylib la dll; do
9323 if test -r "$ac_dir/libX11.$ac_extension"; then
9324 ac_x_libraries=$ac_dir
9325 break 2
9326 fi
9327 done
9328 done
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext \
9331 conftest$ac_exeext conftest.$ac_ext
9332 fi # $ac_x_libraries = no
9333
9334 case $ac_x_includes,$ac_x_libraries in #(
9335 no,* | *,no | *\'*)
9336 # Didn't find X, or a directory has "'" in its name.
9337 ac_cv_have_x="have_x=no";; #(
9338 *)
9339 # Record where we found X for the cache.
9340 ac_cv_have_x="have_x=yes\
9341 ac_x_includes='$ac_x_includes'\
9342 ac_x_libraries='$ac_x_libraries'"
9343 esac
9344 fi
9345 ;; #(
9346 *) have_x=yes;;
9347 esac
9348 eval "$ac_cv_have_x"
9349 fi # $with_x != no
9350
9351 if test "$have_x" != yes; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9353 $as_echo "$have_x" >&6; }
9354 no_x=yes
9355 else
9356 # If each of the values was on the command line, it overrides each guess.
9357 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9358 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9359 # Update the cache value to reflect the command line values.
9360 ac_cv_have_x="have_x=yes\
9361 ac_x_includes='$x_includes'\
9362 ac_x_libraries='$x_libraries'"
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9364 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9365 fi
9366
9367 if test "$no_x" = yes; then
9368 window_system=none
9369 else
9370 window_system=x11
9371 fi
9372
9373 ## Workaround for bug in autoconf <= 2.62.
9374 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9375 ## No need to do anything special for these standard directories.
9376 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9377
9378 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9379
9380 fi
9381
9382 LD_SWITCH_X_SITE_AUX=
9383 LD_SWITCH_X_SITE_AUX_RPATH=
9384 if test "${x_libraries}" != NONE; then
9385 if test -n "${x_libraries}"; then
9386 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9387 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9388 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9389 fi
9390 x_default_search_path=""
9391 x_search_path=${x_libraries}
9392 if test -z "${x_search_path}"; then
9393 x_search_path=/usr/lib
9394 fi
9395 for x_library in `echo ${x_search_path}: | \
9396 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9397 x_search_path="\
9398 ${x_library}/X11/%L/%T/%N%C%S:\
9399 ${x_library}/X11/%l/%T/%N%C%S:\
9400 ${x_library}/X11/%T/%N%C%S:\
9401 ${x_library}/X11/%L/%T/%N%S:\
9402 ${x_library}/X11/%l/%T/%N%S:\
9403 ${x_library}/X11/%T/%N%S"
9404 if test x"${x_default_search_path}" = x; then
9405 x_default_search_path=${x_search_path}
9406 else
9407 x_default_search_path="${x_search_path}:${x_default_search_path}"
9408 fi
9409 done
9410 fi
9411
9412
9413
9414 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9415 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9416 fi
9417
9418 if test x"${x_includes}" = x; then
9419 bitmapdir=/usr/include/X11/bitmaps
9420 else
9421 # accumulate include directories that have X11 bitmap subdirectories
9422 bmd_acc="dummyval"
9423 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9424 if test -d "${bmd}/X11/bitmaps"; then
9425 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9426 fi
9427 if test -d "${bmd}/bitmaps"; then
9428 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9429 fi
9430 done
9431 if test ${bmd_acc} != "dummyval"; then
9432 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9433 fi
9434 fi
9435
9436 HAVE_NS=no
9437 NS_IMPL_COCOA=no
9438 NS_IMPL_GNUSTEP=no
9439 tmp_CPPFLAGS="$CPPFLAGS"
9440 tmp_CFLAGS="$CFLAGS"
9441 CPPFLAGS="$CPPFLAGS -x objective-c"
9442 CFLAGS="$CFLAGS -x objective-c"
9443 TEMACS_LDFLAGS2="\${LDFLAGS}"
9444 if test "${with_ns}" != no; then
9445 if test "${opsys}" = darwin; then
9446 NS_IMPL_COCOA=yes
9447 ns_appdir=`pwd`/nextstep/Emacs.app
9448 ns_appbindir=${ns_appdir}/Contents/MacOS/
9449 ns_appresdir=${ns_appdir}/Contents/Resources
9450 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9451 elif test -f $GNUSTEP_CONFIG_FILE; then
9452 NS_IMPL_GNUSTEP=yes
9453 ns_appdir=`pwd`/nextstep/Emacs.app
9454 ns_appbindir=${ns_appdir}/
9455 ns_appresdir=${ns_appdir}/Resources
9456 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9457 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9458 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9459 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9460 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9461 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9462 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9463 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9464 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9465 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9466 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9467 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9468 LIB_STANDARD=
9469 START_FILES=
9470 TEMACS_LDFLAGS2=
9471 fi
9472 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9473 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9474 HAVE_NS=yes
9475 else
9476 as_fn_error "\`--with-ns' was specified, but the include
9477 files are missing or cannot be compiled." "$LINENO" 5
9478 fi
9479
9480
9481 NS_HAVE_NSINTEGER=yes
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 #include <Foundation/NSObjCRuntime.h>
9485 int
9486 main ()
9487 {
9488 NSInteger i;
9489 ;
9490 return 0;
9491 }
9492 _ACEOF
9493 if ac_fn_c_try_compile "$LINENO"; then :
9494 ns_have_nsinteger=yes
9495 else
9496 ns_have_nsinteger=no
9497 fi
9498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499 if test $ns_have_nsinteger = no; then
9500 NS_HAVE_NSINTEGER=no
9501 fi
9502 fi
9503
9504
9505 ns_frag=/dev/null
9506 NS_OBJ=
9507 NS_OBJC_OBJ=
9508 if test "${HAVE_NS}" = yes; then
9509 window_system=nextstep
9510 with_xft=no
9511 # set up packaging dirs
9512 exec_prefix=${ns_appbindir}
9513 libexecdir=${ns_appbindir}/libexec
9514 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9515 prefix=${ns_appresdir}
9516 fi
9517 ns_frag=$srcdir/src/ns.mk
9518 NS_OBJ="fontset.o fringe.o image.o"
9519 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9520 fi
9521 CFLAGS="$tmp_CFLAGS"
9522 CPPFLAGS="$tmp_CPPFLAGS"
9523
9524
9525
9526
9527
9528 case "${window_system}" in
9529 x11 )
9530 HAVE_X_WINDOWS=yes
9531 HAVE_X11=yes
9532 case "${with_x_toolkit}" in
9533 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9534 motif ) USE_X_TOOLKIT=MOTIF ;;
9535 gtk ) with_gtk=yes
9536 USE_X_TOOLKIT=none ;;
9537 gtk3 ) with_gtk3=yes
9538 USE_X_TOOLKIT=none ;;
9539 no ) USE_X_TOOLKIT=none ;;
9540 * ) USE_X_TOOLKIT=maybe ;;
9541 esac
9542 ;;
9543 nextstep | none )
9544 HAVE_X_WINDOWS=no
9545 HAVE_X11=no
9546 USE_X_TOOLKIT=none
9547 ;;
9548 esac
9549
9550 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9551 # Extract the first word of "X", so it can be a program name with args.
9552 set dummy X; ac_word=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 if test -n "$HAVE_XSERVER"; then
9559 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9560 else
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9563 do
9564 IFS=$as_save_IFS
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568 ac_cv_prog_HAVE_XSERVER="true"
9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9570 break 2
9571 fi
9572 done
9573 done
9574 IFS=$as_save_IFS
9575
9576 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9577 fi
9578 fi
9579 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9580 if test -n "$HAVE_XSERVER"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9582 $as_echo "$HAVE_XSERVER" >&6; }
9583 else
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587
9588
9589 if test "$HAVE_XSERVER" = true ||
9590 test -n "$DISPLAY" ||
9591 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9592 as_fn_error "You seem to be running X, but no X development libraries
9593 were found. You should install the relevant development files for X
9594 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9595 sure you have development files for image handling, i.e.
9596 tiff, gif, jpeg, png and xpm.
9597 If you are sure you want Emacs compiled without X window support, pass
9598 --without-x
9599 to configure." "$LINENO" 5
9600 fi
9601 fi
9602
9603 ### If we're using X11, we should use the X menu package.
9604 HAVE_MENUS=no
9605 case ${HAVE_X11} in
9606 yes ) HAVE_MENUS=yes ;;
9607 esac
9608
9609 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9610 # Assume not, until told otherwise.
9611 GNU_MALLOC=yes
9612 doug_lea_malloc=yes
9613 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9614 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9615
9616 else
9617 doug_lea_malloc=no
9618 fi
9619
9620 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9621 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9622
9623 else
9624 doug_lea_malloc=no
9625 fi
9626
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9628 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9629 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 extern void (* __after_morecore_hook)();
9635 int
9636 main ()
9637 {
9638 __after_morecore_hook = 0
9639 ;
9640 return 0;
9641 }
9642 _ACEOF
9643 if ac_fn_c_try_link "$LINENO"; then :
9644 emacs_cv_var___after_morecore_hook=yes
9645 else
9646 emacs_cv_var___after_morecore_hook=no
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9652 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9653 if test $emacs_cv_var___after_morecore_hook = no; then
9654 doug_lea_malloc=no
9655 fi
9656
9657
9658 system_malloc=no
9659 case "$opsys" in
9660 ## darwin ld insists on the use of malloc routines in the System framework.
9661 darwin|sol2-10) system_malloc=yes ;;
9662 esac
9663
9664 if test "${system_malloc}" = "yes"; then
9665
9666 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9667
9668 GNU_MALLOC=no
9669 GNU_MALLOC_reason="
9670 (The GNU allocators don't work with this system configuration.)"
9671 GMALLOC_OBJ=
9672 VMLIMIT_OBJ=
9673 else
9674 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9675 VMLIMIT_OBJ=vm-limit.o
9676 fi
9677
9678
9679
9680 if test "$doug_lea_malloc" = "yes" ; then
9681 if test "$GNU_MALLOC" = yes ; then
9682 GNU_MALLOC_reason="
9683 (Using Doug Lea's new malloc from the GNU C Library.)"
9684 fi
9685
9686 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9687
9688
9689 ## Use mmap directly for allocating larger buffers.
9690 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9691 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9692 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9693 case "$opsys" in
9694 gnu*) REL_ALLOC=no ;;
9695 esac
9696 fi
9697
9698 if test x"${REL_ALLOC}" = x; then
9699 REL_ALLOC=${GNU_MALLOC}
9700 fi
9701
9702 use_mmap_for_buffers=no
9703 case "$opsys" in
9704 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9705 esac
9706
9707
9708
9709
9710 for ac_header in $ac_header_list
9711 do :
9712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9713 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9714 "
9715 eval as_val=\$$as_ac_Header
9716 if test "x$as_val" = x""yes; then :
9717 cat >>confdefs.h <<_ACEOF
9718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9719 _ACEOF
9720
9721 fi
9722
9723 done
9724
9725
9726
9727
9728
9729
9730
9731
9732 for ac_func in getpagesize
9733 do :
9734 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9735 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9736 cat >>confdefs.h <<_ACEOF
9737 #define HAVE_GETPAGESIZE 1
9738 _ACEOF
9739
9740 fi
9741 done
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9744 $as_echo_n "checking for working mmap... " >&6; }
9745 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 if test "$cross_compiling" = yes; then :
9749 ac_cv_func_mmap_fixed_mapped=no
9750 else
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 $ac_includes_default
9754 /* malloc might have been renamed as rpl_malloc. */
9755 #undef malloc
9756
9757 /* Thanks to Mike Haertel and Jim Avera for this test.
9758 Here is a matrix of mmap possibilities:
9759 mmap private not fixed
9760 mmap private fixed at somewhere currently unmapped
9761 mmap private fixed at somewhere already mapped
9762 mmap shared not fixed
9763 mmap shared fixed at somewhere currently unmapped
9764 mmap shared fixed at somewhere already mapped
9765 For private mappings, we should verify that changes cannot be read()
9766 back from the file, nor mmap's back from the file at a different
9767 address. (There have been systems where private was not correctly
9768 implemented like the infamous i386 svr4.0, and systems where the
9769 VM page cache was not coherent with the file system buffer cache
9770 like early versions of FreeBSD and possibly contemporary NetBSD.)
9771 For shared mappings, we should conversely verify that changes get
9772 propagated back to all the places they're supposed to be.
9773
9774 Grep wants private fixed already mapped.
9775 The main things grep needs to know about mmap are:
9776 * does it exist and is it safe to write into the mmap'd area
9777 * how to use it (BSD variants) */
9778
9779 #include <fcntl.h>
9780 #include <sys/mman.h>
9781
9782 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9783 char *malloc ();
9784 #endif
9785
9786 /* This mess was copied from the GNU getpagesize.h. */
9787 #ifndef HAVE_GETPAGESIZE
9788 # ifdef _SC_PAGESIZE
9789 # define getpagesize() sysconf(_SC_PAGESIZE)
9790 # else /* no _SC_PAGESIZE */
9791 # ifdef HAVE_SYS_PARAM_H
9792 # include <sys/param.h>
9793 # ifdef EXEC_PAGESIZE
9794 # define getpagesize() EXEC_PAGESIZE
9795 # else /* no EXEC_PAGESIZE */
9796 # ifdef NBPG
9797 # define getpagesize() NBPG * CLSIZE
9798 # ifndef CLSIZE
9799 # define CLSIZE 1
9800 # endif /* no CLSIZE */
9801 # else /* no NBPG */
9802 # ifdef NBPC
9803 # define getpagesize() NBPC
9804 # else /* no NBPC */
9805 # ifdef PAGESIZE
9806 # define getpagesize() PAGESIZE
9807 # endif /* PAGESIZE */
9808 # endif /* no NBPC */
9809 # endif /* no NBPG */
9810 # endif /* no EXEC_PAGESIZE */
9811 # else /* no HAVE_SYS_PARAM_H */
9812 # define getpagesize() 8192 /* punt totally */
9813 # endif /* no HAVE_SYS_PARAM_H */
9814 # endif /* no _SC_PAGESIZE */
9815
9816 #endif /* no HAVE_GETPAGESIZE */
9817
9818 int
9819 main ()
9820 {
9821 char *data, *data2, *data3;
9822 const char *cdata2;
9823 int i, pagesize;
9824 int fd, fd2;
9825
9826 pagesize = getpagesize ();
9827
9828 /* First, make a file with some known garbage in it. */
9829 data = (char *) malloc (pagesize);
9830 if (!data)
9831 return 1;
9832 for (i = 0; i < pagesize; ++i)
9833 *(data + i) = rand ();
9834 umask (0);
9835 fd = creat ("conftest.mmap", 0600);
9836 if (fd < 0)
9837 return 2;
9838 if (write (fd, data, pagesize) != pagesize)
9839 return 3;
9840 close (fd);
9841
9842 /* Next, check that the tail of a page is zero-filled. File must have
9843 non-zero length, otherwise we risk SIGBUS for entire page. */
9844 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9845 if (fd2 < 0)
9846 return 4;
9847 cdata2 = "";
9848 if (write (fd2, cdata2, 1) != 1)
9849 return 5;
9850 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9851 if (data2 == MAP_FAILED)
9852 return 6;
9853 for (i = 0; i < pagesize; ++i)
9854 if (*(data2 + i))
9855 return 7;
9856 close (fd2);
9857 if (munmap (data2, pagesize))
9858 return 8;
9859
9860 /* Next, try to mmap the file at a fixed address which already has
9861 something else allocated at it. If we can, also make sure that
9862 we see the same garbage. */
9863 fd = open ("conftest.mmap", O_RDWR);
9864 if (fd < 0)
9865 return 9;
9866 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9867 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9868 return 10;
9869 for (i = 0; i < pagesize; ++i)
9870 if (*(data + i) != *(data2 + i))
9871 return 11;
9872
9873 /* Finally, make sure that changes to the mapped area do not
9874 percolate back to the file as seen by read(). (This is a bug on
9875 some variants of i386 svr4.0.) */
9876 for (i = 0; i < pagesize; ++i)
9877 *(data2 + i) = *(data2 + i) + 1;
9878 data3 = (char *) malloc (pagesize);
9879 if (!data3)
9880 return 12;
9881 if (read (fd, data3, pagesize) != pagesize)
9882 return 13;
9883 for (i = 0; i < pagesize; ++i)
9884 if (*(data + i) != *(data3 + i))
9885 return 14;
9886 close (fd);
9887 return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_run "$LINENO"; then :
9891 ac_cv_func_mmap_fixed_mapped=yes
9892 else
9893 ac_cv_func_mmap_fixed_mapped=no
9894 fi
9895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9896 conftest.$ac_objext conftest.beam conftest.$ac_ext
9897 fi
9898
9899 fi
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9901 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9902 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9903
9904 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9905
9906 fi
9907 rm -f conftest.mmap conftest.txt
9908
9909 if test $use_mmap_for_buffers = yes; then
9910
9911 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9912
9913 REL_ALLOC=no
9914 fi
9915
9916 LIBS="$LIBS_SYSTEM $LIBS"
9917
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9919 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9920 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 ac_check_lib_save_LIBS=$LIBS
9924 LIBS="-ldnet $LIBS"
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927
9928 /* Override any GCC internal prototype to avoid an error.
9929 Use char because int might match the return type of a GCC
9930 builtin and then its argument prototype would still apply. */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 char dnet_ntoa ();
9935 int
9936 main ()
9937 {
9938 return dnet_ntoa ();
9939 ;
9940 return 0;
9941 }
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944 ac_cv_lib_dnet_dnet_ntoa=yes
9945 else
9946 ac_cv_lib_dnet_dnet_ntoa=no
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9953 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9954 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9955 cat >>confdefs.h <<_ACEOF
9956 #define HAVE_LIBDNET 1
9957 _ACEOF
9958
9959 LIBS="-ldnet $LIBS"
9960
9961 fi
9962
9963
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9965 $as_echo_n "checking for main in -lXbsd... " >&6; }
9966 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9967 $as_echo_n "(cached) " >&6
9968 else
9969 ac_check_lib_save_LIBS=$LIBS
9970 LIBS="-lXbsd $LIBS"
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973
9974
9975 int
9976 main ()
9977 {
9978 return main ();
9979 ;
9980 return 0;
9981 }
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"; then :
9984 ac_cv_lib_Xbsd_main=yes
9985 else
9986 ac_cv_lib_Xbsd_main=no
9987 fi
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9991 fi
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9993 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9994 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9995 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9996 fi
9997
9998
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10000 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10001 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 ac_check_lib_save_LIBS=$LIBS
10005 LIBS="-lpthreads $LIBS"
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10008
10009 /* Override any GCC internal prototype to avoid an error.
10010 Use char because int might match the return type of a GCC
10011 builtin and then its argument prototype would still apply. */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 char cma_open ();
10016 int
10017 main ()
10018 {
10019 return cma_open ();
10020 ;
10021 return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_link "$LINENO"; then :
10025 ac_cv_lib_pthreads_cma_open=yes
10026 else
10027 ac_cv_lib_pthreads_cma_open=no
10028 fi
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10034 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10035 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10036 cat >>confdefs.h <<_ACEOF
10037 #define HAVE_LIBPTHREADS 1
10038 _ACEOF
10039
10040 LIBS="-lpthreads $LIBS"
10041
10042 fi
10043
10044
10045 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10046 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10047 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10048 ## added to LIBS in configure would never contain the pthreads part,
10049 ## but the value used in Makefiles might. FIXME?
10050 ##
10051 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10052 ## be harmless on older versions of X where it happens to exist.
10053 test "$opsys" = "aix4-2" && \
10054 test $ac_cv_lib_pthreads_cma_open = yes && \
10055 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10056
10057
10058 case ${host_os} in
10059 aix*)
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10061 $as_echo_n "checking for -bbigtoc option... " >&6; }
10062 if test "${gdb_cv_bigtoc+set}" = set; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065
10066 case $GCC in
10067 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10068 *) gdb_cv_bigtoc=-bbigtoc ;;
10069 esac
10070
10071 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074
10075 int
10076 main ()
10077 {
10078 int i;
10079 ;
10080 return 0;
10081 }
10082 _ACEOF
10083 if ac_fn_c_try_link "$LINENO"; then :
10084
10085 else
10086 gdb_cv_bigtoc=
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090
10091 fi
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10093 $as_echo "$gdb_cv_bigtoc" >&6; }
10094 ;;
10095 esac
10096
10097 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10098 # used for the tests that follow. We set them back to REAL_CFLAGS and
10099 # REAL_CPPFLAGS later on.
10100
10101 REAL_CFLAGS="$CFLAGS"
10102 REAL_CPPFLAGS="$CPPFLAGS"
10103
10104 if test "${HAVE_X11}" = "yes"; then
10105 DEFS="$C_SWITCH_X_SITE $DEFS"
10106 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10107 LIBS="-lX11 $LIBS"
10108 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10109 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10110
10111 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10112 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10113 # but it's more convenient here to set LD_RUN_PATH
10114 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10115 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10116 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10117 export LD_RUN_PATH
10118 fi
10119
10120 if test "${opsys}" = "gnu-linux"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10122 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125
10126 int
10127 main ()
10128 {
10129 XOpenDisplay ("foo");
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135 xlinux_first_failure=no
10136 else
10137 xlinux_first_failure=yes
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 if test "${xlinux_first_failure}" = "yes"; then
10142 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10143 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10144 OLD_CPPFLAGS="$CPPFLAGS"
10145 OLD_LIBS="$LIBS"
10146 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10147 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10148 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10149 LIBS="$LIBS -b i486-linuxaout"
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152
10153 int
10154 main ()
10155 {
10156 XOpenDisplay ("foo");
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_link "$LINENO"; then :
10162 xlinux_second_failure=no
10163 else
10164 xlinux_second_failure=yes
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 if test "${xlinux_second_failure}" = "yes"; then
10169 # If we get the same failure with -b, there is no use adding -b.
10170 # So take it out. This plays safe.
10171 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10172 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10173 CPPFLAGS="$OLD_CPPFLAGS"
10174 LIBS="$OLD_LIBS"
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176 $as_echo "no" >&6; }
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10179 $as_echo "yes" >&6; }
10180 fi
10181 else
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10184 fi
10185 fi
10186
10187 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10188 # header files included from there.
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10190 $as_echo_n "checking for Xkb... " >&6; }
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193 #include <X11/Xlib.h>
10194 #include <X11/XKBlib.h>
10195 int
10196 main ()
10197 {
10198 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10199 ;
10200 return 0;
10201 }
10202 _ACEOF
10203 if ac_fn_c_try_link "$LINENO"; then :
10204 emacs_xkb=yes
10205 else
10206 emacs_xkb=no
10207 fi
10208 rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10211 $as_echo "$emacs_xkb" >&6; }
10212 if test $emacs_xkb = yes; then
10213
10214 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10215
10216 fi
10217
10218 for ac_func in XrmSetDatabase XScreenResourceString \
10219 XScreenNumberOfScreen XSetWMProtocols
10220 do :
10221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10223 eval as_val=\$$as_ac_var
10224 if test "x$as_val" = x""yes; then :
10225 cat >>confdefs.h <<_ACEOF
10226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10227 _ACEOF
10228
10229 fi
10230 done
10231
10232 fi
10233
10234 if test "${window_system}" = "x11"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10236 $as_echo_n "checking X11 version 6... " >&6; }
10237 if test "${emacs_cv_x11_version_6+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 #include <X11/Xlib.h>
10243 int
10244 main ()
10245 {
10246 #if XlibSpecificationRelease < 6
10247 fail;
10248 #endif
10249
10250 ;
10251 return 0;
10252 }
10253 _ACEOF
10254 if ac_fn_c_try_link "$LINENO"; then :
10255 emacs_cv_x11_version_6=yes
10256 else
10257 emacs_cv_x11_version_6=no
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 fi
10262
10263 if test $emacs_cv_x11_version_6 = yes; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10265 $as_echo "6 or newer" >&6; }
10266
10267 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10268
10269
10270 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10271
10272 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10273 ## XIM support.
10274 case "$opsys" in
10275 sol2-*) : ;;
10276 *)
10277 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10278
10279 ;;
10280 esac
10281 else
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10283 $as_echo "before 6" >&6; }
10284 fi
10285 fi
10286
10287
10288 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10289 HAVE_RSVG=no
10290 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
10291 if test "${with_rsvg}" != "no"; then
10292 RSVG_REQUIRED=2.11.0
10293 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10294
10295
10296 succeeded=no
10297
10298 # Extract the first word of "pkg-config", so it can be a program name with args.
10299 set dummy pkg-config; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 case $PKG_CONFIG in
10306 [\\/]* | ?:[\\/]*)
10307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10308 ;;
10309 *)
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10312 do
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319 break 2
10320 fi
10321 done
10322 done
10323 IFS=$as_save_IFS
10324
10325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10326 ;;
10327 esac
10328 fi
10329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10330 if test -n "$PKG_CONFIG"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10332 $as_echo "$PKG_CONFIG" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10336 fi
10337
10338
10339
10340 if test "$PKG_CONFIG" = "no" ; then
10341 :
10342 else
10343 PKG_CONFIG_MIN_VERSION=0.9.0
10344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10346 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10347
10348 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10350 $as_echo "yes" >&6; }
10351 succeeded=yes
10352
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10354 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10355 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10357 $as_echo "$RSVG_CFLAGS" >&6; }
10358
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10360 $as_echo_n "checking RSVG_LIBS... " >&6; }
10361 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10363 $as_echo "$RSVG_LIBS" >&6; }
10364 else
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366 $as_echo "no" >&6; }
10367 RSVG_CFLAGS=""
10368 RSVG_LIBS=""
10369 ## If we have a custom action on failure, don't print errors, but
10370 ## do set a variable so people can do so.
10371 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10372
10373 fi
10374
10375
10376
10377 else
10378 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10379 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10380 fi
10381 fi
10382
10383 if test $succeeded = yes; then
10384 HAVE_RSVG=yes
10385 else
10386 :
10387 fi
10388
10389
10390
10391
10392 if test $HAVE_RSVG = yes; then
10393
10394 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10395
10396 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10397 LIBS="$RSVG_LIBS $LIBS"
10398 fi
10399 fi
10400 fi
10401
10402 HAVE_IMAGEMAGICK=no
10403 if test "${HAVE_X11}" = "yes"; then
10404 if test "${with_imagemagick}" != "no"; then
10405 ## 6.2.8 is the earliest version known to work, but earlier versions
10406 ## might work - let us know if you find one.
10407 ## 6.0.7 does not work. See bug#7955.
10408 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10409
10410 succeeded=no
10411
10412 # Extract the first word of "pkg-config", so it can be a program name with args.
10413 set dummy pkg-config; ac_word=$2
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 $as_echo_n "checking for $ac_word... " >&6; }
10416 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 case $PKG_CONFIG in
10420 [\\/]* | ?:[\\/]*)
10421 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10422 ;;
10423 *)
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10426 do
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10431 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 break 2
10434 fi
10435 done
10436 done
10437 IFS=$as_save_IFS
10438
10439 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10440 ;;
10441 esac
10442 fi
10443 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10444 if test -n "$PKG_CONFIG"; then
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10446 $as_echo "$PKG_CONFIG" >&6; }
10447 else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10450 fi
10451
10452
10453
10454 if test "$PKG_CONFIG" = "no" ; then
10455 :
10456 else
10457 PKG_CONFIG_MIN_VERSION=0.9.0
10458 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10460 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10461
10462 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10464 $as_echo "yes" >&6; }
10465 succeeded=yes
10466
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10468 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10469 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10471 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10472
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10474 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10475 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10477 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10478 else
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10481 IMAGEMAGICK_CFLAGS=""
10482 IMAGEMAGICK_LIBS=""
10483 ## If we have a custom action on failure, don't print errors, but
10484 ## do set a variable so people can do so.
10485 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10486
10487 fi
10488
10489
10490
10491 else
10492 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10493 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10494 fi
10495 fi
10496
10497 if test $succeeded = yes; then
10498 HAVE_IMAGEMAGICK=yes
10499 else
10500 :
10501 fi
10502
10503
10504
10505
10506 if test $HAVE_IMAGEMAGICK = yes; then
10507
10508 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10509
10510 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10511 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10512 for ac_func in MagickExportImagePixels
10513 do :
10514 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10515 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10516 cat >>confdefs.h <<_ACEOF
10517 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10518 _ACEOF
10519
10520 fi
10521 done
10522
10523 fi
10524 fi
10525 fi
10526
10527
10528 HAVE_GTK=no
10529 GTK_OBJ=
10530 if test "${with_gtk3}" = "yes"; then
10531 GLIB_REQUIRED=2.28
10532 GTK_REQUIRED=3.0
10533 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10534
10535
10536 succeeded=no
10537
10538 # Extract the first word of "pkg-config", so it can be a program name with args.
10539 set dummy pkg-config; ac_word=$2
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541 $as_echo_n "checking for $ac_word... " >&6; }
10542 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 case $PKG_CONFIG in
10546 [\\/]* | ?:[\\/]*)
10547 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10548 ;;
10549 *)
10550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551 for as_dir in $PATH
10552 do
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
10555 for ac_exec_ext in '' $ac_executable_extensions; do
10556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10557 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559 break 2
10560 fi
10561 done
10562 done
10563 IFS=$as_save_IFS
10564
10565 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10566 ;;
10567 esac
10568 fi
10569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10570 if test -n "$PKG_CONFIG"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10572 $as_echo "$PKG_CONFIG" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 fi
10577
10578
10579
10580 if test "$PKG_CONFIG" = "no" ; then
10581 pkg_check_gtk=no
10582 else
10583 PKG_CONFIG_MIN_VERSION=0.9.0
10584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10586 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10587
10588 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 $as_echo "yes" >&6; }
10591 succeeded=yes
10592
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10594 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10595 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10597 $as_echo "$GTK_CFLAGS" >&6; }
10598
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10600 $as_echo_n "checking GTK_LIBS... " >&6; }
10601 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10603 $as_echo "$GTK_LIBS" >&6; }
10604 else
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10607 GTK_CFLAGS=""
10608 GTK_LIBS=""
10609 ## If we have a custom action on failure, don't print errors, but
10610 ## do set a variable so people can do so.
10611 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10612
10613 fi
10614
10615
10616
10617 else
10618 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10619 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10620 fi
10621 fi
10622
10623 if test $succeeded = yes; then
10624 pkg_check_gtk=yes
10625 else
10626 pkg_check_gtk=no
10627 fi
10628
10629 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10630 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10631 fi
10632
10633 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10634
10635 GTK_OBJ=emacsgtkfixed.o
10636 fi
10637
10638 if test "$pkg_check_gtk" != "yes"; then
10639 HAVE_GTK=no
10640 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10641 GLIB_REQUIRED=2.6
10642 GTK_REQUIRED=2.6
10643 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10644
10645
10646 succeeded=no
10647
10648 # Extract the first word of "pkg-config", so it can be a program name with args.
10649 set dummy pkg-config; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 case $PKG_CONFIG in
10656 [\\/]* | ?:[\\/]*)
10657 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10658 ;;
10659 *)
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10662 do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10670 fi
10671 done
10672 done
10673 IFS=$as_save_IFS
10674
10675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10676 ;;
10677 esac
10678 fi
10679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10680 if test -n "$PKG_CONFIG"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10682 $as_echo "$PKG_CONFIG" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687
10688
10689
10690 if test "$PKG_CONFIG" = "no" ; then
10691 pkg_check_gtk=no
10692 else
10693 PKG_CONFIG_MIN_VERSION=0.9.0
10694 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10696 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10697
10698 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700 $as_echo "yes" >&6; }
10701 succeeded=yes
10702
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10704 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10705 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10707 $as_echo "$GTK_CFLAGS" >&6; }
10708
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10710 $as_echo_n "checking GTK_LIBS... " >&6; }
10711 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10713 $as_echo "$GTK_LIBS" >&6; }
10714 else
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10717 GTK_CFLAGS=""
10718 GTK_LIBS=""
10719 ## If we have a custom action on failure, don't print errors, but
10720 ## do set a variable so people can do so.
10721 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10722
10723 fi
10724
10725
10726
10727 else
10728 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10729 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10730 fi
10731 fi
10732
10733 if test $succeeded = yes; then
10734 pkg_check_gtk=yes
10735 else
10736 pkg_check_gtk=no
10737 fi
10738
10739 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10740 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10741 fi
10742 fi
10743 fi
10744
10745 if test x"$pkg_check_gtk" = xyes; then
10746
10747
10748
10749 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10750 CFLAGS="$CFLAGS $GTK_CFLAGS"
10751 LIBS="$GTK_LIBS $LIBS"
10752 GTK_COMPILES=no
10753 for ac_func in gtk_main
10754 do :
10755 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10756 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_GTK_MAIN 1
10759 _ACEOF
10760 GTK_COMPILES=yes
10761 fi
10762 done
10763
10764 if test "${GTK_COMPILES}" != "yes"; then
10765 if test "$USE_X_TOOLKIT" != "maybe"; then
10766 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10767 fi
10768 else
10769 HAVE_GTK=yes
10770
10771 $as_echo "#define USE_GTK 1" >>confdefs.h
10772
10773 GTK_OBJ="gtkutil.o $GTK_OBJ"
10774 USE_X_TOOLKIT=none
10775 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10776 :
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10779 closing open displays. This is no problem if you just use
10780 one display, but if you use more than one and close one of them
10781 Emacs may crash." >&5
10782 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10783 closing open displays. This is no problem if you just use
10784 one display, but if you use more than one and close one of them
10785 Emacs may crash." >&2;}
10786 sleep 3
10787 fi
10788 fi
10789
10790 fi
10791
10792
10793
10794 if test "${HAVE_GTK}" = "yes"; then
10795
10796 if test "$with_toolkit_scroll_bars" != no; then
10797 with_toolkit_scroll_bars=yes
10798 fi
10799
10800 HAVE_GTK_FILE_SELECTION=no
10801 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10802 #include <gtk/gtk.h>
10803 "
10804 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10805 HAVE_GTK_FILE_SELECTION=yes
10806 else
10807 HAVE_GTK_FILE_SELECTION=no
10808 fi
10809
10810 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10811 for ac_func in gtk_file_selection_new
10812 do :
10813 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10814 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10815 cat >>confdefs.h <<_ACEOF
10816 #define HAVE_GTK_FILE_SELECTION_NEW 1
10817 _ACEOF
10818
10819 fi
10820 done
10821
10822 fi
10823
10824 HAVE_GTK_AND_PTHREAD=no
10825 for ac_header in pthread.h
10826 do :
10827 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10828 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10829 cat >>confdefs.h <<_ACEOF
10830 #define HAVE_PTHREAD_H 1
10831 _ACEOF
10832
10833 fi
10834
10835 done
10836
10837 if test "$ac_cv_header_pthread_h"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10839 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10840 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 ac_check_lib_save_LIBS=$LIBS
10844 LIBS="-lpthread $LIBS"
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10847
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 char pthread_self ();
10855 int
10856 main ()
10857 {
10858 return pthread_self ();
10859 ;
10860 return 0;
10861 }
10862 _ACEOF
10863 if ac_fn_c_try_link "$LINENO"; then :
10864 ac_cv_lib_pthread_pthread_self=yes
10865 else
10866 ac_cv_lib_pthread_pthread_self=no
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10871 fi
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10873 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10874 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10875 HAVE_GTK_AND_PTHREAD=yes
10876 fi
10877
10878 fi
10879 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10880 case "${canonical}" in
10881 *-hpux*) ;;
10882 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10883 esac
10884
10885 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10886
10887 fi
10888
10889 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10890 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10891 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10892 gtk_orientable_set_orientation
10893 do :
10894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10895 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10896 eval as_val=\$$as_ac_var
10897 if test "x$as_val" = x""yes; then :
10898 cat >>confdefs.h <<_ACEOF
10899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10900 _ACEOF
10901
10902 fi
10903 done
10904
10905
10906 fi
10907
10908 HAVE_DBUS=no
10909 DBUS_OBJ=
10910 if test "${with_dbus}" = "yes"; then
10911
10912 succeeded=no
10913
10914 # Extract the first word of "pkg-config", so it can be a program name with args.
10915 set dummy pkg-config; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 case $PKG_CONFIG in
10922 [\\/]* | ?:[\\/]*)
10923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10924 ;;
10925 *)
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10928 do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10933 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10936 fi
10937 done
10938 done
10939 IFS=$as_save_IFS
10940
10941 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10942 ;;
10943 esac
10944 fi
10945 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10946 if test -n "$PKG_CONFIG"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10948 $as_echo "$PKG_CONFIG" >&6; }
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10952 fi
10953
10954
10955
10956 if test "$PKG_CONFIG" = "no" ; then
10957 HAVE_DBUS=no
10958 else
10959 PKG_CONFIG_MIN_VERSION=0.9.0
10960 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10962 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10963
10964 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10966 $as_echo "yes" >&6; }
10967 succeeded=yes
10968
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10970 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10971 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10973 $as_echo "$DBUS_CFLAGS" >&6; }
10974
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10976 $as_echo_n "checking DBUS_LIBS... " >&6; }
10977 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10979 $as_echo "$DBUS_LIBS" >&6; }
10980 else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10983 DBUS_CFLAGS=""
10984 DBUS_LIBS=""
10985 ## If we have a custom action on failure, don't print errors, but
10986 ## do set a variable so people can do so.
10987 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10988
10989 fi
10990
10991
10992
10993 else
10994 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10995 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10996 fi
10997 fi
10998
10999 if test $succeeded = yes; then
11000 HAVE_DBUS=yes
11001 else
11002 HAVE_DBUS=no
11003 fi
11004
11005 if test "$HAVE_DBUS" = yes; then
11006 LIBS="$LIBS $DBUS_LIBS"
11007
11008 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11009
11010 for ac_func in dbus_watch_get_unix_fd
11011 do :
11012 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11013 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11014 cat >>confdefs.h <<_ACEOF
11015 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11016 _ACEOF
11017
11018 fi
11019 done
11020
11021 DBUS_OBJ=dbusbind.o
11022 fi
11023 fi
11024
11025
11026 HAVE_GCONF=no
11027 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11028
11029 succeeded=no
11030
11031 # Extract the first word of "pkg-config", so it can be a program name with args.
11032 set dummy pkg-config; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 case $PKG_CONFIG in
11039 [\\/]* | ?:[\\/]*)
11040 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11041 ;;
11042 *)
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11045 do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11053 fi
11054 done
11055 done
11056 IFS=$as_save_IFS
11057
11058 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11059 ;;
11060 esac
11061 fi
11062 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11063 if test -n "$PKG_CONFIG"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11065 $as_echo "$PKG_CONFIG" >&6; }
11066 else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11069 fi
11070
11071
11072
11073 if test "$PKG_CONFIG" = "no" ; then
11074 HAVE_GCONF=no
11075 else
11076 PKG_CONFIG_MIN_VERSION=0.9.0
11077 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11079 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11080
11081 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11083 $as_echo "yes" >&6; }
11084 succeeded=yes
11085
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11087 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11088 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11090 $as_echo "$GCONF_CFLAGS" >&6; }
11091
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11093 $as_echo_n "checking GCONF_LIBS... " >&6; }
11094 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11096 $as_echo "$GCONF_LIBS" >&6; }
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11100 GCONF_CFLAGS=""
11101 GCONF_LIBS=""
11102 ## If we have a custom action on failure, don't print errors, but
11103 ## do set a variable so people can do so.
11104 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11105
11106 fi
11107
11108
11109
11110 else
11111 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11112 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11113 fi
11114 fi
11115
11116 if test $succeeded = yes; then
11117 HAVE_GCONF=yes
11118 else
11119 HAVE_GCONF=no
11120 fi
11121
11122 if test "$HAVE_GCONF" = yes; then
11123
11124 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11125
11126 for ac_func in g_type_init
11127 do :
11128 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11129 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11130 cat >>confdefs.h <<_ACEOF
11131 #define HAVE_G_TYPE_INIT 1
11132 _ACEOF
11133
11134 fi
11135 done
11136
11137 fi
11138 fi
11139
11140 HAVE_LIBSELINUX=no
11141 LIBSELINUX_LIBS=
11142 if test "${with_selinux}" = "yes"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11144 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11145 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 ac_check_lib_save_LIBS=$LIBS
11149 LIBS="-lselinux $LIBS"
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11152
11153 /* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 char lgetfilecon ();
11160 int
11161 main ()
11162 {
11163 return lgetfilecon ();
11164 ;
11165 return 0;
11166 }
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169 ac_cv_lib_selinux_lgetfilecon=yes
11170 else
11171 ac_cv_lib_selinux_lgetfilecon=no
11172 fi
11173 rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
11175 LIBS=$ac_check_lib_save_LIBS
11176 fi
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11178 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11179 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11180 HAVE_LIBSELINUX=yes
11181 else
11182 HAVE_LIBSELINUX=no
11183 fi
11184
11185 if test "$HAVE_LIBSELINUX" = yes; then
11186
11187 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11188
11189 LIBSELINUX_LIBS=-lselinux
11190 fi
11191 fi
11192
11193
11194 HAVE_GNUTLS=no
11195 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11196 if test "${with_gnutls}" = "yes" ; then
11197
11198 succeeded=no
11199
11200 # Extract the first word of "pkg-config", so it can be a program name with args.
11201 set dummy pkg-config; ac_word=$2
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203 $as_echo_n "checking for $ac_word... " >&6; }
11204 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 case $PKG_CONFIG in
11208 [\\/]* | ?:[\\/]*)
11209 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11210 ;;
11211 *)
11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in $PATH
11214 do
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11219 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 break 2
11222 fi
11223 done
11224 done
11225 IFS=$as_save_IFS
11226
11227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11228 ;;
11229 esac
11230 fi
11231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11232 if test -n "$PKG_CONFIG"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11234 $as_echo "$PKG_CONFIG" >&6; }
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11238 fi
11239
11240
11241
11242 if test "$PKG_CONFIG" = "no" ; then
11243 HAVE_GNUTLS=no
11244 else
11245 PKG_CONFIG_MIN_VERSION=0.9.0
11246 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11248 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11249
11250 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11252 $as_echo "yes" >&6; }
11253 succeeded=yes
11254
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11256 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11257 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11259 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11260
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11262 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11263 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11265 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11269 LIBGNUTLS_CFLAGS=""
11270 LIBGNUTLS_LIBS=""
11271 ## If we have a custom action on failure, don't print errors, but
11272 ## do set a variable so people can do so.
11273 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11274
11275 fi
11276
11277
11278
11279 else
11280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11282 fi
11283 fi
11284
11285 if test $succeeded = yes; then
11286 HAVE_GNUTLS=yes
11287 else
11288 HAVE_GNUTLS=no
11289 fi
11290
11291 if test "${HAVE_GNUTLS}" = "yes"; then
11292
11293 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11294
11295 fi
11296
11297 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11298 LIBS="$LIBGNUTLS_LIBS $LIBS"
11299 for ac_func in gnutls_certificate_set_verify_function
11300 do :
11301 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11302 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11303 cat >>confdefs.h <<_ACEOF
11304 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11305 _ACEOF
11306 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11307 fi
11308 done
11309
11310
11311 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11312
11313 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11314
11315 fi
11316 fi
11317
11318
11319
11320
11321 HAVE_XAW3D=no
11322 LUCID_LIBW=
11323 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11324 if test "$with_xaw3d" != no; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11326 $as_echo_n "checking for xaw3d... " >&6; }
11327 if test "${emacs_cv_xaw3d+set}" = set; then :
11328 $as_echo_n "(cached) " >&6
11329 else
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332
11333 #include <X11/Intrinsic.h>
11334 #include <X11/Xaw3d/Simple.h>
11335 int
11336 main ()
11337 {
11338
11339 ;
11340 return 0;
11341 }
11342 _ACEOF
11343 if ac_fn_c_try_link "$LINENO"; then :
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11345 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11346 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 ac_check_lib_save_LIBS=$LIBS
11350 LIBS="-lXaw3d $LIBS"
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353
11354 /* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11357 #ifdef __cplusplus
11358 extern "C"
11359 #endif
11360 char XawScrollbarSetThumb ();
11361 int
11362 main ()
11363 {
11364 return XawScrollbarSetThumb ();
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11371 else
11372 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11379 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11380 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11381 emacs_cv_xaw3d=yes
11382 else
11383 emacs_cv_xaw3d=no
11384 fi
11385
11386 else
11387 emacs_cv_xaw3d=no
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 fi
11392
11393 else
11394 emacs_cv_xaw3d=no
11395 fi
11396 if test $emacs_cv_xaw3d = yes; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11398 $as_echo "yes; using Lucid toolkit" >&6; }
11399 USE_X_TOOLKIT=LUCID
11400 HAVE_XAW3D=yes
11401 LUCID_LIBW=-lXaw3d
11402
11403 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11404
11405 else
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11409 $as_echo_n "checking for libXaw... " >&6; }
11410 if test "${emacs_cv_xaw+set}" = set; then :
11411 $as_echo_n "(cached) " >&6
11412 else
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415
11416 #include <X11/Intrinsic.h>
11417 #include <X11/Xaw/Simple.h>
11418 int
11419 main ()
11420 {
11421
11422 ;
11423 return 0;
11424 }
11425 _ACEOF
11426 if ac_fn_c_try_link "$LINENO"; then :
11427 emacs_cv_xaw=yes
11428 else
11429 emacs_cv_xaw=no
11430 fi
11431 rm -f core conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
11433 fi
11434
11435 if test $emacs_cv_xaw = yes; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11437 $as_echo "yes; using Lucid toolkit" >&6; }
11438 USE_X_TOOLKIT=LUCID
11439 LUCID_LIBW=-lXaw
11440 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11441 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11442 else
11443 as_fn_error "No X toolkit could be found.
11444 If you are sure you want Emacs compiled without an X toolkit, pass
11445 --with-x-toolkit=no
11446 to configure. Otherwise, install the development libraries for the toolkit
11447 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11448 fi
11449 fi
11450 fi
11451
11452 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11453
11454 LIBXTR6=
11455 if test "${USE_X_TOOLKIT}" != "none"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11457 $as_echo_n "checking X11 toolkit version... " >&6; }
11458 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463 #include <X11/Intrinsic.h>
11464 int
11465 main ()
11466 {
11467 #if XtSpecificationRelease < 6
11468 fail;
11469 #endif
11470
11471 ;
11472 return 0;
11473 }
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 emacs_cv_x11_toolkit_version_6=yes
11477 else
11478 emacs_cv_x11_toolkit_version_6=no
11479 fi
11480 rm -f core conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 fi
11483
11484 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11485 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11487 $as_echo "6 or newer" >&6; }
11488
11489 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11490
11491 LIBXTR6="-lSM -lICE"
11492 case "$opsys" in
11493 ## Use libw.a along with X11R6 Xt.
11494 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11495 esac
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11498 $as_echo "before 6" >&6; }
11499 fi
11500
11501 OLDLIBS="$LIBS"
11502 if test x$HAVE_X11XTR6 = xyes; then
11503 LIBS="-lXt -lSM -lICE $LIBS"
11504 else
11505 LIBS="-lXt $LIBS"
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11508 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11509 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 ac_check_lib_save_LIBS=$LIBS
11513 LIBS="-lXmu $LIBS"
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516
11517 /* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
11520 #ifdef __cplusplus
11521 extern "C"
11522 #endif
11523 char XmuConvertStandardSelection ();
11524 int
11525 main ()
11526 {
11527 return XmuConvertStandardSelection ();
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_c_try_link "$LINENO"; then :
11533 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11534 else
11535 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11536 fi
11537 rm -f core conftest.err conftest.$ac_objext \
11538 conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11540 fi
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11542 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11543 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11544 cat >>confdefs.h <<_ACEOF
11545 #define HAVE_LIBXMU 1
11546 _ACEOF
11547
11548 LIBS="-lXmu $LIBS"
11549
11550 fi
11551
11552 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11553 fi
11554
11555
11556 LIBXMU=-lXmu
11557 case $opsys in
11558 ## These systems don't supply Xmu.
11559 hpux* | aix4-2 )
11560 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11561 ;;
11562 esac
11563
11564
11565 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11566 if test "${HAVE_X11}" = "yes"; then
11567 if test "${USE_X_TOOLKIT}" != "none"; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11569 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11570 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-lXext $LIBS"
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char XShapeQueryExtension ();
11585 int
11586 main ()
11587 {
11588 return XShapeQueryExtension ();
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"; then :
11594 ac_cv_lib_Xext_XShapeQueryExtension=yes
11595 else
11596 ac_cv_lib_Xext_XShapeQueryExtension=no
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11603 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11604 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11605 cat >>confdefs.h <<_ACEOF
11606 #define HAVE_LIBXEXT 1
11607 _ACEOF
11608
11609 LIBS="-lXext $LIBS"
11610
11611 fi
11612
11613 fi
11614 fi
11615
11616 LIBXP=
11617 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11619 $as_echo_n "checking for Motif version 2.1... " >&6; }
11620 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11625 #include <Xm/Xm.h>
11626 int
11627 main ()
11628 {
11629 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11630 int x = 5;
11631 #else
11632 Motif version prior to 2.1.
11633 #endif
11634 ;
11635 return 0;
11636 }
11637 _ACEOF
11638 if ac_fn_c_try_compile "$LINENO"; then :
11639 emacs_cv_motif_version_2_1=yes
11640 else
11641 emacs_cv_motif_version_2_1=no
11642 fi
11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11646 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11647 if test $emacs_cv_motif_version_2_1 = yes; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11649 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11650 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-lXp $LIBS"
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11657
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char XpCreateContext ();
11665 int
11666 main ()
11667 {
11668 return XpCreateContext ();
11669 ;
11670 return 0;
11671 }
11672 _ACEOF
11673 if ac_fn_c_try_link "$LINENO"; then :
11674 ac_cv_lib_Xp_XpCreateContext=yes
11675 else
11676 ac_cv_lib_Xp_XpCreateContext=no
11677 fi
11678 rm -f core conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11680 LIBS=$ac_check_lib_save_LIBS
11681 fi
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11683 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11684 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11685 LIBXP=-lXp
11686 fi
11687
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11690 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11691 if test "${emacs_cv_lesstif+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 # We put this in CFLAGS temporarily to precede other -I options
11695 # that might be in CFLAGS temporarily.
11696 # We put this in CPPFLAGS where it precedes the other -I options.
11697 OLD_CPPFLAGS=$CPPFLAGS
11698 OLD_CFLAGS=$CFLAGS
11699 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11700 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11704 int
11705 main ()
11706 {
11707 int x = 5;
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 if ac_fn_c_try_compile "$LINENO"; then :
11713 emacs_cv_lesstif=yes
11714 else
11715 emacs_cv_lesstif=no
11716 fi
11717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11720 $as_echo "$emacs_cv_lesstif" >&6; }
11721 if test $emacs_cv_lesstif = yes; then
11722 # Make sure this -I option remains in CPPFLAGS after it is set
11723 # back to REAL_CPPFLAGS.
11724 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11725 # have those other -I options anyway. Ultimately, having this
11726 # directory ultimately in CPPFLAGS will be enough.
11727 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11728 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11729 else
11730 CFLAGS=$OLD_CFLAGS
11731 CPPFLAGS=$OLD_CPPFLAGS
11732 fi
11733 fi
11734 fi
11735
11736
11737 USE_TOOLKIT_SCROLL_BARS=no
11738 if test "${with_toolkit_scroll_bars}" != "no"; then
11739 if test "${USE_X_TOOLKIT}" != "none"; then
11740 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11741 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11742
11743 HAVE_XAW3D=no
11744 USE_TOOLKIT_SCROLL_BARS=yes
11745 elif test "${HAVE_XAW3D}" = "yes"; then
11746 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11747
11748 USE_TOOLKIT_SCROLL_BARS=yes
11749 fi
11750 elif test "${HAVE_GTK}" = "yes"; then
11751 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11752
11753 USE_TOOLKIT_SCROLL_BARS=yes
11754 elif test "${HAVE_NS}" = "yes"; then
11755 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11756
11757 USE_TOOLKIT_SCROLL_BARS=yes
11758 fi
11759 fi
11760
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11763
11764 #include <X11/Xlib.h>
11765 #include <X11/Xresource.h>
11766 int
11767 main ()
11768 {
11769 XIMProc callback;
11770 ;
11771 return 0;
11772 }
11773 _ACEOF
11774 if ac_fn_c_try_compile "$LINENO"; then :
11775 HAVE_XIM=yes
11776
11777 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11778
11779 else
11780 HAVE_XIM=no
11781 fi
11782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783
11784
11785 if test "${with_xim}" != "no"; then
11786
11787 $as_echo "#define USE_XIM 1" >>confdefs.h
11788
11789 fi
11790
11791
11792 if test "${HAVE_XIM}" != "no"; then
11793 late_CFLAGS=$CFLAGS
11794 if test "$GCC" = yes; then
11795 CFLAGS="$CFLAGS --pedantic-errors"
11796 fi
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11799
11800 #include <X11/Xlib.h>
11801 #include <X11/Xresource.h>
11802 int
11803 main ()
11804 {
11805 Display *display;
11806 XrmDatabase db;
11807 char *res_name;
11808 char *res_class;
11809 XIMProc callback;
11810 XPointer *client_data;
11811 #ifndef __GNUC__
11812 /* If we're not using GCC, it's probably not XFree86, and this is
11813 probably right, but we can't use something like --pedantic-errors. */
11814 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11815 char*, XIMProc, XPointer*);
11816 #endif
11817 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11818 client_data);
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 emacs_cv_arg6_star=yes
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 if test "$emacs_cv_arg6_star" = yes; then
11828 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11829
11830 else
11831 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11832
11833 fi
11834 CFLAGS=$late_CFLAGS
11835 fi
11836
11837 ### Start of font-backend (under any platform) section.
11838 # (nothing here yet -- this is a placeholder)
11839 ### End of font-backend (under any platform) section.
11840
11841 ### Start of font-backend (under X11) section.
11842 if test "${HAVE_X11}" = "yes"; then
11843
11844 succeeded=no
11845
11846 # Extract the first word of "pkg-config", so it can be a program name with args.
11847 set dummy pkg-config; ac_word=$2
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849 $as_echo_n "checking for $ac_word... " >&6; }
11850 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853 case $PKG_CONFIG in
11854 [\\/]* | ?:[\\/]*)
11855 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11856 ;;
11857 *)
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11860 do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11868 fi
11869 done
11870 done
11871 IFS=$as_save_IFS
11872
11873 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11874 ;;
11875 esac
11876 fi
11877 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11878 if test -n "$PKG_CONFIG"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11880 $as_echo "$PKG_CONFIG" >&6; }
11881 else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11884 fi
11885
11886
11887
11888 if test "$PKG_CONFIG" = "no" ; then
11889 HAVE_FC=no
11890 else
11891 PKG_CONFIG_MIN_VERSION=0.9.0
11892 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11894 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11895
11896 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11899 succeeded=yes
11900
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11902 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11903 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11905 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11906
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11908 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11909 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11911 $as_echo "$FONTCONFIG_LIBS" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11915 FONTCONFIG_CFLAGS=""
11916 FONTCONFIG_LIBS=""
11917 ## If we have a custom action on failure, don't print errors, but
11918 ## do set a variable so people can do so.
11919 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11920
11921 fi
11922
11923
11924
11925 else
11926 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11927 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11928 fi
11929 fi
11930
11931 if test $succeeded = yes; then
11932 HAVE_FC=yes
11933 else
11934 HAVE_FC=no
11935 fi
11936
11937
11938 ## Use -lXft if available, unless `--with-xft=no'.
11939 HAVE_XFT=maybe
11940 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11941 with_xft="no";
11942 fi
11943 if test "x${with_xft}" != "xno"; then
11944
11945
11946 succeeded=no
11947
11948 # Extract the first word of "pkg-config", so it can be a program name with args.
11949 set dummy pkg-config; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 case $PKG_CONFIG in
11956 [\\/]* | ?:[\\/]*)
11957 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11958 ;;
11959 *)
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11962 do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11967 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11970 fi
11971 done
11972 done
11973 IFS=$as_save_IFS
11974
11975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11976 ;;
11977 esac
11978 fi
11979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11980 if test -n "$PKG_CONFIG"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11982 $as_echo "$PKG_CONFIG" >&6; }
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986 fi
11987
11988
11989
11990 if test "$PKG_CONFIG" = "no" ; then
11991 HAVE_XFT=no
11992 else
11993 PKG_CONFIG_MIN_VERSION=0.9.0
11994 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11996 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11997
11998 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12000 $as_echo "yes" >&6; }
12001 succeeded=yes
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12004 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12005 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12007 $as_echo "$XFT_CFLAGS" >&6; }
12008
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12010 $as_echo_n "checking XFT_LIBS... " >&6; }
12011 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12013 $as_echo "$XFT_LIBS" >&6; }
12014 else
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12017 XFT_CFLAGS=""
12018 XFT_LIBS=""
12019 ## If we have a custom action on failure, don't print errors, but
12020 ## do set a variable so people can do so.
12021 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12022
12023 fi
12024
12025
12026
12027 else
12028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12030 fi
12031 fi
12032
12033 if test $succeeded = yes; then
12034 :
12035 else
12036 HAVE_XFT=no
12037 fi
12038
12039 ## Because xftfont.c uses XRenderQueryExtension, we also
12040 ## need to link to -lXrender.
12041 HAVE_XRENDER=no
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12043 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12044 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-lXrender $LIBS"
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char XRenderQueryExtension ();
12059 int
12060 main ()
12061 {
12062 return XRenderQueryExtension ();
12063 ;
12064 return 0;
12065 }
12066 _ACEOF
12067 if ac_fn_c_try_link "$LINENO"; then :
12068 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12069 else
12070 ac_cv_lib_Xrender_XRenderQueryExtension=no
12071 fi
12072 rm -f core conftest.err conftest.$ac_objext \
12073 conftest$ac_exeext conftest.$ac_ext
12074 LIBS=$ac_check_lib_save_LIBS
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12077 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12078 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12079 HAVE_XRENDER=yes
12080 fi
12081
12082 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12083 OLD_CPPFLAGS="$CPPFLAGS"
12084 OLD_CFLAGS="$CFLAGS"
12085 OLD_LIBS="$LIBS"
12086 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12087 CFLAGS="$CFLAGS $XFT_CFLAGS"
12088 XFT_LIBS="-lXrender $XFT_LIBS"
12089 LIBS="$XFT_LIBS $LIBS"
12090 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12091 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12093 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12094 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 ac_check_lib_save_LIBS=$LIBS
12098 LIBS="-lXft $XFT_LIBS $LIBS"
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12105 #ifdef __cplusplus
12106 extern "C"
12107 #endif
12108 char XftFontOpen ();
12109 int
12110 main ()
12111 {
12112 return XftFontOpen ();
12113 ;
12114 return 0;
12115 }
12116 _ACEOF
12117 if ac_fn_c_try_link "$LINENO"; then :
12118 ac_cv_lib_Xft_XftFontOpen=yes
12119 else
12120 ac_cv_lib_Xft_XftFontOpen=no
12121 fi
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 LIBS=$ac_check_lib_save_LIBS
12125 fi
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12127 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12128 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12129 HAVE_XFT=yes
12130 fi
12131
12132 fi
12133
12134
12135
12136 if test "${HAVE_XFT}" = "yes"; then
12137
12138 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12139
12140
12141 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12142 else
12143 CPPFLAGS="$OLD_CPPFLAGS"
12144 CFLAGS="$OLD_CFLAGS"
12145 LIBS="$OLD_LIBS"
12146 fi # "${HAVE_XFT}" = "yes"
12147 fi # "$HAVE_XFT" != no
12148 fi # "x${with_xft}" != "xno"
12149
12150 ## We used to allow building with FreeType and without Xft.
12151 ## However, the ftx font backend driver is not in good shape.
12152 if test "$HAVE_XFT" != "yes"; then
12153 HAVE_XFT=no
12154 HAVE_FREETYPE=no
12155 else
12156
12157 succeeded=no
12158
12159 # Extract the first word of "pkg-config", so it can be a program name with args.
12160 set dummy pkg-config; ac_word=$2
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162 $as_echo_n "checking for $ac_word... " >&6; }
12163 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 case $PKG_CONFIG in
12167 [\\/]* | ?:[\\/]*)
12168 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12169 ;;
12170 *)
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12173 do
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 break 2
12181 fi
12182 done
12183 done
12184 IFS=$as_save_IFS
12185
12186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12187 ;;
12188 esac
12189 fi
12190 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12191 if test -n "$PKG_CONFIG"; then
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12193 $as_echo "$PKG_CONFIG" >&6; }
12194 else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196 $as_echo "no" >&6; }
12197 fi
12198
12199
12200
12201 if test "$PKG_CONFIG" = "no" ; then
12202 HAVE_FREETYPE=no
12203 else
12204 PKG_CONFIG_MIN_VERSION=0.9.0
12205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12207 $as_echo_n "checking for freetype2... " >&6; }
12208
12209 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12211 $as_echo "yes" >&6; }
12212 succeeded=yes
12213
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12215 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12216 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12218 $as_echo "$FREETYPE_CFLAGS" >&6; }
12219
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12221 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12222 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12224 $as_echo "$FREETYPE_LIBS" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 FREETYPE_CFLAGS=""
12229 FREETYPE_LIBS=""
12230 ## If we have a custom action on failure, don't print errors, but
12231 ## do set a variable so people can do so.
12232 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12233
12234 fi
12235
12236
12237
12238 else
12239 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12240 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12241 fi
12242 fi
12243
12244 if test $succeeded = yes; then
12245 HAVE_FREETYPE=yes
12246 else
12247 HAVE_FREETYPE=no
12248 fi
12249
12250
12251 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12252 fi
12253
12254 HAVE_LIBOTF=no
12255 if test "${HAVE_FREETYPE}" = "yes"; then
12256
12257 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12258
12259 if test "${with_libotf}" != "no"; then
12260
12261 succeeded=no
12262
12263 # Extract the first word of "pkg-config", so it can be a program name with args.
12264 set dummy pkg-config; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 case $PKG_CONFIG in
12271 [\\/]* | ?:[\\/]*)
12272 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12273 ;;
12274 *)
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12277 do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12282 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 break 2
12285 fi
12286 done
12287 done
12288 IFS=$as_save_IFS
12289
12290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12291 ;;
12292 esac
12293 fi
12294 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12295 if test -n "$PKG_CONFIG"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12297 $as_echo "$PKG_CONFIG" >&6; }
12298 else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301 fi
12302
12303
12304
12305 if test "$PKG_CONFIG" = "no" ; then
12306 HAVE_LIBOTF=no
12307 else
12308 PKG_CONFIG_MIN_VERSION=0.9.0
12309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12311 $as_echo_n "checking for libotf... " >&6; }
12312
12313 if $PKG_CONFIG --exists "libotf" 2>&5; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12315 $as_echo "yes" >&6; }
12316 succeeded=yes
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12319 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12320 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12322 $as_echo "$LIBOTF_CFLAGS" >&6; }
12323
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12325 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12326 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12328 $as_echo "$LIBOTF_LIBS" >&6; }
12329 else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12332 LIBOTF_CFLAGS=""
12333 LIBOTF_LIBS=""
12334 ## If we have a custom action on failure, don't print errors, but
12335 ## do set a variable so people can do so.
12336 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12337
12338 fi
12339
12340
12341
12342 else
12343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12345 fi
12346 fi
12347
12348 if test $succeeded = yes; then
12349 HAVE_LIBOTF=yes
12350 else
12351 HAVE_LIBOTF=no
12352 fi
12353
12354 if test "$HAVE_LIBOTF" = "yes"; then
12355
12356 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12357
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12359 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12360 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 ac_check_lib_save_LIBS=$LIBS
12364 LIBS="-lotf $LIBS"
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367
12368 /* Override any GCC internal prototype to avoid an error.
12369 Use char because int might match the return type of a GCC
12370 builtin and then its argument prototype would still apply. */
12371 #ifdef __cplusplus
12372 extern "C"
12373 #endif
12374 char OTF_get_variation_glyphs ();
12375 int
12376 main ()
12377 {
12378 return OTF_get_variation_glyphs ();
12379 ;
12380 return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_c_try_link "$LINENO"; then :
12384 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12385 else
12386 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12387 fi
12388 rm -f core conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390 LIBS=$ac_check_lib_save_LIBS
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12393 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12394 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12395 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12396 else
12397 HAVE_OTF_GET_VARIATION_GLYPHS=no
12398 fi
12399
12400 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12401
12402 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12403
12404 fi
12405 fi
12406 fi
12407 fi
12408
12409 HAVE_M17N_FLT=no
12410 if test "${HAVE_LIBOTF}" = yes; then
12411 if test "${with_m17n_flt}" != "no"; then
12412
12413 succeeded=no
12414
12415 # Extract the first word of "pkg-config", so it can be a program name with args.
12416 set dummy pkg-config; ac_word=$2
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418 $as_echo_n "checking for $ac_word... " >&6; }
12419 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 case $PKG_CONFIG in
12423 [\\/]* | ?:[\\/]*)
12424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12425 ;;
12426 *)
12427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428 for as_dir in $PATH
12429 do
12430 IFS=$as_save_IFS
12431 test -z "$as_dir" && as_dir=.
12432 for ac_exec_ext in '' $ac_executable_extensions; do
12433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12434 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12436 break 2
12437 fi
12438 done
12439 done
12440 IFS=$as_save_IFS
12441
12442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12443 ;;
12444 esac
12445 fi
12446 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12447 if test -n "$PKG_CONFIG"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12449 $as_echo "$PKG_CONFIG" >&6; }
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454
12455
12456
12457 if test "$PKG_CONFIG" = "no" ; then
12458 HAVE_M17N_FLT=no
12459 else
12460 PKG_CONFIG_MIN_VERSION=0.9.0
12461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12463 $as_echo_n "checking for m17n-flt... " >&6; }
12464
12465 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12467 $as_echo "yes" >&6; }
12468 succeeded=yes
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12471 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12472 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12474 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12477 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12478 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12480 $as_echo "$M17N_FLT_LIBS" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 M17N_FLT_CFLAGS=""
12485 M17N_FLT_LIBS=""
12486 ## If we have a custom action on failure, don't print errors, but
12487 ## do set a variable so people can do so.
12488 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12489
12490 fi
12491
12492
12493
12494 else
12495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12497 fi
12498 fi
12499
12500 if test $succeeded = yes; then
12501 HAVE_M17N_FLT=yes
12502 else
12503 HAVE_M17N_FLT=no
12504 fi
12505
12506 if test "$HAVE_M17N_FLT" = "yes"; then
12507
12508 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12509
12510 fi
12511 fi
12512 fi
12513 else
12514 HAVE_XFT=no
12515 HAVE_FREETYPE=no
12516 HAVE_LIBOTF=no
12517 HAVE_M17N_FLT=no
12518 fi
12519
12520 ### End of font-backend (under X11) section.
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531 ### Use -lXpm if available, unless `--with-xpm=no'.
12532 HAVE_XPM=no
12533 LIBXPM=
12534 if test "${HAVE_X11}" = "yes"; then
12535 if test "${with_xpm}" != "no"; then
12536 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12537 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12539 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12540 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 ac_check_lib_save_LIBS=$LIBS
12544 LIBS="-lXpm -lX11 $LIBS"
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12547
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 char XpmReadFileToPixmap ();
12555 int
12556 main ()
12557 {
12558 return XpmReadFileToPixmap ();
12559 ;
12560 return 0;
12561 }
12562 _ACEOF
12563 if ac_fn_c_try_link "$LINENO"; then :
12564 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12565 else
12566 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12567 fi
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12573 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12574 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12575 HAVE_XPM=yes
12576 fi
12577
12578 fi
12579
12580
12581 if test "${HAVE_XPM}" = "yes"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12583 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586 #include "X11/xpm.h"
12587 #ifndef XpmReturnAllocPixels
12588 no_return_alloc_pixels
12589 #endif
12590
12591 _ACEOF
12592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12593 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12594 HAVE_XPM=no
12595 else
12596 HAVE_XPM=yes
12597 fi
12598 rm -f conftest*
12599
12600
12601 if test "${HAVE_XPM}" = "yes"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603 $as_echo "yes" >&6; }
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12607 fi
12608 fi
12609 fi
12610
12611 if test "${HAVE_XPM}" = "yes"; then
12612
12613 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12614
12615 LIBXPM=-lXpm
12616 fi
12617 fi
12618
12619
12620 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12621 HAVE_JPEG=no
12622 LIBJPEG=
12623 if test "${HAVE_X11}" = "yes"; then
12624 if test "${with_jpeg}" != "no"; then
12625 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12626 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12628 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12629 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 ac_check_lib_save_LIBS=$LIBS
12633 LIBS="-ljpeg $LIBS"
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636
12637 /* Override any GCC internal prototype to avoid an error.
12638 Use char because int might match the return type of a GCC
12639 builtin and then its argument prototype would still apply. */
12640 #ifdef __cplusplus
12641 extern "C"
12642 #endif
12643 char jpeg_destroy_compress ();
12644 int
12645 main ()
12646 {
12647 return jpeg_destroy_compress ();
12648 ;
12649 return 0;
12650 }
12651 _ACEOF
12652 if ac_fn_c_try_link "$LINENO"; then :
12653 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12654 else
12655 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12656 fi
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 LIBS=$ac_check_lib_save_LIBS
12660 fi
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12662 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12663 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12664 HAVE_JPEG=yes
12665 fi
12666
12667 fi
12668
12669
12670 fi
12671
12672 if test "${HAVE_JPEG}" = "yes"; then
12673 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12674
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #include <jpeglib.h>
12678 version=JPEG_LIB_VERSION
12679
12680 _ACEOF
12681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12682 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12683 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12684
12685 else
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12687 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12688 HAVE_JPEG=no
12689 fi
12690 rm -f conftest*
12691
12692 fi
12693 if test "${HAVE_JPEG}" = "yes"; then
12694 LIBJPEG=-ljpeg
12695 fi
12696 fi
12697
12698
12699 ### Use -lpng if available, unless `--with-png=no'.
12700 HAVE_PNG=no
12701 LIBPNG=
12702 if test "${HAVE_X11}" = "yes"; then
12703 if test "${with_png}" != "no"; then
12704 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12705 # in /usr/include/libpng.
12706 for ac_header in png.h libpng/png.h
12707 do :
12708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12710 eval as_val=\$$as_ac_Header
12711 if test "x$as_val" = x""yes; then :
12712 cat >>confdefs.h <<_ACEOF
12713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12714 _ACEOF
12715
12716 fi
12717
12718 done
12719
12720 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12722 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12723 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 ac_check_lib_save_LIBS=$LIBS
12727 LIBS="-lpng -lz -lm $LIBS"
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12734 #ifdef __cplusplus
12735 extern "C"
12736 #endif
12737 char png_get_channels ();
12738 int
12739 main ()
12740 {
12741 return png_get_channels ();
12742 ;
12743 return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_c_try_link "$LINENO"; then :
12747 ac_cv_lib_png_png_get_channels=yes
12748 else
12749 ac_cv_lib_png_png_get_channels=no
12750 fi
12751 rm -f core conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12754 fi
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12756 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12757 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12758 HAVE_PNG=yes
12759 fi
12760
12761 fi
12762 fi
12763
12764 if test "${HAVE_PNG}" = "yes"; then
12765
12766 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12767
12768 LIBPNG="-lpng -lz -lm"
12769 fi
12770 fi
12771
12772
12773 ### Use -ltiff if available, unless `--with-tiff=no'.
12774 HAVE_TIFF=no
12775 LIBTIFF=
12776 if test "${HAVE_X11}" = "yes"; then
12777 if test "${with_tiff}" != "no"; then
12778 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12779 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12780 tifflibs="-lz -lm"
12781 # At least one tiff package requires the jpeg library.
12782 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12784 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12785 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 ac_check_lib_save_LIBS=$LIBS
12789 LIBS="-ltiff $tifflibs $LIBS"
12790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12792
12793 /* Override any GCC internal prototype to avoid an error.
12794 Use char because int might match the return type of a GCC
12795 builtin and then its argument prototype would still apply. */
12796 #ifdef __cplusplus
12797 extern "C"
12798 #endif
12799 char TIFFGetVersion ();
12800 int
12801 main ()
12802 {
12803 return TIFFGetVersion ();
12804 ;
12805 return 0;
12806 }
12807 _ACEOF
12808 if ac_fn_c_try_link "$LINENO"; then :
12809 ac_cv_lib_tiff_TIFFGetVersion=yes
12810 else
12811 ac_cv_lib_tiff_TIFFGetVersion=no
12812 fi
12813 rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12815 LIBS=$ac_check_lib_save_LIBS
12816 fi
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12818 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12819 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12820 HAVE_TIFF=yes
12821 fi
12822
12823 fi
12824
12825
12826 fi
12827
12828 if test "${HAVE_TIFF}" = "yes"; then
12829
12830 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12831
12832 LIBTIFF=-ltiff
12833 fi
12834 fi
12835
12836
12837 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12838 HAVE_GIF=no
12839 LIBGIF=
12840 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12841 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12842 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12843 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12844 # Earlier versions can crash Emacs.
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12846 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12847 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 ac_check_lib_save_LIBS=$LIBS
12851 LIBS="-lgif $LIBS"
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char EGifPutExtensionLast ();
12862 int
12863 main ()
12864 {
12865 return EGifPutExtensionLast ();
12866 ;
12867 return 0;
12868 }
12869 _ACEOF
12870 if ac_fn_c_try_link "$LINENO"; then :
12871 ac_cv_lib_gif_EGifPutExtensionLast=yes
12872 else
12873 ac_cv_lib_gif_EGifPutExtensionLast=no
12874 fi
12875 rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 LIBS=$ac_check_lib_save_LIBS
12878 fi
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12880 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12881 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12882 HAVE_GIF=yes
12883 else
12884 HAVE_GIF=maybe
12885 fi
12886
12887 fi
12888
12889
12890
12891 if test "$HAVE_GIF" = yes; then
12892 LIBGIF=-lgif
12893 elif test "$HAVE_GIF" = maybe; then
12894 # If gif_lib.h but no libgif, try libungif.
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12896 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12897 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 ac_check_lib_save_LIBS=$LIBS
12901 LIBS="-lungif $LIBS"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12904
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char EGifPutExtensionLast ();
12912 int
12913 main ()
12914 {
12915 return EGifPutExtensionLast ();
12916 ;
12917 return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12922 else
12923 ac_cv_lib_ungif_EGifPutExtensionLast=no
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12930 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12931 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12932 HAVE_GIF=yes
12933 else
12934 HAVE_GIF=no
12935 fi
12936
12937 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12938 fi
12939
12940 if test "${HAVE_GIF}" = "yes"; then
12941
12942 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12943
12944 fi
12945 fi
12946
12947
12948 if test "${HAVE_X11}" = "yes"; then
12949 MISSING=""
12950 WITH_NO=""
12951 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12952 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12953 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12954 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12955 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12956 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12957 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12958 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12959 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12960 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12961
12962 if test "X${MISSING}" != X; then
12963 as_fn_error "The following required libraries were not found:
12964 $MISSING
12965 Maybe some development libraries/packages are missing?
12966 If you don't want to link with them give
12967 $WITH_NO
12968 as options to configure" "$LINENO" 5
12969 fi
12970 fi
12971
12972 ### Use -lgpm if available, unless `--with-gpm=no'.
12973 HAVE_GPM=no
12974 LIBGPM=
12975 if test "${with_gpm}" != "no"; then
12976 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12977 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12979 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12980 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983 ac_check_lib_save_LIBS=$LIBS
12984 LIBS="-lgpm $LIBS"
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987
12988 /* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
12991 #ifdef __cplusplus
12992 extern "C"
12993 #endif
12994 char Gpm_Open ();
12995 int
12996 main ()
12997 {
12998 return Gpm_Open ();
12999 ;
13000 return 0;
13001 }
13002 _ACEOF
13003 if ac_fn_c_try_link "$LINENO"; then :
13004 ac_cv_lib_gpm_Gpm_Open=yes
13005 else
13006 ac_cv_lib_gpm_Gpm_Open=no
13007 fi
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 LIBS=$ac_check_lib_save_LIBS
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13013 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13014 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13015 HAVE_GPM=yes
13016 fi
13017
13018 fi
13019
13020
13021
13022 if test "${HAVE_GPM}" = "yes"; then
13023
13024 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13025
13026 LIBGPM=-lgpm
13027 fi
13028 fi
13029
13030
13031 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13032 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13033
13034 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13035
13036 fi
13037
13038
13039
13040 C_SWITCH_X_SYSTEM=
13041 ### Use NeXTstep API to implement GUI.
13042 if test "${HAVE_NS}" = "yes"; then
13043
13044 $as_echo "#define HAVE_NS 1" >>confdefs.h
13045
13046 if test "${NS_IMPL_COCOA}" = "yes"; then
13047
13048 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13049
13050 GNU_OBJC_CFLAGS=
13051 fi
13052 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13053
13054 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13055
13056 # See also .m.o rule in Makefile.in */
13057 # FIXME: are all these flags really needed? Document here why. */
13058 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
13059 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13060 fi
13061 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13062
13063 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13064
13065 fi
13066 # We also have mouse menus.
13067 HAVE_MENUS=yes
13068 OTHER_FILES=ns-app
13069 fi
13070
13071
13072 ### Use session management (-lSM -lICE) if available
13073 HAVE_X_SM=no
13074 LIBXSM=
13075 if test "${HAVE_X11}" = "yes"; then
13076 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13077 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13079 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13080 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lSM -lICE $LIBS"
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13091 #ifdef __cplusplus
13092 extern "C"
13093 #endif
13094 char SmcOpenConnection ();
13095 int
13096 main ()
13097 {
13098 return SmcOpenConnection ();
13099 ;
13100 return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_c_try_link "$LINENO"; then :
13104 ac_cv_lib_SM_SmcOpenConnection=yes
13105 else
13106 ac_cv_lib_SM_SmcOpenConnection=no
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13110 LIBS=$ac_check_lib_save_LIBS
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13113 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13114 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13115 HAVE_X_SM=yes
13116 fi
13117
13118 fi
13119
13120
13121
13122 if test "${HAVE_X_SM}" = "yes"; then
13123
13124 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13125
13126 LIBXSM="-lSM -lICE"
13127 case "$LIBS" in
13128 *-lSM*) ;;
13129 *) LIBS="$LIBXSM $LIBS" ;;
13130 esac
13131 fi
13132 fi
13133
13134
13135 ### Use libxml (-lxml2) if available
13136 if test "${with_xml2}" != "no"; then
13137 ### I'm not sure what the version number should be, so I just guessed.
13138
13139 succeeded=no
13140
13141 # Extract the first word of "pkg-config", so it can be a program name with args.
13142 set dummy pkg-config; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 $as_echo_n "checking for $ac_word... " >&6; }
13145 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 case $PKG_CONFIG in
13149 [\\/]* | ?:[\\/]*)
13150 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13151 ;;
13152 *)
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13155 do
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 break 2
13163 fi
13164 done
13165 done
13166 IFS=$as_save_IFS
13167
13168 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13169 ;;
13170 esac
13171 fi
13172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13173 if test -n "$PKG_CONFIG"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13175 $as_echo "$PKG_CONFIG" >&6; }
13176 else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178 $as_echo "no" >&6; }
13179 fi
13180
13181
13182
13183 if test "$PKG_CONFIG" = "no" ; then
13184 HAVE_LIBXML2=no
13185 else
13186 PKG_CONFIG_MIN_VERSION=0.9.0
13187 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13189 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13190
13191 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13193 $as_echo "yes" >&6; }
13194 succeeded=yes
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13197 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13198 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13200 $as_echo "$LIBXML2_CFLAGS" >&6; }
13201
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13203 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13204 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13206 $as_echo "$LIBXML2_LIBS" >&6; }
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13210 LIBXML2_CFLAGS=""
13211 LIBXML2_LIBS=""
13212 ## If we have a custom action on failure, don't print errors, but
13213 ## do set a variable so people can do so.
13214 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13215
13216 fi
13217
13218
13219
13220 else
13221 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13222 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13223 fi
13224 fi
13225
13226 if test $succeeded = yes; then
13227 HAVE_LIBXML2=yes
13228 else
13229 HAVE_LIBXML2=no
13230 fi
13231
13232 if test "${HAVE_LIBXML2}" = "yes"; then
13233 LIBS="$LIBXML2_LIBS $LIBS"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13235 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13236 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-lxml2 $LIBS"
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13243
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char htmlReadMemory ();
13251 int
13252 main ()
13253 {
13254 return htmlReadMemory ();
13255 ;
13256 return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_link "$LINENO"; then :
13260 ac_cv_lib_xml2_htmlReadMemory=yes
13261 else
13262 ac_cv_lib_xml2_htmlReadMemory=no
13263 fi
13264 rm -f core conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13269 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13270 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13271 HAVE_LIBXML2=yes
13272 else
13273 HAVE_LIBXML2=no
13274 fi
13275
13276 if test "${HAVE_LIBXML2}" = "yes"; then
13277
13278 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13279
13280 else
13281 LIBXML2_LIBS=""
13282 LIBXML2_CFLAGS=""
13283 fi
13284 fi
13285 fi
13286
13287
13288
13289 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13291 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13292 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13297 #include <netdb.h>
13298 int
13299 main ()
13300 {
13301 return h_errno;
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"; then :
13307 emacs_cv_netdb_declares_h_errno=yes
13308 else
13309 emacs_cv_netdb_declares_h_errno=no
13310 fi
13311 rm -f core conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13313 fi
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13315 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13316 if test $emacs_cv_netdb_declares_h_errno = yes; then
13317
13318 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13319
13320 fi
13321
13322 # fmod, logb, and frexp are found in -lm on most systems.
13323 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13325 $as_echo_n "checking for sqrt in -lm... " >&6; }
13326 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 ac_check_lib_save_LIBS=$LIBS
13330 LIBS="-lm $LIBS"
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333
13334 /* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13337 #ifdef __cplusplus
13338 extern "C"
13339 #endif
13340 char sqrt ();
13341 int
13342 main ()
13343 {
13344 return sqrt ();
13345 ;
13346 return 0;
13347 }
13348 _ACEOF
13349 if ac_fn_c_try_link "$LINENO"; then :
13350 ac_cv_lib_m_sqrt=yes
13351 else
13352 ac_cv_lib_m_sqrt=no
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356 LIBS=$ac_check_lib_save_LIBS
13357 fi
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13359 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13360 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13361 cat >>confdefs.h <<_ACEOF
13362 #define HAVE_LIBM 1
13363 _ACEOF
13364
13365 LIBS="-lm $LIBS"
13366
13367 fi
13368
13369
13370 # Check for mail-locking functions in a "mail" library. Probably this should
13371 # have the same check as for liblockfile below.
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13373 $as_echo_n "checking for maillock in -lmail... " >&6; }
13374 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 ac_check_lib_save_LIBS=$LIBS
13378 LIBS="-lmail $LIBS"
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381
13382 /* Override any GCC internal prototype to avoid an error.
13383 Use char because int might match the return type of a GCC
13384 builtin and then its argument prototype would still apply. */
13385 #ifdef __cplusplus
13386 extern "C"
13387 #endif
13388 char maillock ();
13389 int
13390 main ()
13391 {
13392 return maillock ();
13393 ;
13394 return 0;
13395 }
13396 _ACEOF
13397 if ac_fn_c_try_link "$LINENO"; then :
13398 ac_cv_lib_mail_maillock=yes
13399 else
13400 ac_cv_lib_mail_maillock=no
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext \
13403 conftest$ac_exeext conftest.$ac_ext
13404 LIBS=$ac_check_lib_save_LIBS
13405 fi
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13407 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13408 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13409 have_mail=yes
13410 else
13411 have_mail=no
13412 fi
13413
13414 if test $have_mail = yes; then
13415 LIBS_MAIL=-lmail
13416 LIBS="$LIBS_MAIL $LIBS"
13417
13418 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13419
13420 else
13421 LIBS_MAIL=
13422 fi
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13424 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13425 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 ac_check_lib_save_LIBS=$LIBS
13429 LIBS="-llockfile $LIBS"
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432
13433 /* Override any GCC internal prototype to avoid an error.
13434 Use char because int might match the return type of a GCC
13435 builtin and then its argument prototype would still apply. */
13436 #ifdef __cplusplus
13437 extern "C"
13438 #endif
13439 char maillock ();
13440 int
13441 main ()
13442 {
13443 return maillock ();
13444 ;
13445 return 0;
13446 }
13447 _ACEOF
13448 if ac_fn_c_try_link "$LINENO"; then :
13449 ac_cv_lib_lockfile_maillock=yes
13450 else
13451 ac_cv_lib_lockfile_maillock=no
13452 fi
13453 rm -f core conftest.err conftest.$ac_objext \
13454 conftest$ac_exeext conftest.$ac_ext
13455 LIBS=$ac_check_lib_save_LIBS
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13458 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13459 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13460 have_lockfile=yes
13461 else
13462 have_lockfile=no
13463 fi
13464
13465 if test $have_lockfile = yes; then
13466 LIBS_MAIL=-llockfile
13467 LIBS="$LIBS_MAIL $LIBS"
13468
13469 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13470
13471 else
13472 # If we have the shared liblockfile, assume we must use it for mail
13473 # locking (e.g. Debian). If we couldn't link against liblockfile
13474 # (no liblockfile.a installed), ensure that we don't need to.
13475 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13476 set dummy liblockfile.so; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 if test -n "$liblockfile"; then
13483 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13484 else
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13487 for as_dir in $as_dummy
13488 do
13489 IFS=$as_save_IFS
13490 test -z "$as_dir" && as_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13493 ac_cv_prog_liblockfile="yes"
13494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 break 2
13496 fi
13497 done
13498 done
13499 IFS=$as_save_IFS
13500
13501 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13502 fi
13503 fi
13504 liblockfile=$ac_cv_prog_liblockfile
13505 if test -n "$liblockfile"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13507 $as_echo "$liblockfile" >&6; }
13508 else
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13511 fi
13512
13513
13514 if test $ac_cv_prog_liblockfile = yes; then
13515 as_fn_error "Shared liblockfile found but can't link against it.
13516 This probably means that movemail could lose mail.
13517 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13518 fi
13519 fi
13520 for ac_func in touchlock
13521 do :
13522 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13523 if test "x$ac_cv_func_touchlock" = x""yes; then :
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_TOUCHLOCK 1
13526 _ACEOF
13527
13528 fi
13529 done
13530
13531 for ac_header in maillock.h
13532 do :
13533 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13534 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13535 cat >>confdefs.h <<_ACEOF
13536 #define HAVE_MAILLOCK_H 1
13537 _ACEOF
13538
13539 fi
13540
13541 done
13542
13543
13544
13545 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13546 ## interlock access to the mail spool. The alternative is a lock file named
13547 ## /usr/spool/mail/$USER.lock.
13548 mail_lock=no
13549 case "$opsys" in
13550 aix4-2) mail_lock="lockf" ;;
13551
13552 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13553
13554 ## On GNU/Linux systems, both methods are used by various mail programs.
13555 ## I assume most people are using newer mailers that have heard of flock.
13556 ## Change this if you need to.
13557 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13558 ## configure gets the right answers, and that means *NOT* using flock.
13559 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13560 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13561 ## Debian maintainer hasn't provided a clean fix for Emacs.
13562 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13563 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13564 ## correct logic. -- fx
13565 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13566 ## liblockfile is a Free Software replacement for libmail, used on
13567 ## Debian systems and elsewhere. -rfr.
13568 gnu-*)
13569 mail_lock="flock"
13570 if test $have_mail = yes || test $have_lockfile = yes; then
13571 test $ac_cv_header_maillock_h = yes && mail_lock=no
13572 fi
13573 ;;
13574 esac
13575
13576 BLESSMAIL_TARGET=
13577 case "$mail_lock" in
13578 flock)
13579 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13580 ;;
13581
13582 lockf)
13583 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13584 ;;
13585
13586 *) BLESSMAIL_TARGET="need-blessmail" ;;
13587 esac
13588
13589
13590
13591 for ac_func in gethostname getdomainname \
13592 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13593 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13594 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13595 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13596 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13597 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13598 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13599 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13600 cfmakeraw cfsetspeed isnan copysign __executable_start
13601 do :
13602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13603 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13604 eval as_val=\$$as_ac_var
13605 if test "x$as_val" = x""yes; then :
13606 cat >>confdefs.h <<_ACEOF
13607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13608 _ACEOF
13609
13610 fi
13611 done
13612
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13615 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13616 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621
13622 int
13623 main ()
13624 {
13625 __builtin_unwind_init ();
13626 ;
13627 return 0;
13628 }
13629 _ACEOF
13630 if ac_fn_c_try_link "$LINENO"; then :
13631 emacs_cv_func___builtin_unwind_init=yes
13632 else
13633 emacs_cv_func___builtin_unwind_init=no
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13637 fi
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13639 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13640 if test $emacs_cv_func___builtin_unwind_init = yes; then
13641
13642 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13643
13644 fi
13645
13646 for ac_header in sys/un.h
13647 do :
13648 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13649 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13650 cat >>confdefs.h <<_ACEOF
13651 #define HAVE_SYS_UN_H 1
13652 _ACEOF
13653
13654 fi
13655
13656 done
13657
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13660 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13661 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 while :; do
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667 #include <sys/types.h> /* for off_t */
13668 #include <stdio.h>
13669 int
13670 main ()
13671 {
13672 int (*fp) (FILE *, off_t, int) = fseeko;
13673 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13674 ;
13675 return 0;
13676 }
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679 ac_cv_sys_largefile_source=no; break
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 #define _LARGEFILE_SOURCE 1
13686 #include <sys/types.h> /* for off_t */
13687 #include <stdio.h>
13688 int
13689 main ()
13690 {
13691 int (*fp) (FILE *, off_t, int) = fseeko;
13692 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13693 ;
13694 return 0;
13695 }
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"; then :
13698 ac_cv_sys_largefile_source=1; break
13699 fi
13700 rm -f core conftest.err conftest.$ac_objext \
13701 conftest$ac_exeext conftest.$ac_ext
13702 ac_cv_sys_largefile_source=unknown
13703 break
13704 done
13705 fi
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13707 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13708 case $ac_cv_sys_largefile_source in #(
13709 no | unknown) ;;
13710 *)
13711 cat >>confdefs.h <<_ACEOF
13712 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13713 _ACEOF
13714 ;;
13715 esac
13716 rm -rf conftest*
13717
13718 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13719 # in glibc 2.1.3, but that breaks too many other things.
13720 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13721 if test $ac_cv_sys_largefile_source != unknown; then
13722
13723 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13724
13725 fi
13726
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13729 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13730 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 # Use it with a single arg.
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 $ac_includes_default
13737 int
13738 main ()
13739 {
13740 getpgrp (0);
13741 ;
13742 return 0;
13743 }
13744 _ACEOF
13745 if ac_fn_c_try_compile "$LINENO"; then :
13746 ac_cv_func_getpgrp_void=no
13747 else
13748 ac_cv_func_getpgrp_void=yes
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751
13752 fi
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13754 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13755 if test $ac_cv_func_getpgrp_void = yes; then
13756
13757 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13758
13759 fi
13760
13761
13762 # Configure gnulib.
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773 LIBC_FATAL_STDERR_=1
13774 export LIBC_FATAL_STDERR_
13775
13776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13777 # for constant arguments. Useless!
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13779 $as_echo_n "checking for working alloca.h... " >&6; }
13780 if test "${ac_cv_working_alloca_h+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785 #include <alloca.h>
13786 int
13787 main ()
13788 {
13789 char *p = (char *) alloca (2 * sizeof (int));
13790 if (p) return 0;
13791 ;
13792 return 0;
13793 }
13794 _ACEOF
13795 if ac_fn_c_try_link "$LINENO"; then :
13796 ac_cv_working_alloca_h=yes
13797 else
13798 ac_cv_working_alloca_h=no
13799 fi
13800 rm -f core conftest.err conftest.$ac_objext \
13801 conftest$ac_exeext conftest.$ac_ext
13802 fi
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13804 $as_echo "$ac_cv_working_alloca_h" >&6; }
13805 if test $ac_cv_working_alloca_h = yes; then
13806
13807 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13808
13809 fi
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13812 $as_echo_n "checking for alloca... " >&6; }
13813 if test "${ac_cv_func_alloca_works+set}" = set; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13818 #ifdef __GNUC__
13819 # define alloca __builtin_alloca
13820 #else
13821 # ifdef _MSC_VER
13822 # include <malloc.h>
13823 # define alloca _alloca
13824 # else
13825 # ifdef HAVE_ALLOCA_H
13826 # include <alloca.h>
13827 # else
13828 # ifdef _AIX
13829 #pragma alloca
13830 # else
13831 # ifndef alloca /* predefined by HP cc +Olibcalls */
13832 char *alloca ();
13833 # endif
13834 # endif
13835 # endif
13836 # endif
13837 #endif
13838
13839 int
13840 main ()
13841 {
13842 char *p = (char *) alloca (1);
13843 if (p) return 0;
13844 ;
13845 return 0;
13846 }
13847 _ACEOF
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 ac_cv_func_alloca_works=yes
13850 else
13851 ac_cv_func_alloca_works=no
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855 fi
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13857 $as_echo "$ac_cv_func_alloca_works" >&6; }
13858
13859 if test $ac_cv_func_alloca_works = yes; then
13860
13861 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13862
13863 else
13864 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13865 # that cause trouble. Some versions do not even contain alloca or
13866 # contain a buggy version. If you still want to use their alloca,
13867 # use ar to extract alloca.o from them instead of compiling alloca.c.
13868
13869
13870
13871
13872
13873 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13874
13875 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13876
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13879 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13880 if test "${ac_cv_os_cray+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13885 #if defined CRAY && ! defined CRAY2
13886 webecray
13887 #else
13888 wenotbecray
13889 #endif
13890
13891 _ACEOF
13892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13893 $EGREP "webecray" >/dev/null 2>&1; then :
13894 ac_cv_os_cray=yes
13895 else
13896 ac_cv_os_cray=no
13897 fi
13898 rm -f conftest*
13899
13900 fi
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13902 $as_echo "$ac_cv_os_cray" >&6; }
13903 if test $ac_cv_os_cray = yes; then
13904 for ac_func in _getb67 GETB67 getb67; do
13905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13907 eval as_val=\$$as_ac_var
13908 if test "x$as_val" = x""yes; then :
13909
13910 cat >>confdefs.h <<_ACEOF
13911 #define CRAY_STACKSEG_END $ac_func
13912 _ACEOF
13913
13914 break
13915 fi
13916
13917 done
13918 fi
13919
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13921 $as_echo_n "checking stack direction for C alloca... " >&6; }
13922 if test "${ac_cv_c_stack_direction+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 if test "$cross_compiling" = yes; then :
13926 ac_cv_c_stack_direction=0
13927 else
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 $ac_includes_default
13931 int
13932 find_stack_direction (int *addr, int depth)
13933 {
13934 int dir, dummy = 0;
13935 if (! addr)
13936 addr = &dummy;
13937 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13938 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13939 return dir + dummy;
13940 }
13941
13942 int
13943 main (int argc, char **argv)
13944 {
13945 return find_stack_direction (0, argc + !argv + 20) < 0;
13946 }
13947 _ACEOF
13948 if ac_fn_c_try_run "$LINENO"; then :
13949 ac_cv_c_stack_direction=1
13950 else
13951 ac_cv_c_stack_direction=-1
13952 fi
13953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13954 conftest.$ac_objext conftest.beam conftest.$ac_ext
13955 fi
13956
13957 fi
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13959 $as_echo "$ac_cv_c_stack_direction" >&6; }
13960 cat >>confdefs.h <<_ACEOF
13961 #define STACK_DIRECTION $ac_cv_c_stack_direction
13962 _ACEOF
13963
13964
13965 fi
13966
13967
13968
13969
13970 for ac_func in $ac_func_list
13971 do :
13972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13974 eval as_val=\$$as_ac_var
13975 if test "x$as_val" = x""yes; then :
13976 cat >>confdefs.h <<_ACEOF
13977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13978 _ACEOF
13979
13980 fi
13981 done
13982
13983
13984
13985
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13987 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13988 if test "${ac_cv_c_bigendian+set}" = set; then :
13989 $as_echo_n "(cached) " >&6
13990 else
13991 ac_cv_c_bigendian=unknown
13992 # See if we're dealing with a universal compiler.
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 #ifndef __APPLE_CC__
13996 not a universal capable compiler
13997 #endif
13998 typedef int dummy;
13999
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002
14003 # Check for potential -arch flags. It is not universal unless
14004 # there are at least two -arch flags with different values.
14005 ac_arch=
14006 ac_prev=
14007 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14008 if test -n "$ac_prev"; then
14009 case $ac_word in
14010 i?86 | x86_64 | ppc | ppc64)
14011 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14012 ac_arch=$ac_word
14013 else
14014 ac_cv_c_bigendian=universal
14015 break
14016 fi
14017 ;;
14018 esac
14019 ac_prev=
14020 elif test "x$ac_word" = "x-arch"; then
14021 ac_prev=arch
14022 fi
14023 done
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 if test $ac_cv_c_bigendian = unknown; then
14027 # See if sys/param.h defines the BYTE_ORDER macro.
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030 #include <sys/types.h>
14031 #include <sys/param.h>
14032
14033 int
14034 main ()
14035 {
14036 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14037 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14038 && LITTLE_ENDIAN)
14039 bogus endian macros
14040 #endif
14041
14042 ;
14043 return 0;
14044 }
14045 _ACEOF
14046 if ac_fn_c_try_compile "$LINENO"; then :
14047 # It does; now see whether it defined to BIG_ENDIAN or not.
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050 #include <sys/types.h>
14051 #include <sys/param.h>
14052
14053 int
14054 main ()
14055 {
14056 #if BYTE_ORDER != BIG_ENDIAN
14057 not big endian
14058 #endif
14059
14060 ;
14061 return 0;
14062 }
14063 _ACEOF
14064 if ac_fn_c_try_compile "$LINENO"; then :
14065 ac_cv_c_bigendian=yes
14066 else
14067 ac_cv_c_bigendian=no
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 fi
14073 if test $ac_cv_c_bigendian = unknown; then
14074 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077 #include <limits.h>
14078
14079 int
14080 main ()
14081 {
14082 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14083 bogus endian macros
14084 #endif
14085
14086 ;
14087 return 0;
14088 }
14089 _ACEOF
14090 if ac_fn_c_try_compile "$LINENO"; then :
14091 # It does; now see whether it defined to _BIG_ENDIAN or not.
14092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 #include <limits.h>
14095
14096 int
14097 main ()
14098 {
14099 #ifndef _BIG_ENDIAN
14100 not big endian
14101 #endif
14102
14103 ;
14104 return 0;
14105 }
14106 _ACEOF
14107 if ac_fn_c_try_compile "$LINENO"; then :
14108 ac_cv_c_bigendian=yes
14109 else
14110 ac_cv_c_bigendian=no
14111 fi
14112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 fi
14116 if test $ac_cv_c_bigendian = unknown; then
14117 # Compile a test program.
14118 if test "$cross_compiling" = yes; then :
14119 # Try to guess by grepping values from an object file.
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14122 short int ascii_mm[] =
14123 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14124 short int ascii_ii[] =
14125 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14126 int use_ascii (int i) {
14127 return ascii_mm[i] + ascii_ii[i];
14128 }
14129 short int ebcdic_ii[] =
14130 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14131 short int ebcdic_mm[] =
14132 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14133 int use_ebcdic (int i) {
14134 return ebcdic_mm[i] + ebcdic_ii[i];
14135 }
14136 extern int foo;
14137
14138 int
14139 main ()
14140 {
14141 return use_ascii (foo) == use_ebcdic (foo);
14142 ;
14143 return 0;
14144 }
14145 _ACEOF
14146 if ac_fn_c_try_compile "$LINENO"; then :
14147 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14148 ac_cv_c_bigendian=yes
14149 fi
14150 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14151 if test "$ac_cv_c_bigendian" = unknown; then
14152 ac_cv_c_bigendian=no
14153 else
14154 # finding both strings is unlikely to happen, but who knows?
14155 ac_cv_c_bigendian=unknown
14156 fi
14157 fi
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160 else
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163 $ac_includes_default
14164 int
14165 main ()
14166 {
14167
14168 /* Are we little or big endian? From Harbison&Steele. */
14169 union
14170 {
14171 long int l;
14172 char c[sizeof (long int)];
14173 } u;
14174 u.l = 1;
14175 return u.c[sizeof (long int) - 1] == 1;
14176
14177 ;
14178 return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_run "$LINENO"; then :
14182 ac_cv_c_bigendian=no
14183 else
14184 ac_cv_c_bigendian=yes
14185 fi
14186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14187 conftest.$ac_objext conftest.beam conftest.$ac_ext
14188 fi
14189
14190 fi
14191 fi
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14193 $as_echo "$ac_cv_c_bigendian" >&6; }
14194 case $ac_cv_c_bigendian in #(
14195 yes)
14196 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14197 ;; #(
14198 no)
14199 ;; #(
14200 universal)
14201
14202 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14203
14204 ;; #(
14205 *)
14206 as_fn_error "unknown endianness
14207 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14208 esac
14209
14210
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14212 $as_echo_n "checking for inline... " >&6; }
14213 if test "${ac_cv_c_inline+set}" = set; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 ac_cv_c_inline=no
14217 for ac_kw in inline __inline__ __inline; do
14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14220 #ifndef __cplusplus
14221 typedef int foo_t;
14222 static $ac_kw foo_t static_foo () {return 0; }
14223 $ac_kw foo_t foo () {return 0; }
14224 #endif
14225
14226 _ACEOF
14227 if ac_fn_c_try_compile "$LINENO"; then :
14228 ac_cv_c_inline=$ac_kw
14229 fi
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 test "$ac_cv_c_inline" != no && break
14232 done
14233
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14236 $as_echo "$ac_cv_c_inline" >&6; }
14237
14238 case $ac_cv_c_inline in
14239 inline | yes) ;;
14240 *)
14241 case $ac_cv_c_inline in
14242 no) ac_val=;;
14243 *) ac_val=$ac_cv_c_inline;;
14244 esac
14245 cat >>confdefs.h <<_ACEOF
14246 #ifndef __cplusplus
14247 #define inline $ac_val
14248 #endif
14249 _ACEOF
14250 ;;
14251 esac
14252
14253
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
14255 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
14256 if test "${gl_cv_func_c99_strtold+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 /* On HP-UX before 11.23, strtold returns a struct instead of
14262 long double. Reject implementations like that, by requiring
14263 compatibility with the C99 prototype. */
14264 #include <stdlib.h>
14265 static long double (*p) (char const *, char **) = strtold;
14266 static long double
14267 test (char const *nptr, char **endptr)
14268 {
14269 long double r;
14270 r = strtold (nptr, endptr);
14271 return r;
14272 }
14273 int
14274 main ()
14275 {
14276 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
14277 ;
14278 return 0;
14279 }
14280 _ACEOF
14281 if ac_fn_c_try_link "$LINENO"; then :
14282 gl_cv_func_c99_strtold=yes
14283 else
14284 gl_cv_func_c99_strtold=no
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 fi
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
14290 $as_echo "$gl_cv_func_c99_strtold" >&6; }
14291 if test $gl_cv_func_c99_strtold = yes; then
14292
14293 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
14294
14295 fi
14296
14297
14298 GNULIB_CHOWN=0;
14299 GNULIB_CLOSE=0;
14300 GNULIB_DUP2=0;
14301 GNULIB_DUP3=0;
14302 GNULIB_ENVIRON=0;
14303 GNULIB_EUIDACCESS=0;
14304 GNULIB_FACCESSAT=0;
14305 GNULIB_FCHDIR=0;
14306 GNULIB_FCHOWNAT=0;
14307 GNULIB_FSYNC=0;
14308 GNULIB_FTRUNCATE=0;
14309 GNULIB_GETCWD=0;
14310 GNULIB_GETDOMAINNAME=0;
14311 GNULIB_GETDTABLESIZE=0;
14312 GNULIB_GETGROUPS=0;
14313 GNULIB_GETHOSTNAME=0;
14314 GNULIB_GETLOGIN=0;
14315 GNULIB_GETLOGIN_R=0;
14316 GNULIB_GETPAGESIZE=0;
14317 GNULIB_GETUSERSHELL=0;
14318 GNULIB_GROUP_MEMBER=0;
14319 GNULIB_LCHOWN=0;
14320 GNULIB_LINK=0;
14321 GNULIB_LINKAT=0;
14322 GNULIB_LSEEK=0;
14323 GNULIB_PIPE=0;
14324 GNULIB_PIPE2=0;
14325 GNULIB_PREAD=0;
14326 GNULIB_PWRITE=0;
14327 GNULIB_READ=0;
14328 GNULIB_READLINK=0;
14329 GNULIB_READLINKAT=0;
14330 GNULIB_RMDIR=0;
14331 GNULIB_SLEEP=0;
14332 GNULIB_SYMLINK=0;
14333 GNULIB_SYMLINKAT=0;
14334 GNULIB_TTYNAME_R=0;
14335 GNULIB_UNISTD_H_GETOPT=0;
14336 GNULIB_UNISTD_H_NONBLOCKING=0;
14337 GNULIB_UNISTD_H_SIGPIPE=0;
14338 GNULIB_UNLINK=0;
14339 GNULIB_UNLINKAT=0;
14340 GNULIB_USLEEP=0;
14341 GNULIB_WRITE=0;
14342 HAVE_CHOWN=1;
14343 HAVE_DUP2=1;
14344 HAVE_DUP3=1;
14345 HAVE_EUIDACCESS=1;
14346 HAVE_FACCESSAT=1;
14347 HAVE_FCHDIR=1;
14348 HAVE_FCHOWNAT=1;
14349 HAVE_FSYNC=1;
14350 HAVE_FTRUNCATE=1;
14351 HAVE_GETDTABLESIZE=1;
14352 HAVE_GETGROUPS=1;
14353 HAVE_GETHOSTNAME=1;
14354 HAVE_GETLOGIN=1;
14355 HAVE_GETPAGESIZE=1;
14356 HAVE_GROUP_MEMBER=1;
14357 HAVE_LCHOWN=1;
14358 HAVE_LINK=1;
14359 HAVE_LINKAT=1;
14360 HAVE_PIPE=1;
14361 HAVE_PIPE2=1;
14362 HAVE_PREAD=1;
14363 HAVE_PWRITE=1;
14364 HAVE_READLINK=1;
14365 HAVE_READLINKAT=1;
14366 HAVE_SLEEP=1;
14367 HAVE_SYMLINK=1;
14368 HAVE_SYMLINKAT=1;
14369 HAVE_UNLINKAT=1;
14370 HAVE_USLEEP=1;
14371 HAVE_DECL_ENVIRON=1;
14372 HAVE_DECL_FCHDIR=1;
14373 HAVE_DECL_GETDOMAINNAME=1;
14374 HAVE_DECL_GETLOGIN_R=1;
14375 HAVE_DECL_GETPAGESIZE=1;
14376 HAVE_DECL_GETUSERSHELL=1;
14377 HAVE_DECL_TTYNAME_R=1;
14378 HAVE_OS_H=0;
14379 HAVE_SYS_PARAM_H=0;
14380 REPLACE_CHOWN=0;
14381 REPLACE_CLOSE=0;
14382 REPLACE_DUP=0;
14383 REPLACE_DUP2=0;
14384 REPLACE_FCHOWNAT=0;
14385 REPLACE_GETCWD=0;
14386 REPLACE_GETDOMAINNAME=0;
14387 REPLACE_GETLOGIN_R=0;
14388 REPLACE_GETGROUPS=0;
14389 REPLACE_GETPAGESIZE=0;
14390 REPLACE_LCHOWN=0;
14391 REPLACE_LINK=0;
14392 REPLACE_LINKAT=0;
14393 REPLACE_LSEEK=0;
14394 REPLACE_PREAD=0;
14395 REPLACE_PWRITE=0;
14396 REPLACE_READ=0;
14397 REPLACE_READLINK=0;
14398 REPLACE_RMDIR=0;
14399 REPLACE_SLEEP=0;
14400 REPLACE_SYMLINK=0;
14401 REPLACE_TTYNAME_R=0;
14402 REPLACE_UNLINK=0;
14403 REPLACE_UNLINKAT=0;
14404 REPLACE_USLEEP=0;
14405 REPLACE_WRITE=0;
14406 UNISTD_H_HAVE_WINSOCK2_H=0;
14407 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14408
14409
14410
14411
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
14413 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
14414 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
14415 $as_echo_n "(cached) " >&6
14416 else
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419
14420 #include <sys/types.h>
14421 #include <sys/stat.h>
14422 int
14423 main ()
14424 {
14425 struct stat s; s.st_dm_mode;
14426 ;
14427 return 0;
14428 }
14429 _ACEOF
14430 if ac_fn_c_try_compile "$LINENO"; then :
14431 ac_cv_struct_st_dm_mode=yes
14432 else
14433 ac_cv_struct_st_dm_mode=no
14434 fi
14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436 fi
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
14438 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
14439
14440 if test $ac_cv_struct_st_dm_mode = yes; then
14441
14442 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
14443
14444 fi
14445
14446
14447 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
14448 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
14449 ac_have_decl=1
14450 else
14451 ac_have_decl=0
14452 fi
14453
14454 cat >>confdefs.h <<_ACEOF
14455 #define HAVE_DECL_STRMODE $ac_have_decl
14456 _ACEOF
14457
14458
14459 GNULIB__EXIT=0;
14460 GNULIB_ATOLL=0;
14461 GNULIB_CALLOC_POSIX=0;
14462 GNULIB_CANONICALIZE_FILE_NAME=0;
14463 GNULIB_GETLOADAVG=0;
14464 GNULIB_GETSUBOPT=0;
14465 GNULIB_GRANTPT=0;
14466 GNULIB_MALLOC_POSIX=0;
14467 GNULIB_MBTOWC=0;
14468 GNULIB_MKDTEMP=0;
14469 GNULIB_MKOSTEMP=0;
14470 GNULIB_MKOSTEMPS=0;
14471 GNULIB_MKSTEMP=0;
14472 GNULIB_MKSTEMPS=0;
14473 GNULIB_PTSNAME=0;
14474 GNULIB_PUTENV=0;
14475 GNULIB_RANDOM_R=0;
14476 GNULIB_REALLOC_POSIX=0;
14477 GNULIB_REALPATH=0;
14478 GNULIB_RPMATCH=0;
14479 GNULIB_SETENV=0;
14480 GNULIB_STRTOD=0;
14481 GNULIB_STRTOLL=0;
14482 GNULIB_STRTOULL=0;
14483 GNULIB_SYSTEM_POSIX=0;
14484 GNULIB_UNLOCKPT=0;
14485 GNULIB_UNSETENV=0;
14486 GNULIB_WCTOMB=0;
14487 HAVE__EXIT=1;
14488 HAVE_ATOLL=1;
14489 HAVE_CANONICALIZE_FILE_NAME=1;
14490 HAVE_DECL_GETLOADAVG=1;
14491 HAVE_GETSUBOPT=1;
14492 HAVE_GRANTPT=1;
14493 HAVE_MKDTEMP=1;
14494 HAVE_MKOSTEMP=1;
14495 HAVE_MKOSTEMPS=1;
14496 HAVE_MKSTEMP=1;
14497 HAVE_MKSTEMPS=1;
14498 HAVE_PTSNAME=1;
14499 HAVE_RANDOM_H=1;
14500 HAVE_RANDOM_R=1;
14501 HAVE_REALPATH=1;
14502 HAVE_RPMATCH=1;
14503 HAVE_SETENV=1;
14504 HAVE_DECL_SETENV=1;
14505 HAVE_STRTOD=1;
14506 HAVE_STRTOLL=1;
14507 HAVE_STRTOULL=1;
14508 HAVE_STRUCT_RANDOM_DATA=1;
14509 HAVE_SYS_LOADAVG_H=0;
14510 HAVE_UNLOCKPT=1;
14511 HAVE_DECL_UNSETENV=1;
14512 REPLACE_CALLOC=0;
14513 REPLACE_CANONICALIZE_FILE_NAME=0;
14514 REPLACE_MALLOC=0;
14515 REPLACE_MBTOWC=0;
14516 REPLACE_MKSTEMP=0;
14517 REPLACE_PUTENV=0;
14518 REPLACE_REALLOC=0;
14519 REPLACE_REALPATH=0;
14520 REPLACE_SETENV=0;
14521 REPLACE_STRTOD=0;
14522 REPLACE_UNSETENV=0;
14523 REPLACE_WCTOMB=0;
14524
14525
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14528 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14529 if test "${gl_cv_have_include_next+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14531 else
14532 rm -rf conftestd1a conftestd1b conftestd2
14533 mkdir conftestd1a conftestd1b conftestd2
14534 cat <<EOF > conftestd1a/conftest.h
14535 #define DEFINED_IN_CONFTESTD1
14536 #include_next <conftest.h>
14537 #ifdef DEFINED_IN_CONFTESTD2
14538 int foo;
14539 #else
14540 #error "include_next doesn't work"
14541 #endif
14542 EOF
14543 cat <<EOF > conftestd1b/conftest.h
14544 #define DEFINED_IN_CONFTESTD1
14545 #include <stdio.h>
14546 #include_next <conftest.h>
14547 #ifdef DEFINED_IN_CONFTESTD2
14548 int foo;
14549 #else
14550 #error "include_next doesn't work"
14551 #endif
14552 EOF
14553 cat <<EOF > conftestd2/conftest.h
14554 #ifndef DEFINED_IN_CONFTESTD1
14555 #error "include_next test doesn't work"
14556 #endif
14557 #define DEFINED_IN_CONFTESTD2
14558 EOF
14559 gl_save_CPPFLAGS="$CPPFLAGS"
14560 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14563 #include <conftest.h>
14564 _ACEOF
14565 if ac_fn_c_try_compile "$LINENO"; then :
14566 gl_cv_have_include_next=yes
14567 else
14568 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14571 #include <conftest.h>
14572 _ACEOF
14573 if ac_fn_c_try_compile "$LINENO"; then :
14574 gl_cv_have_include_next=buggy
14575 else
14576 gl_cv_have_include_next=no
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 CPPFLAGS="$gl_save_CPPFLAGS"
14583 rm -rf conftestd1a conftestd1b conftestd2
14584
14585 fi
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14587 $as_echo "$gl_cv_have_include_next" >&6; }
14588 PRAGMA_SYSTEM_HEADER=
14589 if test $gl_cv_have_include_next = yes; then
14590 INCLUDE_NEXT=include_next
14591 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14592 if test -n "$GCC"; then
14593 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14594 fi
14595 else
14596 if test $gl_cv_have_include_next = buggy; then
14597 INCLUDE_NEXT=include
14598 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14599 else
14600 INCLUDE_NEXT=include
14601 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14602 fi
14603 fi
14604
14605
14606
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14608 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14609 if test "${gl_cv_pragma_columns+set}" = set; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14614
14615 #ifdef __TANDEM
14616 choke me
14617 #endif
14618
14619 _ACEOF
14620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14621 $EGREP "choke me" >/dev/null 2>&1; then :
14622 gl_cv_pragma_columns=yes
14623 else
14624 gl_cv_pragma_columns=no
14625 fi
14626 rm -f conftest*
14627
14628
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14631 $as_echo "$gl_cv_pragma_columns" >&6; }
14632 if test $gl_cv_pragma_columns = yes; then
14633 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14634 else
14635 PRAGMA_COLUMNS=
14636 fi
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654 if test $gl_cv_have_include_next = yes; then
14655 gl_cv_next_getopt_h='<'getopt.h'>'
14656 else
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14658 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14659 if test "${gl_cv_next_getopt_h+set}" = set; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662
14663 if test $ac_cv_header_getopt_h = yes; then
14664
14665
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 #include <getopt.h>
14669
14670 _ACEOF
14671 case "$host_os" in
14672 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14673 *) gl_absname_cpp="$ac_cpp" ;;
14674 esac
14675 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14676 sed -n '\#/getopt.h#{
14677 s#.*"\(.*/getopt.h\)".*#\1#
14678 s#^/[^/]#//&#
14679 p
14680 q
14681 }'`'"'
14682 else
14683 gl_cv_next_getopt_h='<'getopt.h'>'
14684 fi
14685
14686
14687 fi
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14689 $as_echo "$gl_cv_next_getopt_h" >&6; }
14690 fi
14691 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14692
14693 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14694 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14695 gl_next_as_first_directive='<'getopt.h'>'
14696 else
14697 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14698 gl_next_as_first_directive=$gl_cv_next_getopt_h
14699 fi
14700 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14701
14702
14703
14704
14705 if test $ac_cv_header_getopt_h = yes; then
14706 HAVE_GETOPT_H=1
14707 else
14708 HAVE_GETOPT_H=0
14709 fi
14710
14711
14712 gl_replace_getopt=
14713
14714 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14715 for ac_header in getopt.h
14716 do :
14717 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14718 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14719 cat >>confdefs.h <<_ACEOF
14720 #define HAVE_GETOPT_H 1
14721 _ACEOF
14722
14723 else
14724 gl_replace_getopt=yes
14725 fi
14726
14727 done
14728
14729 fi
14730
14731 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14732 for ac_func in getopt_long_only
14733 do :
14734 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14735 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14736 cat >>confdefs.h <<_ACEOF
14737 #define HAVE_GETOPT_LONG_ONLY 1
14738 _ACEOF
14739
14740 else
14741 gl_replace_getopt=yes
14742 fi
14743 done
14744
14745 fi
14746
14747 if test -z "$gl_replace_getopt"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14749 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14750 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756 #include <unistd.h>
14757 int
14758 main ()
14759 {
14760 int *p = &optreset; return optreset;
14761 ;
14762 return 0;
14763 }
14764 _ACEOF
14765 if ac_fn_c_try_compile "$LINENO"; then :
14766 gl_optind_min=1
14767 else
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 #include <getopt.h>
14771 int
14772 main ()
14773 {
14774 return !getopt_clip;
14775 ;
14776 return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_compile "$LINENO"; then :
14780 gl_optind_min=1
14781 else
14782 gl_optind_min=0
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785 fi
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787
14788 gl_save_CPPFLAGS=$CPPFLAGS
14789 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14790 if test "$cross_compiling" = yes; then :
14791 case "$host_os" in
14792 mingw*) gl_cv_func_getopt_posix="guessing no";;
14793 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14794 *) gl_cv_func_getopt_posix="guessing yes";;
14795 esac
14796
14797 else
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14800
14801 #include <unistd.h>
14802 #include <stdlib.h>
14803 #include <string.h>
14804
14805 int
14806 main ()
14807 {
14808 {
14809 int argc = 0;
14810 char *argv[10];
14811 int c;
14812
14813 argv[argc++] = "program";
14814 argv[argc++] = "-a";
14815 argv[argc++] = "foo";
14816 argv[argc++] = "bar";
14817 argv[argc] = NULL;
14818 optind = OPTIND_MIN;
14819 opterr = 0;
14820
14821 c = getopt (argc, argv, "ab");
14822 if (!(c == 'a'))
14823 return 1;
14824 c = getopt (argc, argv, "ab");
14825 if (!(c == -1))
14826 return 2;
14827 if (!(optind == 2))
14828 return 3;
14829 }
14830 /* Some internal state exists at this point. */
14831 {
14832 int argc = 0;
14833 char *argv[10];
14834 int c;
14835
14836 argv[argc++] = "program";
14837 argv[argc++] = "donald";
14838 argv[argc++] = "-p";
14839 argv[argc++] = "billy";
14840 argv[argc++] = "duck";
14841 argv[argc++] = "-a";
14842 argv[argc++] = "bar";
14843 argv[argc] = NULL;
14844 optind = OPTIND_MIN;
14845 opterr = 0;
14846
14847 c = getopt (argc, argv, "+abp:q:");
14848 if (!(c == -1))
14849 return 4;
14850 if (!(strcmp (argv[0], "program") == 0))
14851 return 5;
14852 if (!(strcmp (argv[1], "donald") == 0))
14853 return 6;
14854 if (!(strcmp (argv[2], "-p") == 0))
14855 return 7;
14856 if (!(strcmp (argv[3], "billy") == 0))
14857 return 8;
14858 if (!(strcmp (argv[4], "duck") == 0))
14859 return 9;
14860 if (!(strcmp (argv[5], "-a") == 0))
14861 return 10;
14862 if (!(strcmp (argv[6], "bar") == 0))
14863 return 11;
14864 if (!(optind == 1))
14865 return 12;
14866 }
14867 /* Detect MacOS 10.5, AIX 7.1 bug. */
14868 {
14869 char *argv[3] = { "program", "-ab", NULL };
14870 optind = OPTIND_MIN;
14871 opterr = 0;
14872 if (getopt (2, argv, "ab:") != 'a')
14873 return 13;
14874 if (getopt (2, argv, "ab:") != '?')
14875 return 14;
14876 if (optopt != 'b')
14877 return 15;
14878 if (optind != 2)
14879 return 16;
14880 }
14881
14882 return 0;
14883 }
14884
14885 _ACEOF
14886 if ac_fn_c_try_run "$LINENO"; then :
14887 gl_cv_func_getopt_posix=yes
14888 else
14889 gl_cv_func_getopt_posix=no
14890 fi
14891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14892 conftest.$ac_objext conftest.beam conftest.$ac_ext
14893 fi
14894
14895 CPPFLAGS=$gl_save_CPPFLAGS
14896
14897 fi
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14899 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14900 case "$gl_cv_func_getopt_posix" in
14901 *no) gl_replace_getopt=yes ;;
14902 esac
14903 fi
14904
14905 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14907 $as_echo_n "checking for working GNU getopt function... " >&6; }
14908 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14909 $as_echo_n "(cached) " >&6
14910 else
14911 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14912 # optstring is necessary for programs like m4 that have POSIX-mandated
14913 # semantics for supporting options interspersed with files.
14914 # Also, since getopt_long is a GNU extension, we require optind=0.
14915 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14916 # so take care to revert to the correct (non-)export state.
14917 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14918 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14919 xx) gl_had_POSIXLY_CORRECT=exported ;;
14920 x) gl_had_POSIXLY_CORRECT=yes ;;
14921 *) gl_had_POSIXLY_CORRECT= ;;
14922 esac
14923 POSIXLY_CORRECT=1
14924 export POSIXLY_CORRECT
14925 if test "$cross_compiling" = yes; then :
14926 case $host_os:$ac_cv_have_decl_optreset in
14927 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14928 *:yes) gl_cv_func_getopt_gnu=no;;
14929 *) gl_cv_func_getopt_gnu=yes;;
14930 esac
14931
14932 else
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935 #include <getopt.h>
14936 #include <stddef.h>
14937 #include <string.h>
14938
14939 int
14940 main ()
14941 {
14942
14943 int result = 0;
14944 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14945 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14946 OSF/1 5.1, Solaris 10. */
14947 {
14948 char *myargv[3];
14949 myargv[0] = "conftest";
14950 myargv[1] = "-+";
14951 myargv[2] = 0;
14952 opterr = 0;
14953 if (getopt (2, myargv, "+a") != '?')
14954 result |= 1;
14955 }
14956 /* This code succeeds on glibc 2.8, mingw,
14957 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14958 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14959 {
14960 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14961
14962 optind = 1;
14963 if (getopt (4, argv, "p::") != 'p')
14964 result |= 2;
14965 else if (optarg != NULL)
14966 result |= 4;
14967 else if (getopt (4, argv, "p::") != -1)
14968 result |= 6;
14969 else if (optind != 2)
14970 result |= 8;
14971 }
14972 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14973 {
14974 char *argv[] = { "program", "foo", "-p", NULL };
14975 optind = 0;
14976 if (getopt (3, argv, "-p") != 1)
14977 result |= 16;
14978 else if (getopt (3, argv, "-p") != 'p')
14979 result |= 32;
14980 }
14981 /* This code fails on glibc 2.11. */
14982 {
14983 char *argv[] = { "program", "-b", "-a", NULL };
14984 optind = opterr = 0;
14985 if (getopt (3, argv, "+:a:b") != 'b')
14986 result |= 64;
14987 else if (getopt (3, argv, "+:a:b") != ':')
14988 result |= 64;
14989 }
14990 return result;
14991
14992 ;
14993 return 0;
14994 }
14995 _ACEOF
14996 if ac_fn_c_try_run "$LINENO"; then :
14997 gl_cv_func_getopt_gnu=yes
14998 else
14999 gl_cv_func_getopt_gnu=no
15000 fi
15001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15002 conftest.$ac_objext conftest.beam conftest.$ac_ext
15003 fi
15004
15005 case $gl_had_POSIXLY_CORRECT in
15006 exported) ;;
15007 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
15008 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
15009 esac
15010
15011 fi
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
15013 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15014 if test "$gl_cv_func_getopt_gnu" = "no"; then
15015 gl_replace_getopt=yes
15016 fi
15017 fi
15018
15019
15020
15021
15022
15023 REPLACE_GETOPT=0
15024
15025
15026 if test -n "$gl_replace_getopt"; then :
15027
15028 REPLACE_GETOPT=1
15029
15030 fi
15031
15032
15033 if test $REPLACE_GETOPT = 1; then
15034
15035 GETOPT_H=getopt.h
15036
15037 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15038
15039
15040
15041 GNULIB_UNISTD_H_GETOPT=1
15042 fi
15043
15044 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
15045 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
15046 ac_have_decl=1
15047 else
15048 ac_have_decl=0
15049 fi
15050
15051 cat >>confdefs.h <<_ACEOF
15052 #define HAVE_DECL_GETENV $ac_have_decl
15053 _ACEOF
15054
15055
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15057 $as_echo_n "checking for unsigned long long int... " >&6; }
15058 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 ac_cv_type_unsigned_long_long_int=yes
15062 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15065
15066 /* For now, do not test the preprocessor; as of 2007 there are too many
15067 implementations with broken preprocessors. Perhaps this can
15068 be revisited in 2012. In the meantime, code should not expect
15069 #if to work with literals wider than 32 bits. */
15070 /* Test literals. */
15071 long long int ll = 9223372036854775807ll;
15072 long long int nll = -9223372036854775807LL;
15073 unsigned long long int ull = 18446744073709551615ULL;
15074 /* Test constant expressions. */
15075 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15076 ? 1 : -1)];
15077 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15078 ? 1 : -1)];
15079 int i = 63;
15080 int
15081 main ()
15082 {
15083 /* Test availability of runtime routines for shift and division. */
15084 long long int llmax = 9223372036854775807ll;
15085 unsigned long long int ullmax = 18446744073709551615ull;
15086 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15087 | (llmax / ll) | (llmax % ll)
15088 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15089 | (ullmax / ull) | (ullmax % ull));
15090 ;
15091 return 0;
15092 }
15093
15094 _ACEOF
15095 if ac_fn_c_try_link "$LINENO"; then :
15096
15097 else
15098 ac_cv_type_unsigned_long_long_int=no
15099 fi
15100 rm -f core conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15102 fi
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15105 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15106 if test $ac_cv_type_unsigned_long_long_int = yes; then
15107
15108 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15109
15110 fi
15111
15112
15113
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15115 $as_echo_n "checking for long long int... " >&6; }
15116 if test "${ac_cv_type_long_long_int+set}" = set; then :
15117 $as_echo_n "(cached) " >&6
15118 else
15119 ac_cv_type_long_long_int=yes
15120 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15121 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15122 if test $ac_cv_type_long_long_int = yes; then
15123 if test "$cross_compiling" = yes; then :
15124 :
15125 else
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15128 #include <limits.h>
15129 #ifndef LLONG_MAX
15130 # define HALF \
15131 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15132 # define LLONG_MAX (HALF - 1 + HALF)
15133 #endif
15134 int
15135 main ()
15136 {
15137 long long int n = 1;
15138 int i;
15139 for (i = 0; ; i++)
15140 {
15141 long long int m = n << i;
15142 if (m >> i != n)
15143 return 1;
15144 if (LLONG_MAX / 2 < m)
15145 break;
15146 }
15147 return 0;
15148 ;
15149 return 0;
15150 }
15151 _ACEOF
15152 if ac_fn_c_try_run "$LINENO"; then :
15153
15154 else
15155 ac_cv_type_long_long_int=no
15156 fi
15157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15158 conftest.$ac_objext conftest.beam conftest.$ac_ext
15159 fi
15160
15161 fi
15162 fi
15163 fi
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15165 $as_echo "$ac_cv_type_long_long_int" >&6; }
15166 if test $ac_cv_type_long_long_int = yes; then
15167
15168 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15169
15170 fi
15171
15172
15173
15174
15175
15176
15177 gl_cv_c_multiarch=no
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #ifndef __APPLE_CC__
15181 not a universal capable compiler
15182 #endif
15183 typedef int dummy;
15184
15185 _ACEOF
15186 if ac_fn_c_try_compile "$LINENO"; then :
15187
15188 arch=
15189 prev=
15190 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15191 if test -n "$prev"; then
15192 case $word in
15193 i?86 | x86_64 | ppc | ppc64)
15194 if test -z "$arch" || test "$arch" = "$word"; then
15195 arch="$word"
15196 else
15197 gl_cv_c_multiarch=yes
15198 fi
15199 ;;
15200 esac
15201 prev=
15202 else
15203 if test "x$word" = "x-arch"; then
15204 prev=arch
15205 fi
15206 fi
15207 done
15208
15209 fi
15210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 if test $gl_cv_c_multiarch = yes; then
15212 APPLE_UNIVERSAL_BUILD=1
15213 else
15214 APPLE_UNIVERSAL_BUILD=0
15215 fi
15216
15217
15218
15219
15220
15221 if test $ac_cv_type_long_long_int = yes; then
15222 HAVE_LONG_LONG_INT=1
15223 else
15224 HAVE_LONG_LONG_INT=0
15225 fi
15226
15227
15228 if test $ac_cv_type_unsigned_long_long_int = yes; then
15229 HAVE_UNSIGNED_LONG_LONG_INT=1
15230 else
15231 HAVE_UNSIGNED_LONG_LONG_INT=0
15232 fi
15233
15234
15235
15236 if test $ac_cv_header_wchar_h = yes; then
15237 HAVE_WCHAR_H=1
15238 else
15239 HAVE_WCHAR_H=0
15240 fi
15241
15242
15243 if test $ac_cv_header_inttypes_h = yes; then
15244 HAVE_INTTYPES_H=1
15245 else
15246 HAVE_INTTYPES_H=0
15247 fi
15248
15249
15250 if test $ac_cv_header_sys_types_h = yes; then
15251 HAVE_SYS_TYPES_H=1
15252 else
15253 HAVE_SYS_TYPES_H=0
15254 fi
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266 if test $gl_cv_have_include_next = yes; then
15267 gl_cv_next_stdint_h='<'stdint.h'>'
15268 else
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15270 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15271 if test "${gl_cv_next_stdint_h+set}" = set; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274
15275 if test $ac_cv_header_stdint_h = yes; then
15276
15277
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15280 #include <stdint.h>
15281
15282 _ACEOF
15283 case "$host_os" in
15284 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15285 *) gl_absname_cpp="$ac_cpp" ;;
15286 esac
15287 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15288 sed -n '\#/stdint.h#{
15289 s#.*"\(.*/stdint.h\)".*#\1#
15290 s#^/[^/]#//&#
15291 p
15292 q
15293 }'`'"'
15294 else
15295 gl_cv_next_stdint_h='<'stdint.h'>'
15296 fi
15297
15298
15299 fi
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15301 $as_echo "$gl_cv_next_stdint_h" >&6; }
15302 fi
15303 NEXT_STDINT_H=$gl_cv_next_stdint_h
15304
15305 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15306 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15307 gl_next_as_first_directive='<'stdint.h'>'
15308 else
15309 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15310 gl_next_as_first_directive=$gl_cv_next_stdint_h
15311 fi
15312 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
15313
15314
15315
15316
15317 if test $ac_cv_header_stdint_h = yes; then
15318 HAVE_STDINT_H=1
15319 else
15320 HAVE_STDINT_H=0
15321 fi
15322
15323
15324 if test $ac_cv_header_stdint_h = yes; then
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15326 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15327 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
15328 $as_echo_n "(cached) " >&6
15329 else
15330 gl_cv_header_working_stdint_h=no
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333
15334
15335 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15336 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15337 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15338 #include <stdint.h>
15339 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15340 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15341 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15342 #endif
15343
15344
15345 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15346 included before <wchar.h>. */
15347 #include <stddef.h>
15348 #include <signal.h>
15349 #if HAVE_WCHAR_H
15350 # include <stdio.h>
15351 # include <time.h>
15352 # include <wchar.h>
15353 #endif
15354
15355
15356 #ifdef INT8_MAX
15357 int8_t a1 = INT8_MAX;
15358 int8_t a1min = INT8_MIN;
15359 #endif
15360 #ifdef INT16_MAX
15361 int16_t a2 = INT16_MAX;
15362 int16_t a2min = INT16_MIN;
15363 #endif
15364 #ifdef INT32_MAX
15365 int32_t a3 = INT32_MAX;
15366 int32_t a3min = INT32_MIN;
15367 #endif
15368 #ifdef INT64_MAX
15369 int64_t a4 = INT64_MAX;
15370 int64_t a4min = INT64_MIN;
15371 #endif
15372 #ifdef UINT8_MAX
15373 uint8_t b1 = UINT8_MAX;
15374 #else
15375 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15376 #endif
15377 #ifdef UINT16_MAX
15378 uint16_t b2 = UINT16_MAX;
15379 #endif
15380 #ifdef UINT32_MAX
15381 uint32_t b3 = UINT32_MAX;
15382 #endif
15383 #ifdef UINT64_MAX
15384 uint64_t b4 = UINT64_MAX;
15385 #endif
15386 int_least8_t c1 = INT8_C (0x7f);
15387 int_least8_t c1max = INT_LEAST8_MAX;
15388 int_least8_t c1min = INT_LEAST8_MIN;
15389 int_least16_t c2 = INT16_C (0x7fff);
15390 int_least16_t c2max = INT_LEAST16_MAX;
15391 int_least16_t c2min = INT_LEAST16_MIN;
15392 int_least32_t c3 = INT32_C (0x7fffffff);
15393 int_least32_t c3max = INT_LEAST32_MAX;
15394 int_least32_t c3min = INT_LEAST32_MIN;
15395 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15396 int_least64_t c4max = INT_LEAST64_MAX;
15397 int_least64_t c4min = INT_LEAST64_MIN;
15398 uint_least8_t d1 = UINT8_C (0xff);
15399 uint_least8_t d1max = UINT_LEAST8_MAX;
15400 uint_least16_t d2 = UINT16_C (0xffff);
15401 uint_least16_t d2max = UINT_LEAST16_MAX;
15402 uint_least32_t d3 = UINT32_C (0xffffffff);
15403 uint_least32_t d3max = UINT_LEAST32_MAX;
15404 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15405 uint_least64_t d4max = UINT_LEAST64_MAX;
15406 int_fast8_t e1 = INT_FAST8_MAX;
15407 int_fast8_t e1min = INT_FAST8_MIN;
15408 int_fast16_t e2 = INT_FAST16_MAX;
15409 int_fast16_t e2min = INT_FAST16_MIN;
15410 int_fast32_t e3 = INT_FAST32_MAX;
15411 int_fast32_t e3min = INT_FAST32_MIN;
15412 int_fast64_t e4 = INT_FAST64_MAX;
15413 int_fast64_t e4min = INT_FAST64_MIN;
15414 uint_fast8_t f1 = UINT_FAST8_MAX;
15415 uint_fast16_t f2 = UINT_FAST16_MAX;
15416 uint_fast32_t f3 = UINT_FAST32_MAX;
15417 uint_fast64_t f4 = UINT_FAST64_MAX;
15418 #ifdef INTPTR_MAX
15419 intptr_t g = INTPTR_MAX;
15420 intptr_t gmin = INTPTR_MIN;
15421 #endif
15422 #ifdef UINTPTR_MAX
15423 uintptr_t h = UINTPTR_MAX;
15424 #endif
15425 intmax_t i = INTMAX_MAX;
15426 uintmax_t j = UINTMAX_MAX;
15427
15428 #include <limits.h> /* for CHAR_BIT */
15429 #define TYPE_MINIMUM(t) \
15430 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15431 #define TYPE_MAXIMUM(t) \
15432 ((t) ((t) 0 < (t) -1 \
15433 ? (t) -1 \
15434 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15435 struct s {
15436 int check_PTRDIFF:
15437 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15438 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15439 ? 1 : -1;
15440 /* Detect bug in FreeBSD 6.0 / ia64. */
15441 int check_SIG_ATOMIC:
15442 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15443 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15444 ? 1 : -1;
15445 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15446 int check_WCHAR:
15447 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15448 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15449 ? 1 : -1;
15450 /* Detect bug in mingw. */
15451 int check_WINT:
15452 WINT_MIN == TYPE_MINIMUM (wint_t)
15453 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15454 ? 1 : -1;
15455
15456 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15457 int check_UINT8_C:
15458 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15459 int check_UINT16_C:
15460 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15461
15462 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15463 #ifdef UINT8_MAX
15464 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15465 #endif
15466 #ifdef UINT16_MAX
15467 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15468 #endif
15469 #ifdef UINT32_MAX
15470 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15471 #endif
15472 #ifdef UINT64_MAX
15473 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15474 #endif
15475 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15476 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15477 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15478 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15479 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15480 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15481 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15482 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15483 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15484 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15485 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15486 };
15487
15488 int
15489 main ()
15490 {
15491
15492 ;
15493 return 0;
15494 }
15495 _ACEOF
15496 if ac_fn_c_try_compile "$LINENO"; then :
15497 if test "$cross_compiling" = yes; then :
15498 gl_cv_header_working_stdint_h=yes
15499
15500 else
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503
15504
15505 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15506 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15507 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15508 #include <stdint.h>
15509
15510
15511 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15512 included before <wchar.h>. */
15513 #include <stddef.h>
15514 #include <signal.h>
15515 #if HAVE_WCHAR_H
15516 # include <stdio.h>
15517 # include <time.h>
15518 # include <wchar.h>
15519 #endif
15520
15521
15522 #include <stdio.h>
15523 #include <string.h>
15524 #define MVAL(macro) MVAL1(macro)
15525 #define MVAL1(expression) #expression
15526 static const char *macro_values[] =
15527 {
15528 #ifdef INT8_MAX
15529 MVAL (INT8_MAX),
15530 #endif
15531 #ifdef INT16_MAX
15532 MVAL (INT16_MAX),
15533 #endif
15534 #ifdef INT32_MAX
15535 MVAL (INT32_MAX),
15536 #endif
15537 #ifdef INT64_MAX
15538 MVAL (INT64_MAX),
15539 #endif
15540 #ifdef UINT8_MAX
15541 MVAL (UINT8_MAX),
15542 #endif
15543 #ifdef UINT16_MAX
15544 MVAL (UINT16_MAX),
15545 #endif
15546 #ifdef UINT32_MAX
15547 MVAL (UINT32_MAX),
15548 #endif
15549 #ifdef UINT64_MAX
15550 MVAL (UINT64_MAX),
15551 #endif
15552 NULL
15553 };
15554
15555 int
15556 main ()
15557 {
15558
15559 const char **mv;
15560 for (mv = macro_values; *mv != NULL; mv++)
15561 {
15562 const char *value = *mv;
15563 /* Test whether it looks like a cast expression. */
15564 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15565 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15566 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15567 || strncmp (value, "((int)"/*)*/, 6) == 0
15568 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15569 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15570 return mv - macro_values + 1;
15571 }
15572 return 0;
15573
15574 ;
15575 return 0;
15576 }
15577 _ACEOF
15578 if ac_fn_c_try_run "$LINENO"; then :
15579 gl_cv_header_working_stdint_h=yes
15580 fi
15581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15582 conftest.$ac_objext conftest.beam conftest.$ac_ext
15583 fi
15584
15585
15586 fi
15587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588
15589 fi
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15591 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15592 fi
15593 if test "$gl_cv_header_working_stdint_h" = yes; then
15594 STDINT_H=
15595 else
15596 for ac_header in sys/inttypes.h sys/bitypes.h
15597 do :
15598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15599 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15600 eval as_val=\$$as_ac_Header
15601 if test "x$as_val" = x""yes; then :
15602 cat >>confdefs.h <<_ACEOF
15603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15604 _ACEOF
15605
15606 fi
15607
15608 done
15609
15610 if test $ac_cv_header_sys_inttypes_h = yes; then
15611 HAVE_SYS_INTTYPES_H=1
15612 else
15613 HAVE_SYS_INTTYPES_H=0
15614 fi
15615
15616 if test $ac_cv_header_sys_bitypes_h = yes; then
15617 HAVE_SYS_BITYPES_H=1
15618 else
15619 HAVE_SYS_BITYPES_H=0
15620 fi
15621
15622
15623
15624
15625 if test $APPLE_UNIVERSAL_BUILD = 0; then
15626
15627
15628 for gltype in ptrdiff_t size_t ; do
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15630 $as_echo_n "checking for bit size of $gltype... " >&6; }
15631 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15632 $as_echo_n "(cached) " >&6
15633 else
15634 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15635 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15636 included before <wchar.h>. */
15637 #include <stddef.h>
15638 #include <signal.h>
15639 #if HAVE_WCHAR_H
15640 # include <stdio.h>
15641 # include <time.h>
15642 # include <wchar.h>
15643 #endif
15644
15645 #include <limits.h>"; then :
15646
15647 else
15648 result=unknown
15649 fi
15650
15651 eval gl_cv_bitsizeof_${gltype}=\$result
15652
15653 fi
15654 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15656 $as_echo "$ac_res" >&6; }
15657 eval result=\$gl_cv_bitsizeof_${gltype}
15658 if test $result = unknown; then
15659 result=0
15660 fi
15661 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15662 cat >>confdefs.h <<_ACEOF
15663 #define BITSIZEOF_${GLTYPE} $result
15664 _ACEOF
15665
15666 eval BITSIZEOF_${GLTYPE}=\$result
15667 done
15668
15669
15670 fi
15671
15672
15673 for gltype in sig_atomic_t wchar_t wint_t ; do
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15675 $as_echo_n "checking for bit size of $gltype... " >&6; }
15676 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15677 $as_echo_n "(cached) " >&6
15678 else
15679 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15680 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15681 included before <wchar.h>. */
15682 #include <stddef.h>
15683 #include <signal.h>
15684 #if HAVE_WCHAR_H
15685 # include <stdio.h>
15686 # include <time.h>
15687 # include <wchar.h>
15688 #endif
15689
15690 #include <limits.h>"; then :
15691
15692 else
15693 result=unknown
15694 fi
15695
15696 eval gl_cv_bitsizeof_${gltype}=\$result
15697
15698 fi
15699 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15701 $as_echo "$ac_res" >&6; }
15702 eval result=\$gl_cv_bitsizeof_${gltype}
15703 if test $result = unknown; then
15704 result=0
15705 fi
15706 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15707 cat >>confdefs.h <<_ACEOF
15708 #define BITSIZEOF_${GLTYPE} $result
15709 _ACEOF
15710
15711 eval BITSIZEOF_${GLTYPE}=\$result
15712 done
15713
15714
15715
15716
15717 for gltype in sig_atomic_t wchar_t wint_t ; do
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15719 $as_echo_n "checking whether $gltype is signed... " >&6; }
15720 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725
15726 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15727 included before <wchar.h>. */
15728 #include <stddef.h>
15729 #include <signal.h>
15730 #if HAVE_WCHAR_H
15731 # include <stdio.h>
15732 # include <time.h>
15733 # include <wchar.h>
15734 #endif
15735
15736 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15737 int
15738 main ()
15739 {
15740
15741 ;
15742 return 0;
15743 }
15744 _ACEOF
15745 if ac_fn_c_try_compile "$LINENO"; then :
15746 result=yes
15747 else
15748 result=no
15749 fi
15750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751 eval gl_cv_type_${gltype}_signed=\$result
15752
15753 fi
15754 eval ac_res=\$gl_cv_type_${gltype}_signed
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15756 $as_echo "$ac_res" >&6; }
15757 eval result=\$gl_cv_type_${gltype}_signed
15758 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15759 if test "$result" = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define HAVE_SIGNED_${GLTYPE} 1
15762 _ACEOF
15763
15764 eval HAVE_SIGNED_${GLTYPE}=1
15765 else
15766 eval HAVE_SIGNED_${GLTYPE}=0
15767 fi
15768 done
15769
15770
15771 gl_cv_type_ptrdiff_t_signed=yes
15772 gl_cv_type_size_t_signed=no
15773 if test $APPLE_UNIVERSAL_BUILD = 0; then
15774
15775
15776 for gltype in ptrdiff_t size_t ; do
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15778 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15779 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15780 $as_echo_n "(cached) " >&6
15781 else
15782 eval gl_cv_type_${gltype}_suffix=no
15783 eval result=\$gl_cv_type_${gltype}_signed
15784 if test "$result" = yes; then
15785 glsufu=
15786 else
15787 glsufu=u
15788 fi
15789 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15790 case $glsuf in
15791 '') gltype1='int';;
15792 l) gltype1='long int';;
15793 ll) gltype1='long long int';;
15794 i64) gltype1='__int64';;
15795 u) gltype1='unsigned int';;
15796 ul) gltype1='unsigned long int';;
15797 ull) gltype1='unsigned long long int';;
15798 ui64)gltype1='unsigned __int64';;
15799 esac
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15802
15803 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15804 included before <wchar.h>. */
15805 #include <stddef.h>
15806 #include <signal.h>
15807 #if HAVE_WCHAR_H
15808 # include <stdio.h>
15809 # include <time.h>
15810 # include <wchar.h>
15811 #endif
15812
15813 extern $gltype foo;
15814 extern $gltype1 foo;
15815 int
15816 main ()
15817 {
15818
15819 ;
15820 return 0;
15821 }
15822 _ACEOF
15823 if ac_fn_c_try_compile "$LINENO"; then :
15824 eval gl_cv_type_${gltype}_suffix=\$glsuf
15825 fi
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827 eval result=\$gl_cv_type_${gltype}_suffix
15828 test "$result" != no && break
15829 done
15830 fi
15831 eval ac_res=\$gl_cv_type_${gltype}_suffix
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15833 $as_echo "$ac_res" >&6; }
15834 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15835 eval result=\$gl_cv_type_${gltype}_suffix
15836 test "$result" = no && result=
15837 eval ${GLTYPE}_SUFFIX=\$result
15838 cat >>confdefs.h <<_ACEOF
15839 #define ${GLTYPE}_SUFFIX $result
15840 _ACEOF
15841
15842 done
15843
15844
15845 fi
15846
15847
15848 for gltype in sig_atomic_t wchar_t wint_t ; do
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15850 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15851 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15852 $as_echo_n "(cached) " >&6
15853 else
15854 eval gl_cv_type_${gltype}_suffix=no
15855 eval result=\$gl_cv_type_${gltype}_signed
15856 if test "$result" = yes; then
15857 glsufu=
15858 else
15859 glsufu=u
15860 fi
15861 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15862 case $glsuf in
15863 '') gltype1='int';;
15864 l) gltype1='long int';;
15865 ll) gltype1='long long int';;
15866 i64) gltype1='__int64';;
15867 u) gltype1='unsigned int';;
15868 ul) gltype1='unsigned long int';;
15869 ull) gltype1='unsigned long long int';;
15870 ui64)gltype1='unsigned __int64';;
15871 esac
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15874
15875 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15876 included before <wchar.h>. */
15877 #include <stddef.h>
15878 #include <signal.h>
15879 #if HAVE_WCHAR_H
15880 # include <stdio.h>
15881 # include <time.h>
15882 # include <wchar.h>
15883 #endif
15884
15885 extern $gltype foo;
15886 extern $gltype1 foo;
15887 int
15888 main ()
15889 {
15890
15891 ;
15892 return 0;
15893 }
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896 eval gl_cv_type_${gltype}_suffix=\$glsuf
15897 fi
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 eval result=\$gl_cv_type_${gltype}_suffix
15900 test "$result" != no && break
15901 done
15902 fi
15903 eval ac_res=\$gl_cv_type_${gltype}_suffix
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15905 $as_echo "$ac_res" >&6; }
15906 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15907 eval result=\$gl_cv_type_${gltype}_suffix
15908 test "$result" = no && result=
15909 eval ${GLTYPE}_SUFFIX=\$result
15910 cat >>confdefs.h <<_ACEOF
15911 #define ${GLTYPE}_SUFFIX $result
15912 _ACEOF
15913
15914 done
15915
15916
15917
15918 STDINT_H=stdint.h
15919 fi
15920
15921 if test -n "$STDINT_H"; then
15922 GL_GENERATE_STDINT_H_TRUE=
15923 GL_GENERATE_STDINT_H_FALSE='#'
15924 else
15925 GL_GENERATE_STDINT_H_TRUE='#'
15926 GL_GENERATE_STDINT_H_FALSE=
15927 fi
15928
15929
15930
15931
15932
15933 GNULIB_IMAXABS=0;
15934 GNULIB_IMAXDIV=0;
15935 GNULIB_STRTOIMAX=0;
15936 GNULIB_STRTOUMAX=0;
15937 HAVE_DECL_IMAXABS=1;
15938 HAVE_DECL_IMAXDIV=1;
15939 HAVE_DECL_STRTOIMAX=1;
15940 HAVE_DECL_STRTOUMAX=1;
15941 INT32_MAX_LT_INTMAX_MAX=1;
15942 INT64_MAX_EQ_LONG_MAX='defined _LP64';
15943 PRI_MACROS_BROKEN=0;
15944 PRIPTR_PREFIX=__PRIPTR_PREFIX;
15945 UINT32_MAX_LT_UINTMAX_MAX=1;
15946 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962 if test $gl_cv_have_include_next = yes; then
15963 gl_cv_next_inttypes_h='<'inttypes.h'>'
15964 else
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
15966 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
15967 if test "${gl_cv_next_inttypes_h+set}" = set; then :
15968 $as_echo_n "(cached) " >&6
15969 else
15970
15971 if test $ac_cv_header_inttypes_h = yes; then
15972
15973
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 #include <inttypes.h>
15977
15978 _ACEOF
15979 case "$host_os" in
15980 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15981 *) gl_absname_cpp="$ac_cpp" ;;
15982 esac
15983 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15984 sed -n '\#/inttypes.h#{
15985 s#.*"\(.*/inttypes.h\)".*#\1#
15986 s#^/[^/]#//&#
15987 p
15988 q
15989 }'`'"'
15990 else
15991 gl_cv_next_inttypes_h='<'inttypes.h'>'
15992 fi
15993
15994
15995 fi
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
15997 $as_echo "$gl_cv_next_inttypes_h" >&6; }
15998 fi
15999 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
16000
16001 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16003 gl_next_as_first_directive='<'inttypes.h'>'
16004 else
16005 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16006 gl_next_as_first_directive=$gl_cv_next_inttypes_h
16007 fi
16008 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
16009
16010
16011
16012
16013
16014
16015
16016
16017 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
16018
16019
16020
16021
16022
16023
16024 GNULIB_FCHMODAT=0;
16025 GNULIB_FSTATAT=0;
16026 GNULIB_FUTIMENS=0;
16027 GNULIB_LCHMOD=0;
16028 GNULIB_LSTAT=0;
16029 GNULIB_MKDIRAT=0;
16030 GNULIB_MKFIFO=0;
16031 GNULIB_MKFIFOAT=0;
16032 GNULIB_MKNOD=0;
16033 GNULIB_MKNODAT=0;
16034 GNULIB_STAT=0;
16035 GNULIB_UTIMENSAT=0;
16036 HAVE_FCHMODAT=1;
16037 HAVE_FSTATAT=1;
16038 HAVE_FUTIMENS=1;
16039 HAVE_LCHMOD=1;
16040 HAVE_LSTAT=1;
16041 HAVE_MKDIRAT=1;
16042 HAVE_MKFIFO=1;
16043 HAVE_MKFIFOAT=1;
16044 HAVE_MKNOD=1;
16045 HAVE_MKNODAT=1;
16046 HAVE_UTIMENSAT=1;
16047 REPLACE_FSTAT=0;
16048 REPLACE_FSTATAT=0;
16049 REPLACE_FUTIMENS=0;
16050 REPLACE_LSTAT=0;
16051 REPLACE_MKDIR=0;
16052 REPLACE_MKFIFO=0;
16053 REPLACE_MKNOD=0;
16054 REPLACE_STAT=0;
16055 REPLACE_UTIMENSAT=0;
16056
16057
16058
16059
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16061 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16062 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
16063 $as_echo_n "(cached) " >&6
16064 else
16065 rm -f conftest.sym conftest.file
16066 echo >conftest.file
16067 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16068 if test "$cross_compiling" = yes; then :
16069 # When cross-compiling, be pessimistic so we will end up using the
16070 # replacement version of lstat that checks for trailing slashes and
16071 # calls lstat a second time when necessary.
16072 gl_cv_func_lstat_dereferences_slashed_symlink=no
16073
16074 else
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 $ac_includes_default
16078 int
16079 main ()
16080 {
16081 struct stat sbuf;
16082 /* Linux will dereference the symlink and fail, as required by
16083 POSIX. That is better in the sense that it means we will not
16084 have to compile and use the lstat wrapper. */
16085 return lstat ("conftest.sym/", &sbuf) == 0;
16086
16087 ;
16088 return 0;
16089 }
16090 _ACEOF
16091 if ac_fn_c_try_run "$LINENO"; then :
16092 gl_cv_func_lstat_dereferences_slashed_symlink=yes
16093 else
16094 gl_cv_func_lstat_dereferences_slashed_symlink=no
16095 fi
16096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16097 conftest.$ac_objext conftest.beam conftest.$ac_ext
16098 fi
16099
16100 else
16101 # If the 'ln -s' command failed, then we probably don't even
16102 # have an lstat function.
16103 gl_cv_func_lstat_dereferences_slashed_symlink=no
16104 fi
16105 rm -f conftest.sym conftest.file
16106
16107 fi
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
16109 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16110 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
16111
16112 cat >>confdefs.h <<_ACEOF
16113 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16114 _ACEOF
16115
16116
16117
16118 GNULIB_MKTIME=0;
16119 GNULIB_NANOSLEEP=0;
16120 GNULIB_STRPTIME=0;
16121 GNULIB_TIMEGM=0;
16122 GNULIB_TIME_R=0;
16123 HAVE_DECL_LOCALTIME_R=1;
16124 HAVE_NANOSLEEP=1;
16125 HAVE_STRPTIME=1;
16126 HAVE_TIMEGM=1;
16127 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
16128 REPLACE_MKTIME=GNULIB_PORTCHECK;
16129 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
16130 REPLACE_TIMEGM=GNULIB_PORTCHECK;
16131
16132
16133
16134
16135
16136
16137
16138
16139 if test $ac_cv_header_sys_socket_h = no; then
16140 for ac_header in ws2tcpip.h
16141 do :
16142 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
16143 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
16144 cat >>confdefs.h <<_ACEOF
16145 #define HAVE_WS2TCPIP_H 1
16146 _ACEOF
16147
16148 fi
16149
16150 done
16151
16152 fi
16153
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16155 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16156 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16157 $as_echo_n "(cached) " >&6
16158 else
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161
16162 #include <stdbool.h>
16163 #ifndef bool
16164 "error: bool is not defined"
16165 #endif
16166 #ifndef false
16167 "error: false is not defined"
16168 #endif
16169 #if false
16170 "error: false is not 0"
16171 #endif
16172 #ifndef true
16173 "error: true is not defined"
16174 #endif
16175 #if true != 1
16176 "error: true is not 1"
16177 #endif
16178 #ifndef __bool_true_false_are_defined
16179 "error: __bool_true_false_are_defined is not defined"
16180 #endif
16181
16182 struct s { _Bool s: 1; _Bool t; } s;
16183
16184 char a[true == 1 ? 1 : -1];
16185 char b[false == 0 ? 1 : -1];
16186 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16187 char d[(bool) 0.5 == true ? 1 : -1];
16188 /* See body of main program for 'e'. */
16189 char f[(_Bool) 0.0 == false ? 1 : -1];
16190 char g[true];
16191 char h[sizeof (_Bool)];
16192 char i[sizeof s.t];
16193 enum { j = false, k = true, l = false * true, m = true * 256 };
16194 /* The following fails for
16195 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16196 _Bool n[m];
16197 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16198 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16199 /* Catch a bug in an HP-UX C compiler. See
16200 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16201 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16202 */
16203 _Bool q = true;
16204 _Bool *pq = &q;
16205
16206 int
16207 main ()
16208 {
16209
16210 bool e = &s;
16211 *pq |= q;
16212 *pq |= ! q;
16213 /* Refer to every declared value, to avoid compiler optimizations. */
16214 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16215 + !m + !n + !o + !p + !q + !pq);
16216
16217 ;
16218 return 0;
16219 }
16220 _ACEOF
16221 if ac_fn_c_try_compile "$LINENO"; then :
16222 ac_cv_header_stdbool_h=yes
16223 else
16224 ac_cv_header_stdbool_h=no
16225 fi
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227 fi
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16229 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16230 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16231 if test "x$ac_cv_type__Bool" = x""yes; then :
16232
16233 cat >>confdefs.h <<_ACEOF
16234 #define HAVE__BOOL 1
16235 _ACEOF
16236
16237
16238 fi
16239
16240
16241
16242 REPLACE_NULL=0;
16243 HAVE_WCHAR_T=1;
16244
16245
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
16247 $as_echo_n "checking for wchar_t... " >&6; }
16248 if test "${gt_cv_c_wchar_t+set}" = set; then :
16249 $as_echo_n "(cached) " >&6
16250 else
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 #include <stddef.h>
16254 wchar_t foo = (wchar_t)'\0';
16255 int
16256 main ()
16257 {
16258
16259 ;
16260 return 0;
16261 }
16262 _ACEOF
16263 if ac_fn_c_try_compile "$LINENO"; then :
16264 gt_cv_c_wchar_t=yes
16265 else
16266 gt_cv_c_wchar_t=no
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 fi
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
16271 $as_echo "$gt_cv_c_wchar_t" >&6; }
16272 if test $gt_cv_c_wchar_t = yes; then
16273
16274 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
16275
16276 fi
16277
16278
16279 GNULIB_DPRINTF=0;
16280 GNULIB_FCLOSE=0;
16281 GNULIB_FFLUSH=0;
16282 GNULIB_FGETC=0;
16283 GNULIB_FGETS=0;
16284 GNULIB_FOPEN=0;
16285 GNULIB_FPRINTF=0;
16286 GNULIB_FPRINTF_POSIX=0;
16287 GNULIB_FPURGE=0;
16288 GNULIB_FPUTC=0;
16289 GNULIB_FPUTS=0;
16290 GNULIB_FREAD=0;
16291 GNULIB_FREOPEN=0;
16292 GNULIB_FSCANF=0;
16293 GNULIB_FSEEK=0;
16294 GNULIB_FSEEKO=0;
16295 GNULIB_FTELL=0;
16296 GNULIB_FTELLO=0;
16297 GNULIB_FWRITE=0;
16298 GNULIB_GETC=0;
16299 GNULIB_GETCHAR=0;
16300 GNULIB_GETDELIM=0;
16301 GNULIB_GETLINE=0;
16302 GNULIB_GETS=0;
16303 GNULIB_OBSTACK_PRINTF=0;
16304 GNULIB_OBSTACK_PRINTF_POSIX=0;
16305 GNULIB_PERROR=0;
16306 GNULIB_POPEN=0;
16307 GNULIB_PRINTF=0;
16308 GNULIB_PRINTF_POSIX=0;
16309 GNULIB_PUTC=0;
16310 GNULIB_PUTCHAR=0;
16311 GNULIB_PUTS=0;
16312 GNULIB_REMOVE=0;
16313 GNULIB_RENAME=0;
16314 GNULIB_RENAMEAT=0;
16315 GNULIB_SCANF=0;
16316 GNULIB_SNPRINTF=0;
16317 GNULIB_SPRINTF_POSIX=0;
16318 GNULIB_STDIO_H_NONBLOCKING=0;
16319 GNULIB_STDIO_H_SIGPIPE=0;
16320 GNULIB_TMPFILE=0;
16321 GNULIB_VASPRINTF=0;
16322 GNULIB_VFSCANF=0;
16323 GNULIB_VSCANF=0;
16324 GNULIB_VDPRINTF=0;
16325 GNULIB_VFPRINTF=0;
16326 GNULIB_VFPRINTF_POSIX=0;
16327 GNULIB_VPRINTF=0;
16328 GNULIB_VPRINTF_POSIX=0;
16329 GNULIB_VSNPRINTF=0;
16330 GNULIB_VSPRINTF_POSIX=0;
16331 HAVE_DECL_FPURGE=1;
16332 HAVE_DECL_FSEEKO=1;
16333 HAVE_DECL_FTELLO=1;
16334 HAVE_DECL_GETDELIM=1;
16335 HAVE_DECL_GETLINE=1;
16336 HAVE_DECL_OBSTACK_PRINTF=1;
16337 HAVE_DECL_SNPRINTF=1;
16338 HAVE_DECL_VSNPRINTF=1;
16339 HAVE_DPRINTF=1;
16340 HAVE_FSEEKO=1;
16341 HAVE_FTELLO=1;
16342 HAVE_RENAMEAT=1;
16343 HAVE_VASPRINTF=1;
16344 HAVE_VDPRINTF=1;
16345 REPLACE_DPRINTF=0;
16346 REPLACE_FCLOSE=0;
16347 REPLACE_FFLUSH=0;
16348 REPLACE_FOPEN=0;
16349 REPLACE_FPRINTF=0;
16350 REPLACE_FPURGE=0;
16351 REPLACE_FREOPEN=0;
16352 REPLACE_FSEEK=0;
16353 REPLACE_FSEEKO=0;
16354 REPLACE_FTELL=0;
16355 REPLACE_FTELLO=0;
16356 REPLACE_GETDELIM=0;
16357 REPLACE_GETLINE=0;
16358 REPLACE_OBSTACK_PRINTF=0;
16359 REPLACE_PERROR=0;
16360 REPLACE_POPEN=0;
16361 REPLACE_PRINTF=0;
16362 REPLACE_REMOVE=0;
16363 REPLACE_RENAME=0;
16364 REPLACE_RENAMEAT=0;
16365 REPLACE_SNPRINTF=0;
16366 REPLACE_SPRINTF=0;
16367 REPLACE_STDIO_READ_FUNCS=0;
16368 REPLACE_STDIO_WRITE_FUNCS=0;
16369 REPLACE_TMPFILE=0;
16370 REPLACE_VASPRINTF=0;
16371 REPLACE_VDPRINTF=0;
16372 REPLACE_VFPRINTF=0;
16373 REPLACE_VPRINTF=0;
16374 REPLACE_VSNPRINTF=0;
16375 REPLACE_VSPRINTF=0;
16376
16377
16378 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
16379 "
16380 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
16381
16382 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
16383
16384 fi
16385
16386
16387
16388
16389 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
16390 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
16391 ac_have_decl=1
16392 else
16393 ac_have_decl=0
16394 fi
16395
16396 cat >>confdefs.h <<_ACEOF
16397 #define HAVE_DECL_STRTOUMAX $ac_have_decl
16398 _ACEOF
16399
16400
16401
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16403 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16404 if test "${ac_cv_header_stat_broken+set}" = set; then :
16405 $as_echo_n "(cached) " >&6
16406 else
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16409 #include <sys/types.h>
16410 #include <sys/stat.h>
16411
16412 #if defined S_ISBLK && defined S_IFDIR
16413 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16414 #endif
16415
16416 #if defined S_ISBLK && defined S_IFCHR
16417 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16418 #endif
16419
16420 #if defined S_ISLNK && defined S_IFREG
16421 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16422 #endif
16423
16424 #if defined S_ISSOCK && defined S_IFREG
16425 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16426 #endif
16427
16428 _ACEOF
16429 if ac_fn_c_try_compile "$LINENO"; then :
16430 ac_cv_header_stat_broken=no
16431 else
16432 ac_cv_header_stat_broken=yes
16433 fi
16434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 fi
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16437 $as_echo "$ac_cv_header_stat_broken" >&6; }
16438 if test $ac_cv_header_stat_broken = yes; then
16439
16440 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16441
16442 fi
16443
16444
16445
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16447 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16448 if test "${ac_cv_c_restrict+set}" = set; then :
16449 $as_echo_n "(cached) " >&6
16450 else
16451 ac_cv_c_restrict=no
16452 # The order here caters to the fact that C++ does not require restrict.
16453 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 typedef int * int_ptr;
16457 int foo (int_ptr $ac_kw ip) {
16458 return ip[0];
16459 }
16460 int
16461 main ()
16462 {
16463 int s[1];
16464 int * $ac_kw t = s;
16465 t[0] = 0;
16466 return foo(t)
16467 ;
16468 return 0;
16469 }
16470 _ACEOF
16471 if ac_fn_c_try_compile "$LINENO"; then :
16472 ac_cv_c_restrict=$ac_kw
16473 fi
16474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475 test "$ac_cv_c_restrict" != no && break
16476 done
16477
16478 fi
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16480 $as_echo "$ac_cv_c_restrict" >&6; }
16481
16482 case $ac_cv_c_restrict in
16483 restrict) ;;
16484 no) $as_echo "#define restrict /**/" >>confdefs.h
16485 ;;
16486 *) cat >>confdefs.h <<_ACEOF
16487 #define restrict $ac_cv_c_restrict
16488 _ACEOF
16489 ;;
16490 esac
16491
16492
16493
16494
16495
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16497 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16498 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
16499 $as_echo_n "(cached) " >&6
16500 else
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503 #include <time.h>
16504
16505 int
16506 main ()
16507 {
16508 static struct timespec x; x.tv_sec = x.tv_nsec;
16509 ;
16510 return 0;
16511 }
16512 _ACEOF
16513 if ac_fn_c_try_compile "$LINENO"; then :
16514 gl_cv_sys_struct_timespec_in_time_h=yes
16515 else
16516 gl_cv_sys_struct_timespec_in_time_h=no
16517 fi
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519 fi
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16521 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16522
16523 TIME_H_DEFINES_STRUCT_TIMESPEC=0
16524 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
16525 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
16526 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16527 TIME_H_DEFINES_STRUCT_TIMESPEC=1
16528 else
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16530 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16531 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
16532 $as_echo_n "(cached) " >&6
16533 else
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h. */
16536 #include <sys/time.h>
16537
16538 int
16539 main ()
16540 {
16541 static struct timespec x; x.tv_sec = x.tv_nsec;
16542 ;
16543 return 0;
16544 }
16545 _ACEOF
16546 if ac_fn_c_try_compile "$LINENO"; then :
16547 gl_cv_sys_struct_timespec_in_sys_time_h=yes
16548 else
16549 gl_cv_sys_struct_timespec_in_sys_time_h=no
16550 fi
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552 fi
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16554 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16555 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16556 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
16557 else
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16559 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16560 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
16561 $as_echo_n "(cached) " >&6
16562 else
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 #include <pthread.h>
16566
16567 int
16568 main ()
16569 {
16570 static struct timespec x; x.tv_sec = x.tv_nsec;
16571 ;
16572 return 0;
16573 }
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"; then :
16576 gl_cv_sys_struct_timespec_in_pthread_h=yes
16577 else
16578 gl_cv_sys_struct_timespec_in_pthread_h=no
16579 fi
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 fi
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16583 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16584 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16585 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
16586 fi
16587 fi
16588 fi
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604 if test $gl_cv_have_include_next = yes; then
16605 gl_cv_next_time_h='<'time.h'>'
16606 else
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16608 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16609 if test "${gl_cv_next_time_h+set}" = set; then :
16610 $as_echo_n "(cached) " >&6
16611 else
16612
16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614 /* end confdefs.h. */
16615 #include <time.h>
16616
16617 _ACEOF
16618 case "$host_os" in
16619 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16620 *) gl_absname_cpp="$ac_cpp" ;;
16621 esac
16622 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16623 sed -n '\#/time.h#{
16624 s#.*"\(.*/time.h\)".*#\1#
16625 s#^/[^/]#//&#
16626 p
16627 q
16628 }'`'"'
16629
16630
16631 fi
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16633 $as_echo "$gl_cv_next_time_h" >&6; }
16634 fi
16635 NEXT_TIME_H=$gl_cv_next_time_h
16636
16637 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16638 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16639 gl_next_as_first_directive='<'time.h'>'
16640 else
16641 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16642 gl_next_as_first_directive=$gl_cv_next_time_h
16643 fi
16644 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
16645
16646
16647
16648
16649
16650
16651 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
16652 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
16653 ac_have_decl=1
16654 else
16655 ac_have_decl=0
16656 fi
16657
16658 cat >>confdefs.h <<_ACEOF
16659 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
16660 _ACEOF
16661
16662
16663
16664
16665 if false; then
16666 GL_COND_LIBTOOL_TRUE=
16667 GL_COND_LIBTOOL_FALSE='#'
16668 else
16669 GL_COND_LIBTOOL_TRUE='#'
16670 GL_COND_LIBTOOL_FALSE=
16671 fi
16672
16673 gl_cond_libtool=false
16674 gl_libdeps=
16675 gl_ltlibdeps=
16676 gl_m4_base='m4'
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686 gl_source_base='lib'
16687
16688
16689 if test $ac_cv_func_alloca_works = no; then
16690 :
16691 fi
16692
16693 # Define an additional variable used in the Makefile substitution.
16694 if test $ac_cv_working_alloca_h = yes; then
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16696 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16697 if test "${gl_cv_rpl_alloca+set}" = set; then :
16698 $as_echo_n "(cached) " >&6
16699 else
16700
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703
16704 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16705 Need own alloca
16706 #endif
16707
16708 _ACEOF
16709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16710 $EGREP "Need own alloca" >/dev/null 2>&1; then :
16711 gl_cv_rpl_alloca=yes
16712 else
16713 gl_cv_rpl_alloca=no
16714 fi
16715 rm -f conftest*
16716
16717
16718 fi
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16720 $as_echo "$gl_cv_rpl_alloca" >&6; }
16721 if test $gl_cv_rpl_alloca = yes; then
16722
16723 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16724
16725 ALLOCA_H=alloca.h
16726 else
16727 ALLOCA_H=
16728 fi
16729 else
16730 ALLOCA_H=alloca.h
16731 fi
16732
16733 if test -n "$ALLOCA_H"; then
16734 GL_GENERATE_ALLOCA_H_TRUE=
16735 GL_GENERATE_ALLOCA_H_FALSE='#'
16736 else
16737 GL_GENERATE_ALLOCA_H_TRUE='#'
16738 GL_GENERATE_ALLOCA_H_FALSE=
16739 fi
16740
16741
16742
16743
16744
16745
16746 :
16747
16748
16749
16750
16751 :
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
16768
16769
16770 if test $HAVE_DUP2 = 1; then
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
16772 $as_echo_n "checking whether dup2 works... " >&6; }
16773 if test "${gl_cv_func_dup2_works+set}" = set; then :
16774 $as_echo_n "(cached) " >&6
16775 else
16776 if test "$cross_compiling" = yes; then :
16777 case "$host_os" in
16778 mingw*) # on this platform, dup2 always returns 0 for success
16779 gl_cv_func_dup2_works=no;;
16780 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
16781 gl_cv_func_dup2_works=no;;
16782 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
16783 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
16784 gl_cv_func_dup2_works=no;;
16785 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
16786 gl_cv_func_dup2_works=no;;
16787 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
16788 gl_cv_func_dup2_works=no;;
16789 *) gl_cv_func_dup2_works=yes;;
16790 esac
16791 else
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794
16795 #include <unistd.h>
16796 #include <fcntl.h>
16797 #include <errno.h>
16798 int
16799 main ()
16800 {
16801 int result = 0;
16802 #ifdef FD_CLOEXEC
16803 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
16804 result |= 1;
16805 #endif
16806 if (dup2 (1, 1) == 0)
16807 result |= 2;
16808 #ifdef FD_CLOEXEC
16809 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
16810 result |= 4;
16811 #endif
16812 close (0);
16813 if (dup2 (0, 0) != -1)
16814 result |= 8;
16815 /* Many gnulib modules require POSIX conformance of EBADF. */
16816 if (dup2 (2, 1000000) == -1 && errno != EBADF)
16817 result |= 16;
16818 return result;
16819
16820 ;
16821 return 0;
16822 }
16823
16824 _ACEOF
16825 if ac_fn_c_try_run "$LINENO"; then :
16826 gl_cv_func_dup2_works=yes
16827 else
16828 gl_cv_func_dup2_works=no
16829 fi
16830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16831 conftest.$ac_objext conftest.beam conftest.$ac_ext
16832 fi
16833
16834
16835 fi
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
16837 $as_echo "$gl_cv_func_dup2_works" >&6; }
16838 if test "$gl_cv_func_dup2_works" = no; then
16839
16840
16841
16842 if test $ac_cv_func_dup2 = yes; then
16843 REPLACE_DUP2=1
16844 fi
16845
16846
16847
16848
16849
16850
16851
16852
16853 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
16854
16855
16856 fi
16857 fi
16858
16859
16860
16861
16862
16863
16864 GNULIB_DUP2=1
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876 # Persuade glibc <stdlib.h> to declare getloadavg().
16877
16878
16879 gl_save_LIBS=$LIBS
16880
16881 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
16882 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
16883 HAVE_GETLOADAVG=1
16884 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
16885 if test "x$ac_cv_func_getloadavg" = x""yes; then :
16886
16887 else
16888 gl_func_getloadavg_done=no
16889
16890 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16891 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16892 # to get the right answer into the cache.
16893 # For kstat on solaris, we need to test for libelf and libkvm to force the
16894 # definition of SVR4 below.
16895 if test $gl_func_getloadavg_done = no; then
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
16897 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
16898 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 ac_check_lib_save_LIBS=$LIBS
16902 LIBS="-lelf $LIBS"
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16905
16906 /* Override any GCC internal prototype to avoid an error.
16907 Use char because int might match the return type of a GCC
16908 builtin and then its argument prototype would still apply. */
16909 #ifdef __cplusplus
16910 extern "C"
16911 #endif
16912 char elf_begin ();
16913 int
16914 main ()
16915 {
16916 return elf_begin ();
16917 ;
16918 return 0;
16919 }
16920 _ACEOF
16921 if ac_fn_c_try_link "$LINENO"; then :
16922 ac_cv_lib_elf_elf_begin=yes
16923 else
16924 ac_cv_lib_elf_elf_begin=no
16925 fi
16926 rm -f core conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16929 fi
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
16931 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
16932 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
16933 LIBS="-lelf $LIBS"
16934 fi
16935
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
16937 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
16938 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
16939 $as_echo_n "(cached) " >&6
16940 else
16941 ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-lkvm $LIBS"
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944 /* end confdefs.h. */
16945
16946 /* Override any GCC internal prototype to avoid an error.
16947 Use char because int might match the return type of a GCC
16948 builtin and then its argument prototype would still apply. */
16949 #ifdef __cplusplus
16950 extern "C"
16951 #endif
16952 char kvm_open ();
16953 int
16954 main ()
16955 {
16956 return kvm_open ();
16957 ;
16958 return 0;
16959 }
16960 _ACEOF
16961 if ac_fn_c_try_link "$LINENO"; then :
16962 ac_cv_lib_kvm_kvm_open=yes
16963 else
16964 ac_cv_lib_kvm_kvm_open=no
16965 fi
16966 rm -f core conftest.err conftest.$ac_objext \
16967 conftest$ac_exeext conftest.$ac_ext
16968 LIBS=$ac_check_lib_save_LIBS
16969 fi
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
16971 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
16972 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
16973 LIBS="-lkvm $LIBS"
16974 fi
16975
16976 # Check for the 4.4BSD definition of getloadavg.
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
16978 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
16979 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 ac_check_lib_save_LIBS=$LIBS
16983 LIBS="-lutil $LIBS"
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16986
16987 /* Override any GCC internal prototype to avoid an error.
16988 Use char because int might match the return type of a GCC
16989 builtin and then its argument prototype would still apply. */
16990 #ifdef __cplusplus
16991 extern "C"
16992 #endif
16993 char getloadavg ();
16994 int
16995 main ()
16996 {
16997 return getloadavg ();
16998 ;
16999 return 0;
17000 }
17001 _ACEOF
17002 if ac_fn_c_try_link "$LINENO"; then :
17003 ac_cv_lib_util_getloadavg=yes
17004 else
17005 ac_cv_lib_util_getloadavg=no
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009 LIBS=$ac_check_lib_save_LIBS
17010 fi
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
17012 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
17013 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
17014 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
17015 fi
17016
17017 fi
17018
17019 if test $gl_func_getloadavg_done = no; then
17020 # There is a commonly available library for RS/6000 AIX.
17021 # Since it is not a standard part of AIX, it might be installed locally.
17022 gl_getloadavg_LIBS=$LIBS
17023 LIBS="-L/usr/local/lib $LIBS"
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
17025 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
17026 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
17027 $as_echo_n "(cached) " >&6
17028 else
17029 ac_check_lib_save_LIBS=$LIBS
17030 LIBS="-lgetloadavg $LIBS"
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17033
17034 /* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17037 #ifdef __cplusplus
17038 extern "C"
17039 #endif
17040 char getloadavg ();
17041 int
17042 main ()
17043 {
17044 return getloadavg ();
17045 ;
17046 return 0;
17047 }
17048 _ACEOF
17049 if ac_fn_c_try_link "$LINENO"; then :
17050 ac_cv_lib_getloadavg_getloadavg=yes
17051 else
17052 ac_cv_lib_getloadavg_getloadavg=no
17053 fi
17054 rm -f core conftest.err conftest.$ac_objext \
17055 conftest$ac_exeext conftest.$ac_ext
17056 LIBS=$ac_check_lib_save_LIBS
17057 fi
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17059 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
17060 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
17061 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
17062 else
17063 LIBS=$gl_getloadavg_LIBS
17064 fi
17065
17066 fi
17067
17068 # Set up the replacement function if necessary.
17069 if test $gl_func_getloadavg_done = no; then
17070 HAVE_GETLOADAVG=0
17071
17072 # Solaris has libkstat which does not require root.
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
17074 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17075 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
17076 $as_echo_n "(cached) " >&6
17077 else
17078 ac_check_lib_save_LIBS=$LIBS
17079 LIBS="-lkstat $LIBS"
17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081 /* end confdefs.h. */
17082
17083 /* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17086 #ifdef __cplusplus
17087 extern "C"
17088 #endif
17089 char kstat_open ();
17090 int
17091 main ()
17092 {
17093 return kstat_open ();
17094 ;
17095 return 0;
17096 }
17097 _ACEOF
17098 if ac_fn_c_try_link "$LINENO"; then :
17099 ac_cv_lib_kstat_kstat_open=yes
17100 else
17101 ac_cv_lib_kstat_kstat_open=no
17102 fi
17103 rm -f core conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17105 LIBS=$ac_check_lib_save_LIBS
17106 fi
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
17108 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17109 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
17110 cat >>confdefs.h <<_ACEOF
17111 #define HAVE_LIBKSTAT 1
17112 _ACEOF
17113
17114 LIBS="-lkstat $LIBS"
17115
17116 fi
17117
17118 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
17119
17120 # AIX has libperfstat which does not require root
17121 if test $gl_func_getloadavg_done = no; then
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
17123 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
17124 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 ac_check_lib_save_LIBS=$LIBS
17128 LIBS="-lperfstat $LIBS"
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131
17132 /* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 char perfstat_cpu_total ();
17139 int
17140 main ()
17141 {
17142 return perfstat_cpu_total ();
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 if ac_fn_c_try_link "$LINENO"; then :
17148 ac_cv_lib_perfstat_perfstat_cpu_total=yes
17149 else
17150 ac_cv_lib_perfstat_perfstat_cpu_total=no
17151 fi
17152 rm -f core conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17154 LIBS=$ac_check_lib_save_LIBS
17155 fi
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
17157 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
17158 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
17159 cat >>confdefs.h <<_ACEOF
17160 #define HAVE_LIBPERFSTAT 1
17161 _ACEOF
17162
17163 LIBS="-lperfstat $LIBS"
17164
17165 fi
17166
17167 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
17168 fi
17169
17170 if test $gl_func_getloadavg_done = no; then
17171 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
17172 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
17173 gl_func_getloadavg_done=yes
17174
17175 $as_echo "#define DGUX 1" >>confdefs.h
17176
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
17178 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
17179 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
17180 $as_echo_n "(cached) " >&6
17181 else
17182 ac_check_lib_save_LIBS=$LIBS
17183 LIBS="-ldgc $LIBS"
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h. */
17186
17187 /* Override any GCC internal prototype to avoid an error.
17188 Use char because int might match the return type of a GCC
17189 builtin and then its argument prototype would still apply. */
17190 #ifdef __cplusplus
17191 extern "C"
17192 #endif
17193 char dg_sys_info ();
17194 int
17195 main ()
17196 {
17197 return dg_sys_info ();
17198 ;
17199 return 0;
17200 }
17201 _ACEOF
17202 if ac_fn_c_try_link "$LINENO"; then :
17203 ac_cv_lib_dgc_dg_sys_info=yes
17204 else
17205 ac_cv_lib_dgc_dg_sys_info=no
17206 fi
17207 rm -f core conftest.err conftest.$ac_objext \
17208 conftest$ac_exeext conftest.$ac_ext
17209 LIBS=$ac_check_lib_save_LIBS
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17212 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
17213 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
17214 cat >>confdefs.h <<_ACEOF
17215 #define HAVE_LIBDGC 1
17216 _ACEOF
17217
17218 LIBS="-ldgc $LIBS"
17219
17220 fi
17221
17222 fi
17223
17224
17225 fi
17226 fi
17227 fi
17228
17229
17230 if test "x$gl_save_LIBS" = x; then
17231 GETLOADAVG_LIBS=$LIBS
17232 else
17233 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
17234 fi
17235 LIBS=$gl_save_LIBS
17236
17237
17238 # Test whether the system declares getloadavg. Solaris has the function
17239 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
17240 for ac_header in sys/loadavg.h
17241 do :
17242 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
17243 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
17244 cat >>confdefs.h <<_ACEOF
17245 #define HAVE_SYS_LOADAVG_H 1
17246 _ACEOF
17247
17248 fi
17249
17250 done
17251
17252 if test $ac_cv_header_sys_loadavg_h = yes; then
17253 HAVE_SYS_LOADAVG_H=1
17254 else
17255 HAVE_SYS_LOADAVG_H=0
17256 fi
17257 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
17258 # include <sys/loadavg.h>
17259 #endif
17260 #include <stdlib.h>
17261 "
17262 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
17263
17264 else
17265 HAVE_DECL_GETLOADAVG=0
17266 fi
17267
17268
17269 if test $HAVE_GETLOADAVG = 0; then
17270
17271
17272
17273
17274
17275
17276
17277
17278 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
17279
17280
17281 # Figure out what our getloadavg.c needs.
17282
17283 # On HPUX9, an unprivileged user can get load averages this way.
17284 if test $gl_func_getloadavg_done = no; then
17285 for ac_func in pstat_getdynamic
17286 do :
17287 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
17288 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
17289 cat >>confdefs.h <<_ACEOF
17290 #define HAVE_PSTAT_GETDYNAMIC 1
17291 _ACEOF
17292 gl_func_getloadavg_done=yes
17293 fi
17294 done
17295
17296 fi
17297
17298 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17299 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17300 # Irix 4.0.5F has the header but not the library.
17301 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
17302 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
17303 gl_func_getloadavg_done=yes
17304
17305 $as_echo "#define SVR4 1" >>confdefs.h
17306
17307 fi
17308
17309 if test $gl_func_getloadavg_done = no; then
17310 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
17311 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
17312 gl_func_getloadavg_done=yes
17313
17314 $as_echo "#define UMAX 1" >>confdefs.h
17315
17316
17317 $as_echo "#define UMAX4_3 1" >>confdefs.h
17318
17319 fi
17320
17321
17322 fi
17323
17324 if test $gl_func_getloadavg_done = no; then
17325 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
17326 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
17327 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
17328
17329 fi
17330
17331
17332 fi
17333
17334 if test $gl_func_getloadavg_done = no; then
17335 for ac_header in mach/mach.h
17336 do :
17337 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
17338 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
17339 cat >>confdefs.h <<_ACEOF
17340 #define HAVE_MACH_MACH_H 1
17341 _ACEOF
17342
17343 fi
17344
17345 done
17346
17347 fi
17348
17349 for ac_header in nlist.h
17350 do :
17351 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
17352 if test "x$ac_cv_header_nlist_h" = x""yes; then :
17353 cat >>confdefs.h <<_ACEOF
17354 #define HAVE_NLIST_H 1
17355 _ACEOF
17356 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
17357 "
17358 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
17359
17360 cat >>confdefs.h <<_ACEOF
17361 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17362 _ACEOF
17363
17364
17365 fi
17366
17367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17368 /* end confdefs.h. */
17369 #include <nlist.h>
17370 int
17371 main ()
17372 {
17373 struct nlist x;
17374 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
17375 x.n_un.n_name = "";
17376 #else
17377 x.n_name = "";
17378 #endif
17379 ;
17380 return 0;
17381 }
17382 _ACEOF
17383 if ac_fn_c_try_link "$LINENO"; then :
17384
17385 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
17386
17387 fi
17388 rm -f core conftest.err conftest.$ac_objext \
17389 conftest$ac_exeext conftest.$ac_ext
17390
17391 fi
17392
17393 done
17394
17395 fi
17396
17397
17398
17399
17400
17401 GNULIB_GETLOADAVG=1
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412 if test $REPLACE_GETOPT = 1; then
17413
17414
17415
17416
17417
17418
17419
17420
17421 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17432
17433
17434
17435
17436 fi
17437
17438
17439
17440
17441
17442 REPLACE_GETOPT=0
17443
17444
17445 if test -n "$gl_replace_getopt"; then :
17446
17447 REPLACE_GETOPT=1
17448
17449 fi
17450
17451
17452 if test $REPLACE_GETOPT = 1; then
17453
17454 GETOPT_H=getopt.h
17455
17456 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17457
17458
17459
17460 GNULIB_UNISTD_H_GETOPT=1
17461 fi
17462
17463 if test $REPLACE_GETOPT = 1; then
17464
17465
17466
17467
17468
17469
17470
17471
17472 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17483
17484
17485
17486
17487 fi
17488
17489
17490
17491
17492
17493 if test $ac_cv_func_lstat = yes; then
17494
17495 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
17496 REPLACE_LSTAT=1
17497 fi
17498 else
17499 HAVE_LSTAT=0
17500 fi
17501
17502 if test $REPLACE_LSTAT = 1; then
17503
17504
17505
17506
17507
17508
17509
17510
17511 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
17512
17513
17514
17515 :
17516
17517 fi
17518
17519
17520
17521
17522
17523 GNULIB_LSTAT=1
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535 if test $APPLE_UNIVERSAL_BUILD = 1; then
17536 # A universal build on Apple MacOS X platforms.
17537 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
17538 # But we need a configuration result that is valid in both modes.
17539 gl_cv_func_working_mktime=no
17540 fi
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17542 $as_echo_n "checking for working mktime... " >&6; }
17543 if test "${gl_cv_func_working_mktime+set}" = set; then :
17544 $as_echo_n "(cached) " >&6
17545 else
17546 if test "$cross_compiling" = yes; then :
17547 gl_cv_func_working_mktime=no
17548 else
17549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17550 /* end confdefs.h. */
17551 /* Test program from Paul Eggert and Tony Leneis. */
17552 #include <limits.h>
17553 #include <stdlib.h>
17554 #include <time.h>
17555
17556 #ifdef HAVE_UNISTD_H
17557 # include <unistd.h>
17558 #endif
17559
17560 #ifndef HAVE_ALARM
17561 # define alarm(X) /* empty */
17562 #endif
17563
17564 /* Work around redefinition to rpl_putenv by other config tests. */
17565 #undef putenv
17566
17567 static time_t time_t_max;
17568 static time_t time_t_min;
17569
17570 /* Values we'll use to set the TZ environment variable. */
17571 static char *tz_strings[] = {
17572 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17573 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17574 };
17575 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17576
17577 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17578 Based on a problem report from Andreas Jaeger. */
17579 static int
17580 spring_forward_gap ()
17581 {
17582 /* glibc (up to about 1998-10-07) failed this test. */
17583 struct tm tm;
17584
17585 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17586 instead of "TZ=America/Vancouver" in order to detect the bug even
17587 on systems that don't support the Olson extension, or don't have the
17588 full zoneinfo tables installed. */
17589 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17590
17591 tm.tm_year = 98;
17592 tm.tm_mon = 3;
17593 tm.tm_mday = 5;
17594 tm.tm_hour = 2;
17595 tm.tm_min = 0;
17596 tm.tm_sec = 0;
17597 tm.tm_isdst = -1;
17598 return mktime (&tm) != (time_t) -1;
17599 }
17600
17601 static int
17602 mktime_test1 (time_t now)
17603 {
17604 struct tm *lt;
17605 return ! (lt = localtime (&now)) || mktime (lt) == now;
17606 }
17607
17608 static int
17609 mktime_test (time_t now)
17610 {
17611 return (mktime_test1 (now)
17612 && mktime_test1 ((time_t) (time_t_max - now))
17613 && mktime_test1 ((time_t) (time_t_min + now)));
17614 }
17615
17616 static int
17617 irix_6_4_bug ()
17618 {
17619 /* Based on code from Ariel Faigon. */
17620 struct tm tm;
17621 tm.tm_year = 96;
17622 tm.tm_mon = 3;
17623 tm.tm_mday = 0;
17624 tm.tm_hour = 0;
17625 tm.tm_min = 0;
17626 tm.tm_sec = 0;
17627 tm.tm_isdst = -1;
17628 mktime (&tm);
17629 return tm.tm_mon == 2 && tm.tm_mday == 31;
17630 }
17631
17632 static int
17633 bigtime_test (int j)
17634 {
17635 struct tm tm;
17636 time_t now;
17637 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17638 now = mktime (&tm);
17639 if (now != (time_t) -1)
17640 {
17641 struct tm *lt = localtime (&now);
17642 if (! (lt
17643 && lt->tm_year == tm.tm_year
17644 && lt->tm_mon == tm.tm_mon
17645 && lt->tm_mday == tm.tm_mday
17646 && lt->tm_hour == tm.tm_hour
17647 && lt->tm_min == tm.tm_min
17648 && lt->tm_sec == tm.tm_sec
17649 && lt->tm_yday == tm.tm_yday
17650 && lt->tm_wday == tm.tm_wday
17651 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17652 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17653 return 0;
17654 }
17655 return 1;
17656 }
17657
17658 static int
17659 year_2050_test ()
17660 {
17661 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17662 ignoring leap seconds. */
17663 unsigned long int answer = 2527315200UL;
17664
17665 struct tm tm;
17666 time_t t;
17667 tm.tm_year = 2050 - 1900;
17668 tm.tm_mon = 2 - 1;
17669 tm.tm_mday = 1;
17670 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17671 tm.tm_isdst = -1;
17672
17673 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17674 instead of "TZ=America/Vancouver" in order to detect the bug even
17675 on systems that don't support the Olson extension, or don't have the
17676 full zoneinfo tables installed. */
17677 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17678
17679 t = mktime (&tm);
17680
17681 /* Check that the result is either a failure, or close enough
17682 to the correct answer that we can assume the discrepancy is
17683 due to leap seconds. */
17684 return (t == (time_t) -1
17685 || (0 < t && answer - 120 <= t && t <= answer + 120));
17686 }
17687
17688 int
17689 main ()
17690 {
17691 int result = 0;
17692 time_t t, delta;
17693 int i, j;
17694 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
17695 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
17696
17697 /* This test makes some buggy mktime implementations loop.
17698 Give up after 60 seconds; a mktime slower than that
17699 isn't worth using anyway. */
17700 alarm (60);
17701
17702 time_t_max = (! time_t_signed
17703 ? (time_t) -1
17704 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
17705 * 2 + 1));
17706 time_t_min = (! time_t_signed
17707 ? (time_t) 0
17708 : time_t_signed_magnitude
17709 ? ~ (time_t) 0
17710 : ~ time_t_max);
17711
17712 delta = time_t_max / 997; /* a suitable prime number */
17713 for (i = 0; i < N_STRINGS; i++)
17714 {
17715 if (tz_strings[i])
17716 putenv (tz_strings[i]);
17717
17718 for (t = 0; t <= time_t_max - delta; t += delta)
17719 if (! mktime_test (t))
17720 result |= 1;
17721 if (! (mktime_test ((time_t) 1)
17722 && mktime_test ((time_t) (60 * 60))
17723 && mktime_test ((time_t) (60 * 60 * 24))))
17724 result |= 2;
17725
17726 for (j = 1; ; j <<= 1)
17727 if (! bigtime_test (j))
17728 result |= 4;
17729 else if (INT_MAX / 2 < j)
17730 break;
17731 if (! bigtime_test (INT_MAX))
17732 result |= 8;
17733 }
17734 if (! irix_6_4_bug ())
17735 result |= 16;
17736 if (! spring_forward_gap ())
17737 result |= 32;
17738 if (! year_2050_test ())
17739 result |= 64;
17740 return result;
17741 }
17742 _ACEOF
17743 if ac_fn_c_try_run "$LINENO"; then :
17744 gl_cv_func_working_mktime=yes
17745 else
17746 gl_cv_func_working_mktime=no
17747 fi
17748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17749 conftest.$ac_objext conftest.beam conftest.$ac_ext
17750 fi
17751
17752
17753 fi
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
17755 $as_echo "$gl_cv_func_working_mktime" >&6; }
17756
17757 if test $gl_cv_func_working_mktime = no; then
17758 REPLACE_MKTIME=1
17759 else
17760 REPLACE_MKTIME=0
17761 fi
17762
17763 if test $REPLACE_MKTIME = 1; then
17764
17765
17766
17767
17768
17769
17770
17771
17772 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
17773
17774
17775
17776
17777 fi
17778
17779
17780
17781
17782
17783 GNULIB_MKTIME=1
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793 if test $ac_cv_func_readlink = no; then
17794 HAVE_READLINK=0
17795 else
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
17797 $as_echo_n "checking whether readlink signature is correct... " >&6; }
17798 if test "${gl_cv_decl_readlink_works+set}" = set; then :
17799 $as_echo_n "(cached) " >&6
17800 else
17801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17802 /* end confdefs.h. */
17803 #include <unistd.h>
17804 /* Cause compilation failure if original declaration has wrong type. */
17805 ssize_t readlink (const char *, char *, size_t);
17806 int
17807 main ()
17808 {
17809
17810 ;
17811 return 0;
17812 }
17813 _ACEOF
17814 if ac_fn_c_try_compile "$LINENO"; then :
17815 gl_cv_decl_readlink_works=yes
17816 else
17817 gl_cv_decl_readlink_works=no
17818 fi
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 fi
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
17822 $as_echo "$gl_cv_decl_readlink_works" >&6; }
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
17824 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
17825 if test "${gl_cv_func_readlink_works+set}" = set; then :
17826 $as_echo_n "(cached) " >&6
17827 else
17828 # We have readlink, so assume ln -s works.
17829 ln -s conftest.no-such conftest.link
17830 ln -s conftest.link conftest.lnk2
17831 if test "$cross_compiling" = yes; then :
17832 gl_cv_func_readlink_works="guessing no"
17833 else
17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17836 #include <unistd.h>
17837
17838 int
17839 main ()
17840 {
17841 char buf[20];
17842 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
17843 ;
17844 return 0;
17845 }
17846 _ACEOF
17847 if ac_fn_c_try_run "$LINENO"; then :
17848 gl_cv_func_readlink_works=yes
17849 else
17850 gl_cv_func_readlink_works=no
17851 fi
17852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17853 conftest.$ac_objext conftest.beam conftest.$ac_ext
17854 fi
17855
17856 rm -f conftest.link conftest.lnk2
17857 fi
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
17859 $as_echo "$gl_cv_func_readlink_works" >&6; }
17860 if test "$gl_cv_func_readlink_works" != yes; then
17861
17862 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
17863
17864 REPLACE_READLINK=1
17865 elif test "$gl_cv_decl_readlink_works" != yes; then
17866 REPLACE_READLINK=1
17867 fi
17868 fi
17869
17870 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
17871
17872
17873
17874
17875
17876
17877
17878
17879 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17880
17881
17882 :
17883
17884 fi
17885
17886
17887
17888
17889
17890 GNULIB_READLINK=1
17891
17892
17893
17894
17895
17896 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
17897 /* <sys/types.h> is not needed according to POSIX, but the
17898 <sys/socket.h> in i386-unknown-freebsd4.10 and
17899 powerpc-apple-darwin5.5 required it. */
17900 #include <sys/types.h>
17901 #if HAVE_SYS_SOCKET_H
17902 # include <sys/socket.h>
17903 #elif HAVE_WS2TCPIP_H
17904 # include <ws2tcpip.h>
17905 #endif
17906
17907 "
17908 if test "x$ac_cv_type_socklen_t" = x""yes; then :
17909
17910 else
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17912 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17913 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
17914 $as_echo_n "(cached) " >&6
17915 else
17916 # Systems have either "struct sockaddr *" or
17917 # "void *" as the second argument to getpeername
17918 gl_cv_socklen_t_equiv=
17919 for arg2 in "struct sockaddr" void; do
17920 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h. */
17923 #include <sys/types.h>
17924 #include <sys/socket.h>
17925
17926 int getpeername (int, $arg2 *, $t *);
17927 int
17928 main ()
17929 {
17930 $t len;
17931 getpeername (0, 0, &len);
17932 ;
17933 return 0;
17934 }
17935 _ACEOF
17936 if ac_fn_c_try_compile "$LINENO"; then :
17937 gl_cv_socklen_t_equiv="$t"
17938 fi
17939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17940 test "$gl_cv_socklen_t_equiv" != "" && break
17941 done
17942 test "$gl_cv_socklen_t_equiv" != "" && break
17943 done
17944
17945 fi
17946
17947 if test "$gl_cv_socklen_t_equiv" = ""; then
17948 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17949 fi
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17951 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17952
17953 cat >>confdefs.h <<_ACEOF
17954 #define socklen_t $gl_cv_socklen_t_equiv
17955 _ACEOF
17956
17957 fi
17958
17959
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17961 $as_echo_n "checking for ssize_t... " >&6; }
17962 if test "${gt_cv_ssize_t+set}" = set; then :
17963 $as_echo_n "(cached) " >&6
17964 else
17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17967 #include <sys/types.h>
17968 int
17969 main ()
17970 {
17971 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17972 return !x;
17973 ;
17974 return 0;
17975 }
17976 _ACEOF
17977 if ac_fn_c_try_compile "$LINENO"; then :
17978 gt_cv_ssize_t=yes
17979 else
17980 gt_cv_ssize_t=no
17981 fi
17982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17983 fi
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17985 $as_echo "$gt_cv_ssize_t" >&6; }
17986 if test $gt_cv_ssize_t = no; then
17987
17988 $as_echo "#define ssize_t int" >>confdefs.h
17989
17990 fi
17991
17992
17993 STDARG_H=''
17994 NEXT_STDARG_H='<stdarg.h>'
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
17996 $as_echo_n "checking for va_copy... " >&6; }
17997 if test "${gl_cv_func_va_copy+set}" = set; then :
17998 $as_echo_n "(cached) " >&6
17999 else
18000
18001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h. */
18003 #include <stdarg.h>
18004 int
18005 main ()
18006 {
18007
18008 #ifndef va_copy
18009 void (*func) (va_list, va_list) = va_copy;
18010 #endif
18011
18012 ;
18013 return 0;
18014 }
18015 _ACEOF
18016 if ac_fn_c_try_compile "$LINENO"; then :
18017 gl_cv_func_va_copy=yes
18018 else
18019 gl_cv_func_va_copy=no
18020 fi
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022 fi
18023
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
18025 $as_echo "$gl_cv_func_va_copy" >&6; }
18026 if test $gl_cv_func_va_copy = no; then
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h. */
18029 #if defined _AIX && !defined __GNUC__
18030 AIX vaccine
18031 #endif
18032
18033 _ACEOF
18034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18035 $EGREP "vaccine" >/dev/null 2>&1; then :
18036 gl_aixcc=yes
18037 else
18038 gl_aixcc=no
18039 fi
18040 rm -f conftest*
18041
18042 if test $gl_aixcc = yes; then
18043 STDARG_H=stdarg.h
18044
18045
18046
18047
18048
18049
18050
18051
18052 if test $gl_cv_have_include_next = yes; then
18053 gl_cv_next_stdarg_h='<'stdarg.h'>'
18054 else
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
18056 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
18057 if test "${gl_cv_next_stdarg_h+set}" = set; then :
18058 $as_echo_n "(cached) " >&6
18059 else
18060
18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18063 #include <stdarg.h>
18064
18065 _ACEOF
18066 case "$host_os" in
18067 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18068 *) gl_absname_cpp="$ac_cpp" ;;
18069 esac
18070 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18071 sed -n '\#/stdarg.h#{
18072 s#.*"\(.*/stdarg.h\)".*#\1#
18073 s#^/[^/]#//&#
18074 p
18075 q
18076 }'`'"'
18077
18078
18079 fi
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
18081 $as_echo "$gl_cv_next_stdarg_h" >&6; }
18082 fi
18083 NEXT_STDARG_H=$gl_cv_next_stdarg_h
18084
18085 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18087 gl_next_as_first_directive='<'stdarg.h'>'
18088 else
18089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18090 gl_next_as_first_directive=$gl_cv_next_stdarg_h
18091 fi
18092 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
18093
18094
18095
18096
18097 if test "$gl_cv_next_stdarg_h" = '""'; then
18098 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
18099 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
18100 fi
18101 else
18102
18103 saved_as_echo_n="$as_echo_n"
18104 as_echo_n=':'
18105 if test "${gl_cv_func___va_copy+set}" = set; then :
18106 $as_echo_n "(cached) " >&6
18107 else
18108
18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h. */
18111 #include <stdarg.h>
18112 int
18113 main ()
18114 {
18115
18116 #ifndef __va_copy
18117 error, bail out
18118 #endif
18119
18120 ;
18121 return 0;
18122 }
18123 _ACEOF
18124 if ac_fn_c_try_compile "$LINENO"; then :
18125 gl_cv_func___va_copy=yes
18126 else
18127 gl_cv_func___va_copy=no
18128 fi
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 fi
18131
18132 as_echo_n="$saved_as_echo_n"
18133
18134 if test $gl_cv_func___va_copy = yes; then
18135
18136 $as_echo "#define va_copy __va_copy" >>confdefs.h
18137
18138 else
18139
18140
18141 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
18142
18143 fi
18144 fi
18145 fi
18146
18147 if test -n "$STDARG_H"; then
18148 GL_GENERATE_STDARG_H_TRUE=
18149 GL_GENERATE_STDARG_H_FALSE='#'
18150 else
18151 GL_GENERATE_STDARG_H_TRUE='#'
18152 GL_GENERATE_STDARG_H_FALSE=
18153 fi
18154
18155
18156
18157
18158
18159
18160 # Define two additional variables used in the Makefile substitution.
18161
18162 if test "$ac_cv_header_stdbool_h" = yes; then
18163 STDBOOL_H=''
18164 else
18165 STDBOOL_H='stdbool.h'
18166 fi
18167
18168 if test -n "$STDBOOL_H"; then
18169 GL_GENERATE_STDBOOL_H_TRUE=
18170 GL_GENERATE_STDBOOL_H_FALSE='#'
18171 else
18172 GL_GENERATE_STDBOOL_H_TRUE='#'
18173 GL_GENERATE_STDBOOL_H_FALSE=
18174 fi
18175
18176
18177 if test "$ac_cv_type__Bool" = yes; then
18178 HAVE__BOOL=1
18179 else
18180 HAVE__BOOL=0
18181 fi
18182
18183
18184
18185
18186
18187 STDDEF_H=
18188 if test $gt_cv_c_wchar_t = no; then
18189 HAVE_WCHAR_T=0
18190 STDDEF_H=stddef.h
18191 fi
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
18193 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
18194 if test "${gl_cv_decl_null_works+set}" = set; then :
18195 $as_echo_n "(cached) " >&6
18196 else
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199 #include <stddef.h>
18200 int test[2 * (sizeof NULL == sizeof (void *)) -1];
18201
18202 int
18203 main ()
18204 {
18205
18206 ;
18207 return 0;
18208 }
18209 _ACEOF
18210 if ac_fn_c_try_compile "$LINENO"; then :
18211 gl_cv_decl_null_works=yes
18212 else
18213 gl_cv_decl_null_works=no
18214 fi
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216 fi
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
18218 $as_echo "$gl_cv_decl_null_works" >&6; }
18219 if test $gl_cv_decl_null_works = no; then
18220 REPLACE_NULL=1
18221 STDDEF_H=stddef.h
18222 fi
18223
18224 if test -n "$STDDEF_H"; then
18225 GL_GENERATE_STDDEF_H_TRUE=
18226 GL_GENERATE_STDDEF_H_FALSE='#'
18227 else
18228 GL_GENERATE_STDDEF_H_TRUE='#'
18229 GL_GENERATE_STDDEF_H_FALSE=
18230 fi
18231
18232 if test -n "$STDDEF_H"; then
18233
18234
18235
18236
18237
18238
18239
18240
18241 if test $gl_cv_have_include_next = yes; then
18242 gl_cv_next_stddef_h='<'stddef.h'>'
18243 else
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
18245 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
18246 if test "${gl_cv_next_stddef_h+set}" = set; then :
18247 $as_echo_n "(cached) " >&6
18248 else
18249
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18252 #include <stddef.h>
18253
18254 _ACEOF
18255 case "$host_os" in
18256 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18257 *) gl_absname_cpp="$ac_cpp" ;;
18258 esac
18259 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18260 sed -n '\#/stddef.h#{
18261 s#.*"\(.*/stddef.h\)".*#\1#
18262 s#^/[^/]#//&#
18263 p
18264 q
18265 }'`'"'
18266
18267
18268 fi
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
18270 $as_echo "$gl_cv_next_stddef_h" >&6; }
18271 fi
18272 NEXT_STDDEF_H=$gl_cv_next_stddef_h
18273
18274 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18275 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18276 gl_next_as_first_directive='<'stddef.h'>'
18277 else
18278 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18279 gl_next_as_first_directive=$gl_cv_next_stddef_h
18280 fi
18281 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
18282
18283
18284
18285
18286 fi
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300 if test $gl_cv_have_include_next = yes; then
18301 gl_cv_next_stdio_h='<'stdio.h'>'
18302 else
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18304 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18305 if test "${gl_cv_next_stdio_h+set}" = set; then :
18306 $as_echo_n "(cached) " >&6
18307 else
18308
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311 #include <stdio.h>
18312
18313 _ACEOF
18314 case "$host_os" in
18315 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18316 *) gl_absname_cpp="$ac_cpp" ;;
18317 esac
18318 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18319 sed -n '\#/stdio.h#{
18320 s#.*"\(.*/stdio.h\)".*#\1#
18321 s#^/[^/]#//&#
18322 p
18323 q
18324 }'`'"'
18325
18326
18327 fi
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18329 $as_echo "$gl_cv_next_stdio_h" >&6; }
18330 fi
18331 NEXT_STDIO_H=$gl_cv_next_stdio_h
18332
18333 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18334 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18335 gl_next_as_first_directive='<'stdio.h'>'
18336 else
18337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18338 gl_next_as_first_directive=$gl_cv_next_stdio_h
18339 fi
18340 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18341
18342
18343
18344
18345
18346 GNULIB_FSCANF=1
18347 GNULIB_SCANF=1
18348 GNULIB_FGETC=1
18349 GNULIB_GETC=1
18350 GNULIB_GETCHAR=1
18351 GNULIB_FGETS=1
18352 GNULIB_GETS=1
18353 GNULIB_FREAD=1
18354
18355
18356 GNULIB_FPRINTF=1
18357 GNULIB_PRINTF=1
18358 GNULIB_VFPRINTF=1
18359 GNULIB_VPRINTF=1
18360 GNULIB_FPUTC=1
18361 GNULIB_PUTC=1
18362 GNULIB_PUTCHAR=1
18363 GNULIB_FPUTS=1
18364 GNULIB_PUTS=1
18365 GNULIB_FWRITE=1
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381 if test $gl_cv_have_include_next = yes; then
18382 gl_cv_next_stdlib_h='<'stdlib.h'>'
18383 else
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18385 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18386 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18387 $as_echo_n "(cached) " >&6
18388 else
18389
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18392 #include <stdlib.h>
18393
18394 _ACEOF
18395 case "$host_os" in
18396 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18397 *) gl_absname_cpp="$ac_cpp" ;;
18398 esac
18399 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18400 sed -n '\#/stdlib.h#{
18401 s#.*"\(.*/stdlib.h\)".*#\1#
18402 s#^/[^/]#//&#
18403 p
18404 q
18405 }'`'"'
18406
18407
18408 fi
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18410 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18411 fi
18412 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18413
18414 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18415 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18416 gl_next_as_first_directive='<'stdlib.h'>'
18417 else
18418 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18419 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18420 fi
18421 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18432
18433
18434
18435
18436
18437
18438
18439 $as_echo "#define my_strftime nstrftime" >>confdefs.h
18440
18441
18442
18443
18444
18445
18446
18447 if test "$ac_cv_have_decl_strtoumax" != yes; then
18448 HAVE_DECL_STRTOUMAX=0
18449
18450 for ac_func in strtoumax
18451 do :
18452 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
18453 if test "x$ac_cv_func_strtoumax" = x""yes; then :
18454 cat >>confdefs.h <<_ACEOF
18455 #define HAVE_STRTOUMAX 1
18456 _ACEOF
18457
18458 fi
18459 done
18460
18461 fi
18462
18463 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
18464
18465
18466
18467
18468
18469
18470
18471
18472 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
18473
18474
18475 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
18476 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
18477 ac_have_decl=1
18478 else
18479 ac_have_decl=0
18480 fi
18481
18482 cat >>confdefs.h <<_ACEOF
18483 #define HAVE_DECL_STRTOULL $ac_have_decl
18484 _ACEOF
18485
18486
18487
18488 fi
18489
18490
18491
18492
18493
18494 GNULIB_STRTOUMAX=1
18495
18496
18497
18498
18499
18500
18501
18502 if test $ac_cv_func_symlink = no; then
18503 HAVE_SYMLINK=0
18504 else
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
18506 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
18507 if test "${gl_cv_func_symlink_works+set}" = set; then :
18508 $as_echo_n "(cached) " >&6
18509 else
18510 if test "$cross_compiling" = yes; then :
18511 gl_cv_func_symlink_works="guessing no"
18512 else
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h. */
18515 #include <unistd.h>
18516
18517 int
18518 main ()
18519 {
18520 int result = 0;
18521 if (!symlink ("a", "conftest.link/"))
18522 result |= 1;
18523 if (symlink ("conftest.f", "conftest.lnk2"))
18524 result |= 2;
18525 else if (!symlink ("a", "conftest.lnk2/"))
18526 result |= 4;
18527 return result;
18528
18529 ;
18530 return 0;
18531 }
18532 _ACEOF
18533 if ac_fn_c_try_run "$LINENO"; then :
18534 gl_cv_func_symlink_works=yes
18535 else
18536 gl_cv_func_symlink_works=no
18537 fi
18538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18539 conftest.$ac_objext conftest.beam conftest.$ac_ext
18540 fi
18541
18542 rm -f conftest.f conftest.link conftest.lnk2
18543 fi
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
18545 $as_echo "$gl_cv_func_symlink_works" >&6; }
18546 if test "$gl_cv_func_symlink_works" != yes; then
18547 REPLACE_SYMLINK=1
18548 fi
18549 fi
18550
18551 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
18552
18553
18554
18555
18556
18557
18558
18559
18560 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
18561
18562 fi
18563
18564
18565
18566
18567
18568 GNULIB_SYMLINK=1
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590 if test $gl_cv_have_include_next = yes; then
18591 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18592 else
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18594 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18595 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18596 $as_echo_n "(cached) " >&6
18597 else
18598
18599 if test $ac_cv_header_sys_stat_h = yes; then
18600
18601
18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603 /* end confdefs.h. */
18604 #include <sys/stat.h>
18605
18606 _ACEOF
18607 case "$host_os" in
18608 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18609 *) gl_absname_cpp="$ac_cpp" ;;
18610 esac
18611 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18612 sed -n '\#/sys/stat.h#{
18613 s#.*"\(.*/sys/stat.h\)".*#\1#
18614 s#^/[^/]#//&#
18615 p
18616 q
18617 }'`'"'
18618 else
18619 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18620 fi
18621
18622
18623 fi
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18625 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18626 fi
18627 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18628
18629 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18630 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18631 gl_next_as_first_directive='<'sys/stat.h'>'
18632 else
18633 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18634 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18635 fi
18636 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18637
18638
18639
18640
18641
18642 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18643 #include <sys/stat.h>
18644 "
18645 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18646
18647 else
18648
18649 $as_echo "#define nlink_t int" >>confdefs.h
18650
18651 fi
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667 if test $ac_cv_have_decl_localtime_r = no; then
18668 HAVE_DECL_LOCALTIME_R=0
18669 fi
18670
18671
18672 if test $ac_cv_func_localtime_r = yes; then
18673 HAVE_LOCALTIME_R=1
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
18675 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
18676 if test "${gl_cv_time_r_posix+set}" = set; then :
18677 $as_echo_n "(cached) " >&6
18678 else
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 #include <time.h>
18682 int
18683 main ()
18684 {
18685 /* We don't need to append 'restrict's to the argument types,
18686 even though the POSIX signature has the 'restrict's,
18687 since C99 says they can't affect type compatibility. */
18688 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
18689 if (ptr) return 0;
18690 /* Check the return type is a pointer.
18691 On HP-UX 10 it is 'int'. */
18692 *localtime_r (0, 0);
18693 ;
18694 return 0;
18695 }
18696
18697 _ACEOF
18698 if ac_fn_c_try_compile "$LINENO"; then :
18699 gl_cv_time_r_posix=yes
18700 else
18701 gl_cv_time_r_posix=no
18702 fi
18703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18704
18705 fi
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
18707 $as_echo "$gl_cv_time_r_posix" >&6; }
18708 if test $gl_cv_time_r_posix = yes; then
18709 REPLACE_LOCALTIME_R=0
18710 else
18711 REPLACE_LOCALTIME_R=1
18712 fi
18713 else
18714 HAVE_LOCALTIME_R=0
18715 fi
18716
18717 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
18718
18719
18720
18721
18722
18723
18724
18725
18726 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
18727
18728
18729 :
18730
18731 fi
18732
18733
18734
18735
18736
18737 GNULIB_TIME_R=1
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757 if test $gl_cv_have_include_next = yes; then
18758 gl_cv_next_unistd_h='<'unistd.h'>'
18759 else
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18761 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18762 if test "${gl_cv_next_unistd_h+set}" = set; then :
18763 $as_echo_n "(cached) " >&6
18764 else
18765
18766 if test $ac_cv_header_unistd_h = yes; then
18767
18768
18769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18771 #include <unistd.h>
18772
18773 _ACEOF
18774 case "$host_os" in
18775 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18776 *) gl_absname_cpp="$ac_cpp" ;;
18777 esac
18778 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18779 sed -n '\#/unistd.h#{
18780 s#.*"\(.*/unistd.h\)".*#\1#
18781 s#^/[^/]#//&#
18782 p
18783 q
18784 }'`'"'
18785 else
18786 gl_cv_next_unistd_h='<'unistd.h'>'
18787 fi
18788
18789
18790 fi
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18792 $as_echo "$gl_cv_next_unistd_h" >&6; }
18793 fi
18794 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18795
18796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18798 gl_next_as_first_directive='<'unistd.h'>'
18799 else
18800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18801 gl_next_as_first_directive=$gl_cv_next_unistd_h
18802 fi
18803 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18804
18805
18806
18807
18808 if test $ac_cv_header_unistd_h = yes; then
18809 HAVE_UNISTD_H=1
18810 else
18811 HAVE_UNISTD_H=0
18812 fi
18813
18814
18815
18816
18817 gl_gnulib_enabled_dosname=false
18818 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
18819 gl_gnulib_enabled_stat=false
18820 gl_gnulib_enabled_strtoull=false
18821 gl_gnulib_enabled_verify=false
18822 func_gl_gnulib_m4code_dosname ()
18823 {
18824 if ! $gl_gnulib_enabled_dosname; then
18825 gl_gnulib_enabled_dosname=true
18826 fi
18827 }
18828 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
18829 {
18830 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
18831
18832
18833 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
18834 fi
18835 }
18836 func_gl_gnulib_m4code_stat ()
18837 {
18838 if ! $gl_gnulib_enabled_stat; then
18839
18840
18841
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
18843 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
18844 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
18845 $as_echo_n "(cached) " >&6
18846 else
18847 if test "$cross_compiling" = yes; then :
18848 case $host_os in
18849 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
18850 *) gl_cv_func_stat_dir_slash="guessing yes";;
18851 esac
18852 else
18853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854 /* end confdefs.h. */
18855 #include <sys/stat.h>
18856
18857 int
18858 main ()
18859 {
18860 struct stat st; return stat (".", &st) != stat ("./", &st);
18861 ;
18862 return 0;
18863 }
18864 _ACEOF
18865 if ac_fn_c_try_run "$LINENO"; then :
18866 gl_cv_func_stat_dir_slash=yes
18867 else
18868 gl_cv_func_stat_dir_slash=no
18869 fi
18870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18871 conftest.$ac_objext conftest.beam conftest.$ac_ext
18872 fi
18873
18874 fi
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
18876 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
18878 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
18879 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
18880 $as_echo_n "(cached) " >&6
18881 else
18882 touch conftest.tmp
18883 # Assume that if we have lstat, we can also check symlinks.
18884 if test $ac_cv_func_lstat = yes; then
18885 ln -s conftest.tmp conftest.lnk
18886 fi
18887 if test "$cross_compiling" = yes; then :
18888 gl_cv_func_stat_file_slash="guessing no"
18889 else
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #include <sys/stat.h>
18893
18894 int
18895 main ()
18896 {
18897 int result = 0;
18898 struct stat st;
18899 if (!stat ("conftest.tmp/", &st))
18900 result |= 1;
18901 #if HAVE_LSTAT
18902 if (!stat ("conftest.lnk/", &st))
18903 result |= 2;
18904 #endif
18905 return result;
18906
18907 ;
18908 return 0;
18909 }
18910 _ACEOF
18911 if ac_fn_c_try_run "$LINENO"; then :
18912 gl_cv_func_stat_file_slash=yes
18913 else
18914 gl_cv_func_stat_file_slash=no
18915 fi
18916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18917 conftest.$ac_objext conftest.beam conftest.$ac_ext
18918 fi
18919
18920 rm -f conftest.tmp conftest.lnk
18921 fi
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
18923 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
18924 case $gl_cv_func_stat_dir_slash in
18925 *no) REPLACE_STAT=1
18926
18927 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
18928 ;;
18929 esac
18930 case $gl_cv_func_stat_file_slash in
18931 *no) REPLACE_STAT=1
18932
18933 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
18934 ;;
18935 esac
18936
18937 if test $REPLACE_STAT = 1; then
18938
18939
18940
18941
18942
18943
18944
18945
18946 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
18947
18948
18949
18950 :
18951
18952 fi
18953
18954
18955
18956
18957
18958 GNULIB_STAT=1
18959
18960
18961
18962
18963
18964 gl_gnulib_enabled_stat=true
18965 if $condition; then
18966 func_gl_gnulib_m4code_dosname
18967 fi
18968 if $condition; then
18969 func_gl_gnulib_m4code_verify
18970 fi
18971 fi
18972 }
18973 func_gl_gnulib_m4code_strtoull ()
18974 {
18975 if ! $gl_gnulib_enabled_strtoull; then
18976
18977
18978
18979 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
18980 for ac_func in strtoull
18981 do :
18982 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
18983 if test "x$ac_cv_func_strtoull" = x""yes; then :
18984 cat >>confdefs.h <<_ACEOF
18985 #define HAVE_STRTOULL 1
18986 _ACEOF
18987
18988 fi
18989 done
18990
18991 if test $ac_cv_func_strtoull = no; then
18992 HAVE_STRTOULL=0
18993 fi
18994 fi
18995
18996 if test $HAVE_STRTOULL = 0; then
18997
18998
18999
19000
19001
19002
19003
19004
19005 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
19006
19007
19008 :
19009
19010 fi
19011
19012
19013
19014
19015
19016 GNULIB_STRTOULL=1
19017
19018
19019
19020
19021
19022 gl_gnulib_enabled_strtoull=true
19023 fi
19024 }
19025 func_gl_gnulib_m4code_verify ()
19026 {
19027 if ! $gl_gnulib_enabled_verify; then
19028 gl_gnulib_enabled_verify=true
19029 fi
19030 }
19031 if test $REPLACE_GETOPT = 1; then
19032 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
19033 fi
19034 if test $REPLACE_LSTAT = 1; then
19035 func_gl_gnulib_m4code_dosname
19036 fi
19037 if test $REPLACE_LSTAT = 1; then
19038 func_gl_gnulib_m4code_stat
19039 fi
19040 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19041 func_gl_gnulib_m4code_stat
19042 fi
19043 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
19044 func_gl_gnulib_m4code_verify
19045 fi
19046 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
19047 func_gl_gnulib_m4code_strtoull
19048 fi
19049
19050 if $gl_gnulib_enabled_dosname; then
19051 gl_GNULIB_ENABLED_dosname_TRUE=
19052 gl_GNULIB_ENABLED_dosname_FALSE='#'
19053 else
19054 gl_GNULIB_ENABLED_dosname_TRUE='#'
19055 gl_GNULIB_ENABLED_dosname_FALSE=
19056 fi
19057
19058 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
19059 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
19060 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
19061 else
19062 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
19063 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
19064 fi
19065
19066 if $gl_gnulib_enabled_stat; then
19067 gl_GNULIB_ENABLED_stat_TRUE=
19068 gl_GNULIB_ENABLED_stat_FALSE='#'
19069 else
19070 gl_GNULIB_ENABLED_stat_TRUE='#'
19071 gl_GNULIB_ENABLED_stat_FALSE=
19072 fi
19073
19074 if $gl_gnulib_enabled_strtoull; then
19075 gl_GNULIB_ENABLED_strtoull_TRUE=
19076 gl_GNULIB_ENABLED_strtoull_FALSE='#'
19077 else
19078 gl_GNULIB_ENABLED_strtoull_TRUE='#'
19079 gl_GNULIB_ENABLED_strtoull_FALSE=
19080 fi
19081
19082 if $gl_gnulib_enabled_verify; then
19083 gl_GNULIB_ENABLED_verify_TRUE=
19084 gl_GNULIB_ENABLED_verify_FALSE='#'
19085 else
19086 gl_GNULIB_ENABLED_verify_TRUE='#'
19087 gl_GNULIB_ENABLED_verify_FALSE=
19088 fi
19089
19090 # End of code from modules
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100 gltests_libdeps=
19101 gltests_ltlibdeps=
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111 gl_source_base='tests'
19112 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
19113
19114 gl_module_indicator_condition=$gltests_WITNESS
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125 LIBGNU_LIBDEPS="$gl_libdeps"
19126
19127 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19128
19129
19130
19131 # UNIX98 PTYs.
19132 for ac_func in grantpt
19133 do :
19134 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
19135 if test "x$ac_cv_func_grantpt" = x""yes; then :
19136 cat >>confdefs.h <<_ACEOF
19137 #define HAVE_GRANTPT 1
19138 _ACEOF
19139
19140 fi
19141 done
19142
19143
19144 # PTY-related GNU extensions.
19145 for ac_func in getpt
19146 do :
19147 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
19148 if test "x$ac_cv_func_getpt" = x""yes; then :
19149 cat >>confdefs.h <<_ACEOF
19150 #define HAVE_GETPT 1
19151 _ACEOF
19152
19153 fi
19154 done
19155
19156
19157 # Check this now, so that we will NOT find the above functions in ncurses.
19158 # That is because we have not set up to link ncurses in lib-src.
19159 # It's better to believe a function is not available
19160 # than to expect to find it in ncurses.
19161 # Also we need tputs and friends to be able to build at all.
19162 have_tputs_et_al=true
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
19164 $as_echo_n "checking for library containing tputs... " >&6; }
19165 if test "${ac_cv_search_tputs+set}" = set; then :
19166 $as_echo_n "(cached) " >&6
19167 else
19168 ac_func_search_save_LIBS=$LIBS
19169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19170 /* end confdefs.h. */
19171
19172 /* Override any GCC internal prototype to avoid an error.
19173 Use char because int might match the return type of a GCC
19174 builtin and then its argument prototype would still apply. */
19175 #ifdef __cplusplus
19176 extern "C"
19177 #endif
19178 char tputs ();
19179 int
19180 main ()
19181 {
19182 return tputs ();
19183 ;
19184 return 0;
19185 }
19186 _ACEOF
19187 for ac_lib in '' ncurses terminfo termcap; do
19188 if test -z "$ac_lib"; then
19189 ac_res="none required"
19190 else
19191 ac_res=-l$ac_lib
19192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19193 fi
19194 if ac_fn_c_try_link "$LINENO"; then :
19195 ac_cv_search_tputs=$ac_res
19196 fi
19197 rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext
19199 if test "${ac_cv_search_tputs+set}" = set; then :
19200 break
19201 fi
19202 done
19203 if test "${ac_cv_search_tputs+set}" = set; then :
19204
19205 else
19206 ac_cv_search_tputs=no
19207 fi
19208 rm conftest.$ac_ext
19209 LIBS=$ac_func_search_save_LIBS
19210 fi
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
19212 $as_echo "$ac_cv_search_tputs" >&6; }
19213 ac_res=$ac_cv_search_tputs
19214 if test "$ac_res" != no; then :
19215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19216
19217 else
19218 have_tputs_et_al=false
19219 fi
19220
19221 if test "$have_tputs_et_al" != true; then
19222 as_fn_error "I couldn't find termcap functions (tputs and friends).
19223 Maybe some development libraries/packages are missing? Try installing
19224 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
19225 fi
19226 # Must define this when any termcap library is found.
19227
19228 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
19229
19230 ## FIXME This was the cpp logic, but I am not sure it is right.
19231 ## The above test has not necessarily found libncurses.
19232 HAVE_LIBNCURSES=yes
19233
19234 ## Use terminfo instead of termcap?
19235 ## Note only system files NOT using terminfo are:
19236 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
19237 ## darwin|gnu without ncurses.
19238 TERMINFO=no
19239 LIBS_TERMCAP=
19240 case "$opsys" in
19241 ## cygwin: Fewer environment variables to go wrong, more terminal types.
19242 ## hpux10-20: Use the system provided termcap(3) library.
19243 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
19244 ## is necessary. Otherwise Emacs dumps core when run -nw.
19245 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
19246
19247 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
19248 ## The ncurses library has been moved out of the System framework in
19249 ## Mac OS X 10.2. So if configure detects it, set the command-line
19250 ## option to use it.
19251 darwin|gnu*)
19252 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
19253 if test "x$HAVE_LIBNCURSES" = "xyes"; then
19254 TERMINFO=yes
19255 LIBS_TERMCAP="-lncurses"
19256 fi
19257 ;;
19258
19259 freebsd)
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
19261 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
19262 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
19263 $as_echo_n "(cached) " >&6
19264 else
19265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19266 /* end confdefs.h. */
19267 #include <osreldate.h>
19268 int
19269 main ()
19270 {
19271 #if __FreeBSD_version < 400000
19272 fail;
19273 #endif
19274
19275 ;
19276 return 0;
19277 }
19278 _ACEOF
19279 if ac_fn_c_try_link "$LINENO"; then :
19280 emacs_cv_freebsd_terminfo=yes
19281 else
19282 emacs_cv_freebsd_terminfo=no
19283 fi
19284 rm -f core conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
19286 fi
19287
19288
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
19290 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
19291
19292 if test $emacs_cv_freebsd_terminfo = yes; then
19293 TERMINFO=yes
19294 LIBS_TERMCAP="-lncurses"
19295 else
19296 LIBS_TERMCAP="-ltermcap"
19297 fi
19298 ;;
19299
19300 netbsd)
19301 if test $ac_cv_search_tputs = -lterminfo; then
19302 TERMINFO=yes
19303 LIBS_TERMCAP="-lterminfo"
19304 else
19305 LIBS_TERMCAP="-ltermcap"
19306 fi
19307 ;;
19308
19309 esac
19310
19311 case "$opsys" in
19312 ## hpux: Make sure we get select from libc rather than from libcurses
19313 ## because libcurses on HPUX 10.10 has a broken version of select.
19314 ## We used to use -lc -lcurses, but this may be cleaner.
19315 hpux*) LIBS_TERMCAP="-ltermcap" ;;
19316
19317 openbsd) LIBS_TERMCAP="-lncurses" ;;
19318
19319 ## Must use system termcap, if we use any termcap. It does special things.
19320 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
19321 esac
19322
19323 TERMCAP_OBJ=tparam.o
19324 if test $TERMINFO = yes; then
19325
19326 $as_echo "#define TERMINFO 1" >>confdefs.h
19327
19328
19329 ## Default used to be -ltermcap. Add a case above if need something else.
19330 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
19331
19332 TERMCAP_OBJ=terminfo.o
19333 fi
19334
19335
19336
19337
19338 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19339 resolv=no
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19342 #include <netinet/in.h>
19343 #include <arpa/nameser.h>
19344 #include <resolv.h>
19345 int
19346 main ()
19347 {
19348 return res_init();
19349 ;
19350 return 0;
19351 }
19352 _ACEOF
19353 if ac_fn_c_try_link "$LINENO"; then :
19354 have_res_init=yes
19355 else
19356 have_res_init=no
19357 fi
19358 rm -f core conftest.err conftest.$ac_objext \
19359 conftest$ac_exeext conftest.$ac_ext
19360 if test "$have_res_init" = no; then
19361 OLIBS="$LIBS"
19362 LIBS="$LIBS -lresolv"
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
19364 $as_echo_n "checking for res_init with -lresolv... " >&6; }
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19367 #include <netinet/in.h>
19368 #include <arpa/nameser.h>
19369 #include <resolv.h>
19370 int
19371 main ()
19372 {
19373 return res_init();
19374 ;
19375 return 0;
19376 }
19377 _ACEOF
19378 if ac_fn_c_try_link "$LINENO"; then :
19379 have_res_init=yes
19380 else
19381 have_res_init=no
19382 fi
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
19386 $as_echo "$have_res_init" >&6; }
19387 if test "$have_res_init" = yes ; then
19388 resolv=yes
19389 fi
19390 LIBS="$OLIBS"
19391 fi
19392
19393 if test "$have_res_init" = yes; then
19394
19395 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
19396
19397 fi
19398
19399 # Do we need the Hesiod library to provide the support routines?
19400 LIBHESIOD=
19401 if test "$with_hesiod" != no ; then
19402 # Don't set $LIBS here -- see comments above. FIXME which comments?
19403 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
19404 if test "x$ac_cv_func_res_send" = x""yes; then :
19405
19406 else
19407 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
19408 if test "x$ac_cv_func___res_send" = x""yes; then :
19409
19410 else
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
19412 $as_echo_n "checking for res_send in -lresolv... " >&6; }
19413 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
19414 $as_echo_n "(cached) " >&6
19415 else
19416 ac_check_lib_save_LIBS=$LIBS
19417 LIBS="-lresolv $LIBS"
19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19420
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19424 #ifdef __cplusplus
19425 extern "C"
19426 #endif
19427 char res_send ();
19428 int
19429 main ()
19430 {
19431 return res_send ();
19432 ;
19433 return 0;
19434 }
19435 _ACEOF
19436 if ac_fn_c_try_link "$LINENO"; then :
19437 ac_cv_lib_resolv_res_send=yes
19438 else
19439 ac_cv_lib_resolv_res_send=no
19440 fi
19441 rm -f core conftest.err conftest.$ac_objext \
19442 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19444 fi
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
19446 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
19447 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
19448 resolv=yes
19449 else
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
19451 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
19452 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
19453 $as_echo_n "(cached) " >&6
19454 else
19455 ac_check_lib_save_LIBS=$LIBS
19456 LIBS="-lresolv $LIBS"
19457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19458 /* end confdefs.h. */
19459
19460 /* Override any GCC internal prototype to avoid an error.
19461 Use char because int might match the return type of a GCC
19462 builtin and then its argument prototype would still apply. */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 char __res_send ();
19467 int
19468 main ()
19469 {
19470 return __res_send ();
19471 ;
19472 return 0;
19473 }
19474 _ACEOF
19475 if ac_fn_c_try_link "$LINENO"; then :
19476 ac_cv_lib_resolv___res_send=yes
19477 else
19478 ac_cv_lib_resolv___res_send=no
19479 fi
19480 rm -f core conftest.err conftest.$ac_objext \
19481 conftest$ac_exeext conftest.$ac_ext
19482 LIBS=$ac_check_lib_save_LIBS
19483 fi
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
19485 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
19486 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
19487 resolv=yes
19488 fi
19489
19490 fi
19491
19492 fi
19493
19494 fi
19495
19496 if test "$resolv" = yes ; then
19497 RESOLVLIB=-lresolv
19498 else
19499 RESOLVLIB=
19500 fi
19501 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
19502 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
19503
19504 else
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
19506 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
19507 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
19508 $as_echo_n "(cached) " >&6
19509 else
19510 ac_check_lib_save_LIBS=$LIBS
19511 LIBS="-lhesiod $RESOLVLIB $LIBS"
19512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19513 /* end confdefs.h. */
19514
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 char hes_getmailhost ();
19522 int
19523 main ()
19524 {
19525 return hes_getmailhost ();
19526 ;
19527 return 0;
19528 }
19529 _ACEOF
19530 if ac_fn_c_try_link "$LINENO"; then :
19531 ac_cv_lib_hesiod_hes_getmailhost=yes
19532 else
19533 ac_cv_lib_hesiod_hes_getmailhost=no
19534 fi
19535 rm -f core conftest.err conftest.$ac_objext \
19536 conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19538 fi
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19540 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19541 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
19542 hesiod=yes
19543 else
19544 :
19545 fi
19546
19547 fi
19548
19549
19550 if test x"$hesiod" = xyes; then
19551
19552 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
19553
19554 LIBHESIOD=-lhesiod
19555 fi
19556 fi
19557
19558
19559 # Do we need libresolv (due to res_init or Hesiod)?
19560 if test "$resolv" = yes ; then
19561
19562 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
19563
19564 LIBRESOLV=-lresolv
19565 else
19566 LIBRESOLV=
19567 fi
19568
19569
19570 # These tell us which Kerberos-related libraries to use.
19571 COM_ERRLIB=
19572 CRYPTOLIB=
19573 KRB5LIB=
19574 DESLIB=
19575 KRB4LIB=
19576
19577 if test "${with_kerberos}" != no; then
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
19579 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
19580 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
19581 $as_echo_n "(cached) " >&6
19582 else
19583 ac_check_lib_save_LIBS=$LIBS
19584 LIBS="-lcom_err $LIBS"
19585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19586 /* end confdefs.h. */
19587
19588 /* Override any GCC internal prototype to avoid an error.
19589 Use char because int might match the return type of a GCC
19590 builtin and then its argument prototype would still apply. */
19591 #ifdef __cplusplus
19592 extern "C"
19593 #endif
19594 char com_err ();
19595 int
19596 main ()
19597 {
19598 return com_err ();
19599 ;
19600 return 0;
19601 }
19602 _ACEOF
19603 if ac_fn_c_try_link "$LINENO"; then :
19604 ac_cv_lib_com_err_com_err=yes
19605 else
19606 ac_cv_lib_com_err_com_err=no
19607 fi
19608 rm -f core conftest.err conftest.$ac_objext \
19609 conftest$ac_exeext conftest.$ac_ext
19610 LIBS=$ac_check_lib_save_LIBS
19611 fi
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
19613 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
19614 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
19615 have_com_err=yes
19616 else
19617 have_com_err=no
19618 fi
19619
19620 if test $have_com_err = yes; then
19621 COM_ERRLIB=-lcom_err
19622 LIBS="$COM_ERRLIB $LIBS"
19623
19624 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
19625
19626 fi
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19628 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
19629 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
19630 $as_echo_n "(cached) " >&6
19631 else
19632 ac_check_lib_save_LIBS=$LIBS
19633 LIBS="-lcrypto $LIBS"
19634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19635 /* end confdefs.h. */
19636
19637 /* Override any GCC internal prototype to avoid an error.
19638 Use char because int might match the return type of a GCC
19639 builtin and then its argument prototype would still apply. */
19640 #ifdef __cplusplus
19641 extern "C"
19642 #endif
19643 char mit_des_cbc_encrypt ();
19644 int
19645 main ()
19646 {
19647 return mit_des_cbc_encrypt ();
19648 ;
19649 return 0;
19650 }
19651 _ACEOF
19652 if ac_fn_c_try_link "$LINENO"; then :
19653 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19654 else
19655 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19656 fi
19657 rm -f core conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19660 fi
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19662 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19663 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
19664 have_crypto=yes
19665 else
19666 have_crypto=no
19667 fi
19668
19669 if test $have_crypto = yes; then
19670 CRYPTOLIB=-lcrypto
19671 LIBS="$CRYPTOLIB $LIBS"
19672
19673 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
19674
19675 fi
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19677 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
19678 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
19679 $as_echo_n "(cached) " >&6
19680 else
19681 ac_check_lib_save_LIBS=$LIBS
19682 LIBS="-lk5crypto $LIBS"
19683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684 /* end confdefs.h. */
19685
19686 /* Override any GCC internal prototype to avoid an error.
19687 Use char because int might match the return type of a GCC
19688 builtin and then its argument prototype would still apply. */
19689 #ifdef __cplusplus
19690 extern "C"
19691 #endif
19692 char mit_des_cbc_encrypt ();
19693 int
19694 main ()
19695 {
19696 return mit_des_cbc_encrypt ();
19697 ;
19698 return 0;
19699 }
19700 _ACEOF
19701 if ac_fn_c_try_link "$LINENO"; then :
19702 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19703 else
19704 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19705 fi
19706 rm -f core conftest.err conftest.$ac_objext \
19707 conftest$ac_exeext conftest.$ac_ext
19708 LIBS=$ac_check_lib_save_LIBS
19709 fi
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19711 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19712 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
19713 have_k5crypto=yes
19714 else
19715 have_k5crypto=no
19716 fi
19717
19718 if test $have_k5crypto = yes; then
19719 CRYPTOLIB=-lk5crypto
19720 LIBS="$CRYPTOLIB $LIBS"
19721
19722 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
19723
19724 fi
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
19726 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
19727 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
19728 $as_echo_n "(cached) " >&6
19729 else
19730 ac_check_lib_save_LIBS=$LIBS
19731 LIBS="-lkrb5 $LIBS"
19732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19733 /* end confdefs.h. */
19734
19735 /* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 char krb5_init_context ();
19742 int
19743 main ()
19744 {
19745 return krb5_init_context ();
19746 ;
19747 return 0;
19748 }
19749 _ACEOF
19750 if ac_fn_c_try_link "$LINENO"; then :
19751 ac_cv_lib_krb5_krb5_init_context=yes
19752 else
19753 ac_cv_lib_krb5_krb5_init_context=no
19754 fi
19755 rm -f core conftest.err conftest.$ac_objext \
19756 conftest$ac_exeext conftest.$ac_ext
19757 LIBS=$ac_check_lib_save_LIBS
19758 fi
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19760 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
19761 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
19762 have_krb5=yes
19763 else
19764 have_krb5=no
19765 fi
19766
19767 if test $have_krb5=yes; then
19768 KRB5LIB=-lkrb5
19769 LIBS="$KRB5LIB $LIBS"
19770
19771 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
19772
19773 fi
19774 if test "${with_kerberos5}" = no; then
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
19776 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
19777 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
19778 $as_echo_n "(cached) " >&6
19779 else
19780 ac_check_lib_save_LIBS=$LIBS
19781 LIBS="-ldes425 $LIBS"
19782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19783 /* end confdefs.h. */
19784
19785 /* Override any GCC internal prototype to avoid an error.
19786 Use char because int might match the return type of a GCC
19787 builtin and then its argument prototype would still apply. */
19788 #ifdef __cplusplus
19789 extern "C"
19790 #endif
19791 char des_cbc_encrypt ();
19792 int
19793 main ()
19794 {
19795 return des_cbc_encrypt ();
19796 ;
19797 return 0;
19798 }
19799 _ACEOF
19800 if ac_fn_c_try_link "$LINENO"; then :
19801 ac_cv_lib_des425_des_cbc_encrypt=yes
19802 else
19803 ac_cv_lib_des425_des_cbc_encrypt=no
19804 fi
19805 rm -f core conftest.err conftest.$ac_objext \
19806 conftest$ac_exeext conftest.$ac_ext
19807 LIBS=$ac_check_lib_save_LIBS
19808 fi
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19810 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19811 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
19812 have_des425=yes
19813 else
19814 have_des425=no
19815 fi
19816
19817 if test $have_des425 = yes; then
19818 DESLIB=-ldes425
19819 LIBS="$DESLIB $LIBS"
19820
19821 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
19822
19823 else
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
19825 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
19826 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
19828 else
19829 ac_check_lib_save_LIBS=$LIBS
19830 LIBS="-ldes $LIBS"
19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h. */
19833
19834 /* Override any GCC internal prototype to avoid an error.
19835 Use char because int might match the return type of a GCC
19836 builtin and then its argument prototype would still apply. */
19837 #ifdef __cplusplus
19838 extern "C"
19839 #endif
19840 char des_cbc_encrypt ();
19841 int
19842 main ()
19843 {
19844 return des_cbc_encrypt ();
19845 ;
19846 return 0;
19847 }
19848 _ACEOF
19849 if ac_fn_c_try_link "$LINENO"; then :
19850 ac_cv_lib_des_des_cbc_encrypt=yes
19851 else
19852 ac_cv_lib_des_des_cbc_encrypt=no
19853 fi
19854 rm -f core conftest.err conftest.$ac_objext \
19855 conftest$ac_exeext conftest.$ac_ext
19856 LIBS=$ac_check_lib_save_LIBS
19857 fi
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19859 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19860 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
19861 have_des=yes
19862 else
19863 have_des=no
19864 fi
19865
19866 if test $have_des = yes; then
19867 DESLIB=-ldes
19868 LIBS="$DESLIB $LIBS"
19869
19870 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
19871
19872 fi
19873 fi
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
19875 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
19876 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
19877 $as_echo_n "(cached) " >&6
19878 else
19879 ac_check_lib_save_LIBS=$LIBS
19880 LIBS="-lkrb4 $LIBS"
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19883
19884 /* Override any GCC internal prototype to avoid an error.
19885 Use char because int might match the return type of a GCC
19886 builtin and then its argument prototype would still apply. */
19887 #ifdef __cplusplus
19888 extern "C"
19889 #endif
19890 char krb_get_cred ();
19891 int
19892 main ()
19893 {
19894 return krb_get_cred ();
19895 ;
19896 return 0;
19897 }
19898 _ACEOF
19899 if ac_fn_c_try_link "$LINENO"; then :
19900 ac_cv_lib_krb4_krb_get_cred=yes
19901 else
19902 ac_cv_lib_krb4_krb_get_cred=no
19903 fi
19904 rm -f core conftest.err conftest.$ac_objext \
19905 conftest$ac_exeext conftest.$ac_ext
19906 LIBS=$ac_check_lib_save_LIBS
19907 fi
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19909 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
19910 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
19911 have_krb4=yes
19912 else
19913 have_krb4=no
19914 fi
19915
19916 if test $have_krb4 = yes; then
19917 KRB4LIB=-lkrb4
19918 LIBS="$KRB4LIB $LIBS"
19919
19920 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
19921
19922 else
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
19924 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
19925 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
19926 $as_echo_n "(cached) " >&6
19927 else
19928 ac_check_lib_save_LIBS=$LIBS
19929 LIBS="-lkrb $LIBS"
19930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19931 /* end confdefs.h. */
19932
19933 /* Override any GCC internal prototype to avoid an error.
19934 Use char because int might match the return type of a GCC
19935 builtin and then its argument prototype would still apply. */
19936 #ifdef __cplusplus
19937 extern "C"
19938 #endif
19939 char krb_get_cred ();
19940 int
19941 main ()
19942 {
19943 return krb_get_cred ();
19944 ;
19945 return 0;
19946 }
19947 _ACEOF
19948 if ac_fn_c_try_link "$LINENO"; then :
19949 ac_cv_lib_krb_krb_get_cred=yes
19950 else
19951 ac_cv_lib_krb_krb_get_cred=no
19952 fi
19953 rm -f core conftest.err conftest.$ac_objext \
19954 conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19956 fi
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
19958 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
19959 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
19960 have_krb=yes
19961 else
19962 have_krb=no
19963 fi
19964
19965 if test $have_krb = yes; then
19966 KRB4LIB=-lkrb
19967 LIBS="$KRB4LIB $LIBS"
19968
19969 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
19970
19971 fi
19972 fi
19973 fi
19974
19975 if test "${with_kerberos5}" != no; then
19976 for ac_header in krb5.h
19977 do :
19978 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
19979 if test "x$ac_cv_header_krb5_h" = x""yes; then :
19980 cat >>confdefs.h <<_ACEOF
19981 #define HAVE_KRB5_H 1
19982 _ACEOF
19983 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
19984 "
19985 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
19986
19987 cat >>confdefs.h <<_ACEOF
19988 #define HAVE_KRB5_ERROR_TEXT 1
19989 _ACEOF
19990
19991
19992 fi
19993 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
19994 "
19995 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
19996
19997 cat >>confdefs.h <<_ACEOF
19998 #define HAVE_KRB5_ERROR_E_TEXT 1
19999 _ACEOF
20000
20001
20002 fi
20003
20004 fi
20005
20006 done
20007
20008 else
20009 for ac_header in des.h
20010 do :
20011 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
20012 if test "x$ac_cv_header_des_h" = x""yes; then :
20013 cat >>confdefs.h <<_ACEOF
20014 #define HAVE_DES_H 1
20015 _ACEOF
20016
20017 else
20018 for ac_header in kerberosIV/des.h
20019 do :
20020 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
20021 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
20022 cat >>confdefs.h <<_ACEOF
20023 #define HAVE_KERBEROSIV_DES_H 1
20024 _ACEOF
20025
20026 else
20027 for ac_header in kerberos/des.h
20028 do :
20029 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
20030 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
20031 cat >>confdefs.h <<_ACEOF
20032 #define HAVE_KERBEROS_DES_H 1
20033 _ACEOF
20034
20035 fi
20036
20037 done
20038
20039 fi
20040
20041 done
20042
20043 fi
20044
20045 done
20046
20047 for ac_header in krb.h
20048 do :
20049 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
20050 if test "x$ac_cv_header_krb_h" = x""yes; then :
20051 cat >>confdefs.h <<_ACEOF
20052 #define HAVE_KRB_H 1
20053 _ACEOF
20054
20055 else
20056 for ac_header in kerberosIV/krb.h
20057 do :
20058 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
20059 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
20060 cat >>confdefs.h <<_ACEOF
20061 #define HAVE_KERBEROSIV_KRB_H 1
20062 _ACEOF
20063
20064 else
20065 for ac_header in kerberos/krb.h
20066 do :
20067 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
20068 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
20069 cat >>confdefs.h <<_ACEOF
20070 #define HAVE_KERBEROS_KRB_H 1
20071 _ACEOF
20072
20073 fi
20074
20075 done
20076
20077 fi
20078
20079 done
20080
20081 fi
20082
20083 done
20084
20085 fi
20086 for ac_header in com_err.h
20087 do :
20088 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
20089 if test "x$ac_cv_header_com_err_h" = x""yes; then :
20090 cat >>confdefs.h <<_ACEOF
20091 #define HAVE_COM_ERR_H 1
20092 _ACEOF
20093
20094 fi
20095
20096 done
20097
20098 fi
20099
20100
20101
20102
20103
20104
20105
20106 # Solaris requires -lintl if you want strerror (which calls dgettext)
20107 # to return localized messages.
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
20109 $as_echo_n "checking for dgettext in -lintl... " >&6; }
20110 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
20111 $as_echo_n "(cached) " >&6
20112 else
20113 ac_check_lib_save_LIBS=$LIBS
20114 LIBS="-lintl $LIBS"
20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h. */
20117
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20121 #ifdef __cplusplus
20122 extern "C"
20123 #endif
20124 char dgettext ();
20125 int
20126 main ()
20127 {
20128 return dgettext ();
20129 ;
20130 return 0;
20131 }
20132 _ACEOF
20133 if ac_fn_c_try_link "$LINENO"; then :
20134 ac_cv_lib_intl_dgettext=yes
20135 else
20136 ac_cv_lib_intl_dgettext=no
20137 fi
20138 rm -f core conftest.err conftest.$ac_objext \
20139 conftest$ac_exeext conftest.$ac_ext
20140 LIBS=$ac_check_lib_save_LIBS
20141 fi
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
20143 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
20144 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_LIBINTL 1
20147 _ACEOF
20148
20149 LIBS="-lintl $LIBS"
20150
20151 fi
20152
20153
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
20155 $as_echo_n "checking whether localtime caches TZ... " >&6; }
20156 if test "${emacs_cv_localtime_cache+set}" = set; then :
20157 $as_echo_n "(cached) " >&6
20158 else
20159 if test x$ac_cv_func_tzset = xyes; then
20160 if test "$cross_compiling" = yes; then :
20161 # If we have tzset, assume the worst when cross-compiling.
20162 emacs_cv_localtime_cache=yes
20163 else
20164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h. */
20166 #include <time.h>
20167 char TZ_GMT0[] = "TZ=GMT0";
20168 char TZ_PST8[] = "TZ=PST8";
20169 main()
20170 {
20171 time_t now = time ((time_t *) 0);
20172 int hour_GMT0, hour_unset;
20173 if (putenv (TZ_GMT0) != 0)
20174 exit (1);
20175 hour_GMT0 = localtime (&now)->tm_hour;
20176 unsetenv("TZ");
20177 hour_unset = localtime (&now)->tm_hour;
20178 if (putenv (TZ_PST8) != 0)
20179 exit (1);
20180 if (localtime (&now)->tm_hour == hour_GMT0)
20181 exit (1);
20182 unsetenv("TZ");
20183 if (localtime (&now)->tm_hour != hour_unset)
20184 exit (1);
20185 exit (0);
20186 }
20187 _ACEOF
20188 if ac_fn_c_try_run "$LINENO"; then :
20189 emacs_cv_localtime_cache=no
20190 else
20191 emacs_cv_localtime_cache=yes
20192 fi
20193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20194 conftest.$ac_objext conftest.beam conftest.$ac_ext
20195 fi
20196
20197 else
20198 # If we lack tzset, report that localtime does not cache TZ,
20199 # since we can't invalidate the cache if we don't have tzset.
20200 emacs_cv_localtime_cache=no
20201 fi
20202 fi
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
20204 $as_echo "$emacs_cv_localtime_cache" >&6; }
20205 if test $emacs_cv_localtime_cache = yes; then
20206
20207 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
20208
20209 fi
20210
20211 if test "x$HAVE_TIMEVAL" = xyes; then
20212 for ac_func in gettimeofday
20213 do :
20214 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20215 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_GETTIMEOFDAY 1
20218 _ACEOF
20219
20220 fi
20221 done
20222
20223 if test $ac_cv_func_gettimeofday = yes; then
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
20225 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
20226 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
20227 $as_echo_n "(cached) " >&6
20228 else
20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230 /* end confdefs.h. */
20231
20232 #ifdef TIME_WITH_SYS_TIME
20233 #include <sys/time.h>
20234 #include <time.h>
20235 #else
20236 #ifdef HAVE_SYS_TIME_H
20237 #include <sys/time.h>
20238 #else
20239 #include <time.h>
20240 #endif
20241 #endif
20242 int
20243 main ()
20244 {
20245 struct timeval time;
20246 gettimeofday (&time, 0);
20247 ;
20248 return 0;
20249 }
20250 _ACEOF
20251 if ac_fn_c_try_compile "$LINENO"; then :
20252 emacs_cv_gettimeofday_two_arguments=yes
20253 else
20254 emacs_cv_gettimeofday_two_arguments=no
20255 fi
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257 fi
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
20259 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
20260 if test $emacs_cv_gettimeofday_two_arguments = no; then
20261
20262 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
20263
20264 fi
20265 fi
20266 fi
20267
20268 ok_so_far=yes
20269 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
20270 if test "x$ac_cv_func_socket" = x""yes; then :
20271
20272 else
20273 ok_so_far=no
20274 fi
20275
20276 if test $ok_so_far = yes; then
20277 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
20278 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
20279
20280 else
20281 ok_so_far=no
20282 fi
20283
20284
20285 fi
20286 if test $ok_so_far = yes; then
20287 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
20288 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
20289
20290 else
20291 ok_so_far=no
20292 fi
20293
20294
20295 fi
20296 if test $ok_so_far = yes; then
20297
20298 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
20299
20300 fi
20301
20302 if test -f /usr/lpp/X11/bin/smt.exp; then
20303
20304 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
20305
20306 fi
20307
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
20309 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
20310 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20312 $as_echo "yes" >&6; }
20313
20314 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
20315
20316 else
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20318 $as_echo "no" >&6; }
20319 fi
20320
20321 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20322 if test "x$ac_cv_type_pid_t" = x""yes; then :
20323
20324 else
20325
20326 cat >>confdefs.h <<_ACEOF
20327 #define pid_t int
20328 _ACEOF
20329
20330 fi
20331
20332 for ac_header in vfork.h
20333 do :
20334 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20335 if test "x$ac_cv_header_vfork_h" = x""yes; then :
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_VFORK_H 1
20338 _ACEOF
20339
20340 fi
20341
20342 done
20343
20344 for ac_func in fork vfork
20345 do :
20346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20347 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20348 eval as_val=\$$as_ac_var
20349 if test "x$as_val" = x""yes; then :
20350 cat >>confdefs.h <<_ACEOF
20351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20352 _ACEOF
20353
20354 fi
20355 done
20356
20357 if test "x$ac_cv_func_fork" = xyes; then
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20359 $as_echo_n "checking for working fork... " >&6; }
20360 if test "${ac_cv_func_fork_works+set}" = set; then :
20361 $as_echo_n "(cached) " >&6
20362 else
20363 if test "$cross_compiling" = yes; then :
20364 ac_cv_func_fork_works=cross
20365 else
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20368 $ac_includes_default
20369 int
20370 main ()
20371 {
20372
20373 /* By Ruediger Kuhlmann. */
20374 return fork () < 0;
20375
20376 ;
20377 return 0;
20378 }
20379 _ACEOF
20380 if ac_fn_c_try_run "$LINENO"; then :
20381 ac_cv_func_fork_works=yes
20382 else
20383 ac_cv_func_fork_works=no
20384 fi
20385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20386 conftest.$ac_objext conftest.beam conftest.$ac_ext
20387 fi
20388
20389 fi
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20391 $as_echo "$ac_cv_func_fork_works" >&6; }
20392
20393 else
20394 ac_cv_func_fork_works=$ac_cv_func_fork
20395 fi
20396 if test "x$ac_cv_func_fork_works" = xcross; then
20397 case $host in
20398 *-*-amigaos* | *-*-msdosdjgpp*)
20399 # Override, as these systems have only a dummy fork() stub
20400 ac_cv_func_fork_works=no
20401 ;;
20402 *)
20403 ac_cv_func_fork_works=yes
20404 ;;
20405 esac
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20407 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20408 fi
20409 ac_cv_func_vfork_works=$ac_cv_func_vfork
20410 if test "x$ac_cv_func_vfork" = xyes; then
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20412 $as_echo_n "checking for working vfork... " >&6; }
20413 if test "${ac_cv_func_vfork_works+set}" = set; then :
20414 $as_echo_n "(cached) " >&6
20415 else
20416 if test "$cross_compiling" = yes; then :
20417 ac_cv_func_vfork_works=cross
20418 else
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h. */
20421 /* Thanks to Paul Eggert for this test. */
20422 $ac_includes_default
20423 #include <sys/wait.h>
20424 #ifdef HAVE_VFORK_H
20425 # include <vfork.h>
20426 #endif
20427 /* On some sparc systems, changes by the child to local and incoming
20428 argument registers are propagated back to the parent. The compiler
20429 is told about this with #include <vfork.h>, but some compilers
20430 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20431 static variable whose address is put into a register that is
20432 clobbered by the vfork. */
20433 static void
20434 #ifdef __cplusplus
20435 sparc_address_test (int arg)
20436 # else
20437 sparc_address_test (arg) int arg;
20438 #endif
20439 {
20440 static pid_t child;
20441 if (!child) {
20442 child = vfork ();
20443 if (child < 0) {
20444 perror ("vfork");
20445 _exit(2);
20446 }
20447 if (!child) {
20448 arg = getpid();
20449 write(-1, "", 0);
20450 _exit (arg);
20451 }
20452 }
20453 }
20454
20455 int
20456 main ()
20457 {
20458 pid_t parent = getpid ();
20459 pid_t child;
20460
20461 sparc_address_test (0);
20462
20463 child = vfork ();
20464
20465 if (child == 0) {
20466 /* Here is another test for sparc vfork register problems. This
20467 test uses lots of local variables, at least as many local
20468 variables as main has allocated so far including compiler
20469 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20470 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20471 reuse the register of parent for one of the local variables,
20472 since it will think that parent can't possibly be used any more
20473 in this routine. Assigning to the local variable will thus
20474 munge parent in the parent process. */
20475 pid_t
20476 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20477 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20478 /* Convince the compiler that p..p7 are live; otherwise, it might
20479 use the same hardware register for all 8 local variables. */
20480 if (p != p1 || p != p2 || p != p3 || p != p4
20481 || p != p5 || p != p6 || p != p7)
20482 _exit(1);
20483
20484 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20485 from child file descriptors. If the child closes a descriptor
20486 before it execs or exits, this munges the parent's descriptor
20487 as well. Test for this by closing stdout in the child. */
20488 _exit(close(fileno(stdout)) != 0);
20489 } else {
20490 int status;
20491 struct stat st;
20492
20493 while (wait(&status) != child)
20494 ;
20495 return (
20496 /* Was there some problem with vforking? */
20497 child < 0
20498
20499 /* Did the child fail? (This shouldn't happen.) */
20500 || status
20501
20502 /* Did the vfork/compiler bug occur? */
20503 || parent != getpid()
20504
20505 /* Did the file descriptor bug occur? */
20506 || fstat(fileno(stdout), &st) != 0
20507 );
20508 }
20509 }
20510 _ACEOF
20511 if ac_fn_c_try_run "$LINENO"; then :
20512 ac_cv_func_vfork_works=yes
20513 else
20514 ac_cv_func_vfork_works=no
20515 fi
20516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20517 conftest.$ac_objext conftest.beam conftest.$ac_ext
20518 fi
20519
20520 fi
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20522 $as_echo "$ac_cv_func_vfork_works" >&6; }
20523
20524 fi;
20525 if test "x$ac_cv_func_fork_works" = xcross; then
20526 ac_cv_func_vfork_works=$ac_cv_func_vfork
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20528 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20529 fi
20530
20531 if test "x$ac_cv_func_vfork_works" = xyes; then
20532
20533 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20534
20535 else
20536
20537 $as_echo "#define vfork fork" >>confdefs.h
20538
20539 fi
20540 if test "x$ac_cv_func_fork_works" = xyes; then
20541
20542 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20543
20544 fi
20545
20546
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20548 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20549 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
20550 $as_echo_n "(cached) " >&6
20551 else
20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h. */
20554 #include <langinfo.h>
20555 int
20556 main ()
20557 {
20558 char* cs = nl_langinfo(CODESET);
20559 ;
20560 return 0;
20561 }
20562 _ACEOF
20563 if ac_fn_c_try_link "$LINENO"; then :
20564 emacs_cv_langinfo_codeset=yes
20565 else
20566 emacs_cv_langinfo_codeset=no
20567 fi
20568 rm -f core conftest.err conftest.$ac_objext \
20569 conftest$ac_exeext conftest.$ac_ext
20570
20571 fi
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
20573 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
20574 if test $emacs_cv_langinfo_codeset = yes; then
20575
20576 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20577
20578 fi
20579
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20581 $as_echo_n "checking for mbstate_t... " >&6; }
20582 if test "${ac_cv_type_mbstate_t+set}" = set; then :
20583 $as_echo_n "(cached) " >&6
20584 else
20585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20586 /* end confdefs.h. */
20587 $ac_includes_default
20588 # include <wchar.h>
20589 int
20590 main ()
20591 {
20592 mbstate_t x; return sizeof x;
20593 ;
20594 return 0;
20595 }
20596 _ACEOF
20597 if ac_fn_c_try_compile "$LINENO"; then :
20598 ac_cv_type_mbstate_t=yes
20599 else
20600 ac_cv_type_mbstate_t=no
20601 fi
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 fi
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20605 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20606 if test $ac_cv_type_mbstate_t = yes; then
20607
20608 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20609
20610 else
20611
20612 $as_echo "#define mbstate_t int" >>confdefs.h
20613
20614 fi
20615
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
20617 $as_echo_n "checking for C restricted array declarations... " >&6; }
20618 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
20619 $as_echo_n "(cached) " >&6
20620 else
20621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622 /* end confdefs.h. */
20623 void fred (int x[__restrict]);
20624 int
20625 main ()
20626 {
20627
20628 ;
20629 return 0;
20630 }
20631 _ACEOF
20632 if ac_fn_c_try_compile "$LINENO"; then :
20633 emacs_cv_c_restrict_arr=yes
20634 else
20635 emacs_cv_c_restrict_arr=no
20636 fi
20637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20638 fi
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
20640 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
20641 if test "$emacs_cv_c_restrict_arr" = yes; then
20642
20643 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
20644
20645 fi
20646
20647
20648
20649 # Set up the CFLAGS for real compilation, so we can substitute it.
20650 CFLAGS="$REAL_CFLAGS"
20651 CPPFLAGS="$REAL_CPPFLAGS"
20652
20653 ## Hack to detect a buggy GCC version.
20654 if test "x$GCC" = xyes \
20655 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
20656 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
20657 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
20658 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
20659 fi
20660
20661 version=$PACKAGE_VERSION
20662
20663 ### Specify what sort of things we'll be editing into Makefile and config.h.
20664 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20665
20666
20667 ## Unused?
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
20689 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
20690 ## end of LIBX_BASE, but nothing ever set it.
20691
20692
20693
20694
20695 ## Used in lwlib/Makefile.in.
20696
20697 if test -n "${machfile}"; then
20698 M_FILE="\$(srcdir)/${machfile}"
20699 else
20700 M_FILE=
20701 fi
20702 S_FILE="\$(srcdir)/${opsysfile}"
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713 cat >>confdefs.h <<_ACEOF
20714 #define EMACS_CONFIGURATION "${canonical}"
20715 _ACEOF
20716
20717
20718 cat >>confdefs.h <<_ACEOF
20719 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20720 _ACEOF
20721
20722 if test -n "$machfile"; then
20723
20724 cat >>confdefs.h <<_ACEOF
20725 #define config_machfile "${machfile}"
20726 _ACEOF
20727
20728 fi
20729
20730 cat >>confdefs.h <<_ACEOF
20731 #define config_opsysfile "${opsysfile}"
20732 _ACEOF
20733
20734
20735 XMENU_OBJ=
20736 XOBJ=
20737 FONT_OBJ=
20738 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20739
20740 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
20741
20742 XMENU_OBJ=xmenu.o
20743 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
20744 FONT_OBJ=xfont.o
20745 if test "$HAVE_XFT" = "yes"; then
20746 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
20747 elif test "$HAVE_FREETYPE" = "yes"; then
20748 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
20749 fi
20750
20751 fi
20752
20753
20754
20755
20756 WIDGET_OBJ=
20757 MOTIF_LIBW=
20758 if test "${USE_X_TOOLKIT}" != "none" ; then
20759 WIDGET_OBJ=widget.o
20760
20761 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
20762
20763 if test "${USE_X_TOOLKIT}" = "LUCID"; then
20764
20765 $as_echo "#define USE_LUCID 1" >>confdefs.h
20766
20767 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
20768
20769 $as_echo "#define USE_MOTIF 1" >>confdefs.h
20770
20771 MOTIF_LIBW=-lXm
20772 case "$opsys" in
20773 gnu-linux)
20774 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
20775 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
20776 ;;
20777
20778 unixware)
20779 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
20780 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
20781 MOTIF_LIBW="MOTIF_LIBW -lXimp"
20782 ;;
20783
20784 aix4-2)
20785 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
20786 MOTIF_LIBW="$MOTIF_LIBW -li18n"
20787 ;;
20788 esac
20789 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
20790 fi
20791 fi
20792
20793
20794 TOOLKIT_LIBW=
20795 case "$USE_X_TOOLKIT" in
20796 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
20797 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
20798 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
20799 esac
20800
20801
20802 if test "$USE_X_TOOLKIT" = "none"; then
20803 LIBXT_OTHER="\$(LIBXSM)"
20804 OLDXMENU_TARGET="really-oldXMenu"
20805 else
20806 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
20807 OLDXMENU_TARGET="really-lwlib"
20808 fi
20809
20810
20811 ## The X Menu stuff is present in the X10 distribution, but missing
20812 ## from X11. If we have X10, just use the installed library;
20813 ## otherwise, use our own copy.
20814 if test "${HAVE_X11}" = "yes" ; then
20815
20816 $as_echo "#define HAVE_X11 1" >>confdefs.h
20817
20818
20819 if test "$USE_X_TOOLKIT" = "none"; then
20820 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
20821 else
20822 OLDXMENU="\${lwlibdir}/liblw.a"
20823 fi
20824 LIBXMENU="\$(OLDXMENU)"
20825 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
20826 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
20827 else
20828 ## For a syntactically valid Makefile; not actually used for anything.
20829 ## See comments in src/Makefile.in.
20830 OLDXMENU=nothing
20831 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
20832 if test "${HAVE_X_WINDOWS}" = "yes"; then
20833 LIBXMENU="-lXMenu"
20834 else
20835 LIBXMENU=
20836 fi
20837 LIBX_OTHER=
20838 OLDXMENU_DEPS=
20839 fi
20840
20841 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
20842 OLDXMENU_TARGET=
20843 OLDXMENU=nothing
20844 LIBXMENU=
20845 OLDXMENU_DEPS=
20846 fi
20847
20848
20849
20850
20851
20852
20853
20854 if test "${HAVE_MENUS}" = "yes" ; then
20855
20856 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
20857
20858 fi
20859
20860 if test "${GNU_MALLOC}" = "yes" ; then
20861
20862 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
20863
20864 fi
20865
20866 RALLOC_OBJ=
20867 if test "${REL_ALLOC}" = "yes" ; then
20868
20869 $as_echo "#define REL_ALLOC 1" >>confdefs.h
20870
20871
20872 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
20873 fi
20874
20875
20876 if test "$opsys" = "cygwin"; then
20877 CYGWIN_OBJ="sheap.o"
20878 ## Cygwin differs because of its unexec().
20879 PRE_ALLOC_OBJ=
20880 POST_ALLOC_OBJ=lastfile.o
20881 else
20882 CYGWIN_OBJ=
20883 PRE_ALLOC_OBJ=lastfile.o
20884 POST_ALLOC_OBJ=
20885 fi
20886
20887
20888
20889
20890
20891 case "$opsys" in
20892 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
20893
20894 darwin)
20895 ## The -headerpad option tells ld (see man page) to leave room at the
20896 ## end of the header for adding load commands. Needed for dumping.
20897 ## 0x690 is the total size of 30 segment load commands (at 56
20898 ## each); under Cocoa 31 commands are required.
20899 if test "$HAVE_NS" = "yes"; then
20900 libs_nsgui="-framework AppKit"
20901 headerpad_extra=6C8
20902 else
20903 libs_nsgui=
20904 headerpad_extra=690
20905 fi
20906 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
20907
20908 ## This is here because src/Makefile.in did some extra fiddling around
20909 ## with LD_SWITCH_SYSTEM. The cpp logic was:
20910 ## #ifndef LD_SWITCH_SYSTEM
20911 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
20912 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
20913 ## not using gcc, darwin system not on an alpha (ie darwin, since
20914 ## darwin + alpha does not occur).
20915 ## Because this was done in src/Makefile.in, the resulting part of
20916 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
20917 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
20918 ## rather than LD_SWITCH_SYSTEM.
20919 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
20920 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
20921 ;;
20922
20923 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
20924 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
20925 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
20926 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
20927 ## had different values in configure (in ac_link) and src/Makefile.in.
20928 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
20929 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
20930
20931 *) LD_SWITCH_SYSTEM_TEMACS= ;;
20932 esac
20933
20934 if test "$NS_IMPL_GNUSTEP" = "yes"; then
20935 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
20936 fi
20937
20938
20939
20940
20941 LD_FIRSTFLAG=
20942 ORDINARY_LINK=
20943 case "$opsys" in
20944 ## gnu: GNU needs its own crt0.
20945 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
20946
20947 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
20948 ## library search parth, i.e. it won't search /usr/lib for libc and
20949 ## friends. Using -nostartfiles instead avoids this problem, and
20950 ## will also work on earlier NetBSD releases.
20951 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
20952
20953 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
20954 ## MkLinux/LinuxPPC needs this.
20955 ## ibms390x only supports opsys = gnu-linux so it can be added here.
20956 gnu-*)
20957 case "$machine" in
20958 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
20959 esac
20960 ;;
20961 esac
20962
20963
20964 if test "x$ORDINARY_LINK" = "xyes"; then
20965
20966 LD_FIRSTFLAG=""
20967
20968 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
20969
20970
20971 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
20972 ## freebsd, gnu-* not on macppc|ibms390x.
20973 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
20974
20975 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
20976 ## places that are difficult to figure out at make time. Fortunately,
20977 ## these same versions allow you to pass arbitrary flags on to the
20978 ## linker, so there is no reason not to use it as a linker.
20979 ##
20980 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
20981 ## searching for libraries in its internal directories, so we have to
20982 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
20983 LD_FIRSTFLAG="-nostdlib"
20984 fi
20985
20986 ## FIXME? What setting of EDIT_LDFLAGS should this have?
20987 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
20988
20989
20990
20991
20992 ## FIXME? The logic here is not precisely the same as that above.
20993 ## There is no check here for a pre-defined LD_FIRSTFLAG.
20994 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
20995 LIB_GCC=
20996 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
20997
20998 case "$opsys" in
20999 freebsd|netbsd|openbsd) LIB_GCC= ;;
21000
21001 gnu-*)
21002 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21003 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21004 case $host_cpu in
21005 arm*)
21006 LIB_GCC="-lgcc_s"
21007 ;;
21008 *)
21009 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21010 ## immediately undefine it again and redefine it to empty.
21011 ## Was the C_SWITCH_X_SITE part really necessary?
21012 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21013 LIB_GCC=
21014 ;;
21015 esac
21016 ;;
21017
21018 ## Ask GCC where to find libgcc.a.
21019 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21020 esac
21021 fi
21022
21023
21024 ## If we're using X11/GNUstep, define some consequences.
21025 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
21026
21027 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21028
21029
21030 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21031
21032 fi
21033
21034
21035
21036
21037 #### Report on what we decided to do.
21038 #### Report GTK as a toolkit, even if it doesn't use Xt.
21039 #### It makes printing result more understandable as using GTK sets
21040 #### toolkit_scroll_bars to yes by default.
21041 if test "${HAVE_GTK}" = "yes"; then
21042 USE_X_TOOLKIT=GTK
21043 fi
21044
21045 and_machfile=
21046 if test -n "$machfile"; then
21047 and_machfile=" and \`${machfile}'"
21048 fi
21049
21050 echo "
21051 Configured for \`${canonical}'.
21052
21053 Where should the build process find the source code? ${srcdir}
21054 What operating system and machine description files should Emacs use?
21055 \`${opsysfile}'${and_machfile}
21056 What compiler should emacs be built with? ${CC} ${CFLAGS}
21057 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21058 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21059 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21060 What window system should Emacs use? ${window_system}
21061 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21062
21063 if test -n "${x_includes}"; then
21064 echo " Where do we find X Windows header files? ${x_includes}"
21065 else
21066 echo " Where do we find X Windows header files? Standard dirs"
21067 fi
21068 if test -n "${x_libraries}"; then
21069 echo " Where do we find X Windows libraries? ${x_libraries}"
21070 else
21071 echo " Where do we find X Windows libraries? Standard dirs"
21072 fi
21073
21074 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21075 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21076 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21077 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21078 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21079 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21080 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21081 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21082
21083 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21084 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21085 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21086 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21087 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
21088 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21089
21090 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21091 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21092 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21093 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21094
21095 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21096 echo
21097
21098 if test $USE_XASSERTS = yes; then
21099 echo " Compiling with asserts turned on."
21100 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21101 fi
21102
21103 echo
21104
21105 if test "$HAVE_NS" = "yes"; then
21106 echo
21107 echo "You must run \"make install\" in order to test the built application.
21108 The installed application will go to nextstep/Emacs.app and can be
21109 run or moved from there."
21110 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21111 echo "The application will be fully self-contained."
21112 else
21113 echo "The lisp resources for the application will be installed under ${prefix}.
21114 You may need to run \"make install\" with sudo. The application will fail
21115 to run if these resources are not installed."
21116 fi
21117 echo
21118 fi
21119
21120
21121 # Remove any trailing slashes in these variables.
21122 test "${prefix}" != NONE &&
21123 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21124 test "${exec_prefix}" != NONE &&
21125 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21126
21127 SUBDIR_MAKEFILES="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"
21128
21129 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"
21130
21131
21132 opt_makefile=test/automated/Makefile
21133
21134 if test -f $srcdir/${opt_makefile}.in; then
21135 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21136 ac_config_files="$ac_config_files test/automated/Makefile"
21137
21138 fi
21139
21140 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21141
21142
21143
21144 ac_config_commands="$ac_config_commands mkdirs"
21145
21146
21147 ac_config_commands="$ac_config_commands epaths"
21148
21149
21150 ac_config_commands="$ac_config_commands gdbinit"
21151
21152
21153 cat >confcache <<\_ACEOF
21154 # This file is a shell script that caches the results of configure
21155 # tests run on this system so they can be shared between configure
21156 # scripts and configure runs, see configure's option --config-cache.
21157 # It is not useful on other systems. If it contains results you don't
21158 # want to keep, you may remove or edit it.
21159 #
21160 # config.status only pays attention to the cache file if you give it
21161 # the --recheck option to rerun configure.
21162 #
21163 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21164 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21165 # following values.
21166
21167 _ACEOF
21168
21169 # The following way of writing the cache mishandles newlines in values,
21170 # but we know of no workaround that is simple, portable, and efficient.
21171 # So, we kill variables containing newlines.
21172 # Ultrix sh set writes to stderr and can't be redirected directly,
21173 # and sets the high bit in the cache file unless we assign to the vars.
21174 (
21175 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21176 eval ac_val=\$$ac_var
21177 case $ac_val in #(
21178 *${as_nl}*)
21179 case $ac_var in #(
21180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21181 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21182 esac
21183 case $ac_var in #(
21184 _ | IFS | as_nl) ;; #(
21185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21186 *) { eval $ac_var=; unset $ac_var;} ;;
21187 esac ;;
21188 esac
21189 done
21190
21191 (set) 2>&1 |
21192 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21193 *${as_nl}ac_space=\ *)
21194 # `set' does not quote correctly, so add quotes: double-quote
21195 # substitution turns \\\\ into \\, and sed turns \\ into \.
21196 sed -n \
21197 "s/'/'\\\\''/g;
21198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21199 ;; #(
21200 *)
21201 # `set' quotes correctly as required by POSIX, so do not add quotes.
21202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21203 ;;
21204 esac |
21205 sort
21206 ) |
21207 sed '
21208 /^ac_cv_env_/b end
21209 t clear
21210 :clear
21211 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21212 t end
21213 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21214 :end' >>confcache
21215 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21216 if test -w "$cache_file"; then
21217 test "x$cache_file" != "x/dev/null" &&
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21219 $as_echo "$as_me: updating cache $cache_file" >&6;}
21220 cat confcache >$cache_file
21221 else
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21223 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21224 fi
21225 fi
21226 rm -f confcache
21227
21228 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21229 # Let make expand exec_prefix.
21230 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21231
21232 DEFS=-DHAVE_CONFIG_H
21233
21234 ac_libobjs=
21235 ac_ltlibobjs=
21236 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21237 # 1. Remove the extension, and $U if already installed.
21238 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21239 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21240 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21241 # will be set to the directory where LIBOBJS objects are built.
21242 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21243 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21244 done
21245 LIBOBJS=$ac_libobjs
21246
21247 LTLIBOBJS=$ac_ltlibobjs
21248
21249
21250 if test -n "$EXEEXT"; then
21251 am__EXEEXT_TRUE=
21252 am__EXEEXT_FALSE='#'
21253 else
21254 am__EXEEXT_TRUE='#'
21255 am__EXEEXT_FALSE=
21256 fi
21257
21258 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21259 as_fn_error "conditional \"AMDEP\" was never defined.
21260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21261 fi
21262 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21263 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21265 fi
21266
21267 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21268 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21270 fi
21271 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21272 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21274 fi
21275
21276 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21277 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279 fi
21280 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21281 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21283 fi
21284 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21285 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21287 fi
21288 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21289 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21291 fi
21292 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21293 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21295 fi
21296 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21297 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21299 fi
21300 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21301 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21303 fi
21304 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21305 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21307 fi
21308 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21309 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21311 fi
21312
21313 gl_libobjs=
21314 gl_ltlibobjs=
21315 if test -n "$gl_LIBOBJS"; then
21316 # Remove the extension.
21317 sed_drop_objext='s/\.o$//;s/\.obj$//'
21318 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21319 gl_libobjs="$gl_libobjs $i.$ac_objext"
21320 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21321 done
21322 fi
21323 gl_LIBOBJS=$gl_libobjs
21324
21325 gl_LTLIBOBJS=$gl_ltlibobjs
21326
21327
21328
21329 gltests_libobjs=
21330 gltests_ltlibobjs=
21331 if test -n "$gltests_LIBOBJS"; then
21332 # Remove the extension.
21333 sed_drop_objext='s/\.o$//;s/\.obj$//'
21334 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21335 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21336 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21337 done
21338 fi
21339 gltests_LIBOBJS=$gltests_libobjs
21340
21341 gltests_LTLIBOBJS=$gltests_ltlibobjs
21342
21343
21344
21345 : ${CONFIG_STATUS=./config.status}
21346 ac_write_fail=0
21347 ac_clean_files_save=$ac_clean_files
21348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21351 as_write_fail=0
21352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21353 #! $SHELL
21354 # Generated by $as_me.
21355 # Run this file to recreate the current configuration.
21356 # Compiler output produced by configure, useful for debugging
21357 # configure, is in config.log if it exists.
21358
21359 debug=false
21360 ac_cs_recheck=false
21361 ac_cs_silent=false
21362
21363 SHELL=\${CONFIG_SHELL-$SHELL}
21364 export SHELL
21365 _ASEOF
21366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21367 ## -------------------- ##
21368 ## M4sh Initialization. ##
21369 ## -------------------- ##
21370
21371 # Be more Bourne compatible
21372 DUALCASE=1; export DUALCASE # for MKS sh
21373 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21374 emulate sh
21375 NULLCMD=:
21376 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21377 # is contrary to our usage. Disable this feature.
21378 alias -g '${1+"$@"}'='"$@"'
21379 setopt NO_GLOB_SUBST
21380 else
21381 case `(set -o) 2>/dev/null` in #(
21382 *posix*) :
21383 set -o posix ;; #(
21384 *) :
21385 ;;
21386 esac
21387 fi
21388
21389
21390 as_nl='
21391 '
21392 export as_nl
21393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21394 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21397 # Prefer a ksh shell builtin over an external printf program on Solaris,
21398 # but without wasting forks for bash or zsh.
21399 if test -z "$BASH_VERSION$ZSH_VERSION" \
21400 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21401 as_echo='print -r --'
21402 as_echo_n='print -rn --'
21403 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21404 as_echo='printf %s\n'
21405 as_echo_n='printf %s'
21406 else
21407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21408 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21409 as_echo_n='/usr/ucb/echo -n'
21410 else
21411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21412 as_echo_n_body='eval
21413 arg=$1;
21414 case $arg in #(
21415 *"$as_nl"*)
21416 expr "X$arg" : "X\\(.*\\)$as_nl";
21417 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21418 esac;
21419 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21420 '
21421 export as_echo_n_body
21422 as_echo_n='sh -c $as_echo_n_body as_echo'
21423 fi
21424 export as_echo_body
21425 as_echo='sh -c $as_echo_body as_echo'
21426 fi
21427
21428 # The user is always right.
21429 if test "${PATH_SEPARATOR+set}" != set; then
21430 PATH_SEPARATOR=:
21431 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21432 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21433 PATH_SEPARATOR=';'
21434 }
21435 fi
21436
21437
21438 # IFS
21439 # We need space, tab and new line, in precisely that order. Quoting is
21440 # there to prevent editors from complaining about space-tab.
21441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21442 # splitting by setting IFS to empty value.)
21443 IFS=" "" $as_nl"
21444
21445 # Find who we are. Look in the path if we contain no directory separator.
21446 case $0 in #((
21447 *[\\/]* ) as_myself=$0 ;;
21448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21449 for as_dir in $PATH
21450 do
21451 IFS=$as_save_IFS
21452 test -z "$as_dir" && as_dir=.
21453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21454 done
21455 IFS=$as_save_IFS
21456
21457 ;;
21458 esac
21459 # We did not find ourselves, most probably we were run as `sh COMMAND'
21460 # in which case we are not to be found in the path.
21461 if test "x$as_myself" = x; then
21462 as_myself=$0
21463 fi
21464 if test ! -f "$as_myself"; then
21465 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21466 exit 1
21467 fi
21468
21469 # Unset variables that we do not need and which cause bugs (e.g. in
21470 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21471 # suppresses any "Segmentation fault" message there. '((' could
21472 # trigger a bug in pdksh 5.2.14.
21473 for as_var in BASH_ENV ENV MAIL MAILPATH
21474 do eval test x\${$as_var+set} = xset \
21475 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21476 done
21477 PS1='$ '
21478 PS2='> '
21479 PS4='+ '
21480
21481 # NLS nuisances.
21482 LC_ALL=C
21483 export LC_ALL
21484 LANGUAGE=C
21485 export LANGUAGE
21486
21487 # CDPATH.
21488 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21489
21490
21491 # as_fn_error ERROR [LINENO LOG_FD]
21492 # ---------------------------------
21493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21495 # script with status $?, using 1 if that was 0.
21496 as_fn_error ()
21497 {
21498 as_status=$?; test $as_status -eq 0 && as_status=1
21499 if test "$3"; then
21500 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21501 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21502 fi
21503 $as_echo "$as_me: error: $1" >&2
21504 as_fn_exit $as_status
21505 } # as_fn_error
21506
21507
21508 # as_fn_set_status STATUS
21509 # -----------------------
21510 # Set $? to STATUS, without forking.
21511 as_fn_set_status ()
21512 {
21513 return $1
21514 } # as_fn_set_status
21515
21516 # as_fn_exit STATUS
21517 # -----------------
21518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21519 as_fn_exit ()
21520 {
21521 set +e
21522 as_fn_set_status $1
21523 exit $1
21524 } # as_fn_exit
21525
21526 # as_fn_unset VAR
21527 # ---------------
21528 # Portably unset VAR.
21529 as_fn_unset ()
21530 {
21531 { eval $1=; unset $1;}
21532 }
21533 as_unset=as_fn_unset
21534 # as_fn_append VAR VALUE
21535 # ----------------------
21536 # Append the text in VALUE to the end of the definition contained in VAR. Take
21537 # advantage of any shell optimizations that allow amortized linear growth over
21538 # repeated appends, instead of the typical quadratic growth present in naive
21539 # implementations.
21540 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21541 eval 'as_fn_append ()
21542 {
21543 eval $1+=\$2
21544 }'
21545 else
21546 as_fn_append ()
21547 {
21548 eval $1=\$$1\$2
21549 }
21550 fi # as_fn_append
21551
21552 # as_fn_arith ARG...
21553 # ------------------
21554 # Perform arithmetic evaluation on the ARGs, and store the result in the
21555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21556 # must be portable across $(()) and expr.
21557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21558 eval 'as_fn_arith ()
21559 {
21560 as_val=$(( $* ))
21561 }'
21562 else
21563 as_fn_arith ()
21564 {
21565 as_val=`expr "$@" || test $? -eq 1`
21566 }
21567 fi # as_fn_arith
21568
21569
21570 if expr a : '\(a\)' >/dev/null 2>&1 &&
21571 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21572 as_expr=expr
21573 else
21574 as_expr=false
21575 fi
21576
21577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21578 as_basename=basename
21579 else
21580 as_basename=false
21581 fi
21582
21583 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21584 as_dirname=dirname
21585 else
21586 as_dirname=false
21587 fi
21588
21589 as_me=`$as_basename -- "$0" ||
21590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21591 X"$0" : 'X\(//\)$' \| \
21592 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21593 $as_echo X/"$0" |
21594 sed '/^.*\/\([^/][^/]*\)\/*$/{
21595 s//\1/
21596 q
21597 }
21598 /^X\/\(\/\/\)$/{
21599 s//\1/
21600 q
21601 }
21602 /^X\/\(\/\).*/{
21603 s//\1/
21604 q
21605 }
21606 s/.*/./; q'`
21607
21608 # Avoid depending upon Character Ranges.
21609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21612 as_cr_digits='0123456789'
21613 as_cr_alnum=$as_cr_Letters$as_cr_digits
21614
21615 ECHO_C= ECHO_N= ECHO_T=
21616 case `echo -n x` in #(((((
21617 -n*)
21618 case `echo 'xy\c'` in
21619 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21620 xy) ECHO_C='\c';;
21621 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21622 ECHO_T=' ';;
21623 esac;;
21624 *)
21625 ECHO_N='-n';;
21626 esac
21627
21628 rm -f conf$$ conf$$.exe conf$$.file
21629 if test -d conf$$.dir; then
21630 rm -f conf$$.dir/conf$$.file
21631 else
21632 rm -f conf$$.dir
21633 mkdir conf$$.dir 2>/dev/null
21634 fi
21635 if (echo >conf$$.file) 2>/dev/null; then
21636 if ln -s conf$$.file conf$$ 2>/dev/null; then
21637 as_ln_s='ln -s'
21638 # ... but there are two gotchas:
21639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21641 # In both cases, we have to default to `cp -p'.
21642 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21643 as_ln_s='cp -p'
21644 elif ln conf$$.file conf$$ 2>/dev/null; then
21645 as_ln_s=ln
21646 else
21647 as_ln_s='cp -p'
21648 fi
21649 else
21650 as_ln_s='cp -p'
21651 fi
21652 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21653 rmdir conf$$.dir 2>/dev/null
21654
21655
21656 # as_fn_mkdir_p
21657 # -------------
21658 # Create "$as_dir" as a directory, including parents if necessary.
21659 as_fn_mkdir_p ()
21660 {
21661
21662 case $as_dir in #(
21663 -*) as_dir=./$as_dir;;
21664 esac
21665 test -d "$as_dir" || eval $as_mkdir_p || {
21666 as_dirs=
21667 while :; do
21668 case $as_dir in #(
21669 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21670 *) as_qdir=$as_dir;;
21671 esac
21672 as_dirs="'$as_qdir' $as_dirs"
21673 as_dir=`$as_dirname -- "$as_dir" ||
21674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21675 X"$as_dir" : 'X\(//\)[^/]' \| \
21676 X"$as_dir" : 'X\(//\)$' \| \
21677 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21678 $as_echo X"$as_dir" |
21679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21680 s//\1/
21681 q
21682 }
21683 /^X\(\/\/\)[^/].*/{
21684 s//\1/
21685 q
21686 }
21687 /^X\(\/\/\)$/{
21688 s//\1/
21689 q
21690 }
21691 /^X\(\/\).*/{
21692 s//\1/
21693 q
21694 }
21695 s/.*/./; q'`
21696 test -d "$as_dir" && break
21697 done
21698 test -z "$as_dirs" || eval "mkdir $as_dirs"
21699 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21700
21701
21702 } # as_fn_mkdir_p
21703 if mkdir -p . 2>/dev/null; then
21704 as_mkdir_p='mkdir -p "$as_dir"'
21705 else
21706 test -d ./-p && rmdir ./-p
21707 as_mkdir_p=false
21708 fi
21709
21710 if test -x / >/dev/null 2>&1; then
21711 as_test_x='test -x'
21712 else
21713 if ls -dL / >/dev/null 2>&1; then
21714 as_ls_L_option=L
21715 else
21716 as_ls_L_option=
21717 fi
21718 as_test_x='
21719 eval sh -c '\''
21720 if test -d "$1"; then
21721 test -d "$1/.";
21722 else
21723 case $1 in #(
21724 -*)set "./$1";;
21725 esac;
21726 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21727 ???[sx]*):;;*)false;;esac;fi
21728 '\'' sh
21729 '
21730 fi
21731 as_executable_p=$as_test_x
21732
21733 # Sed expression to map a string onto a valid CPP name.
21734 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21735
21736 # Sed expression to map a string onto a valid variable name.
21737 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21738
21739
21740 exec 6>&1
21741 ## ----------------------------------- ##
21742 ## Main body of $CONFIG_STATUS script. ##
21743 ## ----------------------------------- ##
21744 _ASEOF
21745 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21746
21747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21748 # Save the log message, to keep $0 and so on meaningful, and to
21749 # report actual input values of CONFIG_FILES etc. instead of their
21750 # values after options handling.
21751 ac_log="
21752 This file was extended by emacs $as_me 24.0.50, which was
21753 generated by GNU Autoconf 2.65. Invocation command line was
21754
21755 CONFIG_FILES = $CONFIG_FILES
21756 CONFIG_HEADERS = $CONFIG_HEADERS
21757 CONFIG_LINKS = $CONFIG_LINKS
21758 CONFIG_COMMANDS = $CONFIG_COMMANDS
21759 $ $0 $@
21760
21761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21762 "
21763
21764 _ACEOF
21765
21766 case $ac_config_files in *"
21767 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21768 esac
21769
21770 case $ac_config_headers in *"
21771 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21772 esac
21773
21774
21775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21776 # Files that config.status was made for.
21777 config_files="$ac_config_files"
21778 config_headers="$ac_config_headers"
21779 config_commands="$ac_config_commands"
21780
21781 _ACEOF
21782
21783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21784 ac_cs_usage="\
21785 \`$as_me' instantiates files and other configuration actions
21786 from templates according to the current configuration. Unless the files
21787 and actions are specified as TAGs, all are instantiated by default.
21788
21789 Usage: $0 [OPTION]... [TAG]...
21790
21791 -h, --help print this help, then exit
21792 -V, --version print version number and configuration settings, then exit
21793 --config print configuration, then exit
21794 -q, --quiet, --silent
21795 do not print progress messages
21796 -d, --debug don't remove temporary files
21797 --recheck update $as_me by reconfiguring in the same conditions
21798 --file=FILE[:TEMPLATE]
21799 instantiate the configuration file FILE
21800 --header=FILE[:TEMPLATE]
21801 instantiate the configuration header FILE
21802
21803 Configuration files:
21804 $config_files
21805
21806 Configuration headers:
21807 $config_headers
21808
21809 Configuration commands:
21810 $config_commands
21811
21812 Report bugs to the package provider."
21813
21814 _ACEOF
21815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21817 ac_cs_version="\\
21818 emacs config.status 24.0.50
21819 configured by $0, generated by GNU Autoconf 2.65,
21820 with options \\"\$ac_cs_config\\"
21821
21822 Copyright (C) 2009 Free Software Foundation, Inc.
21823 This config.status script is free software; the Free Software Foundation
21824 gives unlimited permission to copy, distribute and modify it."
21825
21826 ac_pwd='$ac_pwd'
21827 srcdir='$srcdir'
21828 INSTALL='$INSTALL'
21829 MKDIR_P='$MKDIR_P'
21830 AWK='$AWK'
21831 test -n "\$AWK" || AWK=awk
21832 _ACEOF
21833
21834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21835 # The default lists apply if the user does not specify any file.
21836 ac_need_defaults=:
21837 while test $# != 0
21838 do
21839 case $1 in
21840 --*=*)
21841 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21843 ac_shift=:
21844 ;;
21845 *)
21846 ac_option=$1
21847 ac_optarg=$2
21848 ac_shift=shift
21849 ;;
21850 esac
21851
21852 case $ac_option in
21853 # Handling of the options.
21854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21855 ac_cs_recheck=: ;;
21856 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21857 $as_echo "$ac_cs_version"; exit ;;
21858 --config | --confi | --conf | --con | --co | --c )
21859 $as_echo "$ac_cs_config"; exit ;;
21860 --debug | --debu | --deb | --de | --d | -d )
21861 debug=: ;;
21862 --file | --fil | --fi | --f )
21863 $ac_shift
21864 case $ac_optarg in
21865 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21866 esac
21867 as_fn_append CONFIG_FILES " '$ac_optarg'"
21868 ac_need_defaults=false;;
21869 --header | --heade | --head | --hea )
21870 $ac_shift
21871 case $ac_optarg in
21872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21873 esac
21874 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21875 ac_need_defaults=false;;
21876 --he | --h)
21877 # Conflict between --help and --header
21878 as_fn_error "ambiguous option: \`$1'
21879 Try \`$0 --help' for more information.";;
21880 --help | --hel | -h )
21881 $as_echo "$ac_cs_usage"; exit ;;
21882 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21883 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21884 ac_cs_silent=: ;;
21885
21886 # This is an error.
21887 -*) as_fn_error "unrecognized option: \`$1'
21888 Try \`$0 --help' for more information." ;;
21889
21890 *) as_fn_append ac_config_targets " $1"
21891 ac_need_defaults=false ;;
21892
21893 esac
21894 shift
21895 done
21896
21897 ac_configure_extra_args=
21898
21899 if $ac_cs_silent; then
21900 exec 6>/dev/null
21901 ac_configure_extra_args="$ac_configure_extra_args --silent"
21902 fi
21903
21904 _ACEOF
21905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21906 if \$ac_cs_recheck; then
21907 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21908 shift
21909 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21910 CONFIG_SHELL='$SHELL'
21911 export CONFIG_SHELL
21912 exec "\$@"
21913 fi
21914
21915 _ACEOF
21916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21917 exec 5>>config.log
21918 {
21919 echo
21920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21921 ## Running $as_me. ##
21922 _ASBOX
21923 $as_echo "$ac_log"
21924 } >&5
21925
21926 _ACEOF
21927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21928 #
21929 # INIT-COMMANDS
21930 #
21931 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21932 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
21933
21934 _ACEOF
21935
21936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21937
21938 # Handling of arguments.
21939 for ac_config_target in $ac_config_targets
21940 do
21941 case $ac_config_target in
21942 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21943 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21944 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21945 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21946 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
21947 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21948 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
21949 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
21950 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
21951 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
21952 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21953 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21954 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21955 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21956 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
21957 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
21958 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
21959 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
21960
21961 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21962 esac
21963 done
21964
21965
21966 # If the user did not use the arguments to specify the items to instantiate,
21967 # then the envvar interface is used. Set only those that are not.
21968 # We use the long form for the default assignment because of an extremely
21969 # bizarre bug on SunOS 4.1.3.
21970 if $ac_need_defaults; then
21971 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21972 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21973 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21974 fi
21975
21976 # Have a temporary directory for convenience. Make it in the build tree
21977 # simply because there is no reason against having it here, and in addition,
21978 # creating and moving files from /tmp can sometimes cause problems.
21979 # Hook for its removal unless debugging.
21980 # Note that there is a small window in which the directory will not be cleaned:
21981 # after its creation but before its name has been assigned to `$tmp'.
21982 $debug ||
21983 {
21984 tmp=
21985 trap 'exit_status=$?
21986 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21987 ' 0
21988 trap 'as_fn_exit 1' 1 2 13 15
21989 }
21990 # Create a (secure) tmp directory for tmp files.
21991
21992 {
21993 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21994 test -n "$tmp" && test -d "$tmp"
21995 } ||
21996 {
21997 tmp=./conf$$-$RANDOM
21998 (umask 077 && mkdir "$tmp")
21999 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22000
22001 # Set up the scripts for CONFIG_FILES section.
22002 # No need to generate them if there are no CONFIG_FILES.
22003 # This happens for instance with `./config.status config.h'.
22004 if test -n "$CONFIG_FILES"; then
22005
22006 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
22007 ac_cs_awk_getline=:
22008 ac_cs_awk_pipe_init=
22009 ac_cs_awk_read_file='
22010 while ((getline aline < (F[key])) > 0)
22011 print(aline)
22012 close(F[key])'
22013 ac_cs_awk_pipe_fini=
22014 else
22015 ac_cs_awk_getline=false
22016 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
22017 ac_cs_awk_read_file='
22018 print "|#_!!_#|"
22019 print "cat " F[key] " &&"
22020 '$ac_cs_awk_pipe_init
22021 # The final `:' finishes the AND list.
22022 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
22023 fi
22024 ac_cr=`echo X | tr X '\015'`
22025 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22026 # But we know of no other shell where ac_cr would be empty at this
22027 # point, so we can use a bashism as a fallback.
22028 if test "x$ac_cr" = x; then
22029 eval ac_cr=\$\'\\r\'
22030 fi
22031 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22032 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22033 ac_cs_awk_cr='\r'
22034 else
22035 ac_cs_awk_cr=$ac_cr
22036 fi
22037
22038 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22039 _ACEOF
22040
22041 # Create commands to substitute file output variables.
22042 {
22043 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22044 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22045 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
22046 echo "_ACAWK" &&
22047 echo "_ACEOF"
22048 } >conf$$files.sh &&
22049 . ./conf$$files.sh ||
22050 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22051 rm -f conf$$files.sh
22052
22053 {
22054 echo "cat >conf$$subs.awk <<_ACEOF" &&
22055 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22056 echo "_ACEOF"
22057 } >conf$$subs.sh ||
22058 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22059 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22060 ac_delim='%!_!# '
22061 for ac_last_try in false false false false false :; do
22062 . ./conf$$subs.sh ||
22063 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22064
22065 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22066 if test $ac_delim_n = $ac_delim_num; then
22067 break
22068 elif $ac_last_try; then
22069 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22070 else
22071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22072 fi
22073 done
22074 rm -f conf$$subs.sh
22075
22076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22077 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22078 _ACEOF
22079 sed -n '
22080 h
22081 s/^/S["/; s/!.*/"]=/
22082 p
22083 g
22084 s/^[^!]*!//
22085 :repl
22086 t repl
22087 s/'"$ac_delim"'$//
22088 t delim
22089 :nl
22090 h
22091 s/\(.\{148\}\)..*/\1/
22092 t more1
22093 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22094 p
22095 n
22096 b repl
22097 :more1
22098 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22099 p
22100 g
22101 s/.\{148\}//
22102 t nl
22103 :delim
22104 h
22105 s/\(.\{148\}\)..*/\1/
22106 t more2
22107 s/["\\]/\\&/g; s/^/"/; s/$/"/
22108 p
22109 b
22110 :more2
22111 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22112 p
22113 g
22114 s/.\{148\}//
22115 t delim
22116 ' <conf$$subs.awk | sed '
22117 /^[^""]/{
22118 N
22119 s/\n//
22120 }
22121 ' >>$CONFIG_STATUS || ac_write_fail=1
22122 rm -f conf$$subs.awk
22123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22124 _ACAWK
22125 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22126 for (key in S) S_is_set[key] = 1
22127 FS = "\a"
22128 \$ac_cs_awk_pipe_init
22129 }
22130 {
22131 line = $ 0
22132 nfields = split(line, field, "@")
22133 substed = 0
22134 len = length(field[1])
22135 for (i = 2; i < nfields; i++) {
22136 key = field[i]
22137 keylen = length(key)
22138 if (S_is_set[key]) {
22139 value = S[key]
22140 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22141 len += length(value) + length(field[++i])
22142 substed = 1
22143 } else
22144 len += 1 + keylen
22145 }
22146 if (nfields == 3 && !substed) {
22147 key = field[2]
22148 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22149 \$ac_cs_awk_read_file
22150 next
22151 }
22152 }
22153 print line
22154 }
22155 \$ac_cs_awk_pipe_fini
22156 _ACAWK
22157 _ACEOF
22158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22159 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22160 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22161 else
22162 cat
22163 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22164 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22165 _ACEOF
22166
22167 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22168 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22169 # trailing colons and then remove the whole line if VPATH becomes empty
22170 # (actually we leave an empty line to preserve line numbers).
22171 if test "x$srcdir" = x.; then
22172 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22173 s/:*\$(srcdir):*/:/
22174 s/:*\${srcdir}:*/:/
22175 s/:*@srcdir@:*/:/
22176 s/^\([^=]*=[ ]*\):*/\1/
22177 s/:*$//
22178 s/^[^=]*=[ ]*$//
22179 }'
22180 fi
22181
22182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22183 fi # test -n "$CONFIG_FILES"
22184
22185 # Set up the scripts for CONFIG_HEADERS section.
22186 # No need to generate them if there are no CONFIG_HEADERS.
22187 # This happens for instance with `./config.status Makefile'.
22188 if test -n "$CONFIG_HEADERS"; then
22189 cat >"$tmp/defines.awk" <<\_ACAWK ||
22190 BEGIN {
22191 _ACEOF
22192
22193 # Transform confdefs.h into an awk script `defines.awk', embedded as
22194 # here-document in config.status, that substitutes the proper values into
22195 # config.h.in to produce config.h.
22196
22197 # Create a delimiter string that does not exist in confdefs.h, to ease
22198 # handling of long lines.
22199 ac_delim='%!_!# '
22200 for ac_last_try in false false :; do
22201 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22202 if test -z "$ac_t"; then
22203 break
22204 elif $ac_last_try; then
22205 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22206 else
22207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22208 fi
22209 done
22210
22211 # For the awk script, D is an array of macro values keyed by name,
22212 # likewise P contains macro parameters if any. Preserve backslash
22213 # newline sequences.
22214
22215 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22216 sed -n '
22217 s/.\{148\}/&'"$ac_delim"'/g
22218 t rset
22219 :rset
22220 s/^[ ]*#[ ]*define[ ][ ]*/ /
22221 t def
22222 d
22223 :def
22224 s/\\$//
22225 t bsnl
22226 s/["\\]/\\&/g
22227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22228 D["\1"]=" \3"/p
22229 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22230 d
22231 :bsnl
22232 s/["\\]/\\&/g
22233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22234 D["\1"]=" \3\\\\\\n"\\/p
22235 t cont
22236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22237 t cont
22238 d
22239 :cont
22240 n
22241 s/.\{148\}/&'"$ac_delim"'/g
22242 t clear
22243 :clear
22244 s/\\$//
22245 t bsnlc
22246 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22247 d
22248 :bsnlc
22249 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22250 b cont
22251 ' <confdefs.h | sed '
22252 s/'"$ac_delim"'/"\\\
22253 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22254
22255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22256 for (key in D) D_is_set[key] = 1
22257 FS = "\a"
22258 }
22259 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22260 line = \$ 0
22261 split(line, arg, " ")
22262 if (arg[1] == "#") {
22263 defundef = arg[2]
22264 mac1 = arg[3]
22265 } else {
22266 defundef = substr(arg[1], 2)
22267 mac1 = arg[2]
22268 }
22269 split(mac1, mac2, "(") #)
22270 macro = mac2[1]
22271 prefix = substr(line, 1, index(line, defundef) - 1)
22272 if (D_is_set[macro]) {
22273 # Preserve the white space surrounding the "#".
22274 print prefix "define", macro P[macro] D[macro]
22275 next
22276 } else {
22277 # Replace #undef with comments. This is necessary, for example,
22278 # in the case of _POSIX_SOURCE, which is predefined and required
22279 # on some systems where configure will not decide to define it.
22280 if (defundef == "undef") {
22281 print "/*", prefix defundef, macro, "*/"
22282 next
22283 }
22284 }
22285 }
22286 { print }
22287 _ACAWK
22288 _ACEOF
22289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22290 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22291 fi # test -n "$CONFIG_HEADERS"
22292
22293
22294 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22295 shift
22296 for ac_tag
22297 do
22298 case $ac_tag in
22299 :[FHLC]) ac_mode=$ac_tag; continue;;
22300 esac
22301 case $ac_mode$ac_tag in
22302 :[FHL]*:*);;
22303 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22304 :[FH]-) ac_tag=-:-;;
22305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22306 esac
22307 ac_save_IFS=$IFS
22308 IFS=:
22309 set x $ac_tag
22310 IFS=$ac_save_IFS
22311 shift
22312 ac_file=$1
22313 shift
22314
22315 case $ac_mode in
22316 :L) ac_source=$1;;
22317 :[FH])
22318 ac_file_inputs=
22319 for ac_f
22320 do
22321 case $ac_f in
22322 -) ac_f="$tmp/stdin";;
22323 *) # Look for the file first in the build tree, then in the source tree
22324 # (if the path is not absolute). The absolute path cannot be DOS-style,
22325 # because $ac_f cannot contain `:'.
22326 test -f "$ac_f" ||
22327 case $ac_f in
22328 [\\/$]*) false;;
22329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22330 esac ||
22331 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22332 esac
22333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22334 as_fn_append ac_file_inputs " '$ac_f'"
22335 done
22336
22337 # Let's still pretend it is `configure' which instantiates (i.e., don't
22338 # use $as_me), people would be surprised to read:
22339 # /* config.h. Generated by config.status. */
22340 configure_input='Generated from '`
22341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22342 `' by configure.'
22343 if test x"$ac_file" != x-; then
22344 configure_input="$ac_file. $configure_input"
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22346 $as_echo "$as_me: creating $ac_file" >&6;}
22347 fi
22348 # Neutralize special characters interpreted by sed in replacement strings.
22349 case $configure_input in #(
22350 *\&* | *\|* | *\\* )
22351 ac_sed_conf_input=`$as_echo "$configure_input" |
22352 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22353 *) ac_sed_conf_input=$configure_input;;
22354 esac
22355
22356 case $ac_tag in
22357 *:-:* | *:-) cat >"$tmp/stdin" \
22358 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22359 esac
22360 ;;
22361 esac
22362
22363 ac_dir=`$as_dirname -- "$ac_file" ||
22364 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22365 X"$ac_file" : 'X\(//\)[^/]' \| \
22366 X"$ac_file" : 'X\(//\)$' \| \
22367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22368 $as_echo X"$ac_file" |
22369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22370 s//\1/
22371 q
22372 }
22373 /^X\(\/\/\)[^/].*/{
22374 s//\1/
22375 q
22376 }
22377 /^X\(\/\/\)$/{
22378 s//\1/
22379 q
22380 }
22381 /^X\(\/\).*/{
22382 s//\1/
22383 q
22384 }
22385 s/.*/./; q'`
22386 as_dir="$ac_dir"; as_fn_mkdir_p
22387 ac_builddir=.
22388
22389 case "$ac_dir" in
22390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22391 *)
22392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22393 # A ".." for each directory in $ac_dir_suffix.
22394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22395 case $ac_top_builddir_sub in
22396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22398 esac ;;
22399 esac
22400 ac_abs_top_builddir=$ac_pwd
22401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22402 # for backward compatibility:
22403 ac_top_builddir=$ac_top_build_prefix
22404
22405 case $srcdir in
22406 .) # We are building in place.
22407 ac_srcdir=.
22408 ac_top_srcdir=$ac_top_builddir_sub
22409 ac_abs_top_srcdir=$ac_pwd ;;
22410 [\\/]* | ?:[\\/]* ) # Absolute name.
22411 ac_srcdir=$srcdir$ac_dir_suffix;
22412 ac_top_srcdir=$srcdir
22413 ac_abs_top_srcdir=$srcdir ;;
22414 *) # Relative name.
22415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22416 ac_top_srcdir=$ac_top_build_prefix$srcdir
22417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22418 esac
22419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22420
22421
22422 case $ac_mode in
22423 :F)
22424 #
22425 # CONFIG_FILE
22426 #
22427
22428 case $INSTALL in
22429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22431 esac
22432 ac_MKDIR_P=$MKDIR_P
22433 case $MKDIR_P in
22434 [\\/$]* | ?:[\\/]* ) ;;
22435 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22436 esac
22437 _ACEOF
22438
22439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22440 # If the template does not know about datarootdir, expand it.
22441 # FIXME: This hack should be removed a few years after 2.60.
22442 ac_datarootdir_hack=; ac_datarootdir_seen=
22443 ac_sed_dataroot='
22444 /datarootdir/ {
22445 p
22446 q
22447 }
22448 /@datadir@/p
22449 /@docdir@/p
22450 /@infodir@/p
22451 /@localedir@/p
22452 /@mandir@/p'
22453 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22454 *datarootdir*) ac_datarootdir_seen=yes;;
22455 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22457 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22458 _ACEOF
22459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22460 ac_datarootdir_hack='
22461 s&@datadir@&$datadir&g
22462 s&@docdir@&$docdir&g
22463 s&@infodir@&$infodir&g
22464 s&@localedir@&$localedir&g
22465 s&@mandir@&$mandir&g
22466 s&\\\${datarootdir}&$datarootdir&g' ;;
22467 esac
22468 _ACEOF
22469
22470 # Neutralize VPATH when `$srcdir' = `.'.
22471 # Shell code in configure.ac might set extrasub.
22472 # FIXME: do we really want to maintain this feature?
22473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22474 ac_sed_extra="$ac_vpsub
22475 $extrasub
22476 _ACEOF
22477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22478 :t
22479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22480 s|@configure_input@|$ac_sed_conf_input|;t t
22481 s&@top_builddir@&$ac_top_builddir_sub&;t t
22482 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22483 s&@srcdir@&$ac_srcdir&;t t
22484 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22485 s&@top_srcdir@&$ac_top_srcdir&;t t
22486 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22487 s&@builddir@&$ac_builddir&;t t
22488 s&@abs_builddir@&$ac_abs_builddir&;t t
22489 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22490 s&@INSTALL@&$ac_INSTALL&;t t
22491 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22492 $ac_datarootdir_hack
22493 "
22494 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
22495 if $ac_cs_awk_getline; then
22496 $AWK -f "$tmp/subs.awk"
22497 else
22498 $AWK -f "$tmp/subs.awk" | $SHELL
22499 fi >$tmp/out \
22500 || as_fn_error "could not create $ac_file" "$LINENO" 5
22501
22502 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22503 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22504 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22506 which seems to be undefined. Please make sure it is defined." >&5
22507 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22508 which seems to be undefined. Please make sure it is defined." >&2;}
22509
22510 rm -f "$tmp/stdin"
22511 case $ac_file in
22512 -) cat "$tmp/out" && rm -f "$tmp/out";;
22513 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22514 esac \
22515 || as_fn_error "could not create $ac_file" "$LINENO" 5
22516 ;;
22517 :H)
22518 #
22519 # CONFIG_HEADER
22520 #
22521 if test x"$ac_file" != x-; then
22522 {
22523 $as_echo "/* $configure_input */" \
22524 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22525 } >"$tmp/config.h" \
22526 || as_fn_error "could not create $ac_file" "$LINENO" 5
22527 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22529 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22530 else
22531 rm -f "$ac_file"
22532 mv "$tmp/config.h" "$ac_file" \
22533 || as_fn_error "could not create $ac_file" "$LINENO" 5
22534 fi
22535 else
22536 $as_echo "/* $configure_input */" \
22537 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22538 || as_fn_error "could not create -" "$LINENO" 5
22539 fi
22540 # Compute "$ac_file"'s index in $config_headers.
22541 _am_arg="$ac_file"
22542 _am_stamp_count=1
22543 for _am_header in $config_headers :; do
22544 case $_am_header in
22545 $_am_arg | $_am_arg:* )
22546 break ;;
22547 * )
22548 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22549 esac
22550 done
22551 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22552 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22553 X"$_am_arg" : 'X\(//\)[^/]' \| \
22554 X"$_am_arg" : 'X\(//\)$' \| \
22555 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22556 $as_echo X"$_am_arg" |
22557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22558 s//\1/
22559 q
22560 }
22561 /^X\(\/\/\)[^/].*/{
22562 s//\1/
22563 q
22564 }
22565 /^X\(\/\/\)$/{
22566 s//\1/
22567 q
22568 }
22569 /^X\(\/\).*/{
22570 s//\1/
22571 q
22572 }
22573 s/.*/./; q'`/stamp-h$_am_stamp_count
22574 ;;
22575
22576 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22577 $as_echo "$as_me: executing $ac_file commands" >&6;}
22578 ;;
22579 esac
22580
22581
22582 case $ac_file$ac_mode in
22583 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22584 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22585 # are listed without --file. Let's play safe and only enable the eval
22586 # if we detect the quoting.
22587 case $CONFIG_FILES in
22588 *\'*) eval set x "$CONFIG_FILES" ;;
22589 *) set x $CONFIG_FILES ;;
22590 esac
22591 shift
22592 for mf
22593 do
22594 # Strip MF so we end up with the name of the file.
22595 mf=`echo "$mf" | sed -e 's/:.*$//'`
22596 # Check whether this is an Automake generated Makefile or not.
22597 # We used to match only the files named `Makefile.in', but
22598 # some people rename them; so instead we look at the file content.
22599 # Grep'ing the first line is not enough: some people post-process
22600 # each Makefile.in and add a new line on top of each file to say so.
22601 # Grep'ing the whole file is not good either: AIX grep has a line
22602 # limit of 2048, but all sed's we know have understand at least 4000.
22603 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22604 dirpart=`$as_dirname -- "$mf" ||
22605 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606 X"$mf" : 'X\(//\)[^/]' \| \
22607 X"$mf" : 'X\(//\)$' \| \
22608 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22609 $as_echo X"$mf" |
22610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22611 s//\1/
22612 q
22613 }
22614 /^X\(\/\/\)[^/].*/{
22615 s//\1/
22616 q
22617 }
22618 /^X\(\/\/\)$/{
22619 s//\1/
22620 q
22621 }
22622 /^X\(\/\).*/{
22623 s//\1/
22624 q
22625 }
22626 s/.*/./; q'`
22627 else
22628 continue
22629 fi
22630 # Extract the definition of DEPDIR, am__include, and am__quote
22631 # from the Makefile without running `make'.
22632 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22633 test -z "$DEPDIR" && continue
22634 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22635 test -z "am__include" && continue
22636 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22637 # When using ansi2knr, U may be empty or an underscore; expand it
22638 U=`sed -n 's/^U = //p' < "$mf"`
22639 # Find all dependency output files, they are included files with
22640 # $(DEPDIR) in their names. We invoke sed twice because it is the
22641 # simplest approach to changing $(DEPDIR) to its actual value in the
22642 # expansion.
22643 for file in `sed -n "
22644 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22645 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22646 # Make sure the directory exists.
22647 test -f "$dirpart/$file" && continue
22648 fdir=`$as_dirname -- "$file" ||
22649 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22650 X"$file" : 'X\(//\)[^/]' \| \
22651 X"$file" : 'X\(//\)$' \| \
22652 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22653 $as_echo X"$file" |
22654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22655 s//\1/
22656 q
22657 }
22658 /^X\(\/\/\)[^/].*/{
22659 s//\1/
22660 q
22661 }
22662 /^X\(\/\/\)$/{
22663 s//\1/
22664 q
22665 }
22666 /^X\(\/\).*/{
22667 s//\1/
22668 q
22669 }
22670 s/.*/./; q'`
22671 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22672 # echo "creating $dirpart/$file"
22673 echo '# dummy' > "$dirpart/$file"
22674 done
22675 done
22676 }
22677 ;;
22678 "mkdirs":C)
22679 for dir in etc lisp ; do
22680 test -d ${dir} || mkdir ${dir}
22681 done
22682 ;;
22683 "epaths":C)
22684 echo creating src/epaths.h
22685 ${MAKE-make} epaths-force
22686 ;;
22687 "gdbinit":C)
22688 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22689 echo creating src/.gdbinit
22690 echo source $srcdir/src/.gdbinit > src/.gdbinit
22691 fi
22692 ;;
22693
22694 esac
22695 done # for ac_tag
22696
22697
22698 as_fn_exit 0
22699 _ACEOF
22700 ac_clean_files=$ac_clean_files_save
22701
22702 test $ac_write_fail = 0 ||
22703 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22704
22705
22706 # configure is writing to config.log, and then calls config.status.
22707 # config.status does its own redirection, appending to config.log.
22708 # Unfortunately, on DOS this fails, as config.log is still kept open
22709 # by configure, so config.status won't be able to write to it; its
22710 # output is simply discarded. So we exec the FD to /dev/null,
22711 # effectively closing config.log, so it can be properly (re)opened and
22712 # appended to by config.status. When coming back to configure, we
22713 # need to make the FD available again.
22714 if test "$no_create" != yes; then
22715 ac_cs_success=:
22716 ac_config_status_args=
22717 test "$silent" = yes &&
22718 ac_config_status_args="$ac_config_status_args --quiet"
22719 exec 5>/dev/null
22720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22721 exec 5>>config.log
22722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22723 # would make configure fail if this is the last instruction.
22724 $ac_cs_success || as_fn_exit $?
22725 fi
22726 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22728 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22729 fi
22730
22731